ChangeLog 539 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044
  1. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2. Added addTorrentFile xml-rpc command which receives uploaded
  3. torrent file and add download for it.
  4. * src/RequestGroupMan.cc
  5. * src/XmlRpcMethodFactory.cc
  6. * src/XmlRpcMethodImpl.cc
  7. * src/XmlRpcMethodImpl.h
  8. * src/download_helper.cc
  9. * src/download_helper.h
  10. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  11. Added remove xml-rpc command which removes specified download.
  12. There is a known issue: the removed unfinished downloads are
  13. reported ERR when aria2 exits. They should be reported as INPR.
  14. * src/RequestGroupMan.cc
  15. * src/RequestGroupMan.h
  16. * src/XmlRpcMethodFactory.cc
  17. * src/XmlRpcMethodImpl.cc
  18. * src/XmlRpcMethodImpl.h
  19. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  20. If --enable-http-server is enabled, don't stop aria2 when all
  21. download finished and don't quit when no files to download at
  22. start up.
  23. * src/RequestGroupMan.cc
  24. * src/main.cc
  25. * src/option_processing.cc
  26. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  27. Added missing AM_CONDITIONAL
  28. * configure.ac
  29. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  30. Added xml-rpc functionality. Currently only addURI commad is
  31. supported. To enable xml-rpc, run aria2 with
  32. --enable-http-server. This option name is temporal and will be
  33. changed. The feature that reports download progress in html format
  34. is temporarily disabled.
  35. * src/HttpServer.cc
  36. * src/HttpServer.h
  37. * src/HttpServerBodyCommand.cc
  38. * src/HttpServerBodyCommand.h
  39. * src/HttpServerCommand.cc
  40. * src/HttpServerResponseCommand.cc
  41. * src/Makefile.am
  42. * src/OptionParser.cc
  43. * src/OptionParser.h
  44. * src/RequestGroupMan.cc
  45. * src/RequestGroupMan.h
  46. * src/XmlRpcMethod.cc
  47. * src/XmlRpcMethod.h
  48. * src/XmlRpcMethodFactory.cc
  49. * src/XmlRpcMethodFactory.h
  50. * src/XmlRpcMethodImpl.cc
  51. * src/XmlRpcMethodImpl.h
  52. * src/download_helper.cc
  53. * src/download_helper.h
  54. * test/Makefile.am
  55. * test/XmlRpcMethodTest.cc
  56. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  57. Added xml-rpc request parser. The supported value types are:
  58. i4/int, string, double, struct, array, base64. Currently only
  59. libxml2 version is provided.
  60. * src/Xml2XmlRpcRequestProcessor.cc
  61. * src/Xml2XmlRpcRequestProcessor.h
  62. * src/XmlRpcElements.cc
  63. * src/XmlRpcElements.h
  64. * src/XmlRpcRequest.h
  65. * src/XmlRpcRequestParserController.cc
  66. * src/XmlRpcRequestParserController.h
  67. * src/XmlRpcRequestParserState.h
  68. * src/XmlRpcRequestParserStateImpl.cc
  69. * src/XmlRpcRequestParserStateImpl.h
  70. * src/XmlRpcRequestParserStateMachine.cc
  71. * src/XmlRpcRequestParserStateMachine.h
  72. * src/XmlRpcRequestProcessor.h
  73. * test/XmlRpcRequestParserControllerTest.cc
  74. * test/XmlRpcRequestProcessorTest.cc
  75. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  76. * Release 1.3.3
  77. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  78. Fixed compile error since r1202.
  79. * src/ExpatMetalinkProcessor.cc
  80. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  81. Updated Ukrainian, Russian and Simplified Chinese
  82. translations. Thanks to all translators.
  83. * po/ru.po
  84. * po/uk.po
  85. * po/zh_CN.po
  86. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  87. Pass reference of Option object instead of pointer.
  88. * src/download_helper.cc
  89. * src/download_helper.h
  90. * src/main.cc
  91. * test/DownloadHelperTest.cc
  92. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  93. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  94. from option directly. Instead, get them from RequestGroup.
  95. * src/ActivePeerConnectionCommand.cc
  96. * src/ActivePeerConnectionCommand.h
  97. * src/PeerReceiveHandshakeCommand.cc
  98. * src/RequestGroup.h
  99. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  100. Removed unused uploadLimitCheck and uploadLimit from
  101. PeerAbstractCommand. Removed unused maxDownloadLimit from
  102. PeerInteractionCommand.
  103. * src/PeerAbstractCommand.cc
  104. * src/PeerAbstractCommand.h
  105. * src/PeerInteractionCommand.cc
  106. * src/PeerInteractionCommand.h
  107. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  108. Fixed broken file renaming feature since r1202.
  109. * src/FtpNegotiationCommand.cc
  110. * src/FtpNegotiationCommand.h
  111. * src/HttpResponseCommand.cc
  112. * src/RequestGroup.cc
  113. * src/RequestGroup.h
  114. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  115. Removed unused debug log
  116. * src/SocketCore.cc
  117. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  118. Generated configure and Makefile.in using autoconf 2.63 and
  119. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  120. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  121. * configure.ac
  122. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  123. Moved piece statistics stuff to new PieceStatMan class.
  124. Refactored PieceSelector interface.
  125. * src/DefaultPieceStorage.cc
  126. * src/DefaultPieceStorage.h
  127. * src/LongestSequencePieceSelector.cc
  128. * src/LongestSequencePieceSelector.h
  129. * src/Makefile.am
  130. * src/PieceSelector.h
  131. * src/PieceStatMan.cc
  132. * src/PieceStatMan.h
  133. * src/RarestPieceSelector.cc
  134. * src/RarestPieceSelector.h
  135. * src/RequestGroup.cc
  136. * test/DefaultPieceStorageTest.cc
  137. * test/InOrderPieceSelector.h
  138. * test/Makefile.am
  139. * test/PieceStatManTest.cc
  140. * test/RarestPieceSelectorTest.cc
  141. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  142. Added static member _protocolFamily to SocketCore. By default,
  143. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  144. address. Sometime SocketCore::bind() and
  145. SocketCore::establishConnection() use difference protocl family
  146. and latter cannot connect to former. To avoid this situation, we
  147. limit protocol family to AF_INET for unit tests.
  148. * src/SocketCore.cc
  149. * src/SocketCore.h
  150. * test/AllTest.cc
  151. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  152. Avoid std::bad_alloc for negative bencode string length.
  153. * src/bencode.cc
  154. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  155. Supported segmented downloading with chunked transfer encoding and
  156. content-length.
  157. * src/DownloadCommand.cc
  158. * src/HttpResponseCommand.cc
  159. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  160. Bump up version number to 1.3.3
  161. * configure.ac
  162. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  163. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  164. from 4096 to 65536 (for insanely large ftp login banners)
  165. * src/FtpConnection.h
  166. * test/FtpConnectionTest.cc
  167. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  168. In DefaultBtContext::getActualBasePath(), return first
  169. FileEntry::getPath() for single file torrent.
  170. * src/DefaultBtContext.cc
  171. * test/DefaultBtContextTest.cc
  172. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  173. Removed directIOAllowed() from BinaryStream, DiskWriter,
  174. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  175. Removed _directIOAllowed member from DiskWriter.
  176. * src/AbstractDiskWriter.cc
  177. * src/AbstractDiskWriter.h
  178. * src/AbstractSingleDiskAdaptor.cc
  179. * src/AbstractSingleDiskAdaptor.h
  180. * src/BinaryStream.h
  181. * src/ByteArrayDiskWriter.h
  182. * src/DefaultPieceStorage.cc
  183. * src/DiskWriter.h
  184. * src/MultiDiskAdaptor.cc
  185. * src/MultiDiskAdaptor.h
  186. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  187. Now the constructor of AbstractDiskWriter takes filename as an
  188. argument and filename argument is removed from openFile(),
  189. initAndOpenFile(), openExistingFile() interface. storeDir member
  190. and its accessor functions are removed from DiskAdaptor because it
  191. is not used anymore. size() member function of DefaultDiskWriter,
  192. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  193. opening file.
  194. * src/AbstractDiskWriter.cc
  195. * src/AbstractDiskWriter.h
  196. * src/AbstractSingleDiskAdaptor.cc
  197. * src/AbstractSingleDiskAdaptor.h
  198. * src/ByteArrayDiskWriter.cc
  199. * src/ByteArrayDiskWriter.h
  200. * src/ByteArrayDiskWriterFactory.cc
  201. * src/ByteArrayDiskWriterFactory.h
  202. * src/DefaultDiskWriter.cc
  203. * src/DefaultDiskWriter.h
  204. * src/DefaultDiskWriterFactory.cc
  205. * src/DefaultDiskWriterFactory.h
  206. * src/DefaultPieceStorage.cc
  207. * src/DirectDiskAdaptor.cc
  208. * src/DirectDiskAdaptor.h
  209. * src/DiskAdaptor.h
  210. * src/DiskWriter.h
  211. * src/DiskWriterFactory.h
  212. * src/MessageDigestHelper.cc
  213. * src/MultiDiskAdaptor.cc
  214. * src/RequestGroup.cc
  215. * src/UnknownLengthPieceStorage.cc
  216. * src/Util.cc
  217. * test/DefaultDiskWriterTest.cc
  218. * test/DirectDiskAdaptorTest.cc
  219. * test/FallocFileAllocationIteratorTest.cc
  220. * test/MessageDigestHelperTest.cc
  221. * test/MetalinkProcessorTest.cc
  222. * test/MultiDiskAdaptorTest.cc
  223. * test/MultiFileAllocationIteratorTest.cc
  224. * test/SingleFileAllocationIteratorTest.cc
  225. * test/UtilTest.cc
  226. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  227. Fixed the bug that aria2 aborts when --select-file is used. This
  228. bug was introduced in r1199.
  229. * src/MultiDiskAdaptor.cc
  230. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  231. Code cleanup
  232. * test/MockPieceStorage.cc
  233. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  234. Fixed the bug that read-only file with wrong file size will cause
  235. error because it cannot be truncated to the correct size. Now if
  236. file size is different than the expected one, re-open file in
  237. writable mode.
  238. * src/AbstractSingleDiskAdaptor.cc
  239. * src/AbstractSingleDiskAdaptor.h
  240. * src/BtCheckIntegrityEntry.cc
  241. * src/DiskAdaptor.h
  242. * src/MultiDiskAdaptor.h
  243. * src/RequestGroup.cc
  244. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  245. Fixed the bug that with --check-integrity option aria2 reports
  246. downloaded file size is 0 even if some parts of file is correctly
  247. downloaded. This bug is reproducible for the download that a file
  248. includes last piece is missing. This bug doesn't reveal for
  249. single-torrent with file allocation on.
  250. * src/IteratableChecksumValidator.cc
  251. * test/IteratableChecksumValidatorTest.cc
  252. 2009-05-01 Tatsuhiro Tsujikawa <[email protected]>
  253. Avoid circular reference between RequestGroup and AdaptiveURISelector
  254. * src/RequestGroupMan.cc
  255. * src/AdaptiveURISelector.cc
  256. * src/AdaptiveURISelector.h
  257. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  258. * Release 1.3.2
  259. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  260. Updated README
  261. * README
  262. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  263. Updated Ukrainian translations. Thanks to Alexander10.
  264. * po/uk.po
  265. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  266. Code cleanup
  267. * src/MetalinkParserStateMachine.cc
  268. * src/MetalinkParserStateMachine.h
  269. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  270. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  271. and expat simultaneously, MetalinkProcessor is now not base class
  272. and it is directly implemented in XML2SAXMetalinkProcessor and
  273. ExpatMetalinkProcessor.
  274. * src/ExpatMetalinkProcessor.cc
  275. * src/ExpatMetalinkProcessor.h
  276. * src/Makefile.am
  277. * src/MetalinkHelper.cc
  278. * src/MetalinkProcessor.h
  279. * src/MetalinkProcessorFactory.cc: Removed.
  280. * src/MetalinkProcessorFactory.h: Removed
  281. * src/XML2SAXMetalinkProcessor.cc
  282. * src/XML2SAXMetalinkProcessor.h
  283. * test/MetalinkProcessorTest.cc
  284. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  285. Bump up version number to 1.3.2
  286. * configure.ac
  287. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  288. Added missing file.
  289. * test/Makefile.am
  290. * test/url-list-singleFileEndsWithSlash.torrent
  291. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  292. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  293. request.
  294. * src/AnnounceList.cc
  295. * src/AnnounceList.h
  296. * src/BDE.cc: Added
  297. * src/BDE.h: Added
  298. * src/DHTAbstractMessage.cc
  299. * src/DHTAbstractMessage.h
  300. * src/DHTAnnouncePeerMessage.cc
  301. * src/DHTAnnouncePeerMessage.h
  302. * src/DHTAnnouncePeerReplyMessage.cc
  303. * src/DHTAnnouncePeerReplyMessage.h
  304. * src/DHTFindNodeMessage.cc
  305. * src/DHTFindNodeMessage.h
  306. * src/DHTFindNodeReplyMessage.cc
  307. * src/DHTFindNodeReplyMessage.h
  308. * src/DHTGetPeersMessage.cc
  309. * src/DHTGetPeersMessage.h
  310. * src/DHTGetPeersReplyMessage.cc
  311. * src/DHTGetPeersReplyMessage.h
  312. * src/DHTMessageFactory.h
  313. * src/DHTMessageFactoryImpl.cc
  314. * src/DHTMessageFactoryImpl.h
  315. * src/DHTMessageReceiver.cc
  316. * src/DHTMessageTracker.cc
  317. * src/DHTMessageTracker.h
  318. * src/DHTPingMessage.cc
  319. * src/DHTPingMessage.h
  320. * src/DHTPingReplyMessage.cc
  321. * src/DHTPingReplyMessage.h
  322. * src/DHTQueryMessage.cc
  323. * src/DHTQueryMessage.h
  324. * src/DHTResponseMessage.cc
  325. * src/DHTResponseMessage.h
  326. * src/DefaultBtAnnounce.cc
  327. * src/DefaultBtContext.cc
  328. * src/DefaultBtContext.h
  329. * src/HandshakeExtensionMessage.cc
  330. * src/Makefile.am
  331. * src/PeerListProcessor.h
  332. * src/UTPexExtensionMessage.cc
  333. * src/bencode.cc
  334. * src/bencode.h
  335. * test/AnnounceListTest.cc
  336. * test/BDETest.cc: Added
  337. * test/BencodeTest.cc
  338. * test/DHTAnnouncePeerMessageTest.cc
  339. * test/DHTAnnouncePeerReplyMessageTest.cc
  340. * test/DHTFindNodeMessageTest.cc
  341. * test/DHTFindNodeReplyMessageTest.cc
  342. * test/DHTGetPeersMessageTest.cc
  343. * test/DHTGetPeersReplyMessageTest.cc
  344. * test/DHTMessageFactoryImplTest.cc
  345. * test/DHTMessageTrackerTest.cc
  346. * test/DHTPingMessageTest.cc
  347. * test/DHTPingReplyMessageTest.cc
  348. * test/Makefile.am
  349. * test/MockDHTMessageFactory.h
  350. * test/PeerListProcessorTest.cc
  351. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  352. Use url-list (web-seeding) only for single-file torrent. This is
  353. basically the same behavior with Metalink file with torrent and
  354. URIs.
  355. * src/RequestGroup.cc
  356. * src/DefaultBtContext.cc
  357. * test/DefaultBtContextTest.cc
  358. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  359. Rewritten expr
  360. * src/array_fun.h
  361. * test/array_funTest.cc
  362. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  363. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  364. * src/DefaultBtMessageDispatcher.cc
  365. * src/a2algo.h
  366. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  367. Removed ExtendedMessagingAware. Instead of using inheritance,
  368. added ExtensionMessageRegistry and it is passed to
  369. DefaultExtensionMessageFactory.
  370. * src/DefaultBtInteractive.cc
  371. * src/DefaultBtInteractive.h
  372. * src/DefaultExtensionMessageFactory.cc
  373. * src/DefaultExtensionMessageFactory.h
  374. * src/ExtendedMessagingAware.h: Removed.
  375. * src/ExtensionMessageFactory.h
  376. * src/ExtensionMessageRegistry.h: Added.
  377. * src/Makefile.am
  378. * src/PeerInteractionCommand.cc
  379. * test/DefaultExtensionMessageFactoryTest.cc
  380. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  381. Fixed typo in log messages
  382. * src/MSEHandshake.cc
  383. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  384. Fixed the bug that prevents torrent download from finishing. The
  385. bug doesn't reveal for all torrents. The torrents affected this
  386. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  387. of pieces.
  388. * src/bitfield.h
  389. * test/bitfieldTest.cc
  390. 2009-04-24 Tatsuhiro Tsujikawa <[email protected]>
  391. Code cleanup
  392. * src/PeerListProcessor.h
  393. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  394. Removed RequestGroupAware
  395. * src/AbstractCommand.cc
  396. * src/AbstractCommand.h
  397. * src/ActivePeerConnectionCommand.cc
  398. * src/ActivePeerConnectionCommand.h
  399. * src/DHTGetPeersCommand.cc
  400. * src/DHTGetPeersCommand.h
  401. * src/InitiatorMSEHandshakeCommand.cc
  402. * src/InitiatorMSEHandshakeCommand.h
  403. * src/Makefile.am
  404. * src/PeerInitiateConnectionCommand.cc
  405. * src/PeerInitiateConnectionCommand.h
  406. * src/PeerInteractionCommand.cc
  407. * src/PeerInteractionCommand.h
  408. * src/RealtimeCommand.cc
  409. * src/RealtimeCommand.h
  410. * src/RequestGroupAware.cc: Removed
  411. * src/RequestGroupAware.h: Removed
  412. * src/SeedCheckCommand.cc
  413. * src/SeedCheckCommand.h
  414. * src/SleepCommand.cc
  415. * src/TrackerWatcherCommand.cc
  416. * src/TrackerWatcherCommand.h
  417. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  418. Rewritten PeerListProcessor
  419. * src/PeerListProcessor.h
  420. * src/CompactPeerListProcessor.h: Removed
  421. * src/CompactPeerListProcessor.cc: Removed
  422. * src/DelegatingPeerListProcessor.cc: Removed.
  423. * src/DefaultBtAnnounce.cc
  424. * src/Makefile.am
  425. * src/UTPexExtensionMessage.cc
  426. * src/DefaultPeerListProcessor.h: Removed.
  427. * src/DefaultPeerListProcessor.cc: Removed.
  428. * src/DelegatingPeerListProcessor.h: Removed.
  429. * test/Makefile.am
  430. * test/PeerListProcessorTest.cc
  431. * test/DefaultPeerListProcessorTest.cc: Removed.
  432. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  433. Rewritten RequestGroupMan::calculateStat()
  434. * src/RequestGroupMan.cc
  435. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  436. Removed unnecessary virtual destructor for Request class.
  437. * src/Request.cc
  438. * src/Request.h
  439. 2009-04-22 Tatsuhiro Tsujikawa <[email protected]>
  440. Avoid dynamic_pointer_cast.
  441. * src/DHTGetPeersCommand.cc
  442. * src/DHTGetPeersCommand.h
  443. 2009-04-21 Tatsuhiro Tsujikawa <[email protected]>
  444. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  445. BtEvent.
  446. * src/AbstractBtEventListener.h: Removed.
  447. * src/AbstractBtMessage.cc
  448. * src/AbstractBtMessage.h
  449. * src/BtAbortOutstandingRequestEvent.h
  450. * src/BtCancelSendingPieceEvent.h
  451. * src/BtChokedEvent.h: Removed.
  452. * src/BtChokingEvent.h
  453. * src/BtEvent.h: Removed
  454. * src/BtEventListener.h: Removed.
  455. * src/BtMessage.h
  456. * src/BtPieceMessage.cc
  457. * src/BtPieceMessage.h
  458. * src/BtRequestMessage.cc
  459. * src/BtRequestMessage.h
  460. * src/DefaultBtMessageDispatcher.cc
  461. * src/Makefile.am
  462. * src/a2functional.h
  463. * test/BtPieceMessageTest.cc
  464. * test/BtRequestMessageTest.cc
  465. * test/DefaultBtMessageDispatcherTest.cc
  466. * test/MockBtMessage.h
  467. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  468. Code cleanup
  469. * src/RequestGroupMan.cc
  470. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  471. Code cleanup
  472. * src/DownloadCommand.cc
  473. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  474. Fixed segmentation fault when GZipDecoder::decode() returns 0
  475. byte.
  476. * src/DownloadCommand.cc
  477. * src/bitfield.h
  478. * test/bitfieldTest.cc
  479. Fixed the bug that causes infinite loop if broken web server
  480. returns chunked response without last "0" chunk-size marker and
  481. closes connection.
  482. * src/DownloadCommand.cc
  483. Instantiate properly configured HttpDownloadCommand for
  484. non-resumable downlaods.
  485. * src/HttpResponseCommand.cc
  486. 2009-04-16 Tatsuhiro Tsujikawa <[email protected]>
  487. Rewritten array operation functions.
  488. * src/BitfieldMan.cc
  489. * src/array_fun.h
  490. * test/array_funTest.cc
  491. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  492. Removed unused variable 'query'
  493. * src/Request.cc
  494. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  495. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  496. accidentally set to false in r1162.
  497. * configure.ac
  498. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  499. Code cleanup
  500. * src/BNode.cc
  501. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  502. Increase prefixLength for the bucket which doesn't own local node
  503. ID when splitting bucket.
  504. * src/DHTBucket.cc
  505. * test/DHTBucketTest.cc
  506. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  507. * Release 1.3.1
  508. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  509. Bump up version number to 1.3.1
  510. * configure.ac
  511. 2009-04-08 Tatsuhiro Tsujikawa <[email protected]>
  512. Removed unused variable checkPoint. Also removed include directive
  513. for TimeA2.h.
  514. * src/SeedCheckCommand.h
  515. 2009-04-07 Tatsuhiro Tsujikawa <[email protected]>
  516. Fixed the bug that upload limit exceeds the value specified in
  517. --seed-ratio option depending on the timing of the execution of
  518. SeedCheckCommand.
  519. * src/SeedCheckCommand.cc
  520. 2009-04-05 Tatsuhiro Tsujikawa <[email protected]>
  521. Fixed the bug that removed peer's session upload/download length
  522. are counted twice in _cachedTransferStat before it is
  523. re-calculated. This affected the calculation of shara ratio,
  524. resulting aria2 wrongly determines that specified share ratio is
  525. reached. Also fixed the typo in calculateStatFor function name.
  526. * src/BtSetup.cc
  527. * src/DefaultPeerStorage.cc
  528. * src/ShareRatioSeedCriteria.h
  529. * test/ShareRatioSeedCriteriaTest.cc
  530. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  531. * Release 1.3.0
  532. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  533. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  534. Nynorsk translations. Thanks to all translators.
  535. * po/es.po
  536. * po/ja.po
  537. * po/nn.po
  538. * po/ru.po
  539. * po/uk.po
  540. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  541. Rewritten isInRange()
  542. * src/DHTBucket.cc
  543. * test/DHTBucketTest.cc
  544. 2009-03-30 Tatsuhiro Tsujikawa <[email protected]>
  545. Fixed typo
  546. * doc/aria2c.1.txt
  547. 2009-03-29 Tatsuhiro Tsujikawa <[email protected]>
  548. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  549. malloc/realloc is not used.
  550. * src/configure.ac
  551. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  552. BitfieldMan::getMissingIndexes family functions now takes unsigned
  553. char* bitfield instead of stl container for efficiency.
  554. PieceSelector::select now takes this
  555. bitfield. RarestPieceSelector::select now also performs
  556. efficiently for this change. bitfield namespace is introduced and
  557. it has several helper functions to handle basic bitfield
  558. operations such as test, count set bits, etc.
  559. * src/BitfieldMan.cc
  560. * src/BitfieldMan.h
  561. * src/DefaultBtRequestFactory.cc
  562. * src/DefaultPieceStorage.cc
  563. * src/DefaultPieceStorage.h
  564. * src/LongestSequencePieceSelector.cc
  565. * src/LongestSequencePieceSelector.h
  566. * src/Makefile.am
  567. * src/Piece.cc
  568. * src/Piece.h
  569. * src/PieceSelector.h
  570. * src/RarestPieceSelector.cc
  571. * src/RarestPieceSelector.h
  572. * src/Util.cc
  573. * src/Util.h
  574. * src/bitfield.h
  575. * test/BitfieldManTest.cc
  576. * test/LongestSequencePieceSelectorTest.cc
  577. * test/Makefile.am
  578. * test/RarestPieceSelectorTest.cc
  579. * test/UtilTest.cc
  580. * test/bitfieldTest.cc
  581. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  582. Made accepted socket non-block.
  583. * src/FtpNegotiationCommand.cc
  584. * src/HttpListenCommand.cc
  585. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  586. Guarded #ifdef HAVE_POSIX_FALLOCATE
  587. * src/AbstractSingleDiskAdaptor.cc
  588. * src/DefaultPieceStorage.cc
  589. * src/DiskAdaptor.h
  590. * src/DiskAdaptor.h
  591. * src/MultiFileAllocationIterator.cc
  592. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  593. Run
  594. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  595. in every 1 sec. The timeout of RequestSlot is 60s by default and
  596. it doesn't need to be called every time when
  597. DefaultBtInteractive::doInteractionProcessing() is called.
  598. * src/DefaultBtInteractive.cc
  599. * src/DefaultBtInteractive.h
  600. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  601. Documented 'falloc' in man page.
  602. * doc/aria2c.1.txt
  603. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  604. Updated doc
  605. * src/usage_text.h
  606. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  607. Added 'falloc' parameter for --file-allocation option. 'falloc'
  608. allocation mode uses posix_fallocate() system call to allocate
  609. file on disk. If you are using newer file systems such as ext4
  610. (with extents support), btrfs or xfs, 'falloc' is your best
  611. choice. It allocates large(few GiB) files almost instantly. Don't
  612. use 'falloc' with legacy file systems such as ext3 because it
  613. takes almost same time as 'prealloc' and it blocks aria2 entirely
  614. until allocation finishes. 'falloc' may not be available if your
  615. system doesn't have posix_fallocate() system call.
  616. * configure.ac
  617. * src/AbstractDiskWriter.cc
  618. * src/AbstractDiskWriter.h
  619. * src/AbstractSingleDiskAdaptor.cc
  620. * src/BinaryStream.h
  621. * src/BtCheckIntegrityEntry.cc
  622. * src/ByteArrayDiskWriter.h
  623. * src/CheckIntegrityEntry.cc
  624. * src/CheckIntegrityEntry.h
  625. * src/DefaultPieceStorage.cc
  626. * src/DiskAdaptor.cc
  627. * src/DiskAdaptor.h
  628. * src/DiskWriter.h
  629. * src/FallocFileAllocationIterator.cc
  630. * src/FallocFileAllocationIterator.h
  631. * src/FileAllocationEntry.cc
  632. * src/FileAllocationEntry.h
  633. * src/Makefile.am
  634. * src/MultiFileAllocationIterator.cc
  635. * src/MultiFileAllocationIterator.h
  636. * src/OptionHandlerFactory.cc
  637. * src/RequestGroup.cc
  638. * src/StreamCheckIntegrityEntry.cc
  639. * src/prefs.cc
  640. * src/prefs.h
  641. * src/usage_text.h
  642. * test/FallocFileAllocationIteratorTest.cc
  643. * test/Makefile.am
  644. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  645. Removed duplicate enableDirectIO() call.
  646. * src/MultiFileAllocationIterator.cc
  647. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  648. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  649. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  650. cost of std::rotate().
  651. * src/RarestPieceSelector.cc
  652. * src/RarestPieceSelector.h
  653. * test/RarestPieceSelectorTest.cc
  654. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  655. Updated usage doc for --bt-tracker-interval option.
  656. * src/usage_text.h
  657. * doc/aria2c.1.txt
  658. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  659. Documented --bt-tracker-interval option in man page.
  660. * doc/aria2c.1.txt
  661. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  662. Added an option to specify the interval between tracker requests.
  663. If non-zero value is specified, aria2 uses it and ignores the
  664. interval value in the response of tracker. If zero is specified,
  665. aria2 determines the inteval value based on the tarcker response
  666. and download progress.
  667. * src/DefaultBtAnnounce.cc
  668. * src/DefaultBtAnnounce.h
  669. * src/OptionHandlerFactory.cc
  670. * src/RequestGroup.cc
  671. * src/prefs.cc
  672. * src/prefs.h
  673. * src/usage_text.h
  674. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  675. Added operator+=, operator-=, operator-
  676. * src/TransferStat.cc
  677. * src/TransferStat.h
  678. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  679. Refactored RarestPieceSelector to reduce CPU load, especially for
  680. addPieceStats.
  681. * src/RarestPieceSelector.cc
  682. * src/RarestPieceSelector.h
  683. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  684. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  685. getAllMissingBlockIndexes to reduce a call to
  686. array_function_base::operator[].
  687. * src/BitfieldMan.cc
  688. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  689. Cached TransferStat/download speed to avoid to sum them up in each
  690. call.
  691. * src/DefaultPeerStorage.cc
  692. * src/DefaultPeerStorage.h
  693. * src/SegmentMan.cc
  694. * src/SegmentMan.h
  695. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  696. Typedefed cuid_t as int32_t in Command.h
  697. * src/CUIDCounter.h
  698. * src/Command.cc
  699. * src/Command.h
  700. * src/DownloadEngine.cc
  701. * src/DownloadEngine.h
  702. * src/PeerStat.h
  703. * src/SegmentMan.cc
  704. * src/SegmentMan.h
  705. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  706. Reduced the number of calls to PeerStorage::calculateStat() and
  707. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  708. transfer rate.
  709. * src/DefaultBtInteractive.cc
  710. * src/DefaultBtMessageDispatcher.cc
  711. * src/DefaultPeerStorage.cc
  712. * src/DefaultPeerStorage.h
  713. * src/DownloadCommand.cc
  714. * src/DownloadEngine.cc
  715. * src/PeerStorage.h
  716. * src/SegmentMan.cc
  717. * src/SegmentMan.h
  718. * test/MockPeerStorage.h
  719. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  720. Prepended _dir+"/" after joining path elements in torrent file.
  721. * src/DefaultBtContext.cc
  722. * test/DefaultBtContextTest.cc
  723. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  724. Added missing IndexBtMessageValidator.h
  725. * src/Makefile.am
  726. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  727. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  728. Chinese translations. Thank you for contributing our project.
  729. * po/id.po
  730. * po/it.po
  731. * po/ru.po
  732. * po/uk.po
  733. * po/zh_CN.po
  734. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  735. Updated README
  736. * README
  737. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  738. Bump up version number to 1.3.0
  739. * configure.ac
  740. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  741. Updated doc
  742. * src/DefaultBtContext.h
  743. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  744. Slice/joinPath for name of single torrent.
  745. * src/DefaultBtContext.cc
  746. * test/DefaultBtContextTest.cc
  747. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  748. Updated man page: Documented --dry-run and --index-out
  749. options. Changed the default value of --uri-selector and
  750. --http-auth-challenge options. Removed --direct-file-mapping
  751. option. Added example for --index-out
  752. * doc/aria2c.1.txt
  753. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  754. Updated TEXT_DRY_RUN
  755. * src/usage_text.h
  756. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  757. Changed the default value of --uri-selector option from 'inorder'
  758. to 'feedback'
  759. * src/OptionHandlerFactory.cc
  760. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  761. Included current URI in exception message.
  762. * src/AbstractCommand.cc
  763. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  764. Renamed ServerStatURISelector as FeedbackURISelector.
  765. * src/FeedbackURISelector.cc
  766. * src/FeedbackURISelector.h
  767. * src/Makefile.am
  768. * src/RequestGroupMan.cc
  769. * src/ServerStatURISelector.cc
  770. * src/ServerStatURISelector.h
  771. * test/FeedbackURISelectorTest.cc
  772. * test/Makefile.am
  773. * test/ServerStatURISelectorTest.cc
  774. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  775. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  776. all URIs are tested and their timeout is not reached.
  777. * src/AdaptiveURISelector.cc
  778. * src/AdaptiveURISelector.h
  779. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  780. Changed the default value of --http-auth-challenge option to false.
  781. * src/OptionHandlerFactory.cc
  782. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  783. Reuse URIs when all unused URIs run out.
  784. * src/OptionHandlerFactory.cc
  785. * src/RequestGroup.cc
  786. * src/prefs.cc
  787. * src/prefs.h
  788. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  789. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  790. and BtRejectMessage are derived from RangeBtMessage class.
  791. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  792. derived from IndexBtMessage class. BtChokeMessage,
  793. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  794. BtNotInterestedMessage and BtUnchokeMessage are derived from
  795. ZeroBtMessage class.
  796. * src/AbstractBtMessage.cc
  797. * src/AbstractBtMessage.h
  798. * src/BtAllowedFastMessage.cc
  799. * src/BtAllowedFastMessage.h
  800. * src/BtAllowedFastMessageValidator.h: Removed
  801. * src/BtBitfieldMessage.cc
  802. * src/BtBitfieldMessage.h
  803. * src/BtCancelMessage.cc
  804. * src/BtCancelMessage.h
  805. * src/BtCancelMessageValidator.h: Removed
  806. * src/BtChokeMessage.cc
  807. * src/BtChokeMessage.h
  808. * src/BtExtendedMessage.cc
  809. * src/BtExtendedMessage.h
  810. * src/BtHandshakeMessage.cc
  811. * src/BtHandshakeMessage.h
  812. * src/BtHaveAllMessage.cc
  813. * src/BtHaveAllMessage.h
  814. * src/BtHaveMessage.cc
  815. * src/BtHaveMessage.h
  816. * src/BtHaveMessageValidator.h: Removed
  817. * src/BtHaveNoneMessage.cc
  818. * src/BtHaveNoneMessage.h
  819. * src/BtInterestedMessage.cc
  820. * src/BtInterestedMessage.h
  821. * src/BtKeepAliveMessage.cc
  822. * src/BtKeepAliveMessage.h
  823. * src/BtNotInterestedMessage.cc
  824. * src/BtNotInterestedMessage.h
  825. * src/BtPieceMessage.cc
  826. * src/BtPieceMessage.h
  827. * src/BtPortMessage.cc
  828. * src/BtPortMessage.h
  829. * src/BtRejectMessage.cc
  830. * src/BtRejectMessage.h
  831. * src/BtRejectMessageValidator.h: Removed
  832. * src/BtRequestMessage.cc
  833. * src/BtRequestMessage.h
  834. * src/BtRequestMessageValidator.h: Removed
  835. * src/BtSuggestPieceMessage.cc
  836. * src/BtSuggestPieceMessage.h
  837. * src/BtSuggestPieceMessageValidator.h: Removed
  838. * src/BtUnchokeMessage.cc
  839. * src/BtUnchokeMessage.h
  840. * src/DefaultBtMessageFactory.cc
  841. * src/IndexBtMessage.cc
  842. * src/IndexBtMessage.h
  843. * src/IndexBtMessageValidator.h
  844. * src/Makefile.am
  845. * src/PeerMessageUtil.cc
  846. * src/PeerMessageUtil.h
  847. * src/RangeBtMessage.cc
  848. * src/RangeBtMessage.h
  849. * src/RangeBtMessageValidator.h
  850. * src/SimpleBtMessage.cc
  851. * src/SimpleBtMessage.h
  852. * src/ZeroBtMessage.cc
  853. * src/ZeroBtMessage.h
  854. * test/BtRequestMessageTest.cc
  855. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  856. Reverted usage_text.h to r1093 to avoid to lose translated
  857. messages.
  858. * src/usage_text.h
  859. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  860. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  861. declared as non-const previously is now const and defined in class
  862. definition.
  863. * src/AbstractBtMessage.cc
  864. * src/AbstractBtMessage.h
  865. * src/BtAllowedFastMessage.cc
  866. * src/BtAllowedFastMessage.h
  867. * src/BtBitfieldMessage.h
  868. * src/BtCancelMessage.cc
  869. * src/BtCancelMessage.h
  870. * src/BtChokeMessage.cc
  871. * src/BtChokeMessage.h
  872. * src/BtExtendedMessage.cc
  873. * src/BtExtendedMessage.h
  874. * src/BtHandshakeMessage.cc
  875. * src/BtHandshakeMessage.h
  876. * src/BtHaveAllMessage.cc
  877. * src/BtHaveAllMessage.h
  878. * src/BtHaveMessage.cc
  879. * src/BtHaveMessage.h
  880. * src/BtHaveNoneMessage.cc
  881. * src/BtHaveNoneMessage.h
  882. * src/BtInterestedMessage.cc
  883. * src/BtInterestedMessage.h
  884. * src/BtKeepAliveMessage.cc
  885. * src/BtKeepAliveMessage.h
  886. * src/BtMessage.h
  887. * src/BtNotInterestedMessage.cc
  888. * src/BtNotInterestedMessage.h
  889. * src/BtPieceMessage.h
  890. * src/BtPortMessage.cc
  891. * src/BtPortMessage.h
  892. * src/BtRejectMessage.cc
  893. * src/BtRejectMessage.h
  894. * src/BtRequestMessage.cc
  895. * src/BtRequestMessage.h
  896. * src/BtSuggestPieceMessage.cc
  897. * src/BtSuggestPieceMessage.h
  898. * src/BtUnchokeMessage.cc
  899. * src/BtUnchokeMessage.h
  900. * src/SimpleBtMessage.cc
  901. * src/SimpleBtMessage.h
  902. * test/MockBtMessage.h
  903. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  904. Use FileEntry::exists()
  905. * src/MultiDiskAdaptor.cc
  906. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  907. Added exists()
  908. * src/FileEntry.cc
  909. * src/FileEntry.h
  910. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  911. Added missing prefix dir.
  912. * src/download_helper.cc
  913. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  914. Removed --direct-file-mapping option and CopyDiskAdaptor.
  915. * src/CopyDiskAdaptor.cc: Removed
  916. * src/CopyDiskAdaptor.h: Removed
  917. * src/DefaultPieceStorage.cc
  918. * src/Makefile.am
  919. * src/OptionHandlerFactory.cc
  920. * src/prefs.cc
  921. * src/prefs.h
  922. * src/usage_text.h
  923. * test/CopyDiskAdaptorTest.cc: Removed
  924. * test/Makefile.am
  925. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  926. Rewritten isSameFileBeingDownloaded()
  927. * src/RequestGroupMan.cc
  928. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  929. Removed getName() from DownloadContext. getName() is declared in
  930. BtContext.
  931. * src/BtContext.h
  932. * src/DownloadContext.h
  933. * src/SingleFileDownloadContext.cc
  934. * src/SingleFileDownloadContext.h
  935. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  936. in AbstractSingleDiskAdaptor.
  937. * src/AbstractSingleDiskAdaptor.h
  938. * src/DiskAdaptor.h
  939. * src/MultiDiskAdaptor.h
  940. * src/RequestGroup.cc
  941. Removed setTopDir() and getTopDir() and getTopDirPath() from
  942. MultiDiskAdaptor.
  943. * src/DefaultPieceStorage.cc
  944. * src/MultiDiskAdaptor.cc
  945. * src/MultiDiskAdaptor.h
  946. * test/MultiDiskAdaptorTest.cc
  947. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  948. FileEntry::getPath() contains store(top level) directory to
  949. simplify path handling operation. In the previous implementation,
  950. store directory is concatenated to FileEntry::getPath() in
  951. DownloadContext.
  952. * src/BtDependency.cc
  953. * src/BtPostDownloadHandler.cc
  954. * src/CopyDiskAdaptor.cc
  955. * src/DefaultBtContext.cc
  956. * src/DirectDiskAdaptor.cc
  957. * src/FileEntry.cc
  958. * src/FileEntry.h
  959. * src/FtpNegotiationCommand.cc
  960. * src/HttpResponse.cc
  961. * src/HttpResponseCommand.cc
  962. * src/Metalink2RequestGroup.cc
  963. * src/MultiDiskAdaptor.cc
  964. * src/MultiDiskAdaptor.h
  965. * src/MultiFileAllocationIterator.cc
  966. * src/RequestGroup.cc
  967. * src/SingleFileDownloadContext.cc
  968. * src/SingleFileDownloadContext.h
  969. * src/download_helper.cc
  970. * test/BtDependencyTest.cc
  971. * test/CopyDiskAdaptorTest.cc
  972. * test/DefaultBtContextTest.cc
  973. * test/DefaultBtProgressInfoFileTest.cc
  974. * test/DirectDiskAdaptorTest.cc
  975. * test/DownloadHelperTest.cc
  976. * test/FileEntryTest.cc
  977. * test/MultiDiskAdaptorTest.cc
  978. * test/MultiFileAllocationIteratorTest.cc
  979. * test/RequestGroupTest.cc
  980. * test/SingleFileDownloadContextTest.cc
  981. 2009-03-09 Tatsuhiro Tsujikawa <[email protected]>
  982. Fixed compiler warning
  983. * src/download_helper.cc
  984. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  985. Throw exception if same infohash torrent is now downloading.
  986. * src/RequestGroup.cc
  987. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  988. Added --dry-run option. In this mode, aria2 just checks whether
  989. the remote file is available and doesn't download data. This
  990. option has effect on HTTP/FTP downloads and BitTorrent downloads
  991. are canceled in this mode.
  992. * src/FtpNegotiationCommand.cc
  993. * src/HttpResponseCommand.cc
  994. * src/HttpResponseCommand.h
  995. * src/OptionHandlerFactory.cc
  996. * src/RequestGroup.cc
  997. * src/RequestGroupMan.cc
  998. * src/prefs.cc
  999. * src/prefs.h
  1000. * src/usage_text.h
  1001. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1002. Fixed compiler waring
  1003. * test/UriListParserTest.cc
  1004. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1005. Parse options in -i list using OptionParser.
  1006. * src/UriListParser.cc
  1007. * src/UriListParser.h
  1008. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1009. Don't reset URI in retry to avoid additional round trips because
  1010. of redirects.
  1011. * src/AbstractCommand.cc
  1012. * src/OptionHandlerFactory.cc
  1013. * src/prefs.cc
  1014. * src/prefs.h
  1015. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1016. Declared hide() in OptionHandler.
  1017. * src/NameMatchOptionHandler.h
  1018. * src/OptionHandler.h
  1019. * src/OptionHandlerImpl.h
  1020. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1021. Updated doc
  1022. * src/Peer.h
  1023. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1024. Added log message in setStatusInternal()
  1025. * src/ServerStat.cc
  1026. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1027. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1028. effectively exclude failed server.
  1029. * src/AbstractCommand.cc
  1030. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1031. Added --index-out option to specify each file path for torrent.
  1032. Here index shown in --show-files option is used to specify which
  1033. file path should be altered. For example, to change the file path
  1034. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1035. option multiple times: --index-out=1=aria2.tar.bz2
  1036. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1037. available. This option can be specified in -i list.
  1038. * src/DefaultBtContext.cc
  1039. * src/DefaultBtContext.h
  1040. * src/MultiDiskAdaptor.cc
  1041. * src/MultiDiskAdaptor.h
  1042. * src/MultiFileAllocationIterator.cc
  1043. * src/OptionHandlerFactory.cc
  1044. * src/OptionHandlerImpl.h
  1045. * src/Util.cc
  1046. * src/Util.h
  1047. * src/download_helper.cc
  1048. * src/prefs.cc
  1049. * src/prefs.h
  1050. * src/usage_text.h
  1051. * test/DefaultBtContextTest.cc
  1052. * test/MultiDiskAdaptorTest.cc
  1053. * test/MultiFileAllocationIteratorTest.cc
  1054. * test/UtilTest.cc
  1055. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1056. Use Util::pathJoin()
  1057. * src/MetalinkParserController.cc
  1058. * test/test.xml
  1059. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1060. Use Util::pathJoin()
  1061. * src/DefaultBtContext.cc
  1062. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1063. Added Util::pathJoin()
  1064. * src/Util.h
  1065. * test/UtilTest.cc
  1066. 2009-03-04 Tatsuhiro Tsujikawa <[email protected]>
  1067. Applied basename function to remove directory element in
  1068. content-disposition value.
  1069. Return empty string if content-disposition value is ".." or ".".
  1070. * src/Util.cc
  1071. * test/UtilTest.cc
  1072. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1073. Added --max-overall-download-limit in man page.
  1074. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1075. * doc/aria2c.1.txt
  1076. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1077. Added --max-overall-download-limit option. Now --max-upload-limit
  1078. option is not ignored when --max-overall-upload-limit option has
  1079. non-zero value. aria2 checks download(upload) speed in the order:
  1080. first checks overall speed limit and if it is not exceeded, then
  1081. checks speed limit per download. Thus you can specify both
  1082. value. For example, set --max-overall-download-limit=1M and
  1083. --max-download-limit=500K to prevent from one download from eating
  1084. all overall speed limit.
  1085. * src/DefaultBtInteractive.cc
  1086. * src/DefaultBtInteractive.h
  1087. * src/DefaultBtMessageDispatcher.cc
  1088. * src/DefaultBtMessageDispatcher.h
  1089. * src/DownloadCommand.cc
  1090. * src/DownloadCommand.h
  1091. * src/FtpNegotiationCommand.cc
  1092. * src/HttpResponseCommand.cc
  1093. * src/OptionHandlerFactory.cc
  1094. * src/PeerInteractionCommand.cc
  1095. * src/RequestGroup.cc
  1096. * src/RequestGroup.h
  1097. * src/RequestGroupMan.cc
  1098. * src/RequestGroupMan.h
  1099. * src/prefs.cc
  1100. * src/prefs.h
  1101. * src/usage_text.h
  1102. * test/DefaultBtMessageDispatcherTest.cc
  1103. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1104. Documented select-file option in Input File section.
  1105. Documented --http-auth-challenge option.
  1106. * doc/aria2c.1.txt
  1107. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1108. Now select-file can be specified in the uri list(-i list).
  1109. * src/BtContext.cc
  1110. * src/BtContext.h
  1111. * src/RequestGroup.cc
  1112. * src/Sequence.h
  1113. * src/download_helper.cc
  1114. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1115. Made the upper value of --max-concurrent-downloads options unlimited.
  1116. * src/OptionHandlerFactory.cc
  1117. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1118. Fixed the bug that disk writer is not created even if it shares
  1119. same piece with the preceding file if the length of previous file
  1120. is 0.
  1121. * src/MultiDiskAdaptor.cc
  1122. * test/MultiDiskAdaptorTest.cc
  1123. 2009-02-23 Tatsuhiro Tsujikawa <[email protected]>
  1124. In BitTorrent, Open files in read-only mode for hash check. After
  1125. that, re-open file in read/write mode only when the download is
  1126. not finished.
  1127. * src/AbstractDiskWriter.cc
  1128. * src/AbstractDiskWriter.h
  1129. * src/AbstractSingleDiskAdaptor.cc
  1130. * src/AbstractSingleDiskAdaptor.h
  1131. * src/BtCheckIntegrityEntry.cc
  1132. * src/DiskAdaptor.h
  1133. * src/DiskWriter.h
  1134. * src/MultiDiskAdaptor.cc
  1135. * src/MultiDiskAdaptor.h
  1136. * src/RequestGroup.cc
  1137. 2009-02-19 Tatsuhiro Tsujikawa <[email protected]>
  1138. Added --http-auth-challenge option. If it is set to true(by
  1139. default), aria2 sends HTTP authorization header only when it is
  1140. requested by the server. If false is set, then authorization
  1141. header is always sent to the server. This is useful for servers
  1142. that don't respond 401 code when authentication is required.
  1143. There is an exception: if username and password are embedded in
  1144. URI, authorization header is always sent to the server regardless
  1145. of this option.
  1146. * src/AuthConfigFactory.cc
  1147. * src/HttpSkipResponseCommand.cc
  1148. * src/OptionHandlerFactory.cc
  1149. * src/prefs.cc
  1150. * src/prefs.h
  1151. * src/usage_text.h
  1152. * test/AuthConfigFactoryTest.cc
  1153. * test/HttpRequestTest.cc
  1154. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1155. * Release 1.2.0
  1156. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1157. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1158. Thanks to all translators.
  1159. * po/es.po
  1160. * po/ja.po
  1161. * po/ru.po
  1162. * po/uk.po
  1163. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1164. Call deleteSocketForReadCheck() before socket is closed.
  1165. * src/HttpListenCommand.cc
  1166. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1167. Defined virtual destructor for BObject.
  1168. * src/bencode.h
  1169. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1170. Rewritten BDE to make it efficient.
  1171. * src/bencode.cc
  1172. * src/bencode.h
  1173. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1174. Removed function throw list.
  1175. * src/bencode.cc
  1176. * src/bencode.h
  1177. * test/BencodeTest.cc
  1178. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1179. Enclosed all URLs in double quotes in command-line examples.
  1180. * doc/aria2c.1.txt
  1181. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1182. Updated reference/see also section.
  1183. * README
  1184. * doc/aria2c.1.txt
  1185. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  1186. Reorganized man page based on man man-pages.
  1187. * doc/aria2c.1.txt
  1188. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  1189. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1190. because same documents are available in man page. Added
  1191. References section.
  1192. * README
  1193. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  1194. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1195. PERFORMANCE PROFILE section.
  1196. * doc/aria2c.1.txt
  1197. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  1198. Rewritten the section for configuration file.
  1199. * README
  1200. * doc/aria2c.1.txt
  1201. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  1202. Fixed the segmentation fault during execution of choking algorithm
  1203. in leecher state because of broken compare operator
  1204. implementation.
  1205. * src/BtLeecherStateChoke.cc
  1206. * src/BtLeecherStateChoke.h
  1207. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  1208. Open file in binary mode.
  1209. * src/CookieStorage.cc
  1210. * src/DHTSetup.cc
  1211. * src/DHTUtil.cc
  1212. * src/Netrc.cc
  1213. * src/NsCookieParser.cc
  1214. * src/ProtocolDetector.cc
  1215. * src/RequestGroupMan.cc
  1216. * src/Signature.cc
  1217. * src/bencode.cc
  1218. * src/download_helper.cc
  1219. * src/option_processing.cc
  1220. * test/CookieParserTest.cc
  1221. * test/DefaultBtProgressInfoFileTest.cc
  1222. * test/FileTest.cc
  1223. * test/GZipDecoderTest.cc
  1224. * test/RequestGroupManTest.cc
  1225. * test/SignatureTest.cc
  1226. * test/SingleFileAllocationIteratorTest.cc
  1227. * test/UriListParserTest.cc
  1228. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  1229. Removed operator[] because it is ambiguous with built-in []
  1230. operator.
  1231. * src/array_fun.h
  1232. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  1233. Fixed compile error
  1234. * src/OptionParser.cc
  1235. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  1236. Added missing call to arrayWrapperConst
  1237. * test/array_funTest.cc
  1238. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1239. Use array_wrapper instead of array_ptr.
  1240. * src/DHTRoutingTableDeserializer.cc
  1241. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1242. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1243. * src/array_fun.h
  1244. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1245. Added array_wrapper template.
  1246. * src/array_fun.h
  1247. * test/array_funTest.cc
  1248. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1249. Use operator T* of array_ptr.
  1250. * src/OptionParser.cc
  1251. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1252. Use localhost instead of 127.0.0.1
  1253. * test/FtpConnectionTest.cc
  1254. * test/MSEHandshakeTest.cc
  1255. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1256. Added operator T*
  1257. * src/array_fun.h
  1258. * test/array_funTest.cc
  1259. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1260. Use dynamically allocated char array to detect memory access
  1261. violation.
  1262. * src/DHTRoutingTableDeserializer.cc
  1263. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1264. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1265. defined.
  1266. * src/PeerMessageUtil.cc
  1267. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1268. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1269. * configure.ac
  1270. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1271. Added a check to see struct sockaddr_in has sin_len member.
  1272. * configure.ac
  1273. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1274. Fixed buffer overrun.
  1275. * src/DHTRoutingTableDeserializer.cc
  1276. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1277. Added LL for long long int constant.
  1278. * test/FtpConnectionTest.cc
  1279. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1280. Casted to unsigned int to suppress compiler warning on netbsd.
  1281. * src/BtRuntime.h
  1282. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1283. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1284. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1285. type time_t.
  1286. * src/SimpleLogger.cc
  1287. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1288. Added test for FtpConnection::receiveSizeResponse().
  1289. * test/FtpConnectionTest.cc
  1290. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1291. Fix epoll error on the old kernel 2.6.8 or ealier.
  1292. * src/EpollEventPoll.cc
  1293. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1294. Use Util::parseLLInt instead of sscanf for portability. The
  1295. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1296. * src/FtpConnection.cc
  1297. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1298. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1299. block. It should not filter anything.
  1300. * src/BitfieldMan.cc
  1301. * src/ConsoleStatCalc.cc
  1302. * test/BitfieldManTest.cc
  1303. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1304. Fixed the bug that the boolean options that don't take arguments
  1305. don't work.
  1306. * src/OptionHandlerImpl.h
  1307. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1308. Fixed broken selected file BitTorrent download.
  1309. * src/MultiDiskAdaptor.cc
  1310. * test/MultiDiskAdaptorTest.cc
  1311. * test/MultiFileAllocationIteratorTest.cc
  1312. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1313. Fixed #define guard for EpollEventPoll
  1314. * src/EpollEventPoll.h
  1315. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1316. Wait 2 seconds. 1 second is sometimes not enough.
  1317. * test/TimeSeedCriteriaTest.cc
  1318. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1319. Use localhost instead of 127.0.0.1.
  1320. * test/DHTConnectionImplTest.cc
  1321. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1322. Suppressed compiler warning.
  1323. * src/AdaptiveURISelector.cc
  1324. * src/DefaultPieceStorage.cc
  1325. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1326. Defined virtual destructor.
  1327. * src/MetalinkParserState.h
  1328. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1329. Give NULL for second argument of getaddrinfo instead of "0".
  1330. * src/NameResolver.cc
  1331. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1332. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1333. included strptime doesn't parse data for this format.
  1334. * src/FtpConnection.cc
  1335. * test/FtpConnectionTest.cc
  1336. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1337. Removed tests giving -1 for unsigned argument.
  1338. * test/SingleFileDownloadContextTest.cc
  1339. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1340. Don't use sha256 in tests because it might not be supported by the
  1341. SSL library.
  1342. * test/MetalinkProcessorTest.cc
  1343. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1344. Removed tests giving -1 for unsigned argument.
  1345. * test/AlphaNumberDecoratorTest
  1346. * test/BitfieldManTest.cc
  1347. * test/DefaultBtContextTest.cc
  1348. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1349. Fixed compile error without libcares when epoll is available.
  1350. * src/EpollEventPoll.cc
  1351. 2009-02-09 Tatsuhiro Tsujikawa <[email protected]>
  1352. Included fstream instead of iostream.
  1353. * test/SignatureTest.cc
  1354. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  1355. Removed #include <algorithm>
  1356. * test/RequestGroupTest.cc
  1357. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  1358. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1359. using RequestGroup::extractURIResult().
  1360. * src/AdaptiveURISelector.cc
  1361. * src/RequestGroup.cc
  1362. * src/RequestGroup.h
  1363. * test/RequestGroupTest.cc
  1364. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  1365. Added tests for array_ptr.
  1366. * test/array_funTest.cc
  1367. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  1368. Don't send ip parameter to a tracker if ip parameter is empty
  1369. string.
  1370. * src/DefaultBtAnnounce.cc
  1371. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1372. Adjusted line feed.
  1373. * src/version_usage.cc
  1374. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1375. Print tags, possible values when OptionHandlerException is caught.
  1376. * src/option_processing.cc
  1377. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1378. Changed the message for FatalException.
  1379. * src/OptionParser.cc
  1380. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1381. Documented --bt-external-ip option in man page. Updated man pages
  1382. for --proxy-method option.
  1383. * doc/aria2c.1.txt
  1384. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1385. Use GET method for FTP via HTTP proxy.
  1386. * src/FtpInitiateConnectionCommand.cc
  1387. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1388. Changed the default value of --proxy-method option from 'tunnel'
  1389. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1390. option.
  1391. * src/AbstractCommand.cc
  1392. * src/AbstractCommand.h
  1393. * src/FtpInitiateConnectionCommand.cc
  1394. * src/HttpDownloadCommand.cc
  1395. * src/HttpInitiateConnectionCommand.cc
  1396. * src/HttpInitiateConnectionCommand.h
  1397. * src/OptionHandlerFactory.cc
  1398. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1399. Initialized _logger
  1400. * src/SelectEventPoll.cc
  1401. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1402. Defined a copy constructor for the same type.
  1403. * src/SharedHandle.h
  1404. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1405. Added OptionParser::parseArg() which internally uses getopt_long
  1406. to parse command-line options. All command-line options are now
  1407. configured by OptionHandler. No manual editing of struct option*
  1408. is required any more.
  1409. * src/NameMatchOptionHandler.h
  1410. * src/OptionHandler.h
  1411. * src/OptionHandlerFactory.cc
  1412. * src/OptionHandlerImpl.h
  1413. * src/OptionParser.cc
  1414. * src/OptionParser.h
  1415. * src/array_fun.h
  1416. * src/main.cc
  1417. * src/option_processing.cc
  1418. * test/OptionHandlerTest.cc
  1419. * test/OptionParserTest.cc
  1420. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1421. Fixed configure error with --disable-epoll
  1422. * configure.ac
  1423. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1424. Fixed compile error when HAVE_EPOLL is not defined.
  1425. Fixed linker error on bigendian systems.
  1426. * src/SocketCore.cc
  1427. * src/SocketCore.h
  1428. * test/DefaultBtProgressInfoFileTest.cc
  1429. 2009-02-04 Tatsuhiro Tsujikawa <[email protected]>
  1430. Added --bt-external-ip option. You can specify the external IP
  1431. address to report to a BitTorrent tracker. Although this function
  1432. is named 'external', it can accept any kind of IP addresses.
  1433. * src/DefaultBtAnnounce.cc
  1434. * src/OptionHandlerFactory.cc
  1435. * src/option_processing.cc
  1436. * src/prefs.cc
  1437. * src/prefs.h
  1438. * src/usage_text.h
  1439. * test/DefaultBtAnnounceTest.cc
  1440. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  1441. Extracted the algorithm to find the longest incremental sequence
  1442. as max_sequence template.
  1443. * src/LongestSequencePieceSelector.cc
  1444. * src/a2algo.h
  1445. * test/Makefile.am
  1446. * test/a2algoTest.cc
  1447. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  1448. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1449. * src/usage_text.h
  1450. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  1451. Updated doc for --uri-selector, --http-server-listen-port and
  1452. --enable-http-server option. Documented --event-poll option.
  1453. * doc/aria2c.1.txt
  1454. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  1455. Updated doc for --enable-http-server.
  1456. * src/usage_text.h
  1457. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  1458. Documented --http-server-listen-port and --enable-http-server in
  1459. man page.
  1460. * doc/aria2c.1.txt
  1461. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1462. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1463. translations. Thanks to all translators.
  1464. * po/es.po
  1465. * po/id.po
  1466. * po/it.po
  1467. * po/ru.po
  1468. * po/uk.po
  1469. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1470. Bump up version number to 1.2.0
  1471. * configure.ac
  1472. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1473. BtContext::getAnnounceTiers() now returns const reference.
  1474. * src/BtContext.h
  1475. * src/DefaultBtContext.cc
  1476. * src/DefaultBtContext.h
  1477. * test/MockBtContext.h
  1478. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1479. Change the number of retries for tracker request based on the
  1480. number of available tracker in a torrent file.
  1481. * src/TrackerWatcherCommand.cc
  1482. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1483. Added _maxTries property to RequestGroup and assign the option
  1484. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1485. RequestGroup::getMaxTries() instead of
  1486. Option::getAsInt(PREF_MAX_TRIES).
  1487. * src/AbstractCommand.cc
  1488. * src/RequestGroup.cc
  1489. * src/RequestGroup.h
  1490. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1491. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1492. Mandriva. I modified the patch: make RequestGroup have the
  1493. timeout value and AdaptiveURISelector directly modifies that
  1494. value.
  1495. * src/AbstractCommand.cc
  1496. * src/AdaptiveURISelector.cc
  1497. * src/AdaptiveURISelector.h
  1498. * src/FtpNegotiationCommand.cc
  1499. * src/RequestGroup.cc
  1500. * src/RequestGroup.h
  1501. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1502. Fixed compiler warning
  1503. * test/IteratableChecksumValidatorTest.cc
  1504. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  1505. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1506. integrated downloads. This PieceSelector subclass finds the
  1507. longest continuous sequence in the available missing pieces and
  1508. selects the last index of such sequence. This makes HTTP/FTP
  1509. connections less interrupted by the pieces obtained by BitTorrent
  1510. peers.
  1511. * src/DefaultPieceStorage.cc
  1512. * src/DefaultPieceStorage.h
  1513. * src/LongestSequencePieceSelector.cc
  1514. * src/LongestSequencePieceSelector.h
  1515. * src/Makefile.am
  1516. * src/PieceSelector.h
  1517. * src/RarestPieceSelector.h
  1518. * src/RequestGroup.cc
  1519. * test/BtDependencyTest.cc
  1520. * test/DefaultPieceStorageTest.cc
  1521. * test/IteratableChecksumValidatorTest.cc
  1522. * test/LongestSequencePieceSelectorTest.cc
  1523. * test/Makefile.am
  1524. * test/SegmentManTest.cc
  1525. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  1526. Fixed the bug that the average speed is wrong in
  1527. http/ftp/BitTorrent integrated download. Only the download bytes
  1528. in BitTorrent were considered.
  1529. * src/RequestGroup.cc
  1530. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  1531. Choose port for BitTorrent/DHT randomly from the specified range.
  1532. * src/DHTConnectionImpl.cc
  1533. * src/PeerListenCommand.cc
  1534. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  1535. Send HTTP Authorization header only if it is requested by the
  1536. server(response 401). There are some exceptions. The authorization
  1537. header for proxy is always sent if it is available without request
  1538. by the server. If username/password is specified in the URI, it
  1539. is immediately sent to the server without request by the server.
  1540. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1541. SharedHandle<AuthConfig>().
  1542. NetrcAuthResolver::resolveAuthConfig() returns
  1543. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1544. * src/AbstractAuthResolver.cc
  1545. * src/AbstractProxyRequestCommand.cc
  1546. * src/AuthConfigFactory.cc
  1547. * src/AuthConfigFactory.h
  1548. * src/HttpConnection.cc
  1549. * src/HttpRequest.cc
  1550. * src/HttpRequest.h
  1551. * src/HttpResponse.cc
  1552. * src/HttpResponseCommand.cc
  1553. * src/HttpSkipResponseCommand.cc
  1554. * test/AuthConfigFactoryTest.cc
  1555. * test/HttpRequestTest.cc
  1556. * test/HttpResponseTest.cc
  1557. 2009-01-27 Tatsuhiro Tsujikawa <[email protected]>
  1558. Remove leading "--" from help keyword and a substring after "="
  1559. from help keyword, so that one can query options by '-h--max-' or
  1560. '-hmax-peers=10'.
  1561. * src/option_processing.cc
  1562. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  1563. Rewritten PStringVisitor and its implementation.
  1564. * src/PStringBuildVisitor.cc
  1565. * src/PStringBuildVisitor.h
  1566. * src/PStringDatum.h
  1567. * src/PStringNumLoop.h
  1568. * src/PStringSegment.cc
  1569. * src/PStringSegment.h
  1570. * src/PStringSelect.h
  1571. * src/PStringVisitor.h
  1572. * src/download_helper.cc
  1573. * test/PStringBuildVisitorTest.cc
  1574. * test/ParameterizedStringParserTest.cc
  1575. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  1576. Persist connection between the built-in HTTP server and a client
  1577. if a client supports keep-alive. Fixed the bug that aria2 exits
  1578. when the HTTP server receives EOF from a client.
  1579. * src/HttpServer.cc
  1580. * src/HttpServer.h
  1581. * src/HttpServerCommand.cc
  1582. * src/HttpServerCommand.h
  1583. * src/HttpServerResponseCommand.cc
  1584. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  1585. Added experimental built-in HTTP server. Currently, when a client
  1586. accesses to the server, it responds with the current download
  1587. progress. By default, it is disabled. To enable the server, give
  1588. --enable-http-server option. To change the default port number
  1589. for the server to listen to, use --http-server-listen-port option.
  1590. The response HTML is very simple and refreshes it self each 1
  1591. second. Because of this refresh, you see flicker in normal web
  1592. browser such as Firefox. I recommend to use console-based browser
  1593. such as elinks, w3m. To connect to the server, run 'elinks
  1594. http://localhost:6800/' while running aria2. Please replace port
  1595. number '6800'(which is default) with your preference.
  1596. * src/DownloadEngineFactory.cc
  1597. * src/HttpHeader.cc
  1598. * src/HttpHeader.h
  1599. * src/HttpHeaderProcessor.cc
  1600. * src/HttpHeaderProcessor.h
  1601. * src/HttpListenCommand.cc
  1602. * src/HttpListenCommand.h
  1603. * src/HttpServer.cc
  1604. * src/HttpServer.h
  1605. * src/HttpServerCommand.cc
  1606. * src/HttpServerCommand.h
  1607. * src/HttpServerResponseCommand.cc
  1608. * src/HttpServerResponseCommand.h
  1609. * src/Makefile.am
  1610. * src/OptionHandlerFactory.cc
  1611. * src/Util.cc
  1612. * src/Util.h
  1613. * src/help_tags.h
  1614. * src/option_processing.cc
  1615. * src/prefs.cc
  1616. * src/prefs.h
  1617. * src/usage_text.h
  1618. * test/HttpHeaderProcessorTest.cc
  1619. * test/UtilTest.cc
  1620. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1621. Removed.
  1622. * src/CheckIntegrityMan.cc
  1623. * src/FileAllocationMan.cc
  1624. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1625. Made (piece) hash check sequential for each RequestGroup because
  1626. simultaneous hash check is slower than sequential execution.
  1627. * src/CheckIntegrityCommand.cc
  1628. * src/CheckIntegrityDispatcherCommand.cc
  1629. * src/CheckIntegrityDispatcherCommand.h
  1630. * src/CheckIntegrityMan.h
  1631. * src/ConsoleStatCalc.cc
  1632. * src/DownloadCommand.cc
  1633. * src/DownloadEngine.cc
  1634. * src/DownloadEngine.h
  1635. * src/DownloadEngineFactory.cc
  1636. * src/Makefile.am
  1637. * src/Makefile.in
  1638. * src/RequestGroup.cc
  1639. * src/StatCalc.h
  1640. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1641. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1642. SequentialDispatcherCommand.
  1643. * src/FileAllocationDispatcherCommand.cc
  1644. * src/SequentialDispatcherCommand.h
  1645. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1646. Rewritten FileAllocationDispatcherCommand using brand new
  1647. SequentialDispatcherCommand.
  1648. * src/DownloadEngineFactory.cc
  1649. * src/FileAllocationCommand.cc
  1650. * src/FileAllocationDispatcherCommand.cc
  1651. * src/FileAllocationDispatcherCommand.h
  1652. * src/Makefile.am
  1653. * src/SequentialDispatcherCommand.h
  1654. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1655. Replaced FileAllocationMan with
  1656. SequentialPicker<FileAllocationEntry>.
  1657. * src/BtCheckIntegrityEntry.cc
  1658. * src/ConsoleStatCalc.cc
  1659. * src/DownloadEngine.cc
  1660. * src/DownloadEngine.h
  1661. * src/DownloadEngineFactory.cc
  1662. * src/FileAllocationCommand.cc
  1663. * src/FileAllocationDispatcherCommand.cc
  1664. * src/FileAllocationMan.h
  1665. * src/Makefile.am
  1666. * src/SequentialPicker.h
  1667. * src/StatCalc.h
  1668. * src/StreamCheckIntegrityEntry.cc
  1669. * test/Makefile.am
  1670. * test/SequentialPickerTest.cc
  1671. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1672. Added doc for adaptive URI selector.
  1673. * doc/aria2c.1.txt
  1674. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1675. Added doc for adaptive URI selector.
  1676. * src/usage_text.h
  1677. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1678. Added doc for --bt-max-peers option.
  1679. * doc/aria2c.1.txt
  1680. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1681. Added doc for --bt-hash-check-seed option.
  1682. * doc/aria2c.1.txt
  1683. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1684. Documented exit codes.
  1685. * doc/aria2c.1.txt
  1686. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  1687. Added --bt-max-peers option to specify the maximum number of peers
  1688. per torrent. 0 means unlimited number of peers.
  1689. * src/ActivePeerConnectionCommand.cc
  1690. * src/BtRuntime.h
  1691. * src/DefaultPeerStorage.cc
  1692. * src/DefaultPeerStorage.h
  1693. * src/OptionHandlerFactory.cc
  1694. * src/RequestGroup.cc
  1695. * src/option_processing.cc
  1696. * src/prefs.cc
  1697. * src/prefs.h
  1698. * src/usage_text.h
  1699. * test/DefaultPeerStorageTest.cc
  1700. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  1701. Added --bt-hash-check-seed option. If true is given to this
  1702. option, after hash check using --check-integrity option and file
  1703. is complete, continue to seed file. If you want to check file and
  1704. download it only when it is damaged or incomplete, set this option
  1705. to false. This option has effect only on BitTorrent download.
  1706. The default value is true(This is the same behavior with the
  1707. previous release).
  1708. * src/BtCheckIntegrityEntry.cc
  1709. * src/OptionHandlerFactory.cc
  1710. * src/option_processing.cc
  1711. * src/prefs.cc
  1712. * src/prefs.h
  1713. * src/usage_text.h
  1714. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  1715. Updated copyright year.
  1716. * src/version_usage.cc
  1717. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  1718. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1719. * doc/aria2c.1.txt
  1720. * src/usage_text.h
  1721. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  1722. Made the max value of split option unlimited.
  1723. * doc/aria2c.1.txt
  1724. * src/OptionHandlerFactory.cc
  1725. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  1726. Fixed compile warning/error.
  1727. * src/DownloadResult.h
  1728. * src/HttpDownloadCommand.cc
  1729. * src/ServerStat.cc
  1730. * test/RequestGroupTest.cc
  1731. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  1732. Added --event-poll option to select the method for polling events.
  1733. The available methods are "select" and "epoll". "epoll" is
  1734. available on Linux only. The earlier release has the compile
  1735. option to choose from these methods.
  1736. * configure.ac
  1737. * src/RequestGroupMan.cc
  1738. * src/OptionHandlerFactory.cc
  1739. * src/EpollEventPoll.h
  1740. * src/StreamFileAllocationEntry.cc
  1741. * src/a2io.h
  1742. * src/SelectEventPoll.h
  1743. * src/option_processing.cc
  1744. * src/prefs.h
  1745. * src/EpollEventPoll.cc
  1746. * src/EventPoll.h
  1747. * src/SocketCore.h
  1748. * src/Makefile.am
  1749. * src/main.cc
  1750. * src/DownloadEngine.h
  1751. * src/SelectEventPoll.cc
  1752. * src/DownloadEngine.cc
  1753. * src/SocketCore.cc
  1754. * src/DownloadEngineFactory.cc
  1755. * src/Makefile.in
  1756. * src/prefs.cc
  1757. * src/usage_text.h
  1758. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  1759. Included RecoverableException.h from main.cc
  1760. * src/main.cc
  1761. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  1762. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1763. now returns last error encountered in the HTTP/FTP downloads as a
  1764. exit status value. If all downloads finished successfully, aria2
  1765. returns 0. The error code is defined in src/DownloadResult.h.
  1766. The error occurred in the download currently in progress is not
  1767. reported as a last error. If no error has encountered but there
  1768. are in progress or waiting downloads, aria2 returns 7.
  1769. * src/AbstractCommand.cc
  1770. * src/DlAbortEx.h
  1771. * src/DlRetryEx.h
  1772. * src/DownloadCommand.cc
  1773. * src/DownloadFailureException.h
  1774. * src/DownloadResult.h
  1775. * src/FtpNegotiationCommand.cc
  1776. * src/HttpSkipResponseCommand.cc
  1777. * src/Makefile.am
  1778. * src/MultiUrlRequestInfo.cc
  1779. * src/MultiUrlRequestInfo.h
  1780. * src/RecoverableException.h
  1781. * src/RequestGroup.cc
  1782. * src/RequestGroup.h
  1783. * src/RequestGroupMan.cc
  1784. * src/RequestGroupMan.h
  1785. * src/URIResult.cc
  1786. * src/URIResult.h
  1787. * src/main.cc
  1788. * src/option_processing.cc
  1789. * test/RequestGroupTest.cc
  1790. 2009-01-06 Tatsuhiro Tsujikawa <[email protected]>
  1791. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1792. patch adds AdaptiveURISelector, which selects one of the bests
  1793. mirrors for first and reserved connections. For supplementary
  1794. ones, it returns mirrors which has not been tested yet, and if
  1795. each of them already tested, returns mirrors which has to be
  1796. tested again. Otherwise, it doesn't return anymore mirrors.
  1797. * src/AdaptiveURISelector.cc
  1798. * src/AdaptiveURISelector.h
  1799. * src/FtpNegotiationCommand.cc
  1800. * src/HttpResponseCommand.cc
  1801. * src/Makefile.am
  1802. * src/Makefile.in
  1803. * src/OptionHandlerFactory.cc
  1804. * src/RequestGroup.cc
  1805. * src/RequestGroup.h
  1806. * src/RequestGroupMan.cc
  1807. * src/ServerStat.cc
  1808. * src/ServerStat.h
  1809. * src/ServerStatMan.cc
  1810. * src/SpeedCalc.cc
  1811. * src/URISelector.h
  1812. * src/prefs.cc
  1813. * src/prefs.h
  1814. * test/RequestGroupManTest.cc
  1815. * test/ServerStatManTest.cc
  1816. * test/ServerStatTest.cc
  1817. 2009-01-04 Tatsuhiro Tsujikawa <[email protected]>
  1818. Fixed unit test error.
  1819. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1820. 2008-12-30 Tatsuhiro Tsujikawa <[email protected]>
  1821. * Release 1.1.2
  1822. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1823. Updated Russian translation. Thanks to the translators.
  1824. * po/ru.po
  1825. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1826. Added the description of --use-head option to man page.
  1827. * doc/aria2c.1.txt
  1828. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1829. Bump up version number to 1.1.2
  1830. * configure.ac
  1831. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1832. Added --use-head option to toggle whether HEAD method should be
  1833. used in the first HTTP request. By default aria2 uses HEAD method
  1834. as the first request. When the server doesn't recognize HEAD, then
  1835. give aria2 --use-head=false to force aria2 to use GET method
  1836. instead.
  1837. * src/OptionHandlerFactory.cc
  1838. * src/RequestGroupMan.cc
  1839. * src/option_processing.cc
  1840. * src/prefs.cc
  1841. * src/prefs.h
  1842. * src/usage_text.h
  1843. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1844. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1845. message is received before CHOKE message. The old implementation
  1846. doen't clear the use-bit of the piece when recieved REJECT
  1847. message.
  1848. * src/DefaultBtMessageDispatcher.cc
  1849. * test/DefaultBtMessageDispatcherTest.cc
  1850. 2008-12-25 Tatsuhiro Tsujikawa <[email protected]>
  1851. * Release 1.1.1
  1852. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  1853. Bump up version number to 1.1.1.
  1854. * configure.ac
  1855. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  1856. Fixed the bug that --summary-interval=0 doesn't work. The summary
  1857. is printed repeatedly.
  1858. * src/ConsoleStatCalc.cc
  1859. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1860. * Release 1.1.0
  1861. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1862. Added ifdef clause for conditional compilation.
  1863. * src/main.cc
  1864. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1865. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  1866. translations. Thanks to all translators.
  1867. * po/ja.po
  1868. * po/ru.po
  1869. * po/uk.po
  1870. * po/zh_CN.po
  1871. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1872. Added the preceding ">>> " before the message "Printing the
  1873. contents of file..." to make the output more readable.
  1874. * src/main.cc
  1875. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1876. Added try-catch block in the loop in showFiles() to continue the
  1877. operation even if the exception occurred in one file.
  1878. * src/main.cc (showFiles)
  1879. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  1880. Made messages in showFiles() translatable.
  1881. * po/aria2.pot
  1882. * src/main.cc
  1883. * src/message.h
  1884. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  1885. Print the contents of Torrent/Metalink files are printed without
  1886. -T/-M options.
  1887. * src/main.cc
  1888. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1889. Escaped '--' with '\--'
  1890. * README
  1891. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1892. Updated "How to build" section in README. Mentioned about
  1893. --with-ca-bundle compile option.
  1894. * README
  1895. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1896. Bump up version number to 1.1.0.
  1897. * configure.ac
  1898. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1899. Added a note for --dht-listen-port option.
  1900. * doc/aria2c.1.txt
  1901. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1902. Update doc for --realtime-chunk-checksum option.
  1903. * doc/aria2c.1.txt
  1904. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1905. Update doc for --realtime-chunk-checksum option.
  1906. * src/usage_text.h
  1907. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1908. Updated French, Japanese, Russian and Ukrainian translations.
  1909. Thanks to all translators.
  1910. * po/fr.po
  1911. * po/ja.po
  1912. * po/ru.po
  1913. * po/uk.po
  1914. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1915. Renamed aria2c.pot to aria2.pot
  1916. * po/aria2.pot
  1917. * po/aria2c.pot: Removed.
  1918. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1919. Removed MetaEntry.h
  1920. * src/Makefile.am
  1921. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1922. Rename file by appending digits if a local file exists and its
  1923. file size is larger than that of remote file with --continue
  1924. option. The old implementation just throws exception in such case.
  1925. * src/RequestGroup.cc
  1926. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  1927. Fixed the bug that download progress summary is not printed in the
  1928. interval specified by the option.
  1929. * src/ConsoleStatCalc.cc
  1930. * src/ConsoleStatCalc.h
  1931. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  1932. Fixed compiler warning
  1933. * src/Cookie.cc
  1934. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  1935. Fixed the cookie implementation based on RFC2965.
  1936. Now if a value in domain field is not started with dot, then
  1937. prepend dot. That means a cookie with domain=sf.net is sent to
  1938. wiki.sf.net.
  1939. * src/Cookie.cc
  1940. * test/CookieParserTest.cc
  1941. * test/CookieStorageTest.cc
  1942. * test/CookieTest.cc
  1943. * test/NsCookieParserTest.cc
  1944. * test/Sqlite3MozCookieParserTest.cc
  1945. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  1946. Fixed the bug that causes corrupted downloads if HTTP pipelining
  1947. is enabled and the server doesn't support keep-alive.
  1948. * src/AbstractCommand.cc
  1949. * src/DownloadCommand.cc
  1950. * src/HttpDownloadCommand.cc
  1951. * src/HttpDownloadCommand.h
  1952. * src/HttpResponseCommand.cc
  1953. * src/Request.cc
  1954. * src/Request.h
  1955. * test/RequestTest.cc
  1956. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1957. Removed Dictionary/List/Data and its related classes.
  1958. * src/BencodeVisitor.cc: Removed.
  1959. * src/BencodeVisitor.h: Removed.
  1960. * src/Data.cc: Removed.
  1961. * src/Data.h: Removed.
  1962. * src/Dictionary.cc: Removed.
  1963. * src/Dictionary.h: Removed.
  1964. * src/List.cc: Removed.
  1965. * src/List.h: Removed.
  1966. * src/Makefile.am
  1967. * src/MetaEntry.h: Removed.
  1968. * src/MetaEntryVisitor.h: Removed.
  1969. * src/MetaFileUtil.cc: Removed.
  1970. * src/MetaFileUtil.h: Removed.
  1971. * test/BencodeVisitorTest.cc: Removed.
  1972. * test/DataTest.cc: Removed.
  1973. * test/DictionaryTest.cc: Removed.
  1974. * test/ListTest.cc: Removed.
  1975. * test/Makefile.am
  1976. * test/MetaFileUtilTest.cc: Removed.
  1977. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1978. Removed include of MetaEntry.h
  1979. * test/DHTMessageTrackerEntryTest.cc
  1980. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1981. Use BDE instead of Dictionary/List/Data.
  1982. * src/AnnounceList.cc
  1983. * src/AnnounceList.h
  1984. * test/AnnounceListTest.cc
  1985. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1986. Use BDE instead of Dictionary/List/Data.
  1987. * src/DHTAbstractMessage.cc
  1988. * src/DHTAbstractMessage.h
  1989. * src/DHTAnnouncePeerMessage.cc
  1990. * src/DHTAnnouncePeerMessage.h
  1991. * src/DHTAnnouncePeerReplyMessage.cc
  1992. * src/DHTAnnouncePeerReplyMessage.h
  1993. * src/DHTFindNodeMessage.cc
  1994. * src/DHTFindNodeMessage.h
  1995. * src/DHTFindNodeReplyMessage.cc
  1996. * src/DHTFindNodeReplyMessage.h
  1997. * src/DHTGetPeersMessage.cc
  1998. * src/DHTGetPeersMessage.h
  1999. * src/DHTGetPeersReplyMessage.cc
  2000. * src/DHTGetPeersReplyMessage.h
  2001. * src/DHTMessageFactory.h
  2002. * src/DHTMessageFactoryImpl.cc
  2003. * src/DHTMessageFactoryImpl.h
  2004. * src/DHTMessageReceiver.cc
  2005. * src/DHTMessageTracker.cc
  2006. * src/DHTMessageTracker.h
  2007. * src/DHTPingMessage.cc
  2008. * src/DHTPingMessage.h
  2009. * src/DHTPingReplyMessage.cc
  2010. * src/DHTPingReplyMessage.h
  2011. * src/DHTQueryMessage.cc
  2012. * src/DHTQueryMessage.h
  2013. * src/DHTResponseMessage.cc
  2014. * src/DHTResponseMessage.h
  2015. * test/DHTAnnouncePeerMessageTest.cc
  2016. * test/DHTAnnouncePeerReplyMessageTest.cc
  2017. * test/DHTFindNodeMessageTest.cc
  2018. * test/DHTFindNodeReplyMessageTest.cc
  2019. * test/DHTGetPeersMessageTest.cc
  2020. * test/DHTGetPeersReplyMessageTest.cc
  2021. * test/DHTMessageFactoryImplTest.cc
  2022. * test/DHTMessageTrackerTest.cc
  2023. * test/DHTPingMessageTest.cc
  2024. * test/DHTPingReplyMessageTest.cc
  2025. * test/MockDHTMessageFactory.h
  2026. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  2027. Added tests the case where length < 0 is specified.
  2028. * test/BencodeTest.cc
  2029. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  2030. Fixed memory leak in decoderawstring()
  2031. * src/bencode.cc
  2032. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  2033. Added missing #ifdef guard. Added uc() function for String and
  2034. removeKey() for Dict.
  2035. * src/bencode.cc
  2036. * src/bencode.h
  2037. * test/BencodeTest.cc
  2038. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2039. Use BDE instead of Dictionary/List/Data.
  2040. * src/HandshakeExtensionMessage.cc
  2041. * src/HandshakeExtensionMessage.h
  2042. * test/HandshakeExtensionMessageTest.cc
  2043. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2044. Added --max-overall-upload-limit option. This option limits the
  2045. overall upload speed. Stated in help message that the existing
  2046. --max-upload-limit option limits the upload speed per each
  2047. torrent. Man page is also updated.
  2048. * doc/aria2c.1.txt
  2049. * src/DefaultBtMessageDispatcher.cc
  2050. * src/DefaultBtMessageDispatcher.h
  2051. * src/OptionHandlerFactory.cc
  2052. * src/PeerInteractionCommand.cc
  2053. * src/option_processing.cc
  2054. * src/prefs.cc
  2055. * src/prefs.h
  2056. * src/usage_text.h
  2057. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  2058. Use BDE instead of Dictionary/List/Data classes.
  2059. * src/CompactPeerListProcessor.cc
  2060. * src/CompactPeerListProcessor.h
  2061. * src/DefaultBtAnnounce.cc
  2062. * src/DefaultBtContext.cc
  2063. * src/DefaultBtContext.h
  2064. * src/DefaultPeerListProcessor.cc
  2065. * src/DefaultPeerListProcessor.h
  2066. * src/DelegatingPeerListProcessor.cc
  2067. * src/DelegatingPeerListProcessor.h
  2068. * src/PeerListProcessor.h
  2069. * src/UTPexExtensionMessage.cc
  2070. * src/Util.h
  2071. * src/message.h
  2072. * test/DefaultBtContextTest.cc
  2073. * test/DefaultPeerListProcessorTest.cc
  2074. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  2075. Added bencode helper functions and BDE class.
  2076. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2077. * src/Makefile.am
  2078. * src/bencode.cc
  2079. * src/bencode.h
  2080. * test/BencodeTest.cc
  2081. * test/Makefile.am
  2082. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  2083. Fixed the bug that bad URI is sent to the tracker when the announe
  2084. URI in torrent file includes query.
  2085. * src/DefaultBtAnnounce.cc
  2086. * test/DefaultBtAnnounceTest.cc
  2087. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  2088. Added Option::blank().
  2089. Use !Option::blank(name) instead of Option::defined(name) for
  2090. the options that take filename.
  2091. * src/MultiUrlRequestInfo.cc
  2092. * src/Option.cc
  2093. * src/Option.h
  2094. * src/main.cc
  2095. * src/option_processing.cc
  2096. * test/OptionTest.cc
  2097. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  2098. Documented the default value of --check-certificate option in man
  2099. page.
  2100. * doc/aria2c.1.txt
  2101. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  2102. Enabled --check-certificate by default. Added compile
  2103. time(configure) option --with-ca-bundle to specify CA bundle.
  2104. Warn if --check-certificate=true and --ca-certificate is not
  2105. specified or loading CA certificate is failed.
  2106. * configure.ac
  2107. * src/MultiUrlRequestInfo.cc
  2108. * src/OptionHandlerFactory.cc
  2109. * src/message.h
  2110. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  2111. Mentioned https tag in help option.
  2112. * doc/aria2c.1.txt
  2113. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  2114. Added `https' tag to help option category. Added https tag to
  2115. --ca-certificate, --certificate, --check-certificate and
  2116. --private-key option.
  2117. * src/OptionHandlerFactory.cc
  2118. * src/help_tags.h
  2119. * src/option_processing.cc
  2120. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  2121. Changed the package name from `aria2c' to `aria2' in order to fix
  2122. the packaging issue in Debian and Fedora. The name of the
  2123. executable is not changed.
  2124. * configure.ac
  2125. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  2126. Fixed typos
  2127. * src/usage_text.h
  2128. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  2129. Fixed typos and updated doc.
  2130. * README
  2131. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  2132. Fixed typos
  2133. * doc/aria2c.1.txt
  2134. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  2135. Fixed typos
  2136. * src/usage_text.h
  2137. 2008-11-30 Tatsuhiro Tsujikawa <[email protected]>
  2138. Print a message when no files to download.
  2139. * src/download_helper.cc
  2140. * src/main.cc
  2141. * src/message.h
  2142. 2008-11-28 Tatsuhiro Tsujikawa <[email protected]>
  2143. RFC3986 complied Percent-Encoding(urlencode).
  2144. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2145. ones.
  2146. * src/Request.cc
  2147. * src/Util.cc
  2148. * src/Util.h
  2149. * test/BtHandshakeMessageTest.cc
  2150. * test/DefaultBtAnnounceTest.cc
  2151. * test/DefaultBtContextTest.cc
  2152. * test/RequestTest.cc
  2153. * test/UtilTest.cc
  2154. 2008-11-27 Tatsuhiro Tsujikawa <[email protected]>
  2155. Fixed the bug that prevents aria2 from downloading 0-length files
  2156. via HTTP/FTP.
  2157. * src/DefaultBtContext.cc
  2158. * src/DefaultBtContext.h
  2159. * src/DownloadContext.h
  2160. * src/FtpNegotiationCommand.cc
  2161. * src/HttpResponseCommand.cc
  2162. * src/HttpResponseCommand.h
  2163. * src/RequestGroup.cc
  2164. * src/SingleFileDownloadContext.cc
  2165. * src/SingleFileDownloadContext.h
  2166. * test/BtPostDownloadHandlerTest.cc
  2167. * test/MetalinkPostDownloadHandlerTest.cc
  2168. * test/MockBtContext.h
  2169. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  2170. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2171. * src/option_processing.cc
  2172. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  2173. Applied aria2-1.0.1-mingw.patch.
  2174. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2175. mingw.
  2176. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2177. * src/SocketCore.cc
  2178. * src/a2netcompat.h
  2179. * test/SocketCoreTest.cc
  2180. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  2181. * Release 1.0.1
  2182. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  2183. Updated Ukrainian and Norwegian Nynorsk translations.
  2184. Thanks to all translators.
  2185. * po/nn.po
  2186. * po/uk.po
  2187. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  2188. Don't show download result when -S option is used.
  2189. * src/main.cc
  2190. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  2191. Bump up version number to 1.0.1
  2192. * configure.ac
  2193. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  2194. Closed files after the test cases in MultiDiskWriterTest::
  2195. testResetDiskWriterEntries(). This will fix the unit test error
  2196. in mingw32 build.
  2197. * test/MultiDiskWriterTest.cc
  2198. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  2199. Use HEAD method to get file size from HTTP server for segmented
  2200. downloading.
  2201. The request to the BitTorrent Tracker always uses GET method because
  2202. the response of the tracker is small and it doesn't need segmented
  2203. download.
  2204. * src/FtpNegotiationCommand.cc
  2205. * src/HttpRequest.cc
  2206. * src/HttpResponseCommand.cc
  2207. * src/HttpSkipResponseCommand.cc
  2208. * src/RequestGroup.cc
  2209. * src/RequestGroup.h
  2210. * src/TrackerWatcherCommand.cc
  2211. * test/HttpRequestTest.cc
  2212. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  2213. Fixed the bug that causes floating exception when -T option is used and
  2214. no URIs are given.
  2215. * src/download_helper.cc
  2216. * test/DownloadHelperTest.cc
  2217. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2218. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2219. errors in MinGW:
  2220. Closed file after saving server stats (RequestGroupMan.cc)
  2221. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2222. Ignored case & handled 2-digit years (strptime.c)
  2223. Added missing suseconds_t definition (a2time.h)
  2224. Fixed socket CLOSE() define (SocketCore.cc)
  2225. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2226. Changed utime() test values from x000 to x00000 as MinGW failed on
  2227. values less than timezone offset from Unix epoch
  2228. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2229. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2230. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2231. handle negative dates (CookieParserTest.cc)
  2232. * src/a2time.h
  2233. * src/FtpConnection.cc
  2234. * src/RequestGroupMan.cc
  2235. * src/SocketCore.cc
  2236. * src/strptime.c
  2237. * test/CookieParserTest.cc
  2238. * test/CopyDiskAdaptorTest.cc
  2239. * test/FileTest.cc
  2240. * test/FtpConnectionTest.cc
  2241. * test/MultiDiskAdaptorTest.cc
  2242. 2008-11-20 Tatsuhiro Tsujikawa <[email protected]>
  2243. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2244. * doc/aria2c.1.txt
  2245. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  2246. * Release 1.0.0
  2247. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  2248. Added '~' to reserved characters.
  2249. * src/Util.cc
  2250. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  2251. Do not urlencode Request::url in setUrl() because we want unmodified
  2252. URL using Request::getUrl()
  2253. * src/Request.cc
  2254. * src/Request.h
  2255. * test/RequestTest.cc
  2256. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2257. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2258. Thanks to all translators.
  2259. * po/bg.po
  2260. * po/fr.po
  2261. * po/ja.po
  2262. * po/ru.po
  2263. * po/uk.po
  2264. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2265. Bump up version number to 1.0.0
  2266. * configure.ac
  2267. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2268. Added nosqlite3 build to build_test.sh.
  2269. Renamed noxml as expat.
  2270. * build_test.sh
  2271. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2272. Updated INPUT FILE section.
  2273. * doc/aria2c.1.txt
  2274. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2275. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2276. on big endian systems because test .aria2 files are made for little
  2277. endian systems.
  2278. * test/DefaultBtProgressInfoFileTest.cc
  2279. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2280. Dropped ares support.
  2281. * README
  2282. * configure.ac
  2283. * m4/libares.m4: Removed.
  2284. * src/AsyncNameResolver.cc
  2285. * src/Makefile.am
  2286. * test/Makefile.am
  2287. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  2288. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2289. Removed const qualifier from DiskWriter::size().
  2290. * src/AbstractDiskWriter.cc
  2291. * src/AbstractDiskWriter.h
  2292. * src/ByteArrayDiskWriter.cc
  2293. * src/ByteArrayDiskWriter.h
  2294. * src/DiskWriter.h
  2295. * test/ByteArrayDiskWriterTest.cc
  2296. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  2297. Fixed the bug that causes segmentation fault/bus error during executing
  2298. choking algorithm while seeding. This is caused by improper
  2299. implementation of compare function which returns inconsistent results
  2300. depending on the timing of last unchoke.
  2301. * src/BtSeederStateChoke.cc
  2302. * src/BtSeederStateChoke.h
  2303. * src/DefaultPeerStorage.cc
  2304. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2305. Removed TODO
  2306. * TODO
  2307. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2308. Added a section that explains how to pass argument to options that
  2309. takes optional arguments with its short form.
  2310. * doc/aria2c.1.txt
  2311. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2312. Added -u for the short form of --max-upload-limit option.
  2313. * doc/aria2c.1.txt
  2314. * src/option_processing.cc
  2315. * src/usage_text.h
  2316. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2317. Added -V for the short form of --check-integrity option.
  2318. Now the argument of --check-integrity option is optional:
  2319. if it is omitted, it is evaluated as true.
  2320. * doc/aria2c.1.txt
  2321. * src/option_processing.cc
  2322. * src/usage_text.h
  2323. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2324. Made the default value of --ftp-pasv option set to true and it can take
  2325. true/false values.
  2326. * src/OptionHandlerFactory.cc
  2327. * src/option_processing.cc
  2328. * src/usage_text.h
  2329. * doc/aria2c.1.txt
  2330. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  2331. Given custom random number generator to std::random_shuffle.
  2332. * src/AnnounceList.cc
  2333. * src/BtLeecherStateChoke.cc
  2334. * src/BtSeederStateChoke.cc
  2335. * src/DefaultBtRequestFactory.cc
  2336. * src/MetalinkEntry.cc
  2337. * src/RarestPieceSelector.cc
  2338. * src/SimpleRandomizer.cc
  2339. * src/SimpleRandomizer.h
  2340. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  2341. Now the default value of --enable-direct-io is true.
  2342. * src/OptionHandlerFactory.cc
  2343. * doc/aria2c.1.txt
  2344. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  2345. Erase peer before executing onReturningPeer and onErasingPeer
  2346. because choking algorithm called from onReturningPeer doesn't
  2347. like erasing peer in the active peer list.
  2348. * src/DefaultPeerStorage.cc
  2349. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2350. Instead of creating special filename in createDownloadResult() if
  2351. inMemoryDownload() is true, now it is done in getFilePath().
  2352. * src/RequestGroup.cc
  2353. * test/RequestGroupTest.cc
  2354. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2355. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2356. processed in memory. This is the fix for previous comment out.
  2357. * src/MemoryBufferPreDownloadHandler.cc
  2358. * src/RequestGroup.cc
  2359. * src/RequestGroup.h
  2360. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2361. Commented out the code which sets virtual directory path "[MEMORY]"
  2362. propagate directory to store to following RequestGroup.
  2363. * src/MemoryBufferPreDownloadHandler.cc
  2364. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2365. Bump up version number to 1.0.0b
  2366. * configure.ac
  2367. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2368. Added input_uris.txt to EXTRA_DIST
  2369. * test/Makefile.am
  2370. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2371. Removed PeerObject.h from Makefile.am
  2372. * src/Makefile.am
  2373. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2374. Avoid slow seeding
  2375. * src/PeerInteractionCommand.cc
  2376. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2377. Updated usage for -i option.
  2378. * src/usage_text.h (TEXT_INPUT_FILE)
  2379. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2380. Added INPUT FILE section to man page.
  2381. Escaped fake URLs.
  2382. * doc/aria2c.1.txt
  2383. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2384. Fixed wrong note position for -o option.
  2385. * doc/aria2c.1.txt
  2386. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2387. Fixed compile error without SSL/XML library.
  2388. * src/DefaultBtProgressInfoFile.cc
  2389. * src/DefaultBtProgressInfoFile.h
  2390. * src/FileMetalinkParserState.cc
  2391. * src/RequestGroup.h
  2392. * src/SocketCore.cc
  2393. * src/SocketCore.h
  2394. * src/VerificationMetalinkParserState.cc
  2395. * src/download_helper.h
  2396. * src/main.cc
  2397. * test/DefaultBtProgressInfoFileTest.cc
  2398. * test/DownloadHelperTest.cc
  2399. 2008-11-13 Tatsuhiro Tsujikawa <[email protected]>
  2400. Rewritten URI handling functions. They are now provided as a testable
  2401. functions.
  2402. * src/Makefile.am
  2403. * src/RequestGroup.cc
  2404. * src/RequestGroup.h
  2405. * src/download_helper.cc
  2406. * src/download_helper.h
  2407. * src/main.cc
  2408. * test/DownloadHelperTest.cc
  2409. * test/Makefile.am
  2410. * test/input_uris.txt
  2411. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  2412. Quickly terminate commands when ctrl-c is pressed.
  2413. * src/DownloadEngine.cc
  2414. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  2415. Quickly terminate idle commands when download finished.
  2416. * src/AbstractCommand.cc
  2417. * src/DownloadCommand.cc
  2418. * src/DownloadEngine.cc
  2419. * src/DownloadEngine.h
  2420. * src/SleepCommand.cc
  2421. * src/SleepCommand.h
  2422. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2423. Added the ability to specify output filename and directory in input
  2424. file.
  2425. Additional parameters are added in the following line of URIs
  2426. with proceeding white space(s), 1 parameter in 1 line.
  2427. The parameter names are the same with the command-line option name
  2428. without proceeding "--". Not all the options are available here:
  2429. at the moment, 'dir' and 'out' options are avialable.
  2430. Please note that out option has no effect against Metalink or BitTorrent
  2431. downloads.
  2432. Example input file:
  2433. http://host/foo-1.1.tar.bz2
  2434. out=foo.tar.bz2
  2435. dir=/tmp/downloads
  2436. http://host/thundermonkey-2.0.tar.bz2
  2437. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2438. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2439. thundermonkey-2.0.tar.bz2 is saved as
  2440. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2441. * src/BtPostDownloadHandler.cc
  2442. * src/Metalink2RequestGroup.cc
  2443. * src/Metalink2RequestGroup.h
  2444. * src/MetalinkPostDownloadHandler.cc
  2445. * src/UriListParser.cc
  2446. * src/UriListParser.h
  2447. * src/main.cc
  2448. * test/Metalink2RequestGroupTest.cc
  2449. * test/UriListParserTest.cc
  2450. * test/filelist1.txt
  2451. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2452. Fixed error when SSL library is not found.
  2453. * configure.ac
  2454. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2455. Cross referenced among -s, -C and -j options.
  2456. Updated usage of -C and -s options.
  2457. * src/usage_text.h
  2458. * doc/aria2c.1.txt
  2459. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2460. Fixed bad cast in 32bit platforms.
  2461. * test/DefaultPieceStorageTest.cc
  2462. (DefaultPieceStorageTest::testGetCompletedLength)
  2463. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2464. Fixed unit test fails on 32bit platforms.
  2465. * test/CookieParserTest.cc
  2466. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2467. Show an average download speed in Download results.
  2468. * src/BtFileAllocationEntry.cc
  2469. * src/DefaultPieceStorage.cc
  2470. * src/DownloadContext.cc
  2471. * src/DownloadContext.h
  2472. * src/DownloadResult.h
  2473. * src/RequestGroup.cc
  2474. * src/RequestGroupMan.cc
  2475. * src/StreamFileAllocationEntry.cc
  2476. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2477. Fixed the bug that metalink file is not processed if Content-Type
  2478. field has a paramter.
  2479. * src/HttpResponse.cc
  2480. * src/HttpResponse.h
  2481. * test/HttpResponseTest.cc
  2482. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  2483. Removed unused code.
  2484. * src/DefaultBtAnnounce.cc
  2485. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  2486. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2487. the value larger than DefaultPieceStorage::getTotalLength() when
  2488. in flight pieces are involved.
  2489. * src/DefaultPieceStorage.cc
  2490. * test/DefaultPieceStorageTest.cc
  2491. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2492. Bump up version number to 1.0.0a.
  2493. * configure.ac
  2494. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2495. Updated configure.ac
  2496. * configure.ac
  2497. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2498. Added usege for proxy.
  2499. * doc/aria2c.1.txt
  2500. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2501. Added usage for --ca-certificate, --certificate, --private-key and
  2502. --check-certificate options.
  2503. * doc/aria2c.1.txt
  2504. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2505. Updated man page
  2506. * doc/aria2c.1.txt
  2507. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2508. Added --no-proxy option. It receives comman separated hostname or
  2509. domains to which proxy should not be used.
  2510. aria2 honors the environment variable no_proxy to override no-proxy
  2511. value in configuration file. The user can override the environment
  2512. variable no_proxy with --no-proxy command-line option.
  2513. * src/AbstractCommand.cc
  2514. * src/OptionHandlerFactory.cc
  2515. * src/option_processing.cc
  2516. * src/prefs.cc
  2517. * src/prefs.h
  2518. * src/usage_text.h
  2519. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2520. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2521. The CA certificates are specified in --ca-certificate option.
  2522. By default, the verification is disabled. Use --check-certificate
  2523. option to enable it.
  2524. * src/HttpRequestCommand.cc
  2525. * src/LibgnutlsTLSContext.cc
  2526. * src/LibgnutlsTLSContext.h
  2527. * src/LibsslTLSContext.cc
  2528. * src/LibsslTLSContext.h
  2529. * src/MultiUrlRequestInfo.cc
  2530. * src/OptionHandlerFactory.cc
  2531. * src/SocketCore.cc
  2532. * src/SocketCore.h
  2533. * src/a2functional.h
  2534. * src/message.h
  2535. * src/option_processing.cc
  2536. * src/prefs.cc
  2537. * src/prefs.h
  2538. * src/usage_text.h
  2539. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  2540. Added client certificate authentication for SSL/TLS.
  2541. Currently a private key must be decrypted for use with aria2.
  2542. If a user accidentally gives encrypted file to aria2 then following
  2543. thing happens:
  2544. If encrypted private key is given to aria2, it behaves differently
  2545. depending on the ssl library it uses. If aria2 built with openssl then
  2546. openssl prompts the user for password. If aria2 build with gnutls then
  2547. aria2 exists with error at start up.
  2548. * src/DownloadEngineFactory.cc
  2549. * src/MultiUrlRequestInfo.cc
  2550. * src/OptionHandlerFactory.cc
  2551. * src/option_processing.cc
  2552. * src/prefs.cc
  2553. * src/prefs.h
  2554. * src/usage_text.h
  2555. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  2556. Introduced TLSContext that holds TLS related data that can be shared
  2557. with multiple SSL connections.
  2558. * src/DownloadEngineFactory.cc
  2559. * src/LibgnutlsTLSContext.cc
  2560. * src/LibgnutlsTLSContext.h
  2561. * src/LibsslTLSContext.cc
  2562. * src/LibsslTLSContext.h
  2563. * src/Makefile.am
  2564. * src/SocketCore.cc
  2565. * src/SocketCore.h
  2566. * src/TLSContext.h
  2567. * src/message.h
  2568. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  2569. Fixed the bug that the DiskWriter of the first FileEntry whose
  2570. `needsFileAllocation' property is false is not created
  2571. even if it shares a piece with next FileEntry which `requested' property
  2572. is true.
  2573. Fixed the bug that zero-length file is not created if pre file
  2574. allocation is not done.
  2575. * src/MultiDiskAdaptor.cc
  2576. * src/MultiDiskAdaptor.h
  2577. * test/MultiDiskAdaptorTest.cc
  2578. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2579. Added the ability to pool proxy connection.
  2580. The conneciton in FTP with proxy-method=GET is not pooled.
  2581. Proxy-Connection header will not be sent when sending CONNECT method.
  2582. * src/DownloadEngine.cc
  2583. * src/DownloadEngine.h
  2584. * src/FtpFinishDownloadCommand.cc
  2585. * src/FtpInitiateConnectionCommand.cc
  2586. * src/FtpNegotiationCommand.cc
  2587. * src/HttpDownloadCommand.cc
  2588. * src/HttpInitiateConnectionCommand.cc
  2589. * src/HttpRequest.cc
  2590. * src/HttpRequest.h
  2591. * src/HttpResponse.cc
  2592. * src/HttpSkipResponseCommand.cc
  2593. * test/HttpRequestTest.cc
  2594. * test/HttpResponseTest.cc
  2595. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2596. Handle date before epoch.
  2597. To create *bad* Time object, call Time::null().
  2598. * src/CookieParser.cc
  2599. * src/FtpConnection.cc
  2600. * src/FtpConnection.h
  2601. * src/FtpNegotiationCommand.cc
  2602. * src/RequestGroup.cc
  2603. * src/TimeA2.cc
  2604. * src/TimeA2.h
  2605. * test/CookieParserTest.cc
  2606. * test/FtpConnectionTest.cc
  2607. * test/TimeTest.cc
  2608. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2609. Added support for following envrionment variables: http_proxy,
  2610. https_proxy, ftp_proxy and all_proxy.
  2611. Each variable is equivalent to the aria2 option whose name is the
  2612. variable name with '_' replaced with '-'.
  2613. They overrides options specified in aria2.conf file.
  2614. The envrionment variables can be overrode using command-line option.
  2615. * src/option_processing.cc
  2616. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2617. Renamed --http-proxy-method as --proxy-method.
  2618. * src/AbstractCommand.cc
  2619. * src/FtpInitiateConnectionCommand.cc
  2620. * src/HttpInitiateConnectionCommand.cc
  2621. * src/OptionHandlerFactory.cc
  2622. * src/option_processing.cc
  2623. * src/prefs.cc
  2624. * src/prefs.h
  2625. * src/usage_text.h
  2626. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2627. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2628. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2629. Above 3 options and --http-proxy option can handle proxy in URL format
  2630. like: http://user:passwd@host:port.
  2631. If a proxy requires user/password, they must be specified in a URL.
  2632. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2633. instead.
  2634. * src/AbstractCommand.cc
  2635. * src/AbstractCommand.h
  2636. * src/AbstractProxyRequestCommand.cc
  2637. * src/AbstractProxyRequestCommand.h
  2638. * src/AuthConfigFactory.cc
  2639. * src/AuthConfigFactory.h
  2640. * src/FtpFinishDownloadCommand.cc
  2641. * src/FtpInitiateConnectionCommand.cc
  2642. * src/FtpInitiateConnectionCommand.h
  2643. * src/FtpNegotiationCommand.cc
  2644. * src/FtpTunnelRequestCommand.cc
  2645. * src/FtpTunnelRequestCommand.h
  2646. * src/HttpDownloadCommand.cc
  2647. * src/HttpInitiateConnectionCommand.cc
  2648. * src/HttpInitiateConnectionCommand.h
  2649. * src/HttpProxyRequestCommand.cc
  2650. * src/HttpProxyRequestCommand.h
  2651. * src/HttpRequest.cc
  2652. * src/HttpRequest.h
  2653. * src/HttpRequestCommand.cc
  2654. * src/HttpRequestCommand.h
  2655. * src/HttpSkipResponseCommand.cc
  2656. * src/InitiateConnectionCommand.cc
  2657. * src/InitiateConnectionCommand.h
  2658. * src/OptionHandlerFactory.cc
  2659. * src/OptionHandlerImpl.h
  2660. * src/Request.cc
  2661. * src/option_processing.cc
  2662. * src/prefs.cc
  2663. * src/prefs.h
  2664. * src/usage_text.h
  2665. * test/AuthConfigFactoryTest.cc
  2666. * test/HttpRequestTest.cc
  2667. * test/OptionHandlerTest.cc
  2668. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2669. Execute choking algorithm when unchoked and interested peer is
  2670. disconected.
  2671. * src/DefaultPeerStorage.cc
  2672. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2673. Added testcase for BtNotInterestedMessage from unchoked peer.
  2674. * test/BtNotInterestedMessageTest.cc
  2675. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2676. Execute choking algorithm when BtInterestedMessage arrives from
  2677. unchoked peer.
  2678. * src/BtInterestedMessage.cc
  2679. * src/BtInterestedMessage.h
  2680. * src/DefaultBtMessageFactory.cc
  2681. * test/BtInterestedMessageTest.cc
  2682. * test/MockPeerStorage.h
  2683. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2684. AuthConfigFactory is now part of DownloadEngine.
  2685. * src/AbstractProxyRequestCommand.cc
  2686. * src/AuthConfigFactory.h
  2687. * src/DownloadEngine.cc
  2688. * src/DownloadEngine.h
  2689. * src/FtpConnection.cc
  2690. * src/FtpConnection.h
  2691. * src/FtpNegotiationCommand.cc
  2692. * src/HttpConnection.cc
  2693. * src/HttpRequest.cc
  2694. * src/HttpRequest.h
  2695. * src/HttpRequestCommand.cc
  2696. * src/HttpResponse.cc
  2697. * src/HttpResponseCommand.cc
  2698. * src/HttpSkipResponseCommand.cc
  2699. * src/MultiUrlRequestInfo.cc
  2700. * src/main.cc
  2701. * test/FtpConnectionTest.cc
  2702. * test/HttpRequestTest.cc
  2703. * test/HttpResponseTest.cc
  2704. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2705. Corrected catched exception type.
  2706. * src/ServerStatMan.cc
  2707. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2708. DNSCache is now part of DownloadEngine.
  2709. * src/DNSCache.h
  2710. * src/DownloadEngine.cc
  2711. * src/DownloadEngine.h
  2712. * src/InitiateConnectionCommand.cc
  2713. * src/MultiUrlRequestInfo.cc
  2714. * test/Makefile.am
  2715. * test/Makefile.in
  2716. * test/SimpleDNSCacheTest.cc
  2717. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2718. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2719. DownloadEngine.
  2720. * src/ActivePeerConnectionCommand.cc
  2721. * src/BtSetup.cc
  2722. * src/CUIDCounter.h
  2723. * src/DHTSetup.cc
  2724. * src/DownloadCommand.cc
  2725. * src/DownloadEngine.cc
  2726. * src/DownloadEngine.h
  2727. * src/DownloadEngineFactory.cc
  2728. * src/FileAllocationDispatcherCommand.cc
  2729. * src/InitiatorMSEHandshakeCommand.cc
  2730. * src/PeerInitiateConnectionCommand.cc
  2731. * src/PeerInteractionCommand.cc
  2732. * src/PeerListenCommand.cc
  2733. * src/RequestGroup.cc
  2734. * src/StreamFileAllocationEntry.cc
  2735. * src/TrackerWatcherCommand.cc
  2736. * src/main.cc
  2737. * test/RequestGroupManTest.cc
  2738. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2739. Implemented commented code in BtSeederStateChoke
  2740. * src/BtSeederStateChoke.cc
  2741. * src/Peer.cc
  2742. * src/Peer.h
  2743. * src/PeerInteractionCommand.cc
  2744. * src/PeerSessionResource.cc
  2745. * src/PeerSessionResource.h
  2746. * test/MockBtMessageDispatcher.h
  2747. * test/PeerSessionResourceTest.cc
  2748. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2749. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2750. its object.
  2751. * src/AbstractBtMessage.cc
  2752. * src/ActivePeerConnectionCommand.cc
  2753. * src/ActivePeerConnectionCommand.h
  2754. * src/BtContextAwareCommand.cc
  2755. * src/BtContextAwareCommand.h
  2756. * src/BtExtendedMessage.cc
  2757. * src/BtExtendedMessage.h
  2758. * src/BtInterestedMessage.cc
  2759. * src/BtInterestedMessage.h
  2760. * src/BtNotInterestedMessage.cc
  2761. * src/BtNotInterestedMessage.h
  2762. * src/BtRegistry.cc
  2763. * src/BtRegistry.h
  2764. * src/BtSeederStateChoke.cc
  2765. * src/BtSetup.cc
  2766. * src/DHTGetPeersCommand.cc
  2767. * src/DHTGetPeersCommand.h
  2768. * src/DHTPeerAnnounceEntry.cc
  2769. * src/DHTPeerAnnounceEntry.h
  2770. * src/DHTPeerAnnounceStorage.cc
  2771. * src/DHTPeerAnnounceStorage.h
  2772. * src/DHTPeerLookupTask.cc
  2773. * src/DHTPeerLookupTask.h
  2774. * src/DHTSetup.cc
  2775. * src/DHTSetup.h
  2776. * src/DHTTaskFactory.h
  2777. * src/DHTTaskFactoryImpl.cc
  2778. * src/DHTTaskFactoryImpl.h
  2779. * src/DefaultBtAnnounce.cc
  2780. * src/DefaultBtInteractive.cc
  2781. * src/DefaultBtInteractive.h
  2782. * src/DefaultBtMessageDispatcher.cc
  2783. * src/DefaultBtMessageDispatcher.h
  2784. * src/DefaultBtMessageFactory.cc
  2785. * src/DefaultBtMessageFactory.h
  2786. * src/DefaultBtMessageReceiver.cc
  2787. * src/DefaultBtProgressInfoFile.cc
  2788. * src/DefaultBtProgressInfoFile.h
  2789. * src/DefaultBtRequestFactory.cc
  2790. * src/DefaultBtRequestFactory.h
  2791. * src/DefaultExtensionMessageFactory.cc
  2792. * src/DefaultExtensionMessageFactory.h
  2793. * src/DefaultPeerStorage.cc
  2794. * src/DefaultPeerStorage.h
  2795. * src/DownloadEngine.cc
  2796. * src/DownloadEngine.h
  2797. * src/InitiatorMSEHandshakeCommand.cc
  2798. * src/InitiatorMSEHandshakeCommand.h
  2799. * src/MSEHandshake.cc
  2800. * src/MSEHandshake.h
  2801. * src/Makefile.am
  2802. * src/Makefile.in
  2803. * src/PeerChokeCommand.cc
  2804. * src/PeerChokeCommand.h
  2805. * src/PeerInitiateConnectionCommand.cc
  2806. * src/PeerInitiateConnectionCommand.h
  2807. * src/PeerInteractionCommand.cc
  2808. * src/PeerInteractionCommand.h
  2809. * src/PeerObject.h
  2810. * src/PeerReceiveHandshakeCommand.cc
  2811. * src/PeerReceiveHandshakeCommand.h
  2812. * src/ReceiverMSEHandshakeCommand.cc
  2813. * src/RequestGroup.cc
  2814. * src/RequestGroup.h
  2815. * src/RequestGroupMan.cc
  2816. * src/RequestGroupMan.h
  2817. * src/SeedCheckCommand.cc
  2818. * src/SeedCheckCommand.h
  2819. * src/ShareRatioSeedCriteria.h
  2820. * src/SimpleBtMessage.cc
  2821. * src/TrackerWatcherCommand.cc
  2822. * src/TrackerWatcherCommand.h
  2823. * src/UTPexExtensionMessage.cc
  2824. * src/UTPexExtensionMessage.h
  2825. * test/BtCancelMessageTest.cc
  2826. * test/BtChokeMessageTest.cc
  2827. * test/BtExtendedMessageTest.cc
  2828. * test/BtInterestedMessageTest.cc
  2829. * test/BtNotInterestedMessageTest.cc
  2830. * test/BtPieceMessageTest.cc
  2831. * test/BtPortMessageTest.cc
  2832. * test/BtRegistryTest.cc
  2833. * test/BtRejectMessageTest.cc
  2834. * test/BtRequestMessageTest.cc
  2835. * test/DHTPeerAnnounceEntryTest.cc
  2836. * test/DHTPeerAnnounceStorageTest.cc
  2837. * test/DefaultBtMessageDispatcherTest.cc
  2838. * test/DefaultBtMessageFactoryTest.cc
  2839. * test/DefaultBtProgressInfoFileTest.cc
  2840. * test/DefaultBtRequestFactoryTest.cc
  2841. * test/DefaultExtensionMessageFactoryTest.cc
  2842. * test/MSEHandshakeTest.cc
  2843. * test/MockDHTTaskFactory.h
  2844. * test/ShareRatioSeedCriteriaTest.cc
  2845. * test/UTPexExtensionMessageTest.cc
  2846. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2847. Fixed compiler warning.
  2848. * test/UtilTest.cc
  2849. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2850. Treat Cookie object as session cookie if expiry = 0 is given.
  2851. With this change, you can specify session scoped cookies in an external
  2852. file setting expiry value to 0.
  2853. * src/Cookie.cc
  2854. * src/Cookie.h
  2855. * test/CookieParserTest.cc
  2856. * test/CookieStorageTest.cc
  2857. * test/CookieTest.cc
  2858. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2859. Changed signature of DHTMessageFactory::createResponseMessage().
  2860. Removed unused validateIDMatch.
  2861. * src/DHTMessageFactory.h
  2862. * src/DHTMessageFactoryImpl.cc
  2863. * src/DHTMessageFactoryImpl.h
  2864. * src/DHTMessageTracker.cc
  2865. * test/DHTMessageFactoryImplTest.cc
  2866. * test/MockDHTMessageFactory.h
  2867. Dropped DHT message coming from same ID of localhost.
  2868. * src/DHTMessageReceiver.cc
  2869. Rejected adding node whose ID is the same as localhost's.
  2870. * src/DHTRoutingTable.cc
  2871. * test/BtPortMessageTest.cc
  2872. * test/DHTRoutingTableTest.cc
  2873. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2874. Pool connection when redirection occurs with Content-Length = 0.
  2875. * src/HttpSkipResponseCommand.cc
  2876. * src/HttpSkipResponseCommand.h
  2877. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2878. Fixed the bug that causes time out when redirection occurs with
  2879. content-length 0.
  2880. * src/HttpResponseCommand.cc
  2881. * src/HttpSkipResponseCommand.cc
  2882. * src/HttpSkipResponseCommand.h
  2883. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2884. Now each status legends is shown only when it appears in Download
  2885. Result. If Download Result has no item, then status legend will not
  2886. be printed.
  2887. * src/RequestGroupMan.cc
  2888. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2889. Removed duplicate creation of OptionHandlers.
  2890. * src/option_processing.cc
  2891. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2892. Fixed the bug that causes segmentation fault when accessing files which
  2893. don't exist or are not included in --select-file option while
  2894. validating chunk checksum.
  2895. * src/MultiDiskAdaptor.cc
  2896. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2897. Fixed compiler warning.
  2898. * test/UtilTest.cc
  2899. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2900. Included cstdlib. This fixed the compile error with g++-4.3.2.
  2901. * src/IteratableChecksumValidator.cc
  2902. * src/IteratableChunkChecksumValidator.cc
  2903. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2904. * Release 0.16.2
  2905. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2906. Added Serbian translation. Updated Ukrainian translation.
  2907. Thanks to all translators.
  2908. * po/sr.po
  2909. * po/uk.po
  2910. * po/LINGUAS
  2911. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2912. Bump up version number to 0.16.2
  2913. * configure.ac
  2914. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2915. Added length equality test to operator== to drop a piece message
  2916. whose length does not match to the requested one.
  2917. * src/RequestSlot.cc
  2918. * test/DefaultBtMessageDispatcherTest.cc
  2919. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2920. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  2921. recieved.
  2922. In this fix, if a request larger than 16KiB length is received, aria2
  2923. disconnects the peer.
  2924. * src/BtConstants.h
  2925. * src/PeerMessageUtil.cc
  2926. * src/PeerMessageUtil.h
  2927. * test/BtRequestMessageTest.cc
  2928. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2929. * Release 0.16.1
  2930. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2931. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  2932. * doc/aria2c.1.txt
  2933. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2934. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  2935. Updated French, Simplified Chinese and Japanese translations.
  2936. Thanks to all translators.
  2937. en@quot and en@boldquot are also added.
  2938. * po/LINGUAS
  2939. * po/fr.po
  2940. * po/ja.po
  2941. * po/uk.po
  2942. * po/vi.po
  2943. * po/zh_CN.po
  2944. * po/zh_TW.po
  2945. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2946. Bump up version number to 0.16.1.
  2947. * configure.ac
  2948. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2949. Updated README.
  2950. * README
  2951. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2952. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  2953. not to replace '--' with em dash character.
  2954. * doc/aria2c.1.txt
  2955. * doc/makeman
  2956. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2957. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  2958. every SEC seconds.
  2959. * src/DownloadEngineFactory.cc
  2960. * src/OptionHandlerFactory.cc
  2961. * src/option_processing.cc
  2962. * src/usage_text.h
  2963. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2964. Fixed compile warning on linux-amd64
  2965. * src/FtpConnection.cc
  2966. * src/IteratableChunkChecksumValidator.cc
  2967. * src/MultiDiskAdaptor.cc
  2968. Fixed the bug that unit test fails on linux-amd64
  2969. * test/UtilTest.cc
  2970. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2971. Added --dht-file-path option to change the path to dht.dat, which is a
  2972. serialized DHT routing table.
  2973. * src/OptionHandlerFactory.cc
  2974. * src/option_processing.cc
  2975. * src/usage_text.h
  2976. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2977. Fixed possible underflow.
  2978. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  2979. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2980. Fixed the bug that last character in URI is not encoded.
  2981. * src/Request.cc
  2982. * test/RequestTest.cc
  2983. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2984. Fixed the bug that referer header field contains fragment.
  2985. Now Request class removes fragment part of URI and encodes it
  2986. in Request::setUri() and setReferer().
  2987. * src/Request.h
  2988. * src/Request.cc
  2989. * test/RequestTest.cc
  2990. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2991. Added missing m4 macros.
  2992. * m4/cppunit.m4
  2993. * m4/libgcrypt.m4
  2994. * m4/libgnutls-extra.m4
  2995. * m4/libgnutls.m4
  2996. * m4/libxml2.m4
  2997. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2998. Fixed compile error with gcc-4.4(snapshot)
  2999. * src/File.cc
  3000. * src/FtpConnection.cc
  3001. * src/OptionHandlerImpl.h
  3002. * src/Util.cc
  3003. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3004. Removed assert()
  3005. * src/SocketBuffer.cc (SocketBuffer::send)
  3006. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3007. Changed the type of _numNewConnection to unsigned int.
  3008. * src/ActivePeerConnectionCommand.cc
  3009. * src/ActivePeerConnectionCommand.h
  3010. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3011. * Release 0.16.0
  3012. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3013. Updated doc
  3014. * README
  3015. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3016. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3017. translations. Thanks to all translators.
  3018. * po/bg.po
  3019. * po/de.po
  3020. * po/fr.po
  3021. * po/ja.po
  3022. * po/zh_CN.po
  3023. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3024. Bump up version number to 0.16.0.
  3025. * configure.ac
  3026. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3027. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3028. int32_t.
  3029. Changed the type of count to int32_t.
  3030. * src/Metalink2RequestGroup.cc
  3031. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3032. Added test for Time::elapsed(time_t).
  3033. * test/TimeTest.cc
  3034. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3035. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3036. Util::difftv() should be used instead.
  3037. * src/TimeA2.cc
  3038. * src/TimeA2.h
  3039. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3040. Made socket for dht connections non-blocking
  3041. * src/DHTAbstractMessage.cc
  3042. * src/DHTAbstractMessage.h
  3043. * src/DHTConnection.h
  3044. * src/DHTConnectionImpl.cc
  3045. * src/DHTConnectionImpl.h
  3046. * src/DHTMessage.h
  3047. * src/DHTMessageDispatcherImpl.cc
  3048. * src/DHTMessageDispatcherImpl.h
  3049. * src/DHTUnknownMessage.cc
  3050. * src/DHTUnknownMessage.h
  3051. * src/SocketCore.cc
  3052. * src/SocketCore.h
  3053. * test/MockDHTMessage.h
  3054. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3055. Changed the type of offset to int.
  3056. * src/ParameterizedStringParser.cc
  3057. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3058. Made getAsInt() return int32_t
  3059. * src/Option.h
  3060. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3061. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3062. build.
  3063. * configure.ac
  3064. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3065. Use sqlite3_open if sqlite3_open_v2 is not available.
  3066. * src/Sqlite3MozCookieParser.cc
  3067. * src/Sqlite3MozCookieParser.h
  3068. * m4/sqlite3.m4
  3069. * test/Sqlite3MozCookieParserTest.cc
  3070. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3071. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3072. * src/BtPieceMessage.cc
  3073. * src/DHTPeerAnnounceStorage.cc
  3074. * src/DefaultPieceStorage.cc
  3075. * src/DownloadCommand.cc
  3076. * src/DownloadEngine.cc
  3077. * src/FtpConnection.cc
  3078. * src/PeerConnection.cc
  3079. * src/PeerMessageUtil.cc
  3080. * src/RequestGroup.cc
  3081. * src/RequestGroupMan.cc
  3082. * src/SimpleBtMessage.cc
  3083. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3084. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3085. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3086. * src/AbstractDiskWriter.cc
  3087. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3088. Don't set Request::supportsPersistentConnection() in HttpConnection
  3089. since this code is also used in AbstractProxyResponseCommand.
  3090. Moved those code to HttpResponse.
  3091. * src/HttpResponse.cc
  3092. * src/HttpResponse.h
  3093. * src/HttpConnection.cc
  3094. * src/HttpConnection.h
  3095. * src/HttpResponseCommand.cc
  3096. * test/HttpResponseTest.cc
  3097. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3098. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3099. The configuration is minimum: no torrent, no metalink, so there may be
  3100. other compile error on their code.
  3101. * src/a2netcompat.h
  3102. * src/File.cc
  3103. * src/File.h
  3104. * src/SocketCore.cc
  3105. * src/SocketCore.h
  3106. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3107. Made a socket of incoming peer non-blocking.
  3108. * src/PeerListenCommand.cc
  3109. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3110. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3111. whole message data is not sent in one send() call.
  3112. * src/BtPieceMessage.cc
  3113. * src/BtPieceMessage.h
  3114. * src/PeerConnection.cc
  3115. * src/PeerConnection.h
  3116. * src/SimpleBtMessage.cc
  3117. * src/SimpleBtMessage.h
  3118. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3119. Fixed the bug that aria2 downloads faster than max-download-limit when
  3120. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3121. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3122. , instead of sum of them.
  3123. * src/ActivePeerConnectionCommand.cc
  3124. * src/DefaultBtInteractive.cc
  3125. * src/DownloadCommand.cc
  3126. * src/PeerInteractionCommand.cc
  3127. * src/PeerReceiveHandshakeCommand.cc
  3128. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3129. Fixed the bug that HTTPS download fails.
  3130. * src/AbstractCommand.cc
  3131. * src/AbstractCommand.h
  3132. * src/DownloadCommand.cc
  3133. * src/FtpConnection.cc
  3134. * src/HttpConnection.cc
  3135. * src/HttpRequestCommand.cc
  3136. * src/HttpResponseCommand.cc
  3137. * src/HttpSkipResponseCommand.cc
  3138. * src/MSEHandshake.cc
  3139. * src/PeerConnection.cc
  3140. * src/SocketCore.cc
  3141. * src/SocketCore.h
  3142. Fixed the bug that aria2 doesn't download whole content body and cannot
  3143. reuse connection if chunked transfer encoding and gzip content encoding
  3144. are set.
  3145. * src/DownloadCommand.cc
  3146. * src/HttpSkipResponseCommand.cc
  3147. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3148. Updated man page.
  3149. * doc/aria2c.1.txt
  3150. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3151. When error occurred while aria2 was parsing an .aria2.conf file, print
  3152. the usage of the option that caused error.
  3153. * src/option_processing.cc
  3154. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3155. Fixed compile error on OptionHandlerException
  3156. * src/Makefile.am
  3157. * src/OptionHandlerException.cc
  3158. * src/OptionHandlerException.h
  3159. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3160. Moved message of the error to OptionHandlerException.h
  3161. * src/NameMatchOptionHandler.h
  3162. * src/OptionHandlerException.h
  3163. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3164. When error occurs while aria2 is parsing an command-line option, print
  3165. the usage of the option.
  3166. * src/Makefile.am
  3167. * src/NameMatchOptionHandler.h
  3168. * src/OptionHandlerException.h
  3169. * src/option_processing.cc
  3170. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3171. Reverted previous change.
  3172. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3173. username is not in URI.
  3174. * src/HttpRequest.cc
  3175. * src/Request.cc
  3176. * test/HttpRequestTest.cc
  3177. * test/RequestTest.cc
  3178. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3179. Now colon is required for username and password in FTP URL, like:
  3180. ftp://username:password@host.
  3181. If colon is not there, aria2 don't parse it as a username. For example,
  3182. aria2 don't retrieve username from ftp://username@host.
  3183. This fix was made in order to login FTP server via non-transparent ftp
  3184. proxy.
  3185. * src/Request.cc
  3186. * test/RequestTest.cc
  3187. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3188. Use netrc for HTTP.
  3189. Now FTP user/password is sent in Authorization header when
  3190. --ftp-via-http-proxy=get is given.
  3191. * src/AuthConfigFactory.cc
  3192. * src/HttpRequest.cc
  3193. * src/HttpRequest.h
  3194. * src/NetrcAuthResolver.cc
  3195. * src/NetrcAuthResolver.h
  3196. * src/OptionHandlerFactory.cc
  3197. * src/option_processing.cc
  3198. * src/prefs.cc
  3199. * src/prefs.h
  3200. * test/AuthConfigFactoryTest.cc
  3201. * test/HttpRequestTest.cc
  3202. * test/NetrcAuthResolverTest.cc
  3203. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3204. Issue PWD command first and get working directory and use it as a prefix
  3205. for CWD command.
  3206. * src/DownloadEngine.cc
  3207. * src/DownloadEngine.h
  3208. * src/FtpConnection.cc
  3209. * src/FtpConnection.h
  3210. * src/FtpFinishDownloadCommand.cc
  3211. * src/FtpInitiateConnectionCommand.cc
  3212. * src/FtpNegotiationCommand.cc
  3213. * src/FtpNegotiationCommand.h
  3214. * test/FtpConnectionTest.cc
  3215. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3216. Removed default user/pass for FTP user/pass, since it should not have
  3217. precedence over netrc configuration by default.
  3218. * src/OptionHandlerFactory.cc
  3219. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3220. Added debug log for socket event.
  3221. * src/AbstractCommand.cc
  3222. * src/PeerAbstractCommand.cc
  3223. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3224. Log microseconds.
  3225. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3226. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3227. Replaced HelpItem.cc with OptionHandler.cc.
  3228. * po/POTFILES.in
  3229. Updated po files with 'make update-po'
  3230. * po/aria2c.pot
  3231. * po/*.po
  3232. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3233. Removed possible values from the text.
  3234. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3235. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3236. Removed unused preferences:
  3237. PREF_NO_PREALLOCATION
  3238. PREF_STDOUT_LOG
  3239. PREF_TRACKER_MAX_TRIES
  3240. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3241. PREF_MIN_SEGMENT_SIZE
  3242. * src/option_processing.cc
  3243. * src/prefs.cc
  3244. * src/prefs.h
  3245. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3246. Integrated HelpItem into OptionParser to ease the workload for adding
  3247. new options. Removed default value from usage text.
  3248. * src/HelpItem.cc: Removed.
  3249. * src/HelpItem.h: Removed.
  3250. * src/HelpItemFactory.cc: Removed.
  3251. * src/HelpItemFactory.h: Removed.
  3252. * src/Makefile.am
  3253. * src/Makefile.in
  3254. * src/NameMatchOptionHandler.h
  3255. * src/OptionHandler.cc
  3256. * src/OptionHandler.h
  3257. * src/OptionHandlerFactory.cc
  3258. * src/OptionHandlerImpl.h
  3259. * src/OptionParser.cc
  3260. * src/OptionParser.h
  3261. * src/TagContainer.cc: Removed.
  3262. * src/TagContainer.h: Removed.
  3263. * src/TaggedItem.cc: Removed.
  3264. * src/TaggedItem.h: Removed.
  3265. * src/main.cc
  3266. * src/option_processing.cc
  3267. * src/usage_text.h
  3268. * src/version_usage.cc
  3269. * test/HelpItemTest.cc: Removed.
  3270. * test/Makefile.am
  3271. * test/Makefile.in
  3272. * test/OptionHandlerTest.cc
  3273. * test/OptionParserTest.cc
  3274. * test/TagContainerTest.cc: Removed.
  3275. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3276. Moved `TransferStat stat = ...' to inside the `if' clause.
  3277. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3278. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3279. Fixed the bug that a block in a piece is requested when same block is
  3280. already requested to the same peer in end game mode.
  3281. * src/BtRequestFactory.h
  3282. * src/DefaultBtInteractive.cc
  3283. * src/DefaultBtRequestFactory.cc
  3284. * src/DefaultBtRequestFactory.h
  3285. * src/DefaultPieceStorage.cc
  3286. * src/DefaultPieceStorage.h
  3287. * src/PieceStorage.h
  3288. * src/UnknownLengthPieceStorage.cc
  3289. * src/UnknownLengthPieceStorage.h
  3290. * test/DefaultBtRequestFactoryTest.cc
  3291. * test/DefaultPieceStorageTest.cc
  3292. * test/MockBtRequestFactory.h
  3293. * test/MockPieceStorage.h
  3294. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3295. Removed _uploadLength and _downloadLength from PeerSessionResource
  3296. and use PeerStat::_sessionUploadLength and
  3297. PeerStat::_sessionDownloadLength.
  3298. * src/PeerSessionResource.cc
  3299. * src/PeerSessionResource.h
  3300. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3301. Fixed the bug that prefixLength of split bucket which doesn't include
  3302. local node ID is incremented.
  3303. * src/DHTBucket.cc
  3304. * src/DHTBucket.h
  3305. * test/DHTBucketTest.cc
  3306. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3307. Added cookies.sqlite to EXTRA_DIST
  3308. * test/Makefile.am
  3309. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3310. Added Turkish translation. Updated French, German, Russian and
  3311. Simplified Chinese translations. Thanks to all translators.
  3312. * po/LINGUAS
  3313. * po/de.po
  3314. * po/fr.po
  3315. * po/ru.po
  3316. * po/tr.po
  3317. * po/zh_CN.po
  3318. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3319. Added deliminating text to the beginning of the log so that one can find
  3320. where the log starts easily.
  3321. * src/main.cc
  3322. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3323. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3324. to fix compile error when async DNS is not enabled by configuration.
  3325. * src/AbstractCommand.cc
  3326. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3327. If establishing conneciton to a server is failed, then mark error on
  3328. its ServerStat.
  3329. Added the cause of error to log when error event occurred.
  3330. Moved message string to message.h for translation.
  3331. * src/AbstractCommand.cc
  3332. * src/AbstractCommand.h
  3333. * src/FtpNegotiationCommand.cc
  3334. * src/HttpRequestCommand.cc
  3335. * src/PeerAbstractCommand.cc
  3336. * src/message.h
  3337. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3338. Added the function to get error message from socket.
  3339. * src/SocketCore.cc
  3340. * src/SocketCore.h
  3341. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3342. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3343. * src/RequestGroupMan.cc
  3344. * src/RequestGroupMan.h
  3345. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3346. If error event is received in epoll, then abort download immediately.
  3347. * src/AbstractCommand.cc
  3348. * src/Command.cc
  3349. * src/Command.h
  3350. * src/DownloadEngine.cc
  3351. * src/PeerAbstractCommand.cc
  3352. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3353. Added usage message for --uri-selector, --server-stat-of,
  3354. --server-stat-in, --server-stat-timeout options.
  3355. * src/HelpItemFactory.cc
  3356. * src/usage_text.h
  3357. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3358. Added upper limit of FTP response buffer. The current implementation
  3359. uses 4096bytes as a limit.
  3360. * src/FtpConnection.cc
  3361. * src/FtpConnection.h
  3362. * test/FtpConnectionTest.cc
  3363. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3364. Use non-blocking socket for TCP communication to avoid possible
  3365. blocking due to buffer full.
  3366. * src/AbstractProxyRequestCommand.cc
  3367. * src/FtpConnection.cc
  3368. * src/FtpConnection.h
  3369. * src/FtpNegotiationCommand.cc
  3370. * src/FtpNegotiationCommand.h
  3371. * src/HttpConnection.cc
  3372. * src/HttpConnection.h
  3373. * src/HttpRequestCommand.cc
  3374. * src/InitiatorMSEHandshakeCommand.cc
  3375. * src/InitiatorMSEHandshakeCommand.h
  3376. * src/MSEHandshake.cc
  3377. * src/MSEHandshake.h
  3378. * src/Makefile.am
  3379. * src/PeerConnection.cc
  3380. * src/PeerConnection.h
  3381. * src/PeerInteractionCommand.cc
  3382. * src/PeerListenCommand.cc
  3383. * src/ReceiverMSEHandshakeCommand.cc
  3384. * src/ReceiverMSEHandshakeCommand.h
  3385. * src/SocketBuffer.cc
  3386. * src/SocketBuffer.h
  3387. * src/SocketCore.cc
  3388. * src/SocketCore.h
  3389. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3390. Call setStatusRealtime() in constructor.
  3391. * src/RealtimeCommand.cc
  3392. * src/RealtimeCommand.h
  3393. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3394. Call Download::setNoWait(true) to execute newly created command without
  3395. a pause.
  3396. * src/AbstractCommand.cc
  3397. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3398. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3399. found' error from HTTP/FTP server NUM times without getting single
  3400. bytes of data, then force the download to fail.
  3401. Basically aria2 tris all URIs available. So if long list of URIs are
  3402. specified in Metalink, then aria2 will take a long time to fail
  3403. eventually if all URIs are outdated. This option eases this situation
  3404. to limit the number of servers to try.
  3405. * src/FtpNegotiationCommand.cc
  3406. * src/HelpItemFactory.cc
  3407. * src/HttpResponseCommand.cc
  3408. * src/OptionHandlerFactory.cc
  3409. * src/PeerStat.h
  3410. * src/RequestGroup.cc
  3411. * src/RequestGroup.h
  3412. * src/SegmentMan.cc
  3413. * src/SegmentMan.h
  3414. * src/option_processing.cc
  3415. * src/prefs.cc
  3416. * src/prefs.h
  3417. * src/usage_text.h
  3418. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3419. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3420. response even if more than one response is in it.
  3421. * src/FtpConnection.cc
  3422. * src/FtpConnection.h
  3423. * test/FtpConnectionTest.cc
  3424. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3425. Merged from stable-0.15
  3426. * m4/libcares.m4
  3427. Use pkg-config
  3428. * m4/sqlite3.m4
  3429. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3430. Removed unnecessary if statement.
  3431. * src/DefaultPieceStorage.cc (initPieceStorage)
  3432. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3433. Added --connect-timeout option to specify connect timeout in seconds.
  3434. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3435. connecting to BitTorrent peer is not controlled by this option.
  3436. * src/AbstractProxyRequestCommand.cc
  3437. * src/FtpNegotiationCommand.cc
  3438. * src/HelpItemFactory.cc
  3439. * src/HttpRequestCommand.cc
  3440. * src/OptionHandlerFactory.cc
  3441. * src/option_processing.cc
  3442. * src/prefs.cc
  3443. * src/prefs.h
  3444. * src/usage_text.h
  3445. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3446. Added help message for -R option.
  3447. * src/HelpItemFactory.cc
  3448. * src/usage_text.h
  3449. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3450. Added the message that the time is in local time zone.
  3451. * src/RequestGroup.cc
  3452. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3453. Implemented the ability to get timestamp from remote FTP server using
  3454. MDTM command described in RFC3659.
  3455. * src/FtpConnection.cc
  3456. * src/FtpConnection.h
  3457. * src/FtpNegotiationCommand.cc
  3458. * src/FtpNegotiationCommand.h
  3459. * test/FtpConnectionTest.cc
  3460. * test/Makefile.am
  3461. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3462. Implemented the ability to get timestamp from remote HTTP server and
  3463. apply it to local file. To enable this feature, --remote-time option
  3464. is added. No usage text has been written yet.
  3465. If several servers returns difference timestamp, then aria2 uses latest
  3466. one.
  3467. * src/CopyDiskAdaptor.cc
  3468. * src/CopyDiskAdaptor.h
  3469. * src/DirectDiskAdaptor.cc
  3470. * src/DirectDiskAdaptor.h
  3471. * src/DiskAdaptor.h
  3472. * src/File.cc
  3473. * src/File.h
  3474. * src/HttpHeader.cc
  3475. * src/HttpHeader.h
  3476. * src/HttpResponse.cc
  3477. * src/HttpResponse.h
  3478. * src/HttpResponseCommand.cc
  3479. * src/HttpResponseCommand.h
  3480. * src/MultiDiskAdaptor.cc
  3481. * src/MultiDiskAdaptor.h
  3482. * src/OptionHandlerFactory.cc
  3483. * src/RequestGroup.cc
  3484. * src/RequestGroup.h
  3485. * src/RequestGroupMan.cc
  3486. * src/option_processing.cc
  3487. * src/prefs.cc
  3488. * src/prefs.h
  3489. * test/CopyDiskAdaptorTest.cc
  3490. * test/FileTest.cc
  3491. * test/Makefile.am
  3492. * test/Makefile.in
  3493. * test/MultiDiskAdaptorTest.cc
  3494. * test/TestUtil.cc
  3495. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3496. Fixed the bug that DiskWriterEntry is not created when its
  3497. FileEntry.isRequested() is false and it doesn't share a piece with
  3498. other FileEntries that are requested. This bug causes segmentation fault
  3499. in the end.
  3500. * src/MultiDiskAdaptor.cc
  3501. * src/MultiDiskAdaptor.h
  3502. * src/MultiFileAllocationIterator.cc
  3503. * test/MultiDiskAdaptorTest.cc
  3504. * test/MultiFileAllocationIteratorTest.cc
  3505. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3506. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3507. called if the number of file entries are greater than max open files.
  3508. * src/AbstractSingleDiskAdaptor.cc
  3509. * src/AbstractSingleDiskAdaptor.h
  3510. * src/DiskAdaptor.h
  3511. * src/MultiDiskAdaptor.cc
  3512. * src/MultiDiskAdaptor.h
  3513. * test/MultiDiskAdaptorTest.cc
  3514. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3515. Added a constuctor that receives struct timeval.
  3516. Added operator<.
  3517. * src/TimeA2.cc
  3518. * src/TimeA2.h
  3519. * test/TimeTest.cc
  3520. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3521. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3522. * src/CookieParser.cc
  3523. * test/CookieParserTest.cc
  3524. * test/HttpResponseTest.cc
  3525. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3526. Implmented the functions to parse date.
  3527. * src/TimeA2.cc
  3528. * src/TimeA2.h
  3529. * test/TimeTest.cc
  3530. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3531. Added "Firefox3 Cookie" feature to FeatureConfig
  3532. * src/FeatureConfig.cc
  3533. * src/FeatureConfig.h
  3534. * test/FeatureConfigTest.cc
  3535. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3536. Bump up version number to 0.16.0b
  3537. * configure.ac
  3538. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3539. Use pkg-config if is is available.
  3540. * m4/openssl.m4
  3541. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3542. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3543. * src/BtAnnounce.h
  3544. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3545. If an error occurred with a URI, remove identical URI from remaining
  3546. URI list because it is likely that same error occurred in the end and it
  3547. is waste of time.
  3548. * src/AbstractCommand.cc
  3549. * src/RequestGroup.cc
  3550. * src/RequestGroup.h
  3551. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3552. Removed wrong comment.
  3553. * src/DefaultPeerStorage.cc
  3554. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3555. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3556. Added return value of getpid() to argument of srand() to achieve more
  3557. randomized value.
  3558. * src/SimpleRandomizer.cc
  3559. * src/SimpleRandomizer.h
  3560. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3561. Contact tracker frequently when the number of connections are 0 and
  3562. download is not finished yet.
  3563. * src/ActivePeerConnectionCommand.cc
  3564. * src/BtAnnounce.h
  3565. * src/DefaultBtAnnounce.cc
  3566. * src/DefaultBtAnnounce.h
  3567. * test/MockBtAnnounce.h
  3568. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3569. Moved threshold values to UTPexExtensionMessage.
  3570. * src/DefaultBtInteractive.cc
  3571. * src/Peer.cc
  3572. * src/Peer.h
  3573. * src/UTPexExtensionMessage.cc
  3574. * src/UTPexExtensionMessage.h
  3575. * test/UTPexExtensionMessageTest.cc
  3576. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3577. Added _incoming member to Peer class and made it true if the peer
  3578. initiated connection. Don't add those peer to UTPex message.
  3579. If extended handshake is received, assign _incoming to false.
  3580. * src/DefaultBtInteractive.cc
  3581. * src/HandshakeExtensionMessage.cc
  3582. * src/Peer.cc
  3583. * src/Peer.h
  3584. * src/PeerListenCommand.cc
  3585. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3586. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3587. Encoding Decoder. Removed size threshold for turning off on the fly
  3588. inflation because resulting file may or may not be inflated depending
  3589. on the file size and I think it is not expected by users.
  3590. This change fixes segmentation fault when Metalink file contains gzipped
  3591. file and its filesize is provided.
  3592. * src/HttpResponseCommand.cc
  3593. * src/HttpResponseCommand.h
  3594. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3595. Made Cookie immutable.
  3596. * src/Cookie.cc
  3597. * src/Cookie.h
  3598. * src/CookieParser.cc
  3599. * src/CookieParser.h
  3600. * src/CookieStorage.cc
  3601. * test/CookieParserTest.cc
  3602. * test/CookieStorageTest.cc
  3603. * test/NsCookieParserTest.cc
  3604. * test/Sqlite3MozCookieParserTest.cc
  3605. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3606. Removed CookieBox, CookieBoxFactory.
  3607. * src/CookieBox.cc
  3608. * src/CookieBox.h
  3609. * src/CookieBoxFactory.cc
  3610. * src/CookieBoxFactory.h
  3611. * src/Makefile.am
  3612. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3613. Use CookieStorage class instead of CookieBox class.
  3614. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3615. * src/AbstractProxyRequestCommand.cc
  3616. * src/CookieStorage.cc
  3617. * src/DownloadEngine.cc
  3618. * src/DownloadEngine.h
  3619. * src/HttpConnection.cc
  3620. * src/HttpConnection.h
  3621. * src/HttpRequest.cc
  3622. * src/HttpRequest.h
  3623. * src/HttpRequestCommand.cc
  3624. * src/HttpResponse.cc
  3625. * src/HttpResponseCommand.cc
  3626. * src/HttpSkipResponseCommand.cc
  3627. * src/Makefile.am
  3628. * src/MultiUrlRequestInfo.cc
  3629. * src/Request.cc
  3630. * src/Request.h
  3631. * src/main.cc
  3632. * test/AllTest.cc
  3633. * test/CookieStorageTest.cc
  3634. * test/CookieTest.cc
  3635. * test/HttpRequestTest.cc
  3636. * test/HttpResponseTest.cc
  3637. * test/Makefile.am
  3638. * test/NsCookieParserTest.cc
  3639. * test/Sqlite3MozCookieParserTest.cc
  3640. * test/nscookietest.txt
  3641. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3642. Updated
  3643. * test/Cookies.sqlite
  3644. * test/nscookietest.txt
  3645. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3646. Added tests for CookieStorage::load()
  3647. * test/CookieStorageTest.cc
  3648. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3649. Added CookieStorage class which is based on RFC2109 and manages cookies
  3650. more strictly than CookieBox and CookieBoxFactory class.
  3651. * src/CookieStorage.cc
  3652. * src/CookieStorage.h
  3653. * src/Cookie.cc
  3654. * src/Cookie.h
  3655. * test/CookieStorageTest.cc
  3656. * test/CookieTest.cc
  3657. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3658. Fixed the bug that commands are created more than the number of pieces.
  3659. * src/RequestGroup.cc
  3660. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3661. Fixed infinite loop bug in FTP when SIZE command failed.
  3662. * src/FtpNegotiationCommand.cc
  3663. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3664. Removed DirectDiskAdaptorTest.h
  3665. * test/Makefile.am
  3666. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3667. Fixed chunk checksum validation cannot detect trailing garbage data.
  3668. BUG#2074141
  3669. * src/AbstractSingleDiskAdaptor.cc
  3670. * src/AbstractSingleDiskAdaptor.h
  3671. * src/CheckIntegrityEntry.cc
  3672. * src/CheckIntegrityEntry.h
  3673. * src/DiskAdaptor.h
  3674. * src/MultiDiskAdaptor.cc
  3675. * src/MultiDiskAdaptor.h
  3676. * src/RequestGroup.cc
  3677. * test/DirectDiskAdaptorTest.cc
  3678. * test/MultiDiskAdaptorTest.cc
  3679. * test/TestUtil.cc
  3680. * test/TestUtil.h
  3681. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3682. Bump up version number of dht.dat file to 3. In version 3 format, time
  3683. is stored in 64bit, network byte order.
  3684. New build can load old format(version 2) but it saves the file in new
  3685. format. It means once you used new build, your dht.dat becomes
  3686. incompatible with older build.
  3687. * src/DHTRoutingTableDeserializer.cc
  3688. * src/DHTRoutingTableSerializer.cc
  3689. * test/DHTRoutingTableSerializerTest.cc
  3690. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3691. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3692. * test/Makefile.am
  3693. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3694. Bump up version number of .aria2 control file to 0001.
  3695. New aria2 can still load version 0000 file but it saves the file in
  3696. version 0001 format. It means that new aria2 can resume download
  3697. started by old aria2 but the opposite is not true.
  3698. * src/DefaultBtProgressInfoFile.cc
  3699. * src/DefaultBtProgressInfoFile.h
  3700. * test/DefaultBtProgressInfoFileTest.cc
  3701. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3702. Added ntoh64 and hton64 as inline functions.
  3703. * src/Util.cc
  3704. * test/UtilTest.cc
  3705. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3706. Added sqlite3 depenency and Firefox3 cookie support.
  3707. * README
  3708. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3709. State that firefox3 cookie is supported explicitly in the usage.
  3710. * src/usage_text.h
  3711. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3712. Externalized message.
  3713. * src/RequestGroupMan.cc
  3714. * src/message.h
  3715. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3716. Save temporary file first and rename to the destination on success.
  3717. Added test cases.
  3718. * src/RequestGroupMan.cc
  3719. * test/RequestGroupManTest.cc
  3720. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3721. Fixed the bug that the number of connected peer is exceeding the limit
  3722. (55 by default) in seeding mode.
  3723. Multiplied 0.8 to _maxUploadSpeedLimit.
  3724. * src/ActivePeerConnectionCommand.cc
  3725. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3726. Clear table item.
  3727. * src/Dictionary.cc
  3728. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3729. Fixed error handling of lseek.
  3730. * src/AbstractDiskWriter.cc
  3731. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3732. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3733. style cookie file.
  3734. * src/usage_text.h
  3735. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3736. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3737. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3738. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3739. * src/Util.cc
  3740. * src/Util.h
  3741. * src/CookieParser.cc
  3742. * test/UtilTest.cc
  3743. * test/CookieParserTest.cc
  3744. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3745. Separate the implementation to load old mozilla format of cookie to
  3746. NsCookieParser class.
  3747. * src/CookieBoxFactory.cc
  3748. * src/CookieBoxFactory.h
  3749. * src/NsCookieParser.cc
  3750. * src/NsCookieParser.h
  3751. * test/NsCookieParserTest.cc
  3752. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3753. Made parse() const
  3754. * src/Sqlite3MozCookieParser.cc
  3755. * src/Sqlite3MozCookieParser.h
  3756. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3757. Added firefox3 cookie support based on the patch submitted by
  3758. tizianomueller.
  3759. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3760. this functionality.
  3761. * configure.ac
  3762. * m4/sqlite3.m4
  3763. * src/CookieBoxFactory.cc
  3764. * src/CookieBoxFactory.h
  3765. * src/Makefile.am
  3766. * src/Makefile.in
  3767. * src/Sqlite3MozCookieParser.cc
  3768. * src/Sqlite3MozCookieParser.h
  3769. * src/main.cc
  3770. * test/CookieBoxFactoryTest.cc
  3771. * test/Makefile.am
  3772. * test/Makefile.in
  3773. * test/Sqlite3MozCookieParserTest.cc
  3774. * test/badcookies.sqlite
  3775. * test/cookies.sqlite
  3776. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3777. Added Danish and Greek translations.
  3778. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3779. Great thanks to all translators.
  3780. * po/LINGUAS
  3781. * po/el.po
  3782. * po/da.po
  3783. * po/es.po
  3784. * po/ca.po
  3785. * po/nn.po
  3786. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3787. Fixed man page: --follow-bittorrent should be --follow-torrent
  3788. * doc/aria2c.1.txt
  3789. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3790. Fixed: numCommand is less than the value specified in -C option.
  3791. * src/RequestGroup.cc
  3792. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3793. Fixed occasional assertion failure in PieceSegment.
  3794. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3795. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3796. creation of duplicate segments and one of the segment was finished then
  3797. assertion failure was caused.
  3798. * src/SegmentMan.cc
  3799. * test/SegmentManTest.cc
  3800. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3801. Added options to load/save the server's performance/status to a file
  3802. and the timeout to drop their data.
  3803. --server-stat-of=FILE specifies the file to which performance data
  3804. is saved.
  3805. --server-stat-if=FILE specifies the file to read previously saved
  3806. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3807. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3808. TIMEOUT is specified in seconds and the default value is 24hours.
  3809. * src/MultiUrlRequestInfo.cc
  3810. * src/OptionHandlerFactory.cc
  3811. * src/RequestGroupMan.cc
  3812. * src/RequestGroupMan.h
  3813. * src/ServerStatMan.cc
  3814. * src/ServerStatMan.h
  3815. * src/option_processing.cc
  3816. * src/prefs.cc
  3817. * src/prefs.h
  3818. * test/ServerStatManTest.cc
  3819. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3820. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3821. * src/ServerStatMan.cc
  3822. * src/ServerStatMan.h
  3823. * test/ServerStatManTest.cc
  3824. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3825. Implemented ServerStatMan::load(...) function and its test case.
  3826. * src/ServerStat.cc
  3827. * src/ServerStat.h
  3828. * src/ServerStatMan.cc
  3829. * test/ServerStatManTest.cc
  3830. * test/ServerStatTest.cc
  3831. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3832. Use time_t instead of int32_t. Use int64_t where milli second is
  3833. expected.
  3834. * src/TimeA2.cc
  3835. * src/TimeA2.h
  3836. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3837. Implemented ServerStatMan::save(...) function and its test case.
  3838. * src/ServerStat.cc
  3839. * src/ServerStat.h
  3840. * src/ServerStatMan.cc
  3841. * src/ServerStatMan.h
  3842. * test/ServerStatManTest.cc
  3843. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3844. Now aria2 uses name attribute in Metalink as local filename in
  3845. BitTorrent downloads. BUG#2033999
  3846. * src/BtContext.h
  3847. * src/BtDependency.cc
  3848. * src/DefaultBtContext.cc
  3849. * src/DefaultBtContext.h
  3850. * src/SingleFileDownloadContext.cc
  3851. * src/SingleFileDownloadContext.h
  3852. * test/BtDependencyTest.cc
  3853. * test/DefaultBtContextTest.cc
  3854. * test/MockBtContext.h
  3855. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3856. Added AC_C_BIGENDIAN
  3857. * src/configure.ac
  3858. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3859. Limited numCommand less than or equal to the number of piece.
  3860. * src/RequestGroup.cc
  3861. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3862. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  3863. directive.
  3864. * test/DefaultPieceStorageTest.cc
  3865. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3866. Fixed memory leak in test code
  3867. * test/AnnounceListTest.cc
  3868. * test/DefaultPeerListProcessorTest.cc
  3869. * test/DefaultPeerStorageTest.cc
  3870. * test/MetaFileUtilTest.cc
  3871. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3872. Fixed wrong argument passing to BitfieldMan::isBitSet()
  3873. * src/DefaultPieceStorage.cc
  3874. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3875. Initialized _directIOAllowed
  3876. * src/MultiDiskAdaptor.cc
  3877. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3878. Fixed memory leak
  3879. * src/GZipDecoder.cc
  3880. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3881. Fixed memory leak
  3882. * src/MetalinkParserStateMachine.cc
  3883. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3884. Fixed memory leak
  3885. * src/Dictionary.cc
  3886. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3887. Fixed memory leak
  3888. * src/IteratableChunkChecksumValidator.h
  3889. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3890. Fixed unmatched malloc/free.
  3891. * src/IteratableChunkChecksumValidator.cc
  3892. * src/IteratableChecksumValidator.cc
  3893. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3894. Removed max chunk size check. This change fixes BUG#2040169
  3895. * src/ChunkedDecoder.cc
  3896. * src/ChunkedDecoder.h
  3897. * test/ChunkedDecoderTest.cc
  3898. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3899. Implemented download speed based URI selection algorithm.
  3900. Introduced new option --uri-selector.
  3901. If --uri-selector=feedback is given, aria2 uses download speed observed
  3902. in the previous downloads and chooses fastest server in the URI list.
  3903. Currently at most 10 URIs are considered to introduce randomeness for
  3904. finding better servers. The speed is average download speed in the
  3905. downloads.
  3906. On the other hand, if --uri-selector=inorder is given, which is default,
  3907. URI is tried in order in URI list.
  3908. The usage text for the new option has not been written yet.
  3909. * src/AbstractCommand.cc
  3910. * src/DownloadCommand.cc
  3911. * src/DownloadEngine.cc
  3912. * src/DownloadEngineFactory.cc
  3913. * src/InOrderURISelector.cc
  3914. * src/InOrderURISelector.h
  3915. * src/OptionHandlerFactory.cc
  3916. * src/PeerStat.h
  3917. * src/RequestGroup.cc
  3918. * src/RequestGroup.h
  3919. * src/RequestGroupMan.cc
  3920. * src/RequestGroupMan.h
  3921. * src/SegmentMan.cc
  3922. * src/SegmentMan.h
  3923. * src/ServerStat.cc
  3924. * src/ServerStat.h
  3925. * src/ServerStatMan.cc
  3926. * src/ServerStatMan.h
  3927. * src/ServerStatURISelector.cc
  3928. * src/ServerStatURISelector.h
  3929. * src/URISelector.h
  3930. * src/option_processing.cc
  3931. * src/prefs.cc
  3932. * src/prefs.h
  3933. * test/InOrderURISelectorTest.cc
  3934. * test/RequestGroupManTest.cc
  3935. * test/ServerStatManTest.cc
  3936. * test/ServerStatURISelectorTest.cc
  3937. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3938. * Release 0.15.1+2
  3939. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3940. Bump up version number to 0.15.1+2
  3941. * configure.ac
  3942. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3943. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  3944. * m4/aria2_arg.m4
  3945. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3946. * Release 0.15.1+1
  3947. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3948. Bump up version number to 0.15.1+1
  3949. * configure.ac
  3950. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3951. Fixed the bug that causes segmentaion fault when resuming download
  3952. using metalink without size tag. Reproducible only using HTTP URI.
  3953. * src/HttpResponseCommand.cc
  3954. * src/FtpNegotiationCommand.cc
  3955. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3956. * Release 0.15.1
  3957. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3958. Updated Bulgarian and French translations, thanks to all translators.
  3959. * po/bg.po
  3960. * po/fr.po
  3961. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3962. Bump up version number to 0.15.1
  3963. * configure.ac
  3964. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3965. Avoid repeated call of gettimeofday() when calculating speed.
  3966. * src/SpeedCalc.cc
  3967. * src/SpeedCalc.h
  3968. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3969. Removed writable check when socket's send buffer is full in BitTorrent
  3970. downloads to lower CPU usage.
  3971. * src/PeerInteractionCommand.cc
  3972. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3973. Fixed broken gzip inflation.
  3974. Turn off segmented downloading if gzip content is smaller than or equal
  3975. to 1MiB and inflate the data on the fly, because HTTP response header
  3976. doesn't contain the length of inflated file we can't determin where
  3977. the chunk of data should be written.
  3978. On the other hand, if gzip content is larger than 1MB, then turn off
  3979. on the fly inflation, because some servers returns "content-type: gzip"
  3980. for *.tgz, *.gz files.
  3981. * src/DownloadCommand.cc
  3982. * src/HttpResponseCommand.cc
  3983. * src/HttpResponseCommand.h
  3984. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3985. Applied tizianomueller's patch to fix compile error.
  3986. * test/BitfieldManTest.cc
  3987. * test/BtRequestMessageTest.cc
  3988. * test/DefaultBtContextTest.cc
  3989. * test/DefaultDiskWriterTest.cc
  3990. * test/DefaultPieceStorageTest.cc
  3991. * test/HttpHeaderProcessorTest.cc
  3992. * test/HttpResponseTest.cc
  3993. * test/Metalink2RequestGroupTest.cc
  3994. * test/MetalinkParserControllerTest.cc
  3995. * test/MetalinkProcessorTest.cc
  3996. * test/PeerSessionResourceTest.cc
  3997. * test/UtilTest.cc
  3998. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3999. * Release 0.15.0
  4000. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4001. Reordered src files in POTFILES.in so that usage text appears first.
  4002. * po/POTFILES.in
  4003. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4004. Bump up version number to 0.15.0
  4005. * configure.ac
  4006. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4007. Added Bulgarian translation.
  4008. Updated Catalan, Spanish, French and Japanese translations.
  4009. Thanks to all translators.
  4010. * po/LINGUAS
  4011. * po/bg.po
  4012. * po/ca.po
  4013. * po/es.po
  4014. * po/fr.po
  4015. * po/ja.po
  4016. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4017. Updated feature list. Added libz for dependency section.
  4018. Added a description about unit testing using CppUnit.
  4019. * README
  4020. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4021. Added a test for libz. Quoted where it is necessary.
  4022. * build_test.sh
  4023. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4024. Added GZip to `Enabled Features' list.
  4025. * src/FeatureConfig.cc
  4026. * src/FeatureConfig.h
  4027. * test/FeatureConfigTest.cc
  4028. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4029. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4030. the transfer has not yet started.
  4031. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4032. * src/SegmentMan.cc
  4033. * src/SegmentMan.h
  4034. * test/SegmentManTest.cc
  4035. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4036. Cache last calculated average download/upload speed.
  4037. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4038. cached value.
  4039. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4040. * src/PeerStat.h
  4041. * src/SpeedCalc.cc
  4042. * src/SpeedCalc.h
  4043. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4044. Call parseUrl directly.
  4045. * src/Request.cc (resetUrl)
  4046. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4047. Supported absolute/relative path in Location header field.
  4048. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4049. * src/HttpHeader.cc
  4050. * src/HttpHeader.h
  4051. * src/HttpResponse.cc
  4052. * src/HttpSkipResponseCommand.cc
  4053. * src/Request.cc
  4054. * test/HttpHeaderTest.cc
  4055. * test/HttpResponseTest.cc
  4056. * test/RequestTest.cc
  4057. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4058. Changed help text for --load-cookie option.
  4059. * doc/aria2c.1.txt
  4060. * src/usage_text.h
  4061. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4062. Regenerated test/Makefile.in to remove stale ChangeLog.
  4063. * test/Makefile.in
  4064. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4065. Updated po files.
  4066. * po/aria2c.pot
  4067. * po/*.po
  4068. * po/*.gmo
  4069. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4070. Bump up version number to 0.15.0b
  4071. * configure.ac
  4072. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4073. Externalize messages.
  4074. * src/RequestGroupMan.cc
  4075. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4076. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. Use File::exists() instead of File::isFile() to allow non-regular file
  4078. such as block special files.
  4079. * src/AbstractDiskWriter.cc
  4080. * src/MultiDiskWriter.cc
  4081. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4082. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4083. * src/gai_strerror.h
  4084. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4085. Fixed compile error. Thanks gknauf for the patch.
  4086. * src/asctime_r.c
  4087. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4088. Included asctime_r.h from a2time.h.
  4089. * src/a2time.h
  4090. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4091. Added a message "aria2 doesn't verify signature" to log message when
  4092. signature file is saved.
  4093. * src/RequestGroupMan.cc
  4094. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4095. Added the ability to save signature when download is completed if
  4096. signature is available. The filename of signature file is the path to
  4097. download file followed by ".sig". If it already exists, then signature
  4098. will not be saved.
  4099. * src/RequestGroupMan.cc
  4100. * src/Signature.cc
  4101. * test/SignatureTest.cc
  4102. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4103. Updated the descriptions for --bt-seed-unverified.
  4104. * doc/aria2c.1
  4105. * doc/aria2c.1.html
  4106. * doc/aria2c.1.txt
  4107. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4108. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4109. that this is not going to verify files using piece hashes.
  4110. * src/HelpItemFactory.cc
  4111. * src/OptionHandlerFactory.cc
  4112. * src/RequestGroup.cc
  4113. * src/option_processing.cc
  4114. * src/prefs.cc
  4115. * src/prefs.h
  4116. * src/usage_text.h
  4117. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4118. Added the ability to retrieve signature from Metalink file.
  4119. A retrieved signature is stored in Signature class and it is held by
  4120. DownloadContext class. Note that aria2 doesn't verify signature.
  4121. * src/DownloadContext.cc
  4122. * src/DownloadContext.h
  4123. * src/Makefile.am
  4124. * src/Makefile.in
  4125. * src/Metalink2RequestGroup.cc
  4126. * src/MetalinkEntry.cc
  4127. * src/MetalinkEntry.h
  4128. * src/MetalinkParserController.cc
  4129. * src/MetalinkParserController.h
  4130. * src/MetalinkParserStateMachine.cc
  4131. * src/MetalinkParserStateMachine.h
  4132. * src/Signature.cc
  4133. * src/Signature.h
  4134. * src/SignatureMetalinkParserState.cc
  4135. * src/SignatureMetalinkParserState.h
  4136. * src/VerificationMetalinkParserState.cc
  4137. * src/VerificationMetalinkParserState.h
  4138. * test/Metalink2RequestGroupTest.cc
  4139. * test/MetalinkParserControllerTest.cc
  4140. * test/MetalinkProcessorTest.cc
  4141. * test/test.xml
  4142. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4143. Close DiskAdaptor after renaming file.
  4144. * src/RequestGroup.cc
  4145. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4146. Corrected indentation
  4147. * src/DefaultBtProgressInfoFile.cc
  4148. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4149. Moved the calls of std::ios::exceptions() inside of try-catch block
  4150. because if an error occurred in constructor of std::fstream, then
  4151. exception is thrown immediately when std::ios::exceptions() is called
  4152. which results unhandled exception and aria2c aborts.
  4153. * src/DefaultBtProgressInfoFile.cc
  4154. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4155. Added the test for the previous change in DefaultBtContext.cc
  4156. * test/DefaultBtContextTest.cc
  4157. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4158. Fixed the bug that causes infinite loop when the number of pieces are
  4159. fewer than allowed fast set size which is 10 by default.
  4160. * src/DefaultBtContext.cc
  4161. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4162. Updated the descriptions for -j, -s. Added --bt-seed.
  4163. * doc/aria2c.1
  4164. * doc/aria2c.1.html
  4165. * doc/aria2c.1.txt
  4166. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4167. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4168. aria2 seeds previously downloaded files without validating piece hashs.
  4169. * src/HelpItemFactory.cc
  4170. * src/OptionHandlerFactory.cc
  4171. * src/RequestGroup.cc
  4172. * src/option_processing.cc
  4173. * src/prefs.cc
  4174. * src/prefs.h
  4175. * src/usage_text.h
  4176. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4177. Updated DESCRIPTION of man page.
  4178. * doc/aria2c.1
  4179. * doc/aria2c.1.html
  4180. * doc/aria2c.1.txt
  4181. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4182. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4183. Don't define `struct addrinfo' when __sun is defined.
  4184. * src/getaddrinfo.h
  4185. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4186. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4187. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4188. second argument is of type `struct _stati64'. Otherwise it is defined as
  4189. `struct stat'.
  4190. * src/AbstractDiskWriter.cc
  4191. * src/File.cc
  4192. * src/File.h
  4193. * src/a2io.h
  4194. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. Fixed the compile error in hurd-i386
  4196. See the original bug report:
  4197. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4198. * src/a2io.h
  4199. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4200. Code cleanup.
  4201. * src/PeerAbstractCommand.cc
  4202. * src/PeerAbstractCommand.h
  4203. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4204. Removed TransferEncoding.
  4205. * src/DownloadCommand.cc
  4206. * src/DownloadCommand.h
  4207. * src/HttpResponseCommand.cc
  4208. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. Updated po files.
  4210. * po/aria2c.pot
  4211. * po/*.po
  4212. * po/*.gmo
  4213. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4214. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4215. * src/A2STR.cc
  4216. * src/A2STR.h
  4217. * src/ChunkedDecoder.cc
  4218. * src/ChunkedDecoder.h
  4219. * src/ChunkedEncoding.cc: Removed
  4220. * src/ChunkedEncoding.h: Removed
  4221. * src/DownloadCommand.cc
  4222. * src/DownloadCommand.h
  4223. * src/HttpDownloadCommand.cc
  4224. * src/HttpResponse.cc
  4225. * src/HttpResponse.h
  4226. * src/HttpResponseCommand.cc
  4227. * src/HttpSkipResponseCommand.cc
  4228. * src/HttpSkipResponseCommand.h
  4229. * src/Makefile.am
  4230. * src/TransferEncoding.h: Removed
  4231. * test/ChunkedDecoderTest.cc
  4232. * test/ChunkedEncodingTest.cc: Removed
  4233. * test/HttpResponseTest.cc
  4234. * test/Makefile.am
  4235. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4236. Use append instead of insert.
  4237. * src/GZipDecoder.cc
  4238. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4239. Updated doc
  4240. * src/Decoder.h
  4241. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4242. Updated usage text for -s option.
  4243. * src/usage_text.h
  4244. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4245. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4246. * src/Request.cc
  4247. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4248. Cleaned up configure.ac.
  4249. * configure.ac
  4250. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4251. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4252. AC_ARG_ENABLE.
  4253. * configure.ac
  4254. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4255. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4256. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4257. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4258. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4259. fly and writes decoded data to a local disk.
  4260. * README
  4261. * README.html
  4262. * configure.ac
  4263. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4264. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4265. * m4/libz.m4
  4266. * src/Decoder.h
  4267. * src/DownloadCommand.cc
  4268. * src/DownloadCommand.h
  4269. * src/Exception.h
  4270. * src/GZipDecoder.cc
  4271. * src/GZipDecoder.h
  4272. * src/HttpHeader.cc
  4273. * src/HttpHeader.h
  4274. * src/HttpRequest.cc
  4275. * src/HttpRequest.h
  4276. * src/HttpResponse.cc
  4277. * src/HttpResponse.h
  4278. * src/HttpResponseCommand.cc
  4279. * src/Makefile.am
  4280. * test/GZipDecoderTest.cc
  4281. * test/HttpRequestTest.cc
  4282. * test/HttpResponseTest.cc
  4283. * test/Makefile.am
  4284. * test/Makefile.in
  4285. * test/gzip_decode_test.gz
  4286. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4287. Clarified usage of -j option.
  4288. * src/usage_text.h
  4289. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4290. Disabled getting size from the response of RETR.
  4291. If SIZE command failed, then disable resuming and segmented downloading.
  4292. * src/FtpConnection.cc
  4293. * src/FtpConnection.h
  4294. * src/FtpNegotiationCommand.cc
  4295. * src/FtpNegotiationCommand.h
  4296. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4297. Use digits to find first byte of file size, which makes the intention
  4298. of the code clearer.
  4299. * src/FtpConnection.cc
  4300. Don't call validateTotalLength() when size is 0.
  4301. * src/FtpNegotiationCommand.cc
  4302. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4303. Updated po files.
  4304. * po/aria2c.pot
  4305. * po/*.gmo
  4306. * po/*.po
  4307. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4308. Clarified usage text for --split option.
  4309. * src/usage_text.h
  4310. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4311. Bump up version number to 0.15.0dev. "dev" means "development"
  4312. version, which means I started the development of the next release!
  4313. * src/configure.ac
  4314. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4315. If FTP server returns negative response with REST raw command and
  4316. requested range is not 0, throw exception. If requested range is 0,
  4317. continue download a file from 0 byte.
  4318. * src/FtpNegotiationCommand.cc
  4319. * src/FtpNegotiationCommand.h
  4320. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. Supported FTP server which don't recognize SIZE raw command.
  4322. If SIZE raw command is failed, aria2 will try to get file size
  4323. from the response of RETR raw command. If both attempts are failed,
  4324. then resuming and segmented downloading are disabled.
  4325. * src/FtpConnection.cc
  4326. * src/FtpConnection.h
  4327. * src/FtpNegotiationCommand.cc
  4328. * src/FtpNegotiationCommand.h
  4329. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4330. * Release 0.14.0+1
  4331. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4332. Bump up version number to 0.14.0+1
  4333. * src/configure.ac
  4334. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. Fixed the code that refers static member variable from non-static
  4336. context.
  4337. * src/DefaultPeerStorage.cc
  4338. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4339. * Release 0.14.0
  4340. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4341. Added build test script
  4342. * build_test.sh
  4343. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4344. Updated ja.po
  4345. * src/ja.po
  4346. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4347. Bump up version number to 0.14.0
  4348. * src/configure.ac
  4349. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. Updated ja.po and fr.po. Great thanks for french translators and
  4351. Sebastien WILLEMIJNS.
  4352. * po/fr.po
  4353. * po/ja.po
  4354. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4355. Added configure option to enable/disable epoll support.
  4356. * configure.ac
  4357. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4358. Updated man page.
  4359. * doc/aria2c.1.txt
  4360. * doc/aria2c.1
  4361. * doc/aria2c.1.html
  4362. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4363. Added missing default value '5' to the usage of --split option.
  4364. * src/HelpItemFactory.cc
  4365. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4366. Filled up pieces based on the number of missing blocks, rather than
  4367. simplay the number of piece * block length.
  4368. * src/BtRequestFactory.h
  4369. * src/DefaultBtInteractive.cc
  4370. * src/DefaultBtInteractive.h
  4371. * src/DefaultBtRequestFactory.cc
  4372. * src/DefaultBtRequestFactory.h
  4373. * src/Piece.cc
  4374. * src/Piece.h
  4375. * test/BitfieldManTest.cc
  4376. * test/DefaultBtRequestFactoryTest.cc
  4377. * test/MockBtRequestFactory.h
  4378. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4379. Made _epEvents a member variable.
  4380. * src/DownloadEngine.cc
  4381. * src/DownloadEngine.h
  4382. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4383. Cancel download if http redirect is bounded more than 20 times.
  4384. * src/AbstractCommand.cc
  4385. * src/HttpSkipResponseCommand.cc
  4386. * src/Request.cc
  4387. * src/Request.h
  4388. * test/RequestTest.cc
  4389. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4390. Fixed unhandled exception(removed keyword `new').
  4391. * src/SocketCore.cc (initEPOLL)
  4392. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4393. Removed visit(const MetaEntry*)
  4394. * src/MetaEntryVisitor.h:
  4395. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4396. and made them virtual.
  4397. * src/BencodeVisitor.h
  4398. * src/BencodeVisitor.cc
  4399. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4400. Updated po files.
  4401. * po/aria2c.pot
  4402. * po/*.po
  4403. * po/*.gmo
  4404. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4405. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4406. the number of socket to watch out.
  4407. * src/PeerInteractionCommand.cc
  4408. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4409. When there is not enough space in disk when writing a chunk of data,
  4410. aria2 now prints the message to the console to warn user and aborts
  4411. its download. Not all downloads are canceled because some downloads
  4412. may use another disk or partition. BUG#1640332
  4413. * src/AbstractDiskWriter.cc
  4414. * src/PeerAbstractCommand.cc
  4415. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4416. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4417. setHaltRequested(true) to cancel download.
  4418. * src/PeerInteractionCommand.h
  4419. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4420. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4421. socket from int to sock_t as sockets are unsigned in Windows.
  4422. For AsyncNameResolver, DownloadEngine, I did additional modification
  4423. for the portion of the code changed according to epoll support.
  4424. I defined sock_t in a2netcompat.h to use sock_t without including
  4425. SocketCore.h.
  4426. * src/AsyncNameResolver.cc
  4427. * src/AsyncNameResolver.h
  4428. * src/DownloadEngine.cc
  4429. * src/DownloadEngine.h
  4430. * src/SocketCore.cc
  4431. * src/SocketCore.h
  4432. * src/a2netcompat.h
  4433. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4434. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4435. changes in the patch were applied.
  4436. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4437. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4438. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4439. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4440. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4441. a2io.h and common.h were modified.
  4442. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4443. MinGW.
  4444. * src/common.h: Changed off_t to 64 bit in MinGW.
  4445. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4447. only a2netcompat.h is modified.
  4448. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4449. directives.
  4450. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4452. only gai_strerror.h is modified.
  4453. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4454. winsock errors in MinGW.
  4455. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4456. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4457. follow sources are applied.
  4458. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4459. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4460. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4461. I included locale.h from Platform.cc.
  4462. * src/main.cc: Moved common setup/teardown code to Platform class.
  4463. * test/AllTest.cc: Use Platform class.
  4464. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4465. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4466. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4467. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4468. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4469. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4470. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4471. aria2-0.13.2+1-mingw-2.patch.
  4472. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4473. systems which don't have termious.h. I moved the directive inside of
  4474. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4475. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4476. anyway.
  4477. * src/asctime_r.h
  4478. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4479. I added 2nd argument to the prototype declaration.
  4480. * src/StringFormat.cc: Get rid of vasprintf.
  4481. * src/getaddrinfo.h: Fixed constants.
  4482. * configure.ac: Added the check for asctime_r function.
  4483. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4484. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Added writable test for Socket when the sending message is in progress.
  4486. Usually the sending message is piece message. Without wriable check,
  4487. upload latency is dropped to more than 1sec.
  4488. * src/PeerInteractionCommand.cc
  4489. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4490. Create only requested files and files which shares a piece with
  4491. requested file in multi-torrent downloads. Directory structures are
  4492. also created in the same rule.
  4493. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4494. DiskWriterEntry as in the previous implementation.
  4495. * src/MultiDiskWriter.cc
  4496. * src/MultiFileAllocationIterator.cc
  4497. * src/MultiFileAllocationIterator.h
  4498. * test/MultiFileAllocationIteratorTest.cc
  4499. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4500. Commented out -lprofiler
  4501. * src/Makefile.am
  4502. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4503. Bump up version number to 0.14.0b.
  4504. * src/configure.ac
  4505. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Actively establish connection to peers in seeding, when peer cache
  4507. is not full and max upload speed limit is not reached.
  4508. * src/ActivePeerConnectionCommand.cc
  4509. * src/ActivePeerConnectionCommand.h
  4510. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4511. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4512. to make room more fleshy, recently found peers.
  4513. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4514. it.
  4515. * src/DefaultPeerStorage.cc
  4516. * test/DefaultPeerStorageTest.cc
  4517. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4518. Returns cached data only when the previous receiveHandshake() is called
  4519. with peek = true.
  4520. * src/PeerConnection.cc (receiveHandshake)
  4521. * src/PeerConnection.h (receiveHandshake)
  4522. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4523. Changed default value of -s option from 1 to 5.
  4524. Also max value of -s option is changed from 5 to 16.
  4525. * src/HelpItemFactory.cc
  4526. * src/OptionHandlerFactory.cc
  4527. * src/option_processing.cc
  4528. * src/usage_text.h
  4529. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4530. Changed -s options behavior. Now it means the number of connections
  4531. made simultaneously in each http/ftp download.
  4532. If 1 URL is specified, the behavior is the same with old implementation.
  4533. If -s N is given and more than N URLs are specified, first N URLs are
  4534. used and remaining URLs are used for backup. If less than N URLs are
  4535. specified, some of URLs are used more than once so that totally N
  4536. connections are made simultaneously.
  4537. * src/main.cc
  4538. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4539. Included missing iosfwd or ostream header.
  4540. * src/RequestGroupMan.cc
  4541. * src/TaggedItem.cc
  4542. * src/TaggedItem.h
  4543. * src/Util.cc
  4544. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4545. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4546. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4547. * src/HttpConnection.cc: Included missing sstream.
  4548. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4549. Added --bt-max-open-files option.
  4550. * src/DefaultPieceStorage.cc
  4551. * src/HelpItemFactory.cc
  4552. * src/MultiDiskAdaptor.cc
  4553. * src/MultiDiskAdaptor.h
  4554. * src/OptionHandlerFactory.cc
  4555. * src/option_processing.cc
  4556. * src/prefs.cc
  4557. * src/prefs.h
  4558. * src/usage_text.h
  4559. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4560. Fixed the bug that aria2 aborts when a path to a directory is given
  4561. in command-line.
  4562. * src/ProtocolDetector.cc
  4563. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4564. Limited the number files opened in each BitTorrent download. The default
  4565. value is 100. The option to change this value will be added.
  4566. * src/MultiDiskAdaptor.cc
  4567. * src/MultiDiskAdaptor.h
  4568. * src/MultiFileAllocationIterator.cc
  4569. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4570. Fixed the bug that HTTP downloads don't start with old libraries.
  4571. * src/HttpHeaderProcessor.cc
  4572. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4573. Use empty() instead of size() > 0.
  4574. * src/HttpConnection.cc
  4575. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4576. Drop connection if the incoming peer ID is the same with localhost's
  4577. one. The previous implementation drops connection when incoming peer's
  4578. IP address is the same with localhost's one.
  4579. * src/PeerListenCommand.cc
  4580. * src/DefaultBtInteractive.cc
  4581. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4582. Returns cached data without checking whether socket is readable
  4583. if the cache is available.
  4584. * src/PeerConnection.cc (receiveHandshake)
  4585. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4586. Included stdint.h
  4587. * src/common.h
  4588. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. Removed duplicate HAVE_GETTIMEOFDAY
  4590. * src/Makefile.am
  4591. * src/Makefile.in
  4592. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4593. Use interval as a minInterval when minInterval is not supplied.
  4594. * src/DefaultBtAnnounce.cc
  4595. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4596. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4597. attempt is failed, then 2nd attempt get kicked out more quickly.
  4598. And it is now static const member of DefaultBtAnnounce.
  4599. * src/DefaultBtAnnounce.h
  4600. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4601. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4602. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4603. * src/ActivePeerConnectionCommand.cc
  4604. * src/BtConstants.h
  4605. * src/BtRuntime.h
  4606. * src/DHTGetPeersCommand.cc
  4607. * src/DefaultBtAnnounce.cc
  4608. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4609. BtRuntime::MAX_PEERS.
  4610. * src/DefaultPeerStorage.h
  4611. * src/InitiatorMSEHandshakeCommand.cc
  4612. * src/PeerInitiateConnectionCommand.cc
  4613. * src/PeerInteractionCommand.cc
  4614. * src/PeerReceiveHandshakeCommand.cc
  4615. * src/TrackerWatcherCommand.cc
  4616. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4617. Always Connect to _numNewConnection
  4618. * src/ActivePeerConnectionCommand.cc
  4619. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4620. Made `begin' unsigned int.
  4621. * src/GrowSegment.h
  4622. * src/Piece.cc
  4623. * src/Piece.h
  4624. * src/PiecedSegment.cc
  4625. * src/PiecedSegment.h
  4626. * src/Segment.h
  4627. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4628. Calculate piece hash when data is arrived if the data is arrived in
  4629. order. This removes additional read operation for hash calculation.
  4630. If the data is arrived in out of order, the hash is calucated when the
  4631. piece is completed. This is the same behavior as the old implementation.
  4632. * src/BtPieceMessage.cc
  4633. * src/DefaultBtProgressInfoFile.cc
  4634. * src/DefaultPieceStorage.cc
  4635. * src/DownloadCommand.cc
  4636. * src/DownloadCommand.h
  4637. * src/DownloadEngine.cc
  4638. * src/GrowSegment.cc
  4639. * src/GrowSegment.h
  4640. * src/Piece.cc
  4641. * src/Piece.h
  4642. * src/PiecedSegment.cc
  4643. * src/PiecedSegment.h
  4644. * src/Segment.h
  4645. * test/PieceTest.cc
  4646. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4647. Try to keep the ordering of outgoing piece message.
  4648. * src/DefaultBtMessageDispatcher.cc
  4649. (DefaultBtMessageDispatcher::sendMessages)
  4650. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4651. Fixed busy loop when error/hup epoll events occur.
  4652. * src/AbstractCommand.cc
  4653. * src/PeerAbstractCommand.cc
  4654. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4655. Added --bt-request-peer-speed-limit option, which was a constant
  4656. SLOW_SPEED_THRESHOLD.
  4657. * src/ActivePeerConnectionCommand.cc
  4658. * src/ActivePeerConnectionCommand.h
  4659. * src/BtConstants.h
  4660. * src/HelpItemFactory.cc
  4661. * src/OptionHandlerFactory.cc
  4662. * src/PeerReceiveHandshakeCommand.cc
  4663. * src/option_processing.cc
  4664. * src/prefs.cc
  4665. * src/prefs.h
  4666. * src/usage_text.h
  4667. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4668. Removed repeated call of getTopDirPath(). Instead, call it once and
  4669. cache the result.
  4670. * src/MultiDiskAdaptor.cc
  4671. * src/MultiDiskAdaptor.h
  4672. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4673. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4674. Fixed compile error on debian etch.
  4675. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4676. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4677. it is undefined.
  4678. * src/Util.cc (ULLONG_MAX)
  4679. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4680. Added epoll support. Use epoll if it is available. If not, use select.
  4681. When async dns is enabled in compile time, epoll support is enabled
  4682. only when aria2 is built with c-ares. This condition statement is
  4683. defined in a2io.h.
  4684. Currently aria2 supports both c-ares and ares, but ares is maintained
  4685. for quite a while and debian already has c-ares package, ares support
  4686. will be dropped in the future version.
  4687. * configure.ac
  4688. * src/AbstractCommand.cc
  4689. * src/AsyncNameResolver.cc
  4690. * src/AsyncNameResolver.h
  4691. * src/Command.cc
  4692. * src/Command.h
  4693. * src/DownloadEngine.cc
  4694. * src/DownloadEngine.h
  4695. * src/PeerAbstractCommand.cc
  4696. * src/SocketCore.cc
  4697. * src/SocketCore.h
  4698. * src/a2io.h
  4699. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4700. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4701. directive.
  4702. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4703. Do not do write operation to /dev/null file.
  4704. * src/LogFactory.cc
  4705. * src/SimpleLogger.cc
  4706. Replaced vasprintf with vsnprintf
  4707. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4708. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4709. * src/BtRequestMessage.cc
  4710. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4711. for segmentation fault caused by previous commit.
  4712. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4713. Reduced the usage of gettimeofday().
  4714. * src/DefaultBtMessageDispatcher.cc
  4715. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4716. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4717. * src/RequestSlot.cc
  4718. * src/RequestSlot.h
  4719. (RequestSlot::isTimeout)
  4720. Made RequestSlot have a reference to Piece object to avoid find
  4721. Piece repeatedly.
  4722. * src/DefaultBtMessageDispatcher.cc
  4723. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4724. * src/RequestSlot.cc
  4725. * src/RequestSlot.h
  4726. (RequestSlot::getPiece)
  4727. * test/DefaultBtMessageDispatcherTest.cc
  4728. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4729. * src/TimeA2.cc
  4730. * src/TimeA2.h
  4731. (Time::difference): New function.
  4732. (Time::elapsed): Done optimization.
  4733. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4734. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4735. directive.
  4736. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4737. * src/option_processing.cc: Added missing `defined' keyword to #if
  4738. directive.
  4739. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4740. Bump up version number to 0.13.2+1
  4741. * src/configure.ac
  4742. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. Refactored broken outstanding piece handling.
  4744. * src/DefaultPieceStorage.cc
  4745. * src/DefaultPieceStorage.h
  4746. * src/Piece.cc
  4747. * src/Piece.h
  4748. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4749. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4750. name collision of static variable and predefined macro.
  4751. * src/BtContext.cc
  4752. * src/BtContext.h
  4753. * src/CookieBoxFactory.cc
  4754. * src/CookieBoxFactory.h
  4755. * src/CookieParser.cc
  4756. * src/CookieParser.h
  4757. * src/DefaultBtContext.cc
  4758. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4759. * src/RequestGroup.cc
  4760. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4761. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4762. * Release 0.13.2
  4763. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4764. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4765. * po/fr.po
  4766. * po/ja.po
  4767. * po/aria2c.pot
  4768. * po/*.po
  4769. * po/*.gmo
  4770. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4771. Bump up version number to 0.13.2
  4772. * src/configure.ac
  4773. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4774. Refactord.
  4775. * src/RequestGroupMan.cc
  4776. (removeStoppedGroup)
  4777. (fillRequestGroupFromReserver)
  4778. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4779. Fixed compile error on Ubuntu.
  4780. * src/BtPieceMessage.cc
  4781. * src/MessageDigestHelper.cc
  4782. * src/Util.cc
  4783. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4784. Fixed compile error when configured with --disable-bittorrent
  4785. * test/DownloadHandlerFactoryTest.cc
  4786. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4787. Done make update-po
  4788. * po/aria2c.pot
  4789. * po/*.po
  4790. * po/*.gmo
  4791. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4792. Bump up version number to 0.13.2rc.
  4793. * src/configure.ac
  4794. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4795. Made option name bold. Updated SYNOPSIS to make it more readable.
  4796. * doc/aria2c.1.txt
  4797. * doc/aria2c.1
  4798. * doc/aria2c.1.html
  4799. * src/version_usage.cc
  4800. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4801. Refactored. Use std::string instead of size and char*.
  4802. * Data.cc
  4803. * Data.h
  4804. * test/Data.cc
  4805. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4806. Added trimSelf(). Rewritten trim() to use trimSelf().
  4807. * Util.cc
  4808. * Util.h
  4809. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4810. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4811. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4812. Fixed compile error when configured with --disable-metalink.
  4813. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4814. * test/FeatureConfigTest.cc
  4815. * test/DownloadHandlerFactoryTest.cc
  4816. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4817. Fixed compile error when configured with --without-gnutls
  4818. --without-openssl
  4819. * src/main.cc
  4820. * test/DefaultBtProgressInfoFileTest.cc
  4821. * test/SegmentManTest.cc
  4822. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4823. Fixed compile error with OpenSSL.
  4824. * src/IteratableChunkChecksumValidator.cc
  4825. * src/LibsslDHKeyExchange.h
  4826. * src/MessageDigestHelper.cc
  4827. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Revert the default value of --max-concurrent-downloads to 5.
  4829. Revert the default value of --metalink-servers to 5.
  4830. Man pages was also updated.
  4831. * src/option_processing.cc
  4832. * doc/aria2c.1.txt
  4833. * doc/aria2c.1.html
  4834. * doc/aria2c.1
  4835. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4836. Returns const reference:
  4837. DownloadContext::getPieceHash, DownloadContext::getName,
  4838. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4839. BtContext::getInfoHashAsString,
  4840. * src/BtContext.h
  4841. * src/DefaultBtContext.cc
  4842. * src/DefaultBtContext.h
  4843. * src/DownloadContext.h
  4844. * src/SingleFileDownloadContext.h
  4845. * test/MockBtContext.h
  4846. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4847. * src/RequestGroup.h (getDir): Removed.
  4848. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4849. Returns const reference. The internal urlencode function was optimized
  4850. a little bit.
  4851. * src/Request.cc
  4852. * src/Request.h
  4853. * src/HttpRequest.cc
  4854. * src/HttpRequest.h
  4855. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4856. Defined option name and possible values as std::string to reduce
  4857. temporary string object creation in runtime.
  4858. * src/HelpItemFactory.cc
  4859. * src/LogFactory.cc
  4860. * src/Option.cc
  4861. * src/OptionHandlerFactory.cc
  4862. * src/option_processing.cc
  4863. * src/prefs.cc
  4864. * src/prefs.h
  4865. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4866. Return const reference.
  4867. * src/DownloadHandlerConstants.cc
  4868. * src/DownloadHandlerConstants.h
  4869. (getMetalinkExtensions)
  4870. (getMetalinkContentTypes)
  4871. (getBtExtensions)
  4872. (getBtContentTypes)
  4873. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4874. * src/HttpHeader.cc (get): Rewritten.
  4875. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4876. Make HttpHeader::getFirst(...) return const reference.
  4877. * src/HttpHeader.cc
  4878. * src/HttpHeader.h
  4879. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4880. Use Option::getAsBool(...) instead of Option::get(...) and compare
  4881. it with V_TRUE.
  4882. * src/DefaultPieceStorage.cc
  4883. * src/DownloadCommand.cc
  4884. * src/FtpNegotiationCommand.cc
  4885. * src/HttpRequest.cc
  4886. * src/InitiateConnectionCommand.cc
  4887. * src/RequestGroup.cc
  4888. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4889. Made Option::get(...) return const reference of std::string.
  4890. * src/Option.cc
  4891. * src/Option.h
  4892. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4893. Replaced std:copy with insert.
  4894. * src/DefaultBtMessageDispatcher.cc
  4895. * src/DefaultPieceStorage.cc
  4896. * src/DownloadEngineFactory.cc
  4897. * src/RequestGroup.cc
  4898. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4899. Included SocketCore.h to fix compiler warning.
  4900. * src/InitiateConnectionCommand.cc
  4901. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4902. Put piece selection strategy algorithm to RarestPieceSelector class,
  4903. Added a switch to choose whether randomized selection so that unit
  4904. tests emit same results in, possibly, win32.
  4905. * src/DefaultPieceStorage.cc
  4906. * src/DefaultPieceStorage.h
  4907. * src/RarestPieceSelector.cc
  4908. * src/RarestPieceSelector.h
  4909. * test/DefaultPieceStorageTest.cc
  4910. * test/RarestPieceSelectorTest.cc
  4911. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4912. Don't pool connection if HTTP proxy is enabled.
  4913. * src/FtpFinishDownloadCommand.cc
  4914. * src/FtpNegotiationCommand.cc
  4915. * src/HttpSkipResponseCommand.cc
  4916. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4917. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  4918. * src/AbstractCommand.cc
  4919. * src/AbstractCommand.h
  4920. * src/ActivePeerConnectionCommand.cc
  4921. * src/FtpInitiateConnectionCommand.cc
  4922. * src/HttpInitiateConnectionCommand.cc
  4923. * src/InitiateConnectionCommandFactory.cc
  4924. * src/PeerAbstractCommand.cc
  4925. * src/PeerAbstractCommand.h
  4926. * src/PeerInitiateConnectionCommand.cc
  4927. * src/TrackerWatcherCommand.cc
  4928. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4929. Sort RequestSlot in ascending order and manipulate them using
  4930. lower_bound.
  4931. * src/DefaultBtMessageDispatcher.cc
  4932. * src/DefaultBtMessageDispatcher.h
  4933. (getMessageQueue): Added const qualifier.
  4934. (getRequestSlots): Added const qualifier.
  4935. (sendMessages): Use empty() instead of size().
  4936. (doCancelSendingPieceAction): Use HandleEvent object.
  4937. (doAbortOutstandingRequestAction): Rewritten.
  4938. (doChokedAction): Rewritten.
  4939. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  4940. (isOutstandingRequest): Rewritten.
  4941. (getOutstandingRequest): Rewritten.
  4942. (removeOutstandingRequest): Rewritten.
  4943. (addOutstandingRequest): Rewritten.
  4944. * src/RequestSlot.cc
  4945. * src/RequestSlot.h
  4946. (operator=): Rewritten.
  4947. (operator!=): New function.
  4948. (operator<): New function.
  4949. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4950. * src/DefaultBtRequestFactory.cc
  4951. (doChokedAction): Rewritten.
  4952. (removeCompletedPiece): Rewritten.
  4953. (removeTargetPiece): Rewritten.
  4954. (createRequestMessages): Added the debug log.
  4955. (createRequestMessagesOnEndGame: Added the debug log.
  4956. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4957. Added the debug log message.
  4958. * src/BtPieceMessage.cc (doReceivedAction)
  4959. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4960. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  4961. used lower_bound to process them rather than linear search.
  4962. * src/DHTPeerAnnounceStorage.cc
  4963. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4964. Call subtractPieceStats from ~PeerInteractionCommand only when the
  4965. peer has at least one completed piece.
  4966. * src/Peer.cc
  4967. * src/Peer.h
  4968. * src/PeerInteractionCommand.cc
  4969. * src/PeerSessionResource.cc
  4970. * src/PeerSessionResource.h
  4971. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Removed unnecessary sorting
  4973. * src/DefaultPieceStorage (DefaultPieceStorage)
  4974. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4975. Rewritten the portion of the code that mangaes allowed fast indexes.
  4976. * src/PeerSessionResource.cc
  4977. * src/PeerSessionResource.h
  4978. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Removed the invalid string including '\r' from ru.po and
  4980. did make update-po.
  4981. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4982. Added --log-level and --summary-interval to man page.
  4983. * doc/aria2c.1.txt
  4984. * doc/aria2c.1.html
  4985. * doc/aria2c.1
  4986. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4987. Added --log-level option to specify log level. Log messages under
  4988. the specified level are not output. Default value is `debug'.
  4989. * src/HelpItemFactory.cc
  4990. * src/LogFactory.cc
  4991. * src/LogFactory.h
  4992. * src/Logger.h
  4993. * src/OptionHandlerFactory.cc
  4994. * src/SimpleLogger.cc
  4995. * src/SimpleLogger.h
  4996. * src/main.cc
  4997. * src/option_processing.cc
  4998. * src/prefs.h
  4999. * src/usage_text.h
  5000. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5001. Print download progress summary of all parallel downloads in specified
  5002. interval, default 60 secs. While aria2 could download several files
  5003. in parallel (see -j option), it displayed just first download progress,
  5004. and the other downloads are hidden from the users. This new feature
  5005. prints all downloads currently in-progress to the console so that you
  5006. can check the status of all downloads. The interval can be adjusted
  5007. by --summary-interval option.
  5008. The progress readout is now cut so that all fits in the one line of
  5009. console.
  5010. * src/ConsoleStatCalc.cc
  5011. * src/ConsoleStatCalc.h
  5012. * src/HelpItemFactory.cc
  5013. * src/OptionHandlerFactory.cc
  5014. * src/RequestGroupMan.cc
  5015. * src/RequestGroupMan.h
  5016. * src/main.cc
  5017. * src/option_processing.cc
  5018. * src/prefs.h
  5019. * src/usage_text.h
  5020. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5022. * src/DownloadEngine.cc (DownloadEngine)
  5023. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5024. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5025. defined.
  5026. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5027. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5028. Use erase+lower_bound+insert instead of sort.
  5029. * src/DefaultPieceStorage.cc (addPieceStats)
  5030. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5031. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5032. * src/A2STR.cc
  5033. * src/A2STR.h
  5034. * src/OptionParser.cc (parse)
  5035. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5036. Defined fake filename `[tracker.announce]' as static const std::string.
  5037. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5038. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5039. Defined default filename `index.html' as static const std::string
  5040. * src/SingleFileDownloadContext.cc
  5041. * src/SingleFileDownloadContext.h
  5042. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5043. Defined "[MEMORY]" as static const std::string.
  5044. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5045. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5046. Defined control file's version number as static const std::string.
  5047. * src/DefaultBtProgressInfoFile.cc
  5048. * src/DefaultBtProgressInfoFile.h
  5049. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5050. Use Request::METHOD_GET
  5051. * src/RequestGroup.cc (createNextCommandWithAdj)
  5052. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5053. Defined "OK", "ERR", "INPR" as static const std::string
  5054. * src/RequestGroupMan.cc (showDownloadResults)
  5055. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5056. Defined default client used in extended handshake as static const
  5057. std::string
  5058. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5059. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5060. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5061. * src/HttpConnection.cc (eraseConfidentialInfo)
  5062. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Defined default ftp user and password as static const std::string
  5064. * src/AuthConfigFactory.cc
  5065. * src/AuthConfigFactory.h
  5066. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5067. Defined strings used in netrc as static const std::string
  5068. * src/Netrc.cc
  5069. * src/Netrc.h
  5070. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5071. Defined HTTP status as static const std::string
  5072. * src/AbstractProxyResponseCommand.cc
  5073. * src/HttpHeader.cc
  5074. * src/HttpHeader.h
  5075. * src/HttpResponse.cc
  5076. * src/HttpResponseCommand.cc
  5077. * src/HttpSkipResponseCommand.cc
  5078. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5079. Defined "\r\n", "A", "I" as static const std::string
  5080. * src/A2STR.cc
  5081. * src/A2STR.h
  5082. * src/FtpConnection.cc
  5083. * src/FtpConnection.h
  5084. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Added COLON_C(".") and used it in Request::parseUrl()
  5086. * src/A2STR.cc
  5087. * src/A2STR.h
  5088. * src/Request.cc (parseUrl)
  5089. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5090. Changed the type of padName from `const std::string&' to `const char*'.
  5091. * src/MSEHandshake.cc (verifyPadLength)
  5092. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5093. Defined "sha1" as static const std::string.
  5094. * src/MetalinkParserController.cc
  5095. * src/MetalinkParserController.h
  5096. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5097. Defined message digest algorithm name as static const std::string
  5098. * src/DHTTokenTracker.cc
  5099. * src/DHTUtil.cc
  5100. * src/DefaultBtContext.cc
  5101. * src/MSEHandshake.cc
  5102. * src/MessageDigestHelper.cc
  5103. * src/Peer.cc
  5104. * src/messageDigest.cc
  5105. * src/messageDigest.h
  5106. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5107. Made string literals used in SAX parser static const std::string.
  5108. * src/FileMetalinkParserState.cc
  5109. * src/FileMetalinkParserState.h
  5110. * src/FilesMetalinkParserState.cc
  5111. * src/FilesMetalinkParserState.h
  5112. * src/InitialMetalinkParserState.cc
  5113. * src/InitialMetalinkParserState.h
  5114. * src/MetalinkMetalinkParserState.cc
  5115. * src/MetalinkMetalinkParserState.h
  5116. * src/PiecesMetalinkParserState.cc
  5117. * src/PiecesMetalinkParserState.h
  5118. * src/ResourcesMetalinkParserState.cc
  5119. * src/ResourcesMetalinkParserState.h
  5120. * src/VerificationMetalinkParserState.cc
  5121. * src/VerificationMetalinkParserState.h
  5122. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5123. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5124. * src/A2STR.cc
  5125. * src/A2STR.h
  5126. * src/File.cc
  5127. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5128. Defined static const std::string IP("ip"), PORT("port") and use them
  5129. instead of string literals.
  5130. * src/DefaultPeerListProcessor.cc
  5131. * src/DefaultPeerListProcessor.h
  5132. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5133. Made string literals for torrent file processing static const
  5134. std::string.
  5135. * src/BtContext.cc
  5136. * src/BtContext.h
  5137. * src/DefaultBtContext.cc
  5138. * src/DefaultBtContext.h
  5139. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5140. Made string literal for tracker response static const std::string
  5141. * src/BtAnnounce.cc
  5142. * src/BtAnnounce.h
  5143. * src/DefaultBtAnnounce.cc
  5144. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5145. Use DHTMessage::T instead of "t".
  5146. * src/DHTMessageTracker.cc (messageArrived)
  5147. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5148. Made keyName static const. Made trimmed charset static const
  5149. std::string.
  5150. * src/Util.cc (getContentDispositionFilename)
  5151. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5152. Made USER_AGENT const. Made "/" static const std::string.
  5153. * src/A2STR.cc
  5154. * src/A2STR.h
  5155. * src/HttpRequest.cc
  5156. * src/HttpRequest.h
  5157. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5158. Made string listeral to static const std::string:
  5159. "Content-Range", "Content-Length"
  5160. * src/HttpHeader.cc
  5161. * src/HttpHeader.h
  5162. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5163. Made string listeral to static const std::string.
  5164. * src/HttpConnection.cc
  5165. * src/HttpHeader.cc
  5166. * src/HttpHeader.h
  5167. * src/HttpResponse.cc
  5168. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Made string listeral to static const std::string.
  5170. * src/A2STR.cc
  5171. * src/A2STR.h
  5172. * src/SimpleLogger.cc
  5173. * src/SimpleLogger.h
  5174. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5175. Made string literal to static const std::string.
  5176. Rewritten CookieParser::setField.
  5177. * src/A2STR.cc
  5178. * src/A2STR.h
  5179. * src/CookieBoxFactory.cc
  5180. * src/CookieBoxFactory.h
  5181. * src/CookieParser.cc
  5182. * src/CookieParser.h
  5183. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5184. Made string literal to static const std::string
  5185. * src/DHTAbstractMessage.cc
  5186. * src/DHTAnnouncePeerMessage.cc
  5187. * src/DHTAnnouncePeerMessage.h
  5188. * src/DHTAnnouncePeerReplyMessage.cc
  5189. * src/DHTAnnouncePeerReplyMessage.h
  5190. * src/DHTFindNodeMessage.cc
  5191. * src/DHTFindNodeMessage.h
  5192. * src/DHTFindNodeReplyMessage.cc
  5193. * src/DHTFindNodeReplyMessage.h
  5194. * src/DHTGetPeersMessage.cc
  5195. * src/DHTGetPeersMessage.h
  5196. * src/DHTGetPeersReplyMessage.cc
  5197. * src/DHTGetPeersReplyMessage.h
  5198. * src/DHTMessage.cc
  5199. * src/DHTMessage.h
  5200. * src/DHTMessageFactoryImpl.cc
  5201. * src/DHTMessageReceiver.cc
  5202. * src/DHTPingMessage.cc
  5203. * src/DHTPingMessage.h
  5204. * src/DHTPingReplyMessage.cc
  5205. * src/DHTPingReplyMessage.h
  5206. * src/DHTQueryMessage.cc
  5207. * src/DHTQueryMessage.h
  5208. * src/DHTResponseMessage.cc
  5209. * src/DHTResponseMessage.h
  5210. * src/DHTUnknownMessage.cc
  5211. * src/DHTUnknownMessage.h
  5212. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5213. Made string literal to static const std::string
  5214. * src/BtChokeMessage.cc (toString)
  5215. * src/BtHaveAllMessage.cc (toString)
  5216. * src/BtHaveNoneMessage.cc (toString)
  5217. * src/BtInterestedMessage.cc (toString)
  5218. * src/BtNotInterestedMessage.cc (toString)
  5219. * src/BtUnchokeMessage.cc (toString)
  5220. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5221. Replaced "" with static const variable A2STR::NIL.
  5222. Replaced string comparison against "" with std::string::empty().
  5223. Added PROTO_* to Request class and use them as a protocol string
  5224. constant.
  5225. Made "started", "stopped", "completed" static const variable in
  5226. AnnounceList class.
  5227. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5228. Updated translations. Great thanks to translators.
  5229. * po/ca.po
  5230. * po/de.po
  5231. * po/fr.po
  5232. * po/it.po
  5233. * po/ja.po
  5234. * po/ru.po
  5235. * po/zh_CN.po
  5236. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. Updated man page; categorized options and fixed typo.
  5238. * doc/aria2c.1.txt
  5239. * doc/aria2c.1.html
  5240. * doc/aria2c.1
  5241. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5242. Removed const ref
  5243. * src/MetalinkEntry.cc (AddProtocolPreference)
  5244. * src/RequestGroup.cc (FindServerHostByHostname)
  5245. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5246. Rewritten Accept-Features handling.
  5247. * src/HttpRequestCommand.cc (createHttpRequest)
  5248. * src/a2functional.h
  5249. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5250. Changed method signature:
  5251. DHTAbstractNodeLookupTask::toEntries
  5252. * src/DHTAbstractNodeLookupTask.cc
  5253. * src/DHTAbstractNodeLookupTask.h
  5254. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5255. Changed method signature:
  5256. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5257. * src/BtContext.h
  5258. * src/DefaultBtContext.cc
  5259. * src/DefaultBtContext.h
  5260. * src/DefaultBtInteractive.cc
  5261. * test/DefaultBtContextTest.cc
  5262. * test/MockBtContext.h
  5263. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5264. Changed method signature:
  5265. MultiFileAllocationIterator::makeDiskWriterEntries
  5266. * src/MultiFileAllocationIterator.cc
  5267. * src/MultiFileAllocationIterator.h
  5268. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5269. Changed method sinature:
  5270. MetalinkEntry::toFileEntry,
  5271. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5272. Metalinker::queryEntry
  5273. * src/Metalink2RequestGroup.cc
  5274. * src/MetalinkEntry.cc
  5275. * src/MetalinkEntry.h
  5276. * src/MetalinkHelper.cc
  5277. * src/MetalinkHelper.h
  5278. * src/Metalinker.cc
  5279. * src/Metalinker.h
  5280. * src/main.cc
  5281. * test/MetalinkHelperTest.cc
  5282. * test/MetalinkerTest.cc
  5283. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5284. Changed method sinature:
  5285. RequestGroup::getURIs
  5286. * src/RequestGroup.cc
  5287. * src/RequestGroup.h
  5288. * test/Metalink2RequestGroupTest.cc
  5289. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5290. Changed method signature:
  5291. PeerListProcessor::extractPeer
  5292. * src/CompactPeerListProcessor.cc
  5293. * src/CompactPeerListProcessor.h
  5294. * src/DefaultBtAnnounce.cc
  5295. * src/DefaultPeerListProcessor.cc
  5296. * src/DefaultPeerListProcessor.h
  5297. * src/DelegatingPeerListProcessor.cc
  5298. * src/DelegatingPeerListProcessor.h
  5299. * src/PeerListProcessor.h
  5300. * src/UTPexExtensionMessage.cc
  5301. * test/DefaultPeerListProcessorTest.cc
  5302. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5303. Changed method signature:
  5304. BtRequestFactory::createRequestMessages,
  5305. BtRequestFactory::createRequestMessagesOnEndGame
  5306. * src/BtRequestFactory.h
  5307. * src/DefaultBtInteractive.cc
  5308. * src/DefaultBtRequestFactory.cc
  5309. * src/DefaultBtRequestFactory.h
  5310. * test/DefaultBtRequestFactoryTest.cc
  5311. * test/MockBtRequestFactory.h
  5312. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5313. Changed method signature:
  5314. PieceStorage::getInFlightPieces
  5315. * src/DefaultBtProgressInfoFile.cc
  5316. * src/DefaultPieceStorage.cc
  5317. * src/DefaultPieceStorage.h
  5318. * src/PieceStorage.h
  5319. * src/UnknownLengthPieceStorage.cc
  5320. * src/UnknownLengthPieceStorage.h
  5321. * test/DefaultBtProgressInfoFileTest.cc
  5322. * test/MockPieceStorage.h
  5323. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5324. Changed method signature:
  5325. PostDownloadHandler::getNextRequestGroups
  5326. Metalink2RequestGroup::generate
  5327. RequestGroup::postDownloadProcessing
  5328. * src/BtPostDownloadHandler.cc
  5329. * src/BtPostDownloadHandler.h
  5330. * src/Metalink2RequestGroup.cc
  5331. * src/Metalink2RequestGroup.h
  5332. * src/MetalinkPostDownloadHandler.cc
  5333. * src/MetalinkPostDownloadHandler.h
  5334. * src/PostDownloadHandler.h
  5335. * src/RequestGroup.cc
  5336. * src/RequestGroup.h
  5337. * src/RequestGroupMan.cc
  5338. * src/main.cc
  5339. * test/BtPostDownloadHandlerTest.cc
  5340. * test/Metalink2RequestGroupTest.cc
  5341. * test/MetalinkPostDownloadHandlerTest.cc
  5342. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5343. Rewritten AccRequestGroup
  5344. * src/main.cc
  5345. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5346. Rewritten.
  5347. * src/TaggedItem.cc (toTagString)
  5348. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. Rewritten Accept-Features handling.
  5350. * src/HttpRequestCommand.cc (createHttpRequest)
  5351. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5352. Rewritten accept types handling.
  5353. * HttpRequest.cc (createRequest)
  5354. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Rewritten
  5356. * src/FeatureConfig.cc (featureSummary)
  5357. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5358. Changed method signature:
  5359. PeerStorage::getActivePeers
  5360. * src/DHTPeerAnnounceEntry.cc
  5361. * src/DefaultPeerStorage.cc
  5362. * src/DefaultPeerStorage.h
  5363. * src/PeerStorage.h
  5364. * test/DefaultPeerStorageTest.cc
  5365. * test/MockPeerStorage.h
  5366. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5367. Changed method signature:
  5368. DHTPeerAnnounceStorage::getPeers,
  5369. DHTPeerAnnounceEntry::getPeers
  5370. * src/DHTGetPeersMessage.cc
  5371. * src/DHTPeerAnnounceEntry.cc
  5372. * src/DHTPeerAnnounceEntry.h
  5373. * src/DHTPeerAnnounceStorage.cc
  5374. * src/DHTPeerAnnounceStorage.h
  5375. * test/DHTAnnouncePeerMessageTest.cc
  5376. * test/DHTPeerAnnounceEntryTest.cc
  5377. * test/DHTPeerAnnounceStorageTest.cc
  5378. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5379. Changed method signature:
  5380. NameResolver::resolve
  5381. * src/DHTEntryPointNameResolveCommand.cc
  5382. * src/InitiateConnectionCommand.cc
  5383. * src/NameResolver.cc
  5384. * src/NameResolver.h
  5385. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5386. Changed method signature:
  5387. PieceStorage::getAdvertisedPieceIndexes
  5388. * src/DefaultBtInteractive.cc
  5389. * src/DefaultPieceStorage.cc
  5390. * src/DefaultPieceStorage.h
  5391. * src/PieceStorage.h
  5392. * src/UnknownLengthPieceStorage.h
  5393. * test/MockPieceStorage.h
  5394. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5395. Changed method signature:
  5396. SegmentMan::getInFlightSegment
  5397. * src/AbstractCommand.cc
  5398. * src/SegmentMan.cc
  5399. * src/SegmentMan.h
  5400. * test/SegmentManTest.cc
  5401. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5402. Changed method signature:
  5403. DHTAbstractNodeLookupTask::getNodesFromMessage
  5404. * src/DHTAbstractNodeLookupTask.cc
  5405. * src/DHTAbstractNodeLookupTask.h
  5406. * src/DHTNodeLookupTask.cc
  5407. * src/DHTNodeLookupTask.h
  5408. * src/DHTPeerLookupTask.cc
  5409. * src/DHTPeerLookupTask.h
  5410. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5411. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5412. * src/AbstractCommand.cc
  5413. * src/BtCheckIntegrityEntry.cc
  5414. * src/BtCheckIntegrityEntry.h
  5415. * src/BtFileAllocationEntry.cc
  5416. * src/BtFileAllocationEntry.h
  5417. * src/BtSetup.cc
  5418. * src/BtSetup.h
  5419. * src/CheckIntegrityCommand.cc
  5420. * src/CheckIntegrityEntry.h
  5421. * src/ChecksumCheckIntegrityEntry.cc
  5422. * src/ChecksumCheckIntegrityEntry.h
  5423. * src/DHTSetup.cc
  5424. * src/DHTSetup.h
  5425. * src/DownloadEngine.cc
  5426. * src/FileAllocationCommand.cc
  5427. * src/FileAllocationEntry.h
  5428. * src/RequestGroup.cc
  5429. * src/RequestGroup.h
  5430. * src/RequestGroupMan.cc
  5431. * src/RequestGroupMan.h
  5432. * src/StreamCheckIntegrityEntry.cc
  5433. * src/StreamCheckIntegrityEntry.h
  5434. * src/StreamFileAllocationEntry.cc
  5435. * src/StreamFileAllocationEntry.h
  5436. * src/TrackerWatcherCommand.cc
  5437. * src/a2functional.h
  5438. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5439. Changed method signature:
  5440. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5441. DHTBucket::getGoodNodes,
  5442. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5443. * src/BNode.cc
  5444. * src/BNode.h
  5445. * src/DHTAbstractNodeLookupTask.cc
  5446. * src/DHTAutoSaveCommand.cc
  5447. * src/DHTBucket.cc
  5448. * src/DHTBucket.h
  5449. * src/DHTBucketRefreshTask.cc
  5450. * src/DHTFindNodeMessage.cc
  5451. * src/DHTGetPeersMessage.cc
  5452. * src/DHTRoutingTable.cc
  5453. * src/DHTRoutingTable.h
  5454. * test/BNodeTest.cc
  5455. * test/DHTBucketTest.cc
  5456. * test/DHTRoutingTableTest.cc
  5457. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5458. In piece selection functions, Pass std::deque<...> by reference rather
  5459. than returning it.
  5460. * src/BitfieldMan.cc
  5461. * src/BitfieldMan.h
  5462. * src/DefaultBtRequestFactory.cc
  5463. * src/DefaultPieceStorage.cc
  5464. * src/Piece.cc
  5465. * src/Piece.h
  5466. * test/BitfieldManTest.cc
  5467. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5468. Implemented rarest piece first piece selection strategy.
  5469. * src/AbstractBtMessage.cc
  5470. * src/AbstractBtMessage.h
  5471. * src/BitfieldMan.cc
  5472. * src/BitfieldMan.h
  5473. * src/BtBitfieldMessage.cc
  5474. * src/BtHaveAllMessage.cc
  5475. * src/BtHaveMessage.cc
  5476. * src/DefaultPieceStorage.cc
  5477. * src/DefaultPieceStorage.h
  5478. * src/PeerInteractionCommand.cc
  5479. * src/PieceStorage.h
  5480. * src/UnknownLengthPieceStorage.h
  5481. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5482. Rewritten readData and writeData.
  5483. * src/MultiDiskAdaptor.cc
  5484. * src/MultiDiskAdaptor.h
  5485. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5486. Move \n out of the message "Usage: ...".
  5487. * src/version_usage.cc
  5488. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. Bump up version number to 0.13.2b.
  5490. * configure.ac
  5491. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5492. Added const qualifier to argument Exception& e.
  5493. * src/Logger.h
  5494. * src/SimpleLogger.cc
  5495. * src/SimpleLogger.h
  5496. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Pool connection when CWD, SIZE command fails.
  5498. * src/FtpNegotiationCommand.cc
  5499. * src/FtpNegotiationCommand.h
  5500. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5501. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5502. * src/HttpResponseCommand.cc
  5503. * src/HttpSkipResponseCommand.cc
  5504. * src/HttpSkipResponseCommand.h
  5505. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5506. Pool connection when a server returns 4xx, 5xx responses.
  5507. * src/HttpNullDownloadCommand.cc
  5508. * src/HttpNullDownloadCommand.h
  5509. * src/HttpResponse.cc
  5510. * src/HttpResponse.h
  5511. * src/HttpResponseCommand.cc
  5512. * src/HttpResponseCommand.h
  5513. * test/HttpResponseTest.cc
  5514. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5515. Print usage when no URL is specifed or bad command-line option is
  5516. specified.
  5517. * src/HelpItemFactory.cc
  5518. * src/help_tags.h
  5519. * src/option_processing.cc
  5520. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5521. Removed duplicate log message.
  5522. * src/AbstractCommand.cc (asyncResolveHostname)
  5523. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5524. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5525. Changed -j option's default value from 5 to 1.
  5526. Added new examples using protocol auto detection feature.
  5527. Removed -T, -M usage where it can be omitted.
  5528. * doc/aria2c.1.txt
  5529. * doc/aria2c.1.html
  5530. * doc/aria2c.1.txt
  5531. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5532. Updated command-line usage text, so that it tells users that they
  5533. can specify any number of torrent files and metalink files in
  5534. command-line.
  5535. * src/version_usage.cc
  5536. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5537. Changed the default value of -j option to 1.
  5538. * src/HelpItemFactory.cc
  5539. * src/option_processing.cc
  5540. * src/usage_text.h
  5541. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. Added the ability to reuse connection in FTP and it is enabled by
  5543. default. It can be disabled by --ftp-reuse-connection=false option.
  5544. * src/Command.cc
  5545. * src/DownloadCommand.cc
  5546. * src/FtpDownloadCommand.cc
  5547. * src/FtpDownloadCommand.h
  5548. * src/FtpFinishDownloadCommand.cc
  5549. * src/FtpFinishDownloadCommand.h
  5550. * src/FtpInitiateConnectionCommand.cc
  5551. * src/FtpNegotiationCommand.cc
  5552. * src/FtpNegotiationCommand.h
  5553. * src/HelpItemFactory.cc
  5554. * src/Makefile.am
  5555. * src/Makefile.in
  5556. * src/OptionHandlerFactory.cc
  5557. * src/option_processing.cc
  5558. * src/prefs.h
  5559. * src/usage_text.h
  5560. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5561. Call Command::transitStatus() before calling Command::execute(),
  5562. so that the status change made in execute() is not cleared.
  5563. * src/DownloadEngine.cc
  5564. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5565. Removed forward declaration of SocketCore class.
  5566. * src/HttpDownloadCommand.h
  5567. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5568. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5569. in InitiateConnectionCommandFactory. They should be set only when
  5570. the protocol is HTTP or HTTPS.
  5571. * src/InitiateConnectionCommandFactory.cc
  5572. * src/RequestGroup.cc
  5573. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5574. Fixed infinite loop in checksum checking.
  5575. * src/IteratableChecksumValidator.cc
  5576. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5577. Set _supportsPersistentConnection to true by default.
  5578. * src/Request.cc
  5579. * src/RequestGroup.cc
  5580. * test/HttpRequestTest.cc
  5581. * test/RequestTest.cc
  5582. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5583. Added timeout to socket pool. The default timeout is 15 seconds,
  5584. which is the same value Apache uses.
  5585. * src/DownloadEngine.cc
  5586. * src/DownloadEngine.h
  5587. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. Fixed misuse of multimap::find()
  5589. * src/HttpHeader.cc
  5590. * test/HttpHeaderTest.cc
  5591. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5592. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5593. option.
  5594. The asynchronous DNS is not capable of IPv6 yet.
  5595. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5596. least for HTTP download.
  5597. * src/AbstractCommand.cc
  5598. * src/AbstractCommand.h
  5599. * src/AsyncNameResolver.cc
  5600. * src/AsyncNameResolver.h
  5601. * src/DHTEntryPointNameResolveCommand.cc
  5602. * src/DHTEntryPointNameResolveCommand.h
  5603. * src/DownloadEngine.cc
  5604. * src/DownloadEngine.h
  5605. * src/FtpInitiateConnectionCommand.cc
  5606. * src/FtpInitiateConnectionCommand.h
  5607. * src/HelpItemFactory.cc
  5608. * src/HttpInitiateConnectionCommand.cc
  5609. * src/HttpInitiateConnectionCommand.h
  5610. * src/InitiateConnectionCommand.cc
  5611. * src/InitiateConnectionCommand.h
  5612. * src/Makefile.am
  5613. * src/Makefile.in
  5614. * src/NameResolver.cc
  5615. * src/NameResolver.h
  5616. * src/OptionHandlerFactory.cc
  5617. * src/SocketCore.cc
  5618. * src/SocketCore.h
  5619. * src/Util.cc
  5620. * src/Util.h
  5621. * src/option_processing.cc
  5622. * src/prefs.h
  5623. * src/usage_text.h
  5624. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5625. Updated man page: --quiet, --header were added.
  5626. --metalink-servers and --enable-http-keep-alive option were updated.
  5627. * doc/aria2c.1
  5628. * doc/aria2c.1.html
  5629. * doc/aria2c.1.txt
  5630. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5631. Enable HTTP keep-alive by default.
  5632. * src/HelpItemFactory.cc
  5633. * src/option_processing.cc
  5634. * src/usage_text.h
  5635. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5636. Disable http keep-alive if the remote server is not HTTP/1.1.
  5637. * src/HttpConnection.cc
  5638. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5639. Receive content body of 302 response so that the connection can be
  5640. reused later when http keep-alive is enabled.
  5641. * src/HttpNullDownloadCommand.cc
  5642. * src/HttpNullDownloadCommand.h
  5643. * src/HttpResponseCommand.cc
  5644. * src/HttpResponseCommand.h
  5645. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5646. const SharedHandle<Request> -> const SharedHandle<Request>&
  5647. * src/FtpDowndloadCommand.cc
  5648. * src/FtpDowndloadCommand.h
  5649. * src/HttpDownloadCommand.cc
  5650. * src/HttpDownloadCommand.h
  5651. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5652. Fixed the bug that the control file(.aria2 file) is not renamed
  5653. according to tryAutoFileRenaming().
  5654. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5655. its control file exist, use them and continue download.
  5656. The old implementation didn't take into account of control file's
  5657. existence, so basically you couldn't continue download of renamed file.
  5658. * src/BtProgressInfoFile.h
  5659. * src/DefaultBtProgressInfoFile.cc
  5660. * src/DefaultBtProgressInfoFile.h
  5661. * src/NullProgressInfoFile.h
  5662. * src/RequestGroup.cc
  5663. * test/DefaultBtProgressInfoFileTest.cc
  5664. * test/MockBtProgressInfoFile.h
  5665. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Change the default value of --metalink-servers option from `5' to `1'.
  5667. * src/HelpItemFactory.cc
  5668. * src/option_processing.cc
  5669. * src/usage_text.h
  5670. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5671. Reimplemented transparent metalink using Accept request header.
  5672. * src/HttpRequest.cc
  5673. * src/HttpRequest.h
  5674. * src/HttpRequestCommand.cc
  5675. * src/Metalink2RequestGroup.cc
  5676. * src/RequestGroup.cc
  5677. * src/RequestGroup.h
  5678. * test/HttpRequestTest.cc
  5679. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5680. Bump up version number to 0.13.2a
  5681. * configure.ac
  5682. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5683. Updated configure.ac using the result of autoscan.
  5684. * configure.ac
  5685. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5686. Fixed compilation error without gcrypt/openssl.
  5687. * src/DownloadCommand.cc
  5688. * src/DownloadCommand.h
  5689. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5690. Reorganized version information so that it can be displayed in a
  5691. standard terminal screen without scrolling.
  5692. Removed http, ftp from Configuration section, because they are always
  5693. enabled.
  5694. * src/FeatureConfig.cc
  5695. * src/FeatureConfig.h
  5696. * src/main.cc
  5697. * src/messageDigest.cc
  5698. * src/messageDigest.h
  5699. * src/version_usage.cc
  5700. * test/FeatureConfigTest.cc
  5701. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5702. Masked user ID in log.
  5703. * src/FtpConnection.cc (sendUser)
  5704. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5705. Removed query part from filename in HTTP download. The query part means
  5706. the substring after "?" in URL. Firefox seems do the same thing.
  5707. A query part is sometimes very long and not suitable to filename,
  5708. so I think it is better to remove it from filename.
  5709. * src/HttpRequest.cc
  5710. * src/HttpRequest.h
  5711. * src/Request.cc
  5712. * src/Request.h
  5713. * test/HttpRequestTest.cc
  5714. * test/RequestTest.cc
  5715. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5716. Rewritten Exception class. Throw exception object, not its pointer and
  5717. catch by reference, so that remove problematic delete operator for
  5718. catched exception.
  5719. * src/Exception.cc
  5720. * src/Exception.h
  5721. * test/ExceptionTest.cc
  5722. * src/*: All files throwing/catching exception.
  5723. * test/*: All files throwing/catching exception.
  5724. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5725. Now auto protocol detection is enabled without -Z option.
  5726. But there is a important difference between with/without -Z optoin.
  5727. For example, if you type:
  5728. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5729. then, aria2 interprets there are 3 request groups:
  5730. (1) http://host/file, http://mirror/file <-- multi-source download
  5731. (2) file1.torrent
  5732. (3) file2.metalink
  5733. On the other hand, if you invoke above command with -Z option, it is
  5734. interpreted as 4 request groups:
  5735. (1) http://host/file
  5736. (2) file1.torrent
  5737. (3) file2.metalink
  5738. (4) http://mirror/file
  5739. I think usually user don't mix multi-source URLs and torrent files, so
  5740. there is no big problem here.
  5741. * src/main.cc
  5742. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5743. Fixed the bug that causes segmentaion fault when reading XML containing
  5744. unescapsed character like '&'.
  5745. Also a modification was made which avoids adding unnecessary
  5746. characters stack and appending unused string.
  5747. * src/ExpatMetalinkProcessor.cc
  5748. * src/FileMetalinkParserState.h
  5749. * src/FilesMetalinkParserState.h
  5750. * src/FinMetalinkParserState.h
  5751. * src/HashMetalinkParserState.h
  5752. * src/InitialMetalinkParserState.h
  5753. * src/LanguageMetalinkParserState.h
  5754. * src/MetalinkMetalinkParserState.h
  5755. * src/MetalinkParserState.h
  5756. * src/MetalinkParserStateMachine.cc
  5757. * src/MetalinkParserStateMachine.h
  5758. * src/OSMetalinkParserState.h
  5759. * src/PieceHashMetalinkParserState.h
  5760. * src/PiecesMetalinkParserState.h
  5761. * src/ResourcesMetalinkParserState.h
  5762. * src/SizeMetalinkParserState.h
  5763. * src/SkipTagMetalinkParserState.h
  5764. * src/URLMetalinkParserState.h
  5765. * src/VerificationMetalinkParserState.h
  5766. * src/VersionMetalinkParserState.h
  5767. * src/XML2SAXMetalinkProcessor.cc
  5768. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5769. Added StringFormat class, which internally calls vasprintf.
  5770. operator<< is defined for this class, so it can be used with iostream
  5771. classes nicely. SimpleLogger and following functions are rewritten
  5772. using StringFormat class.
  5773. Besides, now Logger class's methods are non-const, many classes
  5774. that has a const Logger* as a member variable are modified to remove
  5775. const qualifier from the variable declaration.
  5776. * src/HelpItemFactory.cc
  5777. * src/Request.cc
  5778. * src/SimpleLogger.cc
  5779. * src/StringFormat.cc
  5780. * src/StringFormat.h
  5781. * src/Util.cc
  5782. * src/option_processing.cc
  5783. * src/version_usage.cc
  5784. * test/StringFormatTest.cc
  5785. * src/*.h: The classes that has const Logger* as a member variable.
  5786. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5787. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5788. failed. Also fixed memory link when exception is thrown there.
  5789. * src/main.cc (AccRequestGroup)
  5790. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5791. Added build-in "Accept-Features" support. For now only "metalink" is
  5792. used in this header field.
  5793. This "metalink" value is removed from the list when connecting URLs
  5794. fed by metalink file to avoid loop in "transparent" metlaink.
  5795. * src/HttpRequest.cc
  5796. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5797. header is also held in this variable. Also renamed setUserHeaders as
  5798. addHeader and it was rewritten to add header not just to clear the old
  5799. value.
  5800. * src/HttpRequestCommand.cc
  5801. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5802. from "Accept-Features" list.
  5803. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5804. default.
  5805. * src/RequestGroup.h
  5806. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5807. * src/a2functional.h: Included <string> because Concat class depends on
  5808. it.
  5809. * test/HttpRequestTest.cc
  5810. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5811. Added comment
  5812. * src/RequestGroup.cc (createNextCommand)
  5813. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5814. Capitalized METHOD_GET and METHOD_HEAD
  5815. * src/Request.cc
  5816. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5817. Added getDownloadResults() method
  5818. * src/RequestGroupMan.cc
  5819. * src/RequestGroupMan.h
  5820. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5821. Fixed the bug that aria2 exits when commands is empty() but
  5822. _routineCommands are not.
  5823. * src/DownloadEngine.cc
  5824. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5825. Use the default value pulled from Option object in HelpItemFactory.
  5826. except options whose defualt value is embedded in a usage text.
  5827. * src/HelpItemFactory.cc
  5828. * src/HelpItemFactory.h
  5829. * src/option_processing.cc
  5830. * src/version_usage.cc
  5831. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5832. Added --quiet option to make aria2 quiet (no console output).
  5833. --quiet option is tagged with ADVANCED.
  5834. * src/HelpItemFactory.cc
  5835. * src/LogFactory.cc
  5836. * src/LogFactory.h
  5837. * src/MultiUrlRequestInfo.cc
  5838. * src/MultiUrlRequestInfo.h
  5839. * src/NullStatCalc.h: New class. This class prints nothing.
  5840. * src/OptionHandlerFactory.cc
  5841. * src/main.cc
  5842. * src/option_processing.cc
  5843. * src/prefs.h
  5844. * src/usage_text.h
  5845. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5846. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5847. * src/HelpItemFactory.cc (createHelpItems):
  5848. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5849. Fixed compilation error in ExpatMetalinkProcessor.cc
  5850. * src/ExpatMetalinkProcessor.cc
  5851. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5852. Reuse socket if the origin server supports HTTP keep-alive and
  5853. --enable-http-keep-alive or --enable-http-pipelining is given.
  5854. The current implementation doesn't reuse the connections established
  5855. against proxy server.
  5856. * src/AbstractCommand.cc
  5857. * src/DownloadEngine.cc
  5858. * src/DownloadEngine.h
  5859. * src/HttpDownloadCommand.cc
  5860. * src/HttpInitiateConnectionCommand.cc
  5861. * src/HttpResponseCommand.cc
  5862. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Rewritten HTTP keep-alive and pipelining routine.
  5864. * src/AbstractCommand.cc
  5865. * src/HttpConnection.cc
  5866. * src/HttpDownloadCommand.cc
  5867. * src/HttpRequest.cc
  5868. * src/HttpRequestCommand.cc
  5869. * src/HttpResponseCommand.cc
  5870. * src/Request.cc
  5871. * src/Request.h
  5872. * src/RequestGroup.cc
  5873. * test/HttpRequestTest.cc
  5874. * test/HttpResponseTest.cc
  5875. * test/RequestTest.cc
  5876. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5877. Added missing setUserHeaders call
  5878. * src/HttpRequestCommand.cc
  5879. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5880. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  5881. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  5882. waste of time because it is more likey false.
  5883. * src/FileAllocationDispatcherCommand.cc (execute)
  5884. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5885. Now HTTP status and version are a member variable of HttpHeader.
  5886. HTTP status is processed as a string, not integer.
  5887. * src/AbstractProxyResponseCommand.cc
  5888. * src/HttpConnection.cc
  5889. * src/HttpHeader.cc
  5890. * src/HttpHeader.h
  5891. * src/HttpHeaderProcessor.cc
  5892. * src/HttpHeaderProcessor.h
  5893. * src/HttpResponse.cc
  5894. * src/HttpResponse.h
  5895. * test/HttpHeaderProcessorTest.cc
  5896. * test/HttpResponseTest.cc
  5897. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5898. Added --header option. You can specify any number of additional HTTP headers
  5899. like:
  5900. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  5901. Unlike other commad-line option, you can use --header option multiple times.
  5902. * src/HelpItemFactory.cc
  5903. * src/HttpRequest.{cc, h}
  5904. * src/HttpRequestCommand.cc
  5905. * src/OptionHandlerFactory.cc
  5906. * src/OptionHandlerImpl.h
  5907. * src/option_processing.cc
  5908. * src/prefs.h
  5909. * src/usage_text.h
  5910. * test/HttpRequestTest.cc (testUserHeaders)
  5911. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5912. Eliminates the time lag between sequential downloads and commands in
  5913. the same RequestGroup.
  5914. In old implementation, aria2 occasionally waits 1 seconds before
  5915. executing next command or RequestGroup.
  5916. This is really a waste of time, and new implementation eliminates
  5917. this unnecessary time lag.
  5918. * src/AbstractCommand.cc
  5919. * src/AutoSaveCommand.cc
  5920. * src/CheckIntegrityCommand.cc
  5921. * src/Command.{cc, h}
  5922. * src/DownloadEngine.{cc, h}
  5923. * src/DownloadEngineFactory.cc
  5924. * src/FileAllocationCommand.cc
  5925. * src/FileAllocationDispatcherCommand.cc
  5926. * src/FillRequestGroupCommand.cc
  5927. * src/FtpInitiateConnectionCommand.cc
  5928. * src/HaveEraseCommand.cc
  5929. * src/HttpInitiateConnectionCommand.cc
  5930. * src/HttpResponseCommand.cc
  5931. * src/RealtimeCommand.cc
  5932. * src/RequestGroup.cc
  5933. * src/RequestGroupMan.cc
  5934. * src/StreamFileAllocationEntry.cc
  5935. * src/TimeBasedCommand.{cc, h}
  5936. * src/TimedHaltCommand.cc
  5937. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  5939. keyword explicit and SharedHandle's default constructor initializes
  5940. its internal obj to null, old implementation initializes it using
  5941. obj's default constructor.
  5942. To assign null, write SharedHandle<T> x(...); x.reset();
  5943. TODO: test/SharedHandleTest.cc needs more tests.
  5944. * src/SharedHandle.h
  5945. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5946. Fixed type in man page.
  5947. * doc/aria2c.1.txt
  5948. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5949. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  5950. * src/SimpleLogger.{cc, h}
  5951. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5952. Implemented auto protocol detection.
  5953. Now you can do:
  5954. aria2c -Z http://host/file file1.torrent file2.metalink
  5955. (Note: -Z option is required for auto protcol detection.)
  5956. Then aria2c downloads 3 files simultaneously:
  5957. 1. http://host/file
  5958. 2. file1.torrent <-- read local torrent file
  5959. 3. file2.metalink <-- read local Metalink file.
  5960. Same thing goes with -i option. Assume your uris.txt contans:
  5961. http://host/file
  5962. file1.torrent
  5963. file2.metalink
  5964. Then you can do: aria2c -i uris.txt
  5965. (Note: -Z option is not needed if -i option is given.)
  5966. * src/main.cc
  5967. * src/ProtocolDetector.{cc, h}
  5968. * test/ProtocolDetectorTest.cc
  5969. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  5971. installed
  5972. * src/ARC4Encryptor.h
  5973. * src/ARC4Decryptor.h
  5974. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5975. Renamed argument from 'errno' to 'err', since errno is confused with
  5976. errno defined in errno.h.
  5977. * src/LibgcryptARC4Decryptor.h
  5978. * src/LibgcryptARC4Context.h
  5979. * src/LibgcryptDHKeyExchange.h
  5980. * src/LibgcryptARC4Encryptor.h
  5981. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5982. Rewritten choking algorithm.
  5983. * src/PeerChokeCommand.{cc, h}
  5984. * src/BtInterestedMessage.cc
  5985. * src/PeerSessionResource.{cc, h}
  5986. * src/DefaultPeerStorage.{cc, h}
  5987. * src/BtNotInterestedMessage.cc
  5988. * src/DefaultBtMessageDispatcher.{cc, h}
  5989. * src/BtMessageDispatcher.h
  5990. * src/Peer.{cc, h}
  5991. * src/BtLeecherStateChoke.{cc, h}
  5992. * src/BtSetup.cc
  5993. * src/BtSeederStateChoke.{cc, h}
  5994. * src/PeerStorage.h
  5995. * test/MockPeerStorage.h
  5996. * test/MockBtMessageDispatcher.h
  5997. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5998. Fixed compilation error on x84-64 platform.
  5999. * src/AuthConfig.cc: Included ostream.
  6000. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6001. Rewritten getBasename() and getDirname(), without standard library
  6002. basename(), dirname().
  6003. * src/File.cc
  6004. * test/FileTest.cc
  6005. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6006. Added Simplified Chinese translation. Also updated the following
  6007. translations: Polish, Dutch, German. Great thanks to all translators.
  6008. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6009. Suppress content-range error when 'Content-Range' response header
  6010. doesn't contains bytes-unit specifier 'bytes'
  6011. * src/HttpHeader.cc (getRange)
  6012. * test/HttpHeaderTest.cc
  6013. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Fixed compilation error with g++-4.3
  6015. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6016. Added missing include files for MinGW
  6017. * test/HttpHeaderProcessorTest.cc
  6018. * test/DHTRoutingTableSerializerTest.cc
  6019. * test/DHTRoutingTableDeserializerTest.cc
  6020. * test/UriListParserTest.cc
  6021. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6022. Now download line is printed nicely with no garbage at the end of
  6023. line. I use ioctl to get the columns of terminal.
  6024. If stdout is redirected to another device, instead of carriage return,
  6025. end of line '\n' character is used. This is feature request#1909659
  6026. * src/ConsoleStatCalc.cc (calculateStat)
  6027. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Included a2time.h
  6029. * src/DHTMessageDispatcher.h
  6030. * src/DHTMessageEntry.h
  6031. * src/DHTReplaceNodeTask.h
  6032. * src/DHTMessageTracker.h
  6033. * src/Util.h
  6034. * src/CookieBox.h
  6035. * src/SocketCore.h
  6036. * src/DefaultBtMessageDispatcher.h
  6037. * src/SocketCore.cc
  6038. * src/Util.cc
  6039. * src/DHTPingTask.h
  6040. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6041. Fixed high memory footprint when DHT is enabled.
  6042. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6043. queued than it is processed and the queue is getting longer. As a
  6044. consequence, momory usage is increased.
  6045. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6046. replacement cache in DHTBucket which is described in Kademlia paper.
  6047. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6048. DHTReplaceNodeTask.
  6049. * src/DHTBucket.{h, cc}
  6050. (cacheNode): New function.
  6051. (getCachedNodes): New function.
  6052. (dropNode): Push back cached node to _nodes.
  6053. * test/DHTBucketTest.cc
  6054. (testCacheNode): New test
  6055. (testDropNode): New test
  6056. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6058. the unused 4KB memory when ssl is not used.
  6059. * src/SocketCore.cc
  6060. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6061. Added summary log for peer announce storage.
  6062. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6063. Removed cast
  6064. * src/DefaultPeerStorage.cc (addPeer)
  6065. Log exception message
  6066. * src/DHTMessageTracker.cc (handleTimeout)
  6067. Fixed casting
  6068. * test/HttpRequestTest.cc
  6069. * test/MetalinkProcessorTest.cc
  6070. * test/PieceTest.cc
  6071. * test/MetalinkEntryTest.cc
  6072. * test/SequenceTest.cc
  6073. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6074. * src/ParameterizedStringParser.cc (createLoop):
  6075. Removed unused variable sstep.
  6076. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6077. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6078. * src/Util.{h, cc}
  6079. (parseUInt): New function.
  6080. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6081. The actual range is uint32_t.
  6082. * test/UtilTest.cc
  6083. * src/ParameterizedStringParser.cc:
  6084. Use Util::parseUInt() for loop variables.
  6085. * test/ParameterizedStringParserTest.cc
  6086. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6087. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6088. Rewritten the functions for binding port.
  6089. * src/DHTConnectionImpl.{h, cc}
  6090. * src/PeerListenCommand.{h, cc}
  6091. * src/DHTSetup.cc
  6092. * src/BtSetup.cc
  6093. * test/DHTConnectionImplTest.cc
  6094. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6095. type cleanup for allmost all remaining files.
  6096. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6097. Type clarification
  6098. * src/PeerSessionResource.{h, cc}
  6099. * src/DefaultPieceStorage.{h, cc}
  6100. * src/Peer.{h, cc}
  6101. * test/PeerSessionResourceTest.cc
  6102. Use div function
  6103. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6104. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6105. Type clarification
  6106. * src/DefaultPeerStorage.{h, cc}
  6107. * test/DefaultPeerStorageTest.cc
  6108. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6109. Type clarification: size_t for length or size, uint64_t for file
  6110. length, off_t for file offset.
  6111. * src/DefaultBtProgressInfoFile.cc
  6112. * src/DefaultBtContext.{h, cc}
  6113. * src/DefaultBtInteractive.cc
  6114. * src/DownloadCommand.{h, cc}
  6115. * src/IteratableChunkChecksumValidator.{h, cc}
  6116. * src/SegmentMan.{h, cc}
  6117. * src/SingleFileDownloadContext.{h, cc}
  6118. * src/IteratableChecksumValidator.{h, cc}
  6119. * src/BtContext.h
  6120. * src/IteratableValidator.h
  6121. * src/DownloadContext.h
  6122. * test/SingleFileDownloadContextTest.cc
  6123. * test/DefaultBtContextTest.cc
  6124. * test/MockBtContext.h
  6125. * test/Metalink2RequestGroupTest.cc
  6126. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Type clarification: size_t for length or size, uint64_t for file
  6128. length, off_t for file offset.
  6129. * src/PiecedSegment.cc
  6130. * src/GrowSegment.h
  6131. * src/DefaultBtRequestFactory.h
  6132. * src/DefaultBtProgressInfoFile.cc
  6133. * src/UnknownLengthPieceStorage.h
  6134. * src/DefaultPieceStorage.cc
  6135. * src/UnknownLengthPieceStorage.cc
  6136. * src/DefaultBtInteractive.cc
  6137. * src/GrowSegment.cc
  6138. * src/BitfieldMan.h
  6139. * src/DownloadCommand.cc
  6140. * src/BtRequestFactory.h
  6141. * src/PiecedSegment.h
  6142. * src/DefaultPieceStorage.h
  6143. * src/Piece.cc
  6144. * src/DefaultBtRequestFactory.cc
  6145. * src/PieceStorage.h
  6146. * src/Segment.h
  6147. * src/Piece.h
  6148. * src/BitfieldMan.cc
  6149. * src/Util.cc
  6150. * test/DefaultBtProgressInfoFileTest.cc
  6151. * test/DefaultPieceStorageTest.cc
  6152. * test/MockPieceStorage.h
  6153. * test/BtRequestMessageTest.cc
  6154. * test/DefaultBtMessageDispatcherTest.cc
  6155. * test/BitfieldManTest.cc
  6156. * test/GrowSegmentTest.cc
  6157. * test/PieceTest.cc
  6158. * test/SegmentTest.cc
  6159. * test/SegmentManTest.cc
  6160. * test/DefaultBtRequestFactoryTest.cc
  6161. * test/MockBtRequestFactory.h
  6162. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Fixed compilation error with --disable-nls
  6164. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6165. in gettext.h causes the problem.
  6166. * src/common.h
  6167. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. Removed subPiece related functions.
  6169. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6170. * src/DefaultPieceStorage.{h, cc}
  6171. * test/PieceTest.cc
  6172. * test/DefaultPieceStorageTest.cc
  6173. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Use unsigned char for data store.
  6175. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6176. Bump up version number to 0.13.0+1
  6177. * configure.ac
  6178. * Release 0.13.0+1
  6179. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6180. Changed inactive connection timeout to 120.
  6181. To accept more mulually interested peers, disconnect peer when there
  6182. is no interest between us after certain time passed.
  6183. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6184. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6186. when compiled with async DNS support.
  6187. * src/DownloadEngine.cc
  6188. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6189. value '10' will be a little bit short when some DNS servers are
  6190. offline and several DNS servers are tried. It should be configured
  6191. by command-line option.
  6192. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6193. Merged Ross's mingw patch.
  6194. * src/DHTRoutingTableDeserializer.cc
  6195. * src/DHTRoutingTableSerializer.cc
  6196. * src/Platform.{h, cc}
  6197. * src/timegm.h
  6198. * src/gettimeofday.h
  6199. * src/getaddrinfo.h
  6200. * src/SocketCore.h
  6201. * src/common.h
  6202. * src/inet_aton.h
  6203. * src/DownloadEngine.h
  6204. * src/gai_strerror.h
  6205. * src/a2netcompat.h
  6206. * configure.ac
  6207. * configure
  6208. * aclocal.m4
  6209. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6210. Included missing iostream.
  6211. * test/AllTest.cc
  6212. * test/BtDependencyTest.cc
  6213. * test/BtExtendedMessageTest.cc
  6214. * test/DHTConnectionImplTest.cc
  6215. * test/DHTMessageFactoryImplTest.cc
  6216. * test/DHTMessageTrackerEntryTest.cc
  6217. * test/DHTNodeTest.cc
  6218. * test/DHTRoutingTableSerializerTest.cc
  6219. * test/DefaultBtAnnounceTest.cc
  6220. * test/DefaultBtContextTest.cc
  6221. * test/DefaultBtMessageFactoryTest.cc
  6222. * test/DefaultExtensionMessageFactoryTest.cc
  6223. * test/HandshakeExtensionMessageTest.cc
  6224. * test/HttpResponseTest.cc
  6225. * test/MetalinkProcessorTest.cc
  6226. * test/MultiFileAllocationIteratorTest.cc
  6227. * test/SocketCoreTest.cc
  6228. * test/UTPexExtensionMessageTest.cc
  6229. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6230. Reorganized includes.
  6231. * src/NameResolver.cc
  6232. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6233. Fixed compilation error without ares/c-ares
  6234. * src/NameResolver.h:
  6235. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6236. Added a test for large file.
  6237. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6238. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6239. Fixed the bug that file size is ignored if size > INT32_MAX
  6240. * src/SizeMetalinkParserState.cc (endElement):
  6241. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6242. Bump up version number to 0.13.0
  6243. * configure.ac
  6244. * Release 0.13.0
  6245. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6246. Updated Makfefile.am to make 'make dist' work.
  6247. Now packaged filename is aria2c-VERSION.tar.bz2.
  6248. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6249. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6250. Large file support is now configured by configure script.
  6251. * configure.ac
  6252. Removed unsused source files
  6253. * src/
  6254. * test/
  6255. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6256. Peer.h and BtContext.h respectively.
  6257. * src/Peer.h
  6258. * src/BtContext.h
  6259. Updated translations.
  6260. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6261. translations. Great thanks to all translators!;)
  6262. * po/*.{po, gmo}
  6263. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6264. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6265. statically declared sha1 MessageDigestContext.
  6266. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6267. initialization of short-lived MessageDigestContext.
  6268. * src/MessageDigestHelper.{h, cc}
  6269. * src/main.cc
  6270. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6271. the initialization of MessageDigestContext every time in validating
  6272. chunk checksum.
  6273. * src/DownloadCommand.{h, cc}
  6274. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6275. Add a file descriptor which connected to fast peer(latency<1500) to
  6276. select(). This change reduced CPU load.
  6277. * src/PeerInteractionCommand.cc
  6278. * src/DefaultBtInteractive.{h, cc}
  6279. * src/BtInteractive.h
  6280. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6281. Fixed the previous insufficient fix for possible busy loop.
  6282. * src/MSEHandshake.cc (identifyHandshakeType)
  6283. Removed unused functions.
  6284. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6285. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6286. Fixed possible busy loop if first 20 bytes are not received for a few
  6287. minutes.
  6288. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6289. * src/ReceiverMSEHandshakeCommand.cc
  6290. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. Fixed compilation error
  6292. * src/ExpatMetalinkProcessor.cc
  6293. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6295. * src/DHTBucket.cc
  6296. Removed unnecessary cast.
  6297. * src/HandshakeExtensionMessage.cc
  6298. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6300. is missing.
  6301. * src/OptionHandlerFactory.cc
  6302. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6303. Fixed the bug that HAVE message is not sent for a piece they are
  6304. downloaded fom http/ftp server before any BitTorrent handshake is done
  6305. with peers.
  6306. * src/DefaultBtInteractive.cc
  6307. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6308. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6309. * src/Makefile.am
  6310. * src/Makefile.in
  6311. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. Updated README. Added html version of README and man page.
  6313. * README
  6314. * README.html
  6315. * readme2html: Shell script to generate README.html from README using
  6316. asciidoc.
  6317. * doc/aria2c.1.html
  6318. * doc/makeman: Added the line to generate aria2c.1.html
  6319. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6320. Fixed offset calculation.
  6321. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6322. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6323. Rewritten itos and uitos using template. llitos and ullitos are
  6324. replaced with itos and uitos respectively.
  6325. * src/Util.{h, cc}
  6326. * test/UtilTest.cc
  6327. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6329. of the number of bytes required for storing public key and shared
  6330. secret.
  6331. * src/LibgcryptDHKeyExchange.h
  6332. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6333. * src/MSEHandshake.cc
  6334. * test/DHKeyExchangeTest.cc
  6335. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6336. Removed since they are not used.
  6337. * src/Xml2MetalinkProcessor.{h, cc}
  6338. * src/Socket.cc
  6339. * src/SegmentSplitter.{h, cc}
  6340. * test/Xml2MetalinkProcessorTest.cc
  6341. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6342. Fixed the bug that prevents aria2 from stopping other than by pressing
  6343. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6344. option. aria2 doesn't stop even after --seed-time is satisfied and
  6345. continues to output blank lines in the console.
  6346. * src/ReceiverMSEHandshakeCommand.cc
  6347. * src/PeerReceiveHandshakeCommand.cc
  6348. * src/PeerListenCommand.cc
  6349. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6350. Bump up version number to 0.13.0rc
  6351. * configure.ac
  6352. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Updated man page and some usage text.
  6354. * doc/aria2c.1.txt
  6355. * src/usage_text.h
  6356. * po/*.{po, gmo}
  6357. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6358. Updated translations. Added Finnish and Hebrew translations.
  6359. Great thanks to all translators!
  6360. * po/*.{po, gmo}
  6361. * po/LINGUAS
  6362. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6363. Log more detailed information about each message.
  6364. * src/DHTQueryMessage.{h, cc}
  6365. * src/DHTGetPeersMessage.{h, cc}
  6366. * src/DHTFindNodeReplyMessage.{h, cc}
  6367. * src/DHTGetPeersReplyMessage.{h, cc}
  6368. * src/DHTAnnouncePeerMessage.{h, cc}
  6369. * src/DHTResponseMessage.{h, cc}
  6370. * src/DHTFindNodeMessage.{h, cc}
  6371. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6372. Use constants defined in prefs.h
  6373. * src/option_processing.cc
  6374. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6375. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6376. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Make room for future enchancements for IPv6 addresses.
  6378. Bump up version number of dht.dat file format to 2.
  6379. Not compatible with previous version.
  6380. * src/DHTRoutingTableSerializer.cc
  6381. * src/DHTRoutingTableDeserializer.cc
  6382. * test/DHTRoutingTableSerializerTest.cc
  6383. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6384. Added handling for the return values from
  6385. PeerMessageUtil::createcompact().
  6386. * src/DefaultBtContext.cc (computeFastSet):
  6387. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6388. Fixed abort when peer's ip address is IPv4-mapped address.
  6389. * src/DefaultBtContext.cc (computeFastSet)
  6390. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6391. cannot handle IPv4-mapped addresses.
  6392. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6393. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6394. Proper return value handling for OpenSSL functions.
  6395. * src/LibsslDHKeyExchange.h
  6396. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6397. Random bytes generation using libgcrypt and OpenSSL.
  6398. * src/DHTUtil.{h, cc}
  6399. * test/DHTUtilTest.cc
  6400. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6402. received.
  6403. * src/DHTMessageReceiver.cc (receiveMessage)
  6404. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6405. Fixed the bug that a return code is always 0. BUG#1897704
  6406. If error occurred during the download or there exist unfinished
  6407. downloads, aria2 returns with code 1.
  6408. * src/RequestGroupMan.{h, cc}
  6409. * src/MultiUrlRequestInfo.{h, cc}
  6410. * src/main.cc
  6411. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6412. IPv6 support for SocketCore class.
  6413. TODO: In SocketCore::establishConnection(), this is insufficient to
  6414. determin the failure of connect() here because the socket is
  6415. non-blocking state. The next addresses should be tried after select().
  6416. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6417. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6418. instead which address family independent.
  6419. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6420. information in a compact peer format which is for IPv4 only.
  6421. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6422. this is a spec of BitTorrent protocol.
  6423. * src/SocketCore.{h, cc}
  6424. * src/PeerMessageUtil.cc
  6425. * test/SocketCoreTest.cc
  6426. * test/PeerMessageUtilTest.cc
  6427. * test/DHTConnectionImplTest.cc
  6428. Handle IPv4-mapped addresses.
  6429. * src/DHTNode.cc: Now identity is determined by node id.
  6430. * src/DHTMessageTrackerEntry.cc
  6431. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6432. should handle it.
  6433. * src/DHTRoutingTableDeserializer.cc
  6434. * src/DHTMessageFactoryImpl.cc
  6435. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6436. Change the unit of --stop option from a minute to a second.
  6437. * src/usage_text.h
  6438. * src/DownloadEngineFactory.cc
  6439. * src/OptionHandlerFactory.cc
  6440. * src/message.h
  6441. * src/TimedHaltCommand.cc
  6442. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Make listening socket non-block mode.
  6444. * src/FtpConnection.cc
  6445. * src/FtpNegotiationCommand.{h, cc}
  6446. * src/PeerListenCommand.cc
  6447. Fixed the bug that cause slow ftp negotiation.
  6448. * src/FtpNegotiationCommand.{h, cc}
  6449. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6450. Added basic tag to --enable-dht, --dht-listen-port option.
  6451. * src/HelpItemFactory.cc (createHelpItems)
  6452. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Updated text.
  6454. * src/usage_text.h
  6455. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6456. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6457. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6458. Determin _threadtholdSpeed in each constructor for
  6459. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6460. * src/ActivePeerConnectionCommand.{h, cc}
  6461. * src/PeerReceiveHandshakeCommand.{h, cc}
  6462. * src/BtSetup.cc
  6463. * src/BtConstants.h
  6464. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6465. Added --bt-min-crypto-level and --bt-require-crypto options.
  6466. * src/OptionHandlerFactory.cc
  6467. * src/MSEHandshake.cc
  6468. * src/HelpItemFactory.cc
  6469. * src/option_processing.cc
  6470. * src/ReceiverMSEHandshakeCommand.cc
  6471. * src/prefs.h
  6472. * src/DefaultBtAnnounce.cc
  6473. * src/InitiatorMSEHandshakeCommand.cc
  6474. * src/usage_text.h
  6475. * test/MSEHandshakeTest.cc
  6476. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6477. Bump version number to 0.13.0b
  6478. * configure.ac
  6479. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6480. Updated doc.
  6481. * src/MessageDigestHelper.h:
  6482. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6483. Use raw message digest as a token instead of its hexadecimal
  6484. representation.
  6485. * src/DHTTokenTracker.cc (generateToken)
  6486. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6487. Added Message Stream Encryption(MSE) support.
  6488. Currently, aria2 accepts incoming connections with Obfuscation Header
  6489. and legacy BitTorrent Header and establishes connections with
  6490. Obfuscation Header first and if failed then retry with legacy
  6491. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6492. choose ARC4. The new option to change the default behavior is planned.
  6493. For tracker extension, "supportcrypto=1" is added statically.
  6494. * src/PeerInitiateConnectionCommand.{h, cc}
  6495. * src/PeerConnection.{h, cc}
  6496. * src/HandleRegistry.h
  6497. * src/SocketCore.h
  6498. * src/PeerReceiveHandshakeCommand.{h, cc}
  6499. * src/BtRegistry.{h, cc}
  6500. * src/PeerListenCommand.cc
  6501. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6502. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6503. * src/MSEHandshake.{h, cc}
  6504. * src/ARC4Encryptor.h
  6505. * src/ARC4Decryptor.h
  6506. * src/LibgcryptARC4Encryptor.h
  6507. * src/LibgcryptARC4Decryptor.h
  6508. * src/LibgcryptARC4Context.h
  6509. * src/LibsslARC4Encryptor.h
  6510. * src/LibsslARC4Decryptor.h
  6511. * src/LibsslARC4Context.h
  6512. * src/DHKeyExchange.h
  6513. * src/LibgcryptDHKeyExchange.h
  6514. * src/LibsslDHKeyExchange.h
  6515. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6516. * test/DefaultBtAnnounceTest.cc
  6517. * test/ARC4Test.cc
  6518. * test/DHKeyExchangeTest.cc
  6519. Removed prepareForRetry() because it is not used.
  6520. * src/PeerAbstractCommand.{h, cc}
  6521. * src/PeerInteractionCommand.{h, cc}
  6522. * src/PeerInitiateConnectionCommand.{h, cc}
  6523. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. Added the ability to load nodes from torrent file. These nodes are
  6525. added to the routing table when downloading that torrent.
  6526. * src/BtContext.h
  6527. * src/DefaultBtContext.{h, cc}
  6528. * src/DHTSetup.cc
  6529. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6530. hostname and port pair, and resolves all of them.
  6531. * src/NameResolver.{h, cc}: Added reset().
  6532. * src/RequestGroup.cc
  6533. * test/DefaultBtContextTest.cc
  6534. * test/MockBtContext.h
  6535. Removed assert() from DefaultBtContext and throw exception instead.
  6536. * src/DefaultBtContext.cc
  6537. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6538. Fixed segmentation fault bug when exiting if dht is disabled.
  6539. * src/RequestGroup.cc
  6540. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. Fixed typo in log message and define the message in message.h
  6542. * src/TimedHaltCommand.cc
  6543. * src/message.h
  6544. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6545. Included RecoverableException.h to fix compilation error.
  6546. * test/DHTMessageFactoryImplTest.cc
  6547. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6548. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6549. * test/DHTPingMessageTest.cc
  6550. * test/DHTGetPeersMessageTest.cc
  6551. * test/DHTFindNodeMessageTest.cc
  6552. * test/DHTAnnouncePeerMessageTest.cc
  6553. * test/MockDHTMessage.h
  6554. * test/MockDHTMessageFactory.h
  6555. * test/MockDHTMessageDispatcher.h: New class.
  6556. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6557. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6558. virtual.
  6559. * src/DHTMessageDispatcher.h
  6560. * src/DHTMessageDispatcherImpl.{h, cc}
  6561. * src/DHTSetup.cc
  6562. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6563. Adding handling of DHT error message. Just log error message and
  6564. throw exception.
  6565. * src/DHTMessageFactoryImpl.cc
  6566. * test/DHTMessageFactoryImplTest.cc
  6567. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6568. Added handling of dynamic cast failure.
  6569. * src/DHTNodeLookupTask.cc
  6570. * src/DHTPeerLookupTask.cc
  6571. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6572. Added the ability to stop aria2 itself when given time has passed
  6573. from start. Use --stop option to specify time in minutes.
  6574. When 0 is given, this feature is disabled.
  6575. * src/OptionHandlerFactory.cc
  6576. * src/TimeBasedCommand.h: Make _interval protected scope.
  6577. * src/HelpItemFactory.cc
  6578. * src/option_processing.cc
  6579. * src/prefs.h
  6580. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6581. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6582. Without this modification, the result list shows "ERR" when aria2 is
  6583. stopped by --stop option. It should be "INPR".
  6584. * src/DownloadEngine.{h, cc}
  6585. * src/DownloadEngineFactory.cc
  6586. * src/usage_text.h
  6587. * src/TimedHaltCommand.{h, cc}: New class.
  6588. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Bootstrap through node added by port message.
  6590. Currently bootstrap is executed if the number of buckets in routing
  6591. table is 1.
  6592. * src/BtPortMessage.{h, cc}
  6593. * src/DefaultBtMessageFactory.{h, cc}
  6594. * src/PeerInteractionCommand.cc
  6595. * test/BtPortMessageTest.cc
  6596. * test/MockDHTTask.h
  6597. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6598. Extract the Peer class's member variables, which are only needed after
  6599. PeerInteractionCommand, into PeerSessionResource class.
  6600. This class is instantiated in PeerInteractionCommand class's ctor and
  6601. released in its dtor.
  6602. This will make Peer class lightweight and uses less memory for peers
  6603. which are not connected and wait in the queue.
  6604. * src/PeerChokeCommand.cc
  6605. * src/PeerSessionResource.{h, cc}
  6606. * src/PeerInteractionCommand.cc
  6607. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6608. * src/DefaultBtInteractive.cc
  6609. * src/BtPieceMessage.cc
  6610. * src/BtInterestedMessage.cc
  6611. * src/BtUnchokeMessage.cc
  6612. * src/DefaultPeerStorage.{h, cc}
  6613. * src/PeerInitiateConnectionCommand.cc
  6614. * src/ActivePeerConnectionCommand.cc
  6615. * src/BtNotInterestedMessage.cc
  6616. * src/DefaultBtMessageDispatcher.cc
  6617. * src/BtChokeMessage.cc
  6618. * src/BtRequestMessage.cc
  6619. * src/Peer.{h, cc}
  6620. * src/BtRegistry.h
  6621. * src/TrackerWatcherCommand.cc
  6622. * src/PeerReceiveHandshakeCommand.cc
  6623. * test/BtExtendedMessageTest.cc
  6624. * test/BtAllowedFastMessageTest.cc
  6625. * test/BtCancelMessageTest.cc
  6626. * test/DefaultPieceStorageTest.cc
  6627. * test/BtBitfieldMessageTest.cc
  6628. * test/BtHaveMessageTest.cc
  6629. * test/BtNotInterestedMessageTest.cc
  6630. * test/BtRequestMessageTest.cc
  6631. * test/PeerSessionResourceTest.cc
  6632. * test/DefaultBtMessageDispatcherTest.cc
  6633. * test/PeerTest.cc
  6634. * test/BtInterestedMessageTest.cc
  6635. * test/BtRejectMessageTest.cc
  6636. * test/BtChokeMessageTest.cc
  6637. * test/DefaultPeerStorageTest.cc
  6638. * test/BtHaveNoneMessageTest.cc
  6639. * test/BtHaveAllMessageTest.cc
  6640. * test/DefaultExtensionMessageFactoryTest.cc
  6641. * test/BtUnchokeMessageTest.cc
  6642. * test/DefaultBtMessageFactoryTest.cc
  6643. * test/HandshakeExtensionMessageTest.cc
  6644. * test/UTPexExtensionMessageTest.cc
  6645. * test/DefaultBtRequestFactoryTest.cc
  6646. * test/BtPieceMessageTest.cc
  6647. Removed typedef PeerStats.
  6648. * src/PeerStat.h
  6649. * src/SegmentMan.cc
  6650. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Added std namespace to copy, remove_copy, back_inserter,
  6652. front_inserter.
  6653. * src/RequestGroupMan.cc
  6654. * src/DefaultPieceStorage.cc
  6655. * src/StreamFileAllocationEntry.cc
  6656. * src/BtFileAllocationEntry.cc
  6657. * src/RequestGroup.cc
  6658. * src/MetalinkEntry.cc
  6659. * src/DelegatingPeerListProcessor.cc
  6660. * src/DefaultBtRequestFactory.cc
  6661. * src/DefaultBtMessageDispatcher.cc
  6662. * src/version_usage.cc: Included <algorithm>
  6663. * src/main.cc
  6664. * src/MetalinkParserController.cc
  6665. * src/DefaultBtContext.cc
  6666. * src/DownloadEngineFactory.cc
  6667. * src/a2algo.h
  6668. Removed.
  6669. * test/StreamUriListParserTest.cc
  6670. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6672. ActivePeerConnectionCommand when it is given and
  6673. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6674. * src/ActivePeerConnectionCommand.{h, cc}
  6675. * src/BtSetup.cc
  6676. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6677. Only add socket to DownloadEngine's select routine when peer or
  6678. localhost is unchoked and interested. This lowers CPU usage a
  6679. little bit.
  6680. * src/PeerInteractionCommand.cc
  6681. * src/PeerAbstractCommand.{h, cc}
  6682. * src/BtInteractive.h
  6683. * src/DefaultBtInteractive.{h, cc}
  6684. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. Revert previous change because get_peers message is needed for
  6686. announce_peer anyway.
  6687. * src/DHTGetPeersCommand.cc
  6688. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6689. Request peers thought DHT only when download hasn't finished.
  6690. * src/DHTGetPeersCommand.cc
  6691. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6692. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6693. * src/DHTBucketRefreshTask.{h, cc}
  6694. * src/DHTSetup.cc
  6695. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6696. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6697. standard classes.
  6698. Included string.h where mem* function are used.
  6699. Added namespace aria2.
  6700. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. Create directory before saving DHT routing table.
  6702. Now ios::failure is now handled properly.
  6703. * src/DHTAutoSaveCommand.cc
  6704. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6705. Removed unnecessary cerr.
  6706. * src/DownloadEngine.cc
  6707. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6708. Catch exception inside DHTMessageReceiver::receiveMessage().
  6709. Log unknown message.
  6710. * src/DHTMessageReceiver.{h, cc}
  6711. * src/DHTMessageFactory.h
  6712. * src/DHTMessageFactoryImpl.{h, cc}
  6713. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6714. * src/DHTInteractionCommand.cc
  6715. * src/DHTUnknownMessage.{h, cc}
  6716. * test/DHTUnknownMessageTest.cc
  6717. * test/MockDHTMessageFactory.h
  6718. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6719. Commented out ip address comparison because a host can have multiple
  6720. ip addresses and it is hard to predict the hostname is resolved into
  6721. which one.
  6722. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6723. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6724. * po/Makefile.in: Removed since this is generated by configure.
  6725. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6726. Fixed compiler warning about redefinition of SIZE_MAX.
  6727. Use common.h instead of config.h directly here.
  6728. * src/Platform.{h, cc}
  6729. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6730. here.
  6731. * common.h
  6732. 2008-02-02 gettextize <[email protected]>
  6733. Updated gettext related files.
  6734. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6735. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6736. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6737. Added DHT functionality, compatible with mainline.
  6738. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6739. You may need to specify entry point to DHT network using
  6740. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6741. Use --dht-listen-port to specify port number. Make sure that your
  6742. firewall configuration can pass through UDP traffic to the port.
  6743. The routing table is saved in $HOME/.aria2/dht.dat.
  6744. * src/DHT*
  6745. * src/BNode.{h, cc}
  6746. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6747. particular torrent.
  6748. * src/Data.cc: Rewritten ctor.
  6749. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6750. --dht-entry-point.
  6751. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6752. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6753. ends, remove BtContext from DHTPeerAnnounceStorage.
  6754. * src/BtPortMessage.{h, cc}: Rewritten.
  6755. * src/message.h
  6756. * src/OptionHandlerImpl.cc
  6757. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6758. --dht-entry-point.
  6759. * src/Dictionary.{h, cc} (remove): New function.
  6760. * src/prefs.h
  6761. * src/DefaultBtMessageFactory.h
  6762. * src/BtHandshakeMessage.cc
  6763. * src/ActivePeerConnectionCommand.cc
  6764. * src/SocketCore.{h, cc}: Added datagram socket support.
  6765. * src/DefaultBtMessageFactory.cc
  6766. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6767. Create DHT commands.
  6768. * src/BtMessageFactory.h
  6769. * src/PeerMessageUtil.{h, cc}
  6770. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6771. Fixed the bug that log file is not written when configuration file doesn't exist.
  6772. This is caused by using Logger class before LogFactory is not configured.
  6773. BUG #1875079
  6774. * src/option_processing.cc
  6775. Warning message "configuration doesn't exist" is only printed when --conf is
  6776. given.
  6777. * src/option_processing.cc
  6778. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6779. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6780. ShaVisitor is now deprecated and slated to be removed.
  6781. * src/DefaultBtContext.cc
  6782. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6783. Externalize message to message.h
  6784. * src/Platform.cc
  6785. * src/message.h
  6786. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6787. Set default domain and default path to cookie.
  6788. * src/HttpResponse.cc
  6789. * src/CookieBox.{h, cc}
  6790. * src/CookieParser.{h, cc}
  6791. * test/CookieParserTest.cc
  6792. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Added --no-conf and --conf-path command-line option.
  6794. --no-conf option disables loading aria2.conf file.
  6795. --conf-path option changes the configuration file path. The default
  6796. file path is $HOME/.aria2/aria2.conf
  6797. Added a warning message when the configuration file is not found.
  6798. * src/HelpItemFactory.cc
  6799. * src/option_processing.cc
  6800. * src/prefs.h
  6801. * src/usage_text.h
  6802. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6803. Added the message to inform users that other help categories are
  6804. available in -h option.
  6805. * src/version_usage.cc
  6806. * src/TagContainer.{h, cc}
  6807. * test/TagContainerTest.cc
  6808. * src/TaggedItem.{h, cc}
  6809. * test/TaggedItemTest.cc
  6810. * src/HelpItem.h
  6811. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6812. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6813. from PiecedSegment's ctor.
  6814. Previously Piece::getAllMissingBlockIndexes() is called from
  6815. PiecedSegment() but it is rather expensive since only first element is
  6816. used.
  6817. * src/PiecedSegment.cc
  6818. * src/Piece.{h, cc}
  6819. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6820. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6821. each time these functions are called.
  6822. * src/BitfieldMan.{h, cc}
  6823. * test/BitfieldManTest.cc
  6824. * src/array_fun.h
  6825. * test/array_funTest.cc
  6826. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6827. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6828. filtered. Removed unnecessary cast to int32_t.
  6829. * src/BitfieldMan.{h, cc}
  6830. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6831. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6832. payload length(4bytes) are received. This happens because lenbufLength
  6833. is not updated in this particular case and successive call of
  6834. receiveMessage() overwrites payload length with bytes recieved which
  6835. are payload body.
  6836. * src/PeerConnection.{h, cc}
  6837. * src/message.h
  6838. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6839. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6840. peer if there are peers that have same ipaddr and port.
  6841. I've experiened segmentation fault and "pure virtual function was
  6842. called" error.
  6843. * src/Peer.h
  6844. * test/PeerTest.cc
  6845. * src/DefaultPeerStorage.cc
  6846. * test/DefaultPeerStorageTest.cc
  6847. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. Removed a call to isPowerOf() because it is no longer necessary here
  6849. and a request block is not always power of 2.
  6850. BUG#1866924
  6851. * src/PeerMessageUtil.cc (checkLength)
  6852. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6853. Fixed the bug that always first found Segment is removed from
  6854. usedSegmentEntries. Removed unused functions.
  6855. * src/SegmentMan.{h, cc}
  6856. * test/SegmentManTest.cc
  6857. Fixed the bug that ServerHost is not removed.
  6858. * src/RequestGroup.cc
  6859. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6860. Fixed the bug that SegmentMan::completeSegment() is not called
  6861. even if Segment is complete when --lowest-speed-limit is enabled.
  6862. BUG#1864525
  6863. * src/DownloadCommand.{h, cc}
  6864. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6865. Fixed: hash algorithm 'sha1' is always used.
  6866. * src/DownloadCommand.cc (validatePieceHash)
  6867. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6868. Added --enable-peer-exchange command-line option.
  6869. * src/OptionHandlerFactory.cc
  6870. * src/HelpItemFactory.cc
  6871. * src/option_processing.cc
  6872. * src/usage_text.h
  6873. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6874. Move extension from BtRuntime to ExtensionMessageFactory, because
  6875. extension can be specified per peer, not per torrent.
  6876. * src/DefaultBtInteractive.cc
  6877. * src/BtRuntime.h
  6878. * src/ExtendedMessagingAware.h
  6879. * src/ExtensionMessageFactory.h
  6880. * src/DefaultExtensionMessageFactory.cc
  6881. * test/DefaultExtensionMessageFactoryTest.cc
  6882. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6883. Added categorized option help. Specify category using --help option.
  6884. Also added the ability to search options in forward match.
  6885. * src/HelpItem.{h, cc}
  6886. * test/HelpItemTest.cc
  6887. * src/HelpItemFactory.{h, cc}
  6888. * src/TagContainer.{h, cc}
  6889. * test/TagContainerTest.cc
  6890. * src/option_processing.cc
  6891. * src/prefs.h
  6892. * src/TaggedItem.{h, cc}
  6893. * test/TaggedItemTest.cc
  6894. * src/version_usage.cc
  6895. * src/help_tags.h
  6896. * src/usage_text.h
  6897. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6898. Fixed segmentation fault when bad torrent metainfo is parsed.
  6899. Added dynamic_cast properly to detect the misconfiguration of metainfo
  6900. and then throw exception or skip it.
  6901. * src/DefaultBtContext.{h, cc}
  6902. * test/DefaultBtContextTest.cc
  6903. * src/AnnounceList.cc
  6904. * src/CompactPeerListProcessor.cc
  6905. * src/message.h
  6906. * src/DefaultBtAnnounce.{h, cc}
  6907. * test/DefaultBtAnnounceTest.cc
  6908. * src/BencodeVisitor.cc
  6909. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6910. Added missing "B"(=Byte). So now the message looks like this:
  6911. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  6912. * src/message.h (MSG_SHARE_RATIO_REPORT)
  6913. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6914. Show the seed ratio after torrent downloads.
  6915. For example, after torrent download completed and --seed-time and
  6916. --seed-ratio conditions are fulfilled, following message is printed
  6917. right after "Download complete: .....":
  6918. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  6919. * src/RequestGroupMan.cc
  6920. * src/RequestGroup.{h, cc}
  6921. * src/message.h
  6922. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6923. Remove a defunct control file. A defunct control file means that while
  6924. it exists, but the corresponding download file is missing.
  6925. After its removal, a download restarts from the beginning.
  6926. * src/RequestGroup.cc
  6927. * src/message.h
  6928. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6929. Allocate bitfield in Peer when it is really used. More specifically,
  6930. bitfield in Peer is allocated after the connection is established and
  6931. deallocated when the connection is dropped.
  6932. Since 2 parameters(piece length and total length) was removed from the
  6933. constructor of Peer class, many test classes were modified accordingly.
  6934. See svn log for more detailed information.
  6935. * src/PeerInteractionCommand.cc
  6936. * src/CompactPeerListProcessor.cc
  6937. * src/Peer.cc
  6938. * src/DefaultPeerListProcessor.cc
  6939. * src/PeerListenCommand.cc
  6940. * src/PeerReceiveHandshakeCommand.cc
  6941. Fixed memory leak
  6942. * src/Piece.cc
  6943. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  6945. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  6946. command-line options.
  6947. * src/option_processing.cc
  6948. * src/ActivePeerConnectionCommand.cc
  6949. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6950. Send have message to peer if it already has the piece.
  6951. * src/BtHaveMessage.{h, cc}
  6952. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  6954. port.
  6955. * src/DefaultPeerStorage.{h, cc}
  6956. * test/DefaultPeerStorageTest.cc
  6957. * src/HandshakeExtensionMessage.cc
  6958. * test/HandshakeExtensionMessageTest.cc
  6959. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  6960. * src/PeerStorage.h
  6961. * test/MockPeerStorage.h
  6962. * src/PeerListenCommand.cc
  6963. * src/PeerReceiveHandshakeCommand.cc
  6964. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. Added --metalink-enable-unique-protocol option.
  6966. * src/Metalink2RequestGroup.cc
  6967. * src/option_processing.cc
  6968. * src/prefs.h
  6969. * src/version_usage.cc
  6970. * doc/aria2c.1.txt
  6971. * doc/aria2c.1
  6972. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6973. Allow a peer in incomingPeer to be added peers.
  6974. * src/DefaultPeerStorage.cc
  6975. * test/DefaultPeerStorageTest.cc
  6976. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6977. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  6978. I could reproduce this bug in following procedure:
  6979. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  6980. 2. Restart aria2.
  6981. 3. You see the download stopped around 99%.
  6982. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6983. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  6984. If timeout is reached, then _nextCommand is unused and it may contains
  6985. segments and they won't be canceled. Actually, timeout is not needed
  6986. here because if the server dropped connection, then retry is made.
  6987. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6988. Added uTorrent compatible Peer Exchange.
  6989. * src/BencodeVisitor.{h, cc}
  6990. * test/BencodeVisitorTest.cc
  6991. * src/BtConstants.h
  6992. * src/BtContext.h: Added 'private' flag.
  6993. * src/BtExtendedMessage.{h, cc}
  6994. * test/BtExtendedMessageTest.cc
  6995. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  6996. reserved field.
  6997. * test/BtHandshakeMessageTest.cc
  6998. * src/BtMessageFactory.h
  6999. * src/BtRegistry.h
  7000. * src/BtRuntime.h: This class holds default extension message IDs for
  7001. aria2. By default, aria2 uses ID 8 for ut_pex.
  7002. * src/DefaultBtContext.cc
  7003. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7004. When it is true, aria2 enables ut_pex. This value is set by
  7005. PeerInteractionCommand.
  7006. * src/DefaultBtMessageFactory.{h, cc}
  7007. * test/DefaultBtMessageFactoryTest.cc
  7008. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7009. handling to DefaultBtInteractive class.
  7010. * src/DefaultExtensionMessageFactory.{h, cc}
  7011. * test/DefaultExtensionMessageFactoryTest.cc
  7012. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7013. the container(peers and incomingPeers. The equality is determined by
  7014. Peer::id).
  7015. * test/DefaultPeerStorageTest.cc
  7016. * src/ExtensionMessage.h
  7017. * test/MockExtensionMessage.h
  7018. * src/ExtensionMessageFactory.h
  7019. * test/MockExtensionMessageFactory.h
  7020. * src/HandshakeExtensionMessage.{h, cc}
  7021. * test/HandshakeExtensionMessageTest.cc
  7022. * src/MetaEntry.h
  7023. * src/Peer.{h, cc}
  7024. * src/PeerInteractionCommand.cc
  7025. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7026. addIncomingPeer.
  7027. * src/PeerMessageUtil.{h, cc}
  7028. * src/PeerObject.h
  7029. * src/UTPexExtensionMessage.{h, cc}
  7030. * test/UTPexExtensionMessageTest.cc
  7031. * src/message.h
  7032. * src/prefs.h
  7033. Fixed the bug that returns incomplete data when it contains null
  7034. character. A convenient constructor was also added.
  7035. * src/Data.{h, cc}
  7036. Rewritten.
  7037. * src/CompactPeerListProcessor.cc
  7038. Fixed typos.
  7039. * src/message.h
  7040. * src/MetaFileUtil.cc
  7041. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Added "Status Legend" label to the explanation text of 'stat' in
  7043. download result and moved it to the last. BUG#1848214
  7044. * src/RequestGroupMan.cc
  7045. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7046. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7047. * src/Makefie.am
  7048. * test/Makefile.am
  7049. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7050. Fixed the bug that prevents aria2 from loading cookie file when expire
  7051. value is greater than 2^31-1. BUG#1851066
  7052. * src/CookieBoxFactory.cc
  7053. * test/CookieBoxFactoryTest.cc
  7054. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Fixed possible memory leak when an exception is thrown.
  7056. * src/XML2SAXMetalinkProcessor.cc
  7057. Added Expat support. If both libxml2 and Expat are installed, then
  7058. libxml2 is used by default.
  7059. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7060. ExpatMetalinkProcessor according to the configuration.
  7061. * src/ExpatMetalinkProcessor.{h, cc}
  7062. * src/main.cc: Removed libxml2 specific header and init/free function.
  7063. * src/MetalinkProcessorFactory.{h, cc}
  7064. * src/MetalinkHelper.cc
  7065. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7066. * src/MetalinkProcessor.h
  7067. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7068. MetalinkProcessorTest is used instead.
  7069. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7070. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7071. MetalinkProcessorFactory::newInstance().
  7072. * m4/libexpat.m4
  7073. * configure.ac: Added configuration options for libexpat.
  7074. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Disabled -s option in metalink download.
  7076. * src/Metalink2RequestGroup.cc
  7077. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. If several protocols are available for a mirror in metalink file,
  7079. aria2 now use one of them. --metalink-preferred-protocol option was
  7080. added to specify the preference of protocol.
  7081. * src/AbstractCommand.cc
  7082. * src/OptionHandlerFactory.cc
  7083. * src/ServerHost.{h, cc}
  7084. * src/Metalink2RequestGroup.cc
  7085. * src/RequestGroup.{h, cc}
  7086. * test/RequestGroupTest.cc
  7087. * src/option_processing.cc
  7088. * src/prefs.h
  7089. * src/HttpResponseCommand.cc
  7090. * src/MetalinkResource.{h, cc}
  7091. * src/FtpNegotiationCommand.cc
  7092. * src/MetalinkEntry.{h, cc}
  7093. * src/MetalinkEntryTest.cc
  7094. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7095. Code cleanup and added debug log.
  7096. * src/PeerConnection.cc
  7097. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Compiler error fix: applied the patch by Tiziano Mueller
  7099. * src/RequestGroup.cc
  7100. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7102. in stopped and completed event.
  7103. * src/AnnounceList.{h, cc}
  7104. * test/AnnounceListTest.cc
  7105. * src/DefaultBtAnnounce.cc
  7106. * test/DefaultBtAnnounceTest.cc
  7107. Sorted URLs.
  7108. * test/Metalink2RequestGroupTest.cc
  7109. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7110. Removed unnecessary string copy. Updated doc and corrected indentation.
  7111. * src/Base64.cc
  7112. Fixed compilation warnings
  7113. * test/DataTest.cc
  7114. * test/HttpRequestTest.cc
  7115. * test/MetaFileUtilTest.cc
  7116. * test/RequestTest.cc
  7117. * Release 0.12.0
  7118. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Updated translations
  7120. * po/{de,fr,ja,nl,ru}.po
  7121. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7122. translations. Many thanks to translators.
  7123. * po/{ca,es,it,pt_BR,sv}.po
  7124. * po/LINGUAS
  7125. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7126. Added a notice about URL
  7127. * src/version_usage.cc
  7128. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7129. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7130. aria2 repeatedly sends stopped request when tracker returns error code.
  7131. * src/AnnounceList.cc
  7132. * test/AnnounceListTest.cc
  7133. * src/AnnounceTier.h
  7134. Added a message when ctrl-c is hit.
  7135. Now second ctrl-c is also handled in signal handler.
  7136. * src/RequestGroupMan.{h, cc}
  7137. * src/RequestGroup.{h, cc}
  7138. * src/MultiUrlRequestInfo.cc
  7139. * src/DownloadEngine.cc
  7140. * src/TrackerWatcherCommand.cc
  7141. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. Code cleanup
  7143. * src/Base64.cc (encode)
  7144. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Changed Direct/IO enable/disable procesure in file allocation routine.
  7146. * src/SingleFileAllocationIterator.cc
  7147. (SingleFileAllocationIterator):
  7148. Disable directIO if offset is not multiple of 512.
  7149. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7150. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7151. Enable created SingleFileAllocationIterator's directIO.
  7152. * src/FileAllocationEntry.cc
  7153. (FileAllocationEntry): Enable directIO here.
  7154. (~FileAllocationEntry): Disable directIO here.
  7155. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7156. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7157. * src/Peer.{h, cc}
  7158. * src/DefaultPieceStorage.cc
  7159. * test/DefaultPieceStorageTest.cc
  7160. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Rewritten direct I/O support routine
  7162. * src/SingleFileAllocationIterator.cc
  7163. * src/MultiDiskAdaptor.{h, cc}
  7164. * src/ByteArrayDiskWriter.h
  7165. * src/AbstractSingleDiskAdaptor.h
  7166. * src/AbstractDiskWriter.cc
  7167. * src/DefaultPieceStorage.cc
  7168. * src/DiskWriter.h
  7169. * src/BinaryStream.h
  7170. * src/IteratableChunkChecksumValidator.cc
  7171. * src/IteratableChecksumValidator.cc
  7172. * src/CheckIntegrityEntry.cc
  7173. * src/FileAllocationEntry.cc
  7174. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7175. Fixed typo
  7176. * src/version_usage.cc
  7177. Updated doc
  7178. * doc/aria2c.1.txt
  7179. * doc/aria2c.1
  7180. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7181. Fixed compile error without message digest support.
  7182. * src/FileMetalinkParserState.cc
  7183. * src/MetalinkParserController.{h, cc}
  7184. * test/XML2SAXMetalinkProcessorTest.cc
  7185. * test/MetalinkParserControllerTest.cc
  7186. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7187. Enable direct I/O support in checksum checking.
  7188. * src/IteratableChunkChecksumValidator.{h, cc}
  7189. * test/IteratableChunkChecksumValidatorTest.cc
  7190. * src/CheckIntegrityEntry.cc
  7191. * src/PieceHashCheckIntegrityEntry.cc
  7192. * src/IteratableChecksumValidator.{h, cc}
  7193. * src/BtCheckIntegrityEntry.cc: Added doc.
  7194. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. Added --allow-piece-length-change option.
  7196. * src/DefaultBtProgressInfoFile.cc
  7197. * test/DefaultBtProgressInfoFileTest.cc
  7198. * src/OptionHandlerFactory.cc
  7199. * src/option_processing.cc
  7200. * src/prefs.h
  7201. * src/version_usage.cc
  7202. * doc/aria2c.1.txt
  7203. * doc/aria2c.1
  7204. Fixed: duplicated result entry appears when exception is thrown in
  7205. RequestGroup::createInitiateConnectionCommand().
  7206. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7207. Add RequestGroup to _requestGroup after RequetGroup::
  7208. createInitiateConnectionCommand() succeeds.
  7209. Externalized message
  7210. * src/XML2SAXMetalinkProcessor.cc
  7211. * src/message.h
  7212. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Forced download abort when received negative response from http/ftp
  7214. server.
  7215. * src/HttpResponseCommand.cc
  7216. * src/FtpNegotiationCommand.cc
  7217. * src/HttpResponse.cc
  7218. * src/FtpConnection.cc
  7219. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7221. the predecessor, Xml2MetalinkParser class.
  7222. I tested them against 94KB metalink file with 1234 chunk checksums.
  7223. The new one parsed it in 22msec, while it took 6000msec with old one.
  7224. * src/XML2SAXMetalinkProcessor.{h, cc}
  7225. * test/XML2SAXMetalinkProcessorTest.cc
  7226. * src/MetalinkParserController.{h, cc}
  7227. * test/MetalinkParserControllerTest.cc
  7228. * src/MetalinkParserState.h: Also added 16 subclasses.
  7229. * src/main.cc
  7230. * src/Metalink2RequestGroup.cc
  7231. * src/MetalinkHelper.cc
  7232. * src/MetalinkEntry.cc
  7233. * src/ChunkChecksum.h
  7234. Rewritten Base64 class for better performance.
  7235. * src/Base64.{h, cc}
  7236. * test/Base64Test.cc
  7237. * src/HttpRequest.cc
  7238. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7239. Fixed the bug#1841757: aria2 will connect to server to only get
  7240. file size.
  7241. * src/StreamFileAllocationEntry.cc
  7242. * src/option_processing.cc
  7243. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7244. downloads.
  7245. * src/FtpNegotiationCommand.cc
  7246. Suppressed wrong message when finding PreDownloadHandler
  7247. * src/RequestGroup.cc
  7248. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7249. Updated usage
  7250. * src/version_usage.cc
  7251. Updated man page
  7252. * doc/aria2c.1.txt
  7253. * doc/aria2c.1
  7254. Updated po files
  7255. * po/aria2c.pot
  7256. * po/*.po
  7257. * po/*.gmo
  7258. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. Eliminated g++-4.2 warning
  7260. * src/DownloadHandlerConstants.{h, cc}
  7261. * src/Util.cc
  7262. * test/MetaFileUtilTest.cc
  7263. * test/PStringBuildVisitorTest.cc
  7264. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7265. * src/RequestGroup.cc
  7266. * src/BtCheckIntegrityEntry.cc
  7267. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7268. Fixed a2io.h
  7269. * src/a2io.h
  7270. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7271. Added direct I/O support. The current implementation uses O_DIRECT,
  7272. which is not posix standard and is tested on linux 2.6.21.
  7273. Currently only file allocation uses direct I/O.
  7274. * src/SingleFileAllocationIterator.{h, cc}
  7275. * test/SingleFileAllocationIteratorTest.cc
  7276. * src/MultiFileAllocationIterator.{h, cc}
  7277. * test/MultiFileAllocationIteratorTest.cc
  7278. * src/BinaryStream.h
  7279. * src/DiskWriter.h
  7280. * src/AbstractDiskWriter.{h, cc}
  7281. * src/ByteArrayDiskWriter.h
  7282. * src/DiskAdaptor.h
  7283. * src/AbstractSingleDiskAdaptor.{h, cc}
  7284. * src/MultiDiskAdaptor.{h, cc}
  7285. * src/FileAllocationEntry.cc
  7286. * src/Util.{h, cc}
  7287. * src/OptionHandlerFactory.cc
  7288. * src/prefs.h
  7289. * src/version_usage.cc
  7290. * src/option_processing.cc
  7291. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7292. handleException.
  7293. * src/MultiFileAllocationIterator.cc
  7294. Added EINTR handling
  7295. * src/SocketCore.cc
  7296. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7297. Updated usage
  7298. * src/version_usage.cc
  7299. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Applied Ross's patch for MinGW port.
  7301. * src/DownloadEngine.h
  7302. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7303. Set Content-Type to SingleFileDownloadContext when http response is
  7304. received.
  7305. * src/HttpResponseCommand.cc
  7306. * src/HttpResponse.{h, cc}
  7307. * test/HttpResponseTest.cc
  7308. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Rewritten to add content-type support.
  7310. * src/DownloadHandler.{h, cc}
  7311. * src/BtPostDownloadHandler.{h, cc}
  7312. * test/BtPostDownloadHandlerTest.cc
  7313. * src/MetalinkPostDownloadHandler.{h, cc}
  7314. * test/MetalinkPostDownloadHandlerTest.cc
  7315. * src/PostDownloadHandler.{h, cc}
  7316. * src/DownloadHandlerConstants.{h, cc}
  7317. * src/RequestGroup.cc
  7318. * src/HttpResponseCommand.cc
  7319. * src/FtpNegotiationCommand.cc
  7320. * src/SingleFileDownloadContext.{h, cc}
  7321. * src/RequestGroup.h
  7322. * src/RequestGroupCriteria.h
  7323. * src/ContentTypeRequestGroupCriteria.h
  7324. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7325. If it is give, metalink/torrent file is not written to the disk, but
  7326. just is kept in memory. Parsing is occurred on memory.
  7327. * src/MetalinkHelper.{h, cc}
  7328. * src/MetalinkProcessor.h
  7329. * src/Xml2MetalinkProcessor.{h, cc}
  7330. * test/Xml2MetalinkProcessorTest.cc
  7331. * src/DownloadHandlerFactory.{h, cc}
  7332. * test/DownloadHandlerFactoryTest.cc
  7333. * src/PreDownloadHandler.{h, cc}
  7334. * src/OptionHandlerFactory.cc
  7335. * src/DefaultBtContext.{h, cc}
  7336. * test/DefaultBtContextTest.cc
  7337. * src/version_usage.cc
  7338. * src/Metalink2RequestGroup.{h, cc}
  7339. * src/RequestGroup.{h, cc}
  7340. * src/a2functional.h
  7341. * test/a2functionalTest.cc
  7342. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7343. * src/OptionHandlerImpl.h
  7344. * src/prefs.h
  7345. * src/Util.{h, cc}
  7346. * test/UtilTest.cc
  7347. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7348. memory usage.
  7349. * src/RequestGroupMan.{h, cc}
  7350. * src/DownloadEngine.cc
  7351. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7352. WeakHandle to SharedHandle because WeakHandle could be null.
  7353. * src/RequestGroup.{h, cc}
  7354. * src/DownloadEngineFactory.cc
  7355. * src/DownloadResult.h
  7356. Set totalLength after download finished
  7357. * src/UnknownLengthPieceStorage.{h, cc}
  7358. Keep torrent file specified in metalink in memory.
  7359. * src/Metalink2RequestGroup.cc
  7360. * src/BtDependency.cc
  7361. * src/TrueRequestGroupCriteria.h
  7362. Fixed the bug: seekg is used where seekp should be used.
  7363. * src/ByteArrayDiskWriter.cc
  7364. * test/ByteArraydiskWriterTest.cc
  7365. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Fixed syntax error
  7367. * test/SequenceTest.cc
  7368. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7369. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7370. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7371. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7372. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7373. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7374. Added the check to see whether ares_host_callback accepts timeouts
  7375. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7376. * src/NameResolver.{h, cc}
  7377. * m4/libcares.m4
  7378. * configure.ac: Set C++ for language choice.
  7379. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7380. Fixed: compilation fails without c-ares/ares
  7381. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7382. Generate http/ftp commands only when download is incomplete.
  7383. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7384. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Corrected typo. Examples are removed since they are available in man
  7386. page.
  7387. * src/version_usage.cc
  7388. Updated man page.
  7389. * doc/aria2c.1
  7390. * doc/aria2c.1.txt
  7391. * doc/makeman: Commented out sed command.
  7392. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. Throw DlAbortEx when a remote file is not found.
  7394. * src/HttpResponse.cc
  7395. * src/FtpNegotiationCommand.cc
  7396. * src/message.h
  7397. Overwrite an existing file if --allow-overwrite=true is given.
  7398. * src/RequestGroup.cc
  7399. Removed unused functions
  7400. * src/AbstractCommand.h
  7401. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Removed 'extern' from 'extern typedef ...' in src/*.h
  7403. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7404. Updated usage
  7405. * src/version_usage.cc
  7406. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7407. Trim announce URL
  7408. * src/DefaultBtContext.cc
  7409. * test/ShaVisitorTest.cc
  7410. Trim argument s. Give trimed s to exception constructor.
  7411. * src/Util.cc (parseInt)(parseLLInt)
  7412. * test/UtilTest.cc
  7413. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Set precision back to 1.
  7415. * src/ConsoleStatCalc.cc (calculateStat)
  7416. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Replaced strtol with Util::parseInt
  7418. * src/ChunkedEncoding.cc
  7419. * src/HttpConnection.cc
  7420. * src/CookieBoxFactory.cc
  7421. * src/ParameterizedStringParser.cc
  7422. * src/Util.cc
  7423. * test/UtilTest.cc
  7424. * test/OptionHandlerTest.cc
  7425. * src/Request.cc
  7426. Throw exception when empty string is given. The message for exception
  7427. changed.
  7428. * src/Util.cc (parseInt)(parseLLInt)
  7429. * src/message.h
  7430. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7431. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7432. set to 1.
  7433. * src/ConsoleStatCalc.cc (calculateStat)
  7434. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7435. Preallocate non-requested file which is adjacent forward to requested
  7436. file('requested' files means the files given in --select-file option)
  7437. if they share a same piece.
  7438. This fixes long pause in the file system which doesn't support sparse
  7439. files like FAT32 while downloading.
  7440. * src/MultiFileAllocationIterator.{h, cc}
  7441. * test/MultiFileAllocationIteratorTest.cc
  7442. * src/FileEntry.{h, cc}
  7443. Removed unused _option.
  7444. * src/MultiDiskAdaptor.h
  7445. * test/MultiDiskAdaptorTest.cc
  7446. * src/DefaultPieceStorage.cc
  7447. Set the default value of --seed-ratio to 1.0.
  7448. If 0.0 is given, then seeding continues regardless of share ratio.
  7449. * src/version_usage.cc
  7450. * src/option_processing.cc
  7451. * src/BtSetup.cc
  7452. * doc/aria2c.1.txt
  7453. * doc/aria2c.1
  7454. Fixed: Selective download is not working in BitTorrent
  7455. * src/RequestGroup.cc
  7456. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7457. * src/PieceStorage.h
  7458. * test/MockPieceStorage.h
  7459. * src/UnknownLengthPieceStorage.h
  7460. * src/DefaultPieceStorage.{h, cc}
  7461. * src/Metalink2RequestGroup.cc
  7462. * src/RequestGroup.cc
  7463. * src/Sequence.h
  7464. * test/SequenceTest.cc
  7465. * src/IntSequence.h
  7466. * src/message.h
  7467. * src/Util.{h, cc}
  7468. * test/UtilTest.cc
  7469. Added new function 'parse' to catch exception thrown by subclass's
  7470. parseArg
  7471. * src/OptionHandler.h
  7472. * src/OptionParser.cc
  7473. * src/NameMatchOptionHandler.h
  7474. * src/OptionHandlerImpl.h
  7475. * test/OptionHandlerTest.cc
  7476. Added IntegerRangeOptionHandler. Used for --listen-port and
  7477. --select-file. Now --listen-port accepts range of port.
  7478. * src/OptionHandlerFactory.cc
  7479. * src/version_usage.cc
  7480. * src/OptionHandlerImpl.h
  7481. * src/option_processing.cc
  7482. * src/BtSetup.cc
  7483. * src/PeerListenCommand.{h, cc}
  7484. * doc/aria2c.1.txt
  7485. * doc/aria2c.1
  7486. Implemented operator< for Exception class to provide easy way to print
  7487. exception stack trace.
  7488. * src/Exception.{h, cc}
  7489. * src/main.cc
  7490. * src/option_processing.cc
  7491. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7492. * src/version_usage.cc
  7493. (showVersion): Reworked.
  7494. (showUsage): Added examples.
  7495. Removed Hint for total length and file name.
  7496. * src/Metalink2RequestGroup.cc
  7497. * src/RequestGroup.{h, cc}
  7498. * src/HttpResponseCommand.cc
  7499. * src/FtpNegotiationCommand.cc
  7500. Now --follow-torrent and --follow-metalink option work properly.
  7501. * src/RequestGroup.cc
  7502. Updated man page
  7503. * doc/aria2c.1.txt
  7504. * doc/aria2c.1
  7505. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Removed.
  7507. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7508. Use Segment::operator==()
  7509. * src/HttpConnection.cc
  7510. * src/Segment.h
  7511. Updated usage
  7512. * src/version_usage.cc
  7513. Added EINTR treatment.
  7514. * src/SocketCore.cc
  7515. * src/AbstractDiskWriter.cc
  7516. Rewritten.
  7517. * src/Util.cc (rangedFileCopy)
  7518. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. Fixed typo.
  7520. * src/version_usage.cc
  7521. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7522. Implemented. Now -c option works fine.
  7523. * src/DefaultPieceStorage.cc (markPiecesDone)
  7524. * test/DefaultPieceStorageTest.cc
  7525. Removed.
  7526. * src/SegmentMan.{h, cc}
  7527. (markAllPiecesDone)
  7528. (markPieceDone)
  7529. Synchronized po files with
  7530. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7531. * src/fr.po
  7532. * src/ru.po
  7533. * src/de.po
  7534. * src/ja.po
  7535. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7536. Added ifdef and some modifications to compile without BitTorrent,
  7537. Metalink, MessageDigest
  7538. support.
  7539. * src/PieceHashCheckIntegrityEntry.cc
  7540. * src/MetalinkEntry.h
  7541. * src/version_usage.cc
  7542. * src/main.cc
  7543. * src/DownloadEngine.{h, cc}
  7544. * src/Metalink2RequestGroup.cc
  7545. * src/Peer.cc
  7546. * src/RequestGroup.cc
  7547. * src/MetalinkHelper.cc
  7548. * test/DefaultPieceStorageTest.cc
  7549. * test/MetalinkPostDownloadHandlerTest.cc
  7550. * test/Metalink2RequestGroupTest.cc
  7551. Hide TOTAL SPD when all downloads complete.
  7552. * src/ConsoleStatCalc.cc
  7553. Log target system information.
  7554. * src/main.cc
  7555. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7556. Now --metalink-location accepts a comma-deliminated list of locations.
  7557. * src/MetalinkEntry.{h, cc}
  7558. * test/MetalinkEntryTest.cc
  7559. * src/version_usage.cc
  7560. * src/Metalink2RequestGroup.cc
  7561. * src/Xml2MetalinkProcessor.cc
  7562. * test/Xml2MetalinkProcessorTest.cc
  7563. * doc/aria2c.1.txt
  7564. * doc/aria2c.1
  7565. * src/Util.cc (toUpper)(toLower): Rewritten.
  7566. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7567. Added the ability to detect duplicate download entry which is about to
  7568. download the same file other RequestGroup is downloading.
  7569. * src/RequestGroup.cc
  7570. * src/HttpResponseCommand.cc
  7571. * src/FtpNegotiationCommand.cc
  7572. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7573. Recalculates download progress when loading a control file,
  7574. if the piece length of DownloadContext is different from the one saved
  7575. in the control file. Currently in-flight pieces are ignored.
  7576. * src/DefaultBtProgressInfoFile.cc
  7577. * test/DefaultBtProgressInfoFileTest.cc
  7578. * src/Util.{h, cc}
  7579. * test/UtilTest.cc
  7580. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Do not rotate tiers in announce-list.
  7582. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7583. AnnounceList::allTiersFailed() used instead to detect whether all
  7584. tiers are tried and failed.
  7585. * test/DefaultBtAnnounceTest.cc
  7586. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7587. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7588. * test/AnnounceListTest.cc
  7589. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7590. clause. Catch RecoverableException instead of DlRetryEx instead.
  7591. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7592. Implemented checksum validation feature(1 checksum for each file)
  7593. The validation takes place after the download.
  7594. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7595. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7596. * src/CheckIntegrityCommand.cc: Changed log message.
  7597. * src/Metalink2RequestGroup.cc: Set checksum to
  7598. SingleFileDownloadContext.
  7599. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7600. PieceHashCheckIntegrity class.
  7601. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7602. PieceHashCheckIntegrity class.
  7603. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7604. * src/IteratableValidator.h: New class.
  7605. * src/message.h
  7606. * src/CheckIntegrityEntry.{h, cc}
  7607. * src/IteratableChunkChecksumValidator.{h, cc}
  7608. * src/SingleFileDownloadContext.h
  7609. * src/DownloadCommand.cc
  7610. --allow-overwrite=true is no longer needed to check file integrity
  7611. before download in BitTorrent download.
  7612. * src/RequestGroup.cc (getInitialCommand)
  7613. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7614. throws exception.
  7615. * src/RequestGroupMan.cc (getInitialCommands)
  7616. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. urlencode the given url inside Request::parseUrl(...)
  7618. * src/Request.{h, cc}
  7619. * src/Util.{h, cc}
  7620. * test/RequestTest.cc
  7621. Removed #!metalink3! notation support because it is deleted from
  7622. the metalink specification.
  7623. * src/Request.{h, cc}
  7624. * test/RequestTest.cc
  7625. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7626. Don't connect server before checking file integrity at startup, if
  7627. filesize and output file path are known.
  7628. * src/AbstractCommand.cc
  7629. * src/StreamFileAllocationEntry.cc
  7630. * src/Metalink2RequestGroup.cc
  7631. * src/RequestGroup.{h, cc}
  7632. * src/HttpResponseCommand.cc
  7633. * src/FtpNegotiationCommand.cc
  7634. Added DownloadFailureException. If it is thrown, RequestGroup should
  7635. halt.
  7636. * src/AbstractCommand.cc
  7637. * src/DownloadFailureException.h
  7638. * src/RequestGroup.cc
  7639. Catch RecoverableException, instead of DlAbortEx.
  7640. * src/RequestGroupMan.cc
  7641. * src/FillRequestGroupCommand.cc
  7642. * src/MetaFileUtil.cc
  7643. * src/IteratableChunkChecksumValidator.cc
  7644. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7645. getGID())
  7646. * src/CheckIntegrityCommand.cc
  7647. * src/message.h
  7648. Print gid instead of idx.
  7649. * src/RequestGroupMan.cc
  7650. Removed exception throwers declaration.
  7651. * src/DirectDiskAdaptor.{h, cc}
  7652. * src/SocketCore.{h, cc}
  7653. * src/MultiDiskAdaptor.{h, cc}
  7654. * src/HttpConnection.{h, cc}
  7655. * src/HttpResponse.{h, cc}
  7656. * src/DiskAdaptor.{h, cc}
  7657. * src/CopyDiskAdaptor.{h, cc}
  7658. * src/MultiDiskAdaptor.{h, cc}
  7659. * src/HttpHeaderProcessor.{h, cc}
  7660. * src/AbstractSingleDiskAdaptor.{h, cc}
  7661. * src/Util.{h, cc}
  7662. * test/UtilTest.cc
  7663. * src/DefaultDiskWriter.{h, cc}
  7664. * src/FtpConnection.{h, cc}
  7665. * src/AbstractDiskWriter.{h, cc}
  7666. Removed duplicate code.
  7667. * src/StreamCheckIntegrityEntry.cc
  7668. Removed unnecessary include.
  7669. * src/DiskWriter.h
  7670. Included Exception.h
  7671. * src/option_processing.cc
  7672. Included 2 files and added doc
  7673. * src/TrackerWatcherCommand.cc
  7674. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7675. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Changed CheckIntegrityEntry interface so that it can define
  7677. the action when all the chunk checksums are valid.
  7678. * src/CheckIntegrityEntry.h
  7679. * src/StreamCheckIntegrityEntry.{h, cc}
  7680. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7681. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7682. to exit rather than doing seeding. So, it would be good to toggle this
  7683. behavior.
  7684. * src/CheckIntegrityCommand.cc
  7685. * src/AbstractCommand.cc
  7686. * src/RequestGroup.cc
  7687. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7688. Reflect the download length of in-flight pieces.
  7689. It makes the download length readout more precise.
  7690. * src/DefaultPieceStorage.{h, cc}
  7691. * test/DefaultPieceStorageTest.cc
  7692. * src/a2functional.h
  7693. * test/a2functionalTest.cc
  7694. Lower CPU load when --max-download-limit is used.
  7695. There is up and down in speed indicator when enabling
  7696. http-pipelining but a download goes well. I think the problem is that
  7697. because http-pipelining is enabled, DownloadCommand is created for
  7698. each segment and in its constructor, PeerStat::downloadStart() is
  7699. called. In PeerStat::downloadStart(), speed calculation object is
  7700. reseted, which makes download speed zero.
  7701. * src/DownloadCommand.cc
  7702. Rewritten using accumulate.
  7703. * src/RequestGroupMan.cc (calculateStat)
  7704. Code clearnup.
  7705. * src/FtpNegotiationCommand.cc
  7706. * src/HttpResponseCommand.cc
  7707. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Fixed: Can not resume: aria2 reports download already finished.
  7709. * src/AbstractCommand.{h, cc}
  7710. * src/HttpResponseCommand.cc
  7711. * src/FtpNegotiateCommand.cc
  7712. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7713. Now a file is stored in the directory specified in .metalnk file
  7714. (file[@name]).
  7715. * src/Metalink2RequestGroup.cc
  7716. Create the directory structure when opening the file if it doesn't
  7717. exist.
  7718. * src/AbstractDiskWriter.cc
  7719. * src/Util.{h, cc}
  7720. * src/File.h
  7721. * test/UtilTest.cc
  7722. Removed file name comparison
  7723. * src/Metalink2RequestGroup.cc
  7724. * src/HttpResponseCommand.cc
  7725. Rewritten using Util::mkdirs()
  7726. * src/FileEntry.cc (setupDir)
  7727. * test/FileEntryTest.cc
  7728. Updated doc
  7729. * src/SingleFileDownloadContext.h
  7730. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7731. Now SleepCommand dispatches nextCommand when halt is requested.
  7732. It avoids a possible long wait after hitting CTRL-C.
  7733. * src/SleepCommand.{h, cc}
  7734. * src/RequestGroupAware.{h, cc}
  7735. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7736. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7737. to open listen port, then remove the port number from the tracker
  7738. request.
  7739. * src/DefaultBtAnnounce.cc
  7740. * test/DefaultBtAnnounceTest.cc
  7741. * test/MockPieceStorage.h
  7742. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7743. them more testable.
  7744. * src/DefaultBtAnnounce.{h, cc}
  7745. * src/DefaultBtContext.{h, cc}
  7746. * src/Util.{h, cc}
  7747. * test/DefaultBtAnnounceTest.cc
  7748. * test/DefaultBtContextTest.cc
  7749. * test/UtilTest.cc
  7750. Added 'B' to upload bytes readout.
  7751. * src/ConsoleStatCalc.cc
  7752. Now the listen port for BitTorrent download is opened when it is
  7753. needed.
  7754. * src/DownloadEngineFactory.cc
  7755. * src/BtSetup.{h, cc}
  7756. * src/PeerListenCommand.{h, cc}
  7757. Now an exception thrown while parsing tracker response is now logged.
  7758. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7759. called, which means no retry is made in this case, assuming a tracker
  7760. has a problem.
  7761. * src/TrackerWatcherCommand.cc
  7762. Fixed: downloading a file whose length is unkown fails.
  7763. * src/DownloadCommand.cc
  7764. Simplified prepareForNextSegment()
  7765. * src/DownloadCommand.cc
  7766. Updated
  7767. * po/POTFILES.in
  7768. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7769. Re-implemented a file listing for Metalink, which was dropped while
  7770. http/ftp/torrent integration was being implemented.
  7771. * src/MetalinkHelper.{h, cc}: New class.
  7772. * test/MetalinkHelperTest.cc
  7773. * src/main.cc
  7774. * src/Metalink2RequestGroup.cc
  7775. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7776. Added the ability to display the detailed torrent file information.
  7777. Now -S option gives not only a file listing, but also total download
  7778. length, info hash, announce URI, piece length, the number of pieces,
  7779. and mode(single or multi-torrent).
  7780. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7781. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7782. KiB)
  7783. * test/UtilTest.cc
  7784. * src/main.cc
  7785. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7786. Added ftp://USER:PASSWD@Servername automatic parsing.
  7787. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7788. _password. Recognize username and password in URI.
  7789. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7790. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7791. * src/RequestFactory.{h, cc}: Removed.
  7792. * src/AuthConfigFactory.{h, cc}: New class.
  7793. * src/FtpConnection.cc: Use AuthConfigFactory.
  7794. * src/HttpRequest.cc: Use AuthConfigFactory.
  7795. * test/HttpRequestTest.cc: Updated.
  7796. * test/RequestTest.cc: Updated.
  7797. * test/AuthConfigFactoryTest.cc: New class.
  7798. * test/RequestFactoryTest.cc: Removed.
  7799. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7800. Use RequestGroup::allDownloadFinished() to decide whether the control
  7801. file should be removed or saved.
  7802. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7803. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7804. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7805. Use File::renameTo()
  7806. * src/DefaultBtProgressInfoFile.cc
  7807. Added --no-file-allocation-limit command-line option.
  7808. * src/version_usage.cc
  7809. * src/option_processing.cc
  7810. * src/OptionHandlerFactory.cc
  7811. * src/RequestGroup.{h, cc}
  7812. * src/BtCheckIntegrityEntry.cc
  7813. * src/StreamCheckIntegrityEntry.cc
  7814. * src/prefs.h
  7815. * doc/aria2c.1.txt
  7816. * doc/aria2c.1
  7817. Now prealloc is the default value for --file-allocation option.
  7818. * src/version_usage.cc
  7819. * src/option_processing.cc
  7820. * doc/aria2c.1.txt
  7821. * doc/aria2c.1
  7822. Don't URL-encode user-agent.
  7823. * src/HttpRequest.cc
  7824. Updated translations
  7825. * po/LINGUAS: Added nl for Dutch translation.
  7826. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7827. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7828. * po/POTFILES.in: Updated.
  7829. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7830. Added the ability to recognize url-list in a torrent file.
  7831. The retrieved URLs are attached to the corresponding FileEntry.
  7832. * src/DefaultBtContext.{h, cc}
  7833. * src/FileEntry.{h, cc}
  7834. * test/DefaultBtContextTest.cc
  7835. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7836. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7837. after the download finishes.
  7838. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7839. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7840. the data smaller than block length.
  7841. A block length can be specified by constructor's argument.
  7842. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7843. Get a missing piece in the range of given FileEntry. This function is
  7844. not used in the program yet.
  7845. * src/Util.h: Added some macros.
  7846. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. Added HTTP/1.1 keep alive and pipelining support.
  7848. See --enable-http-keep-alive and --enable-http-pipelining option.
  7849. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7850. Segment.
  7851. * src/HttpDownloadCommand.{h, cc}
  7852. * src/OptionHandlerFactory.cc
  7853. * src/HttpConnection.{h, cc}
  7854. * src/version_usage.cc
  7855. * src/HttpInitiateConnectionCommand.cc
  7856. * src/FtpInitiateConnectionCommand.cc
  7857. * src/Segment.h
  7858. * src/HttpRequestCommand.{h, cc}
  7859. * src/option_processing.cc
  7860. * src/prefs.h
  7861. * src/HttpResponseCommand.cc
  7862. * src/SegmentMan.{h, cc}
  7863. * src/FtpNegotiateCommand.cc
  7864. * src/HttpProxyResponseCommand.cc
  7865. * src/Request.cc
  7866. * src/HttpRequest.cc
  7867. * src/DownloadCommand.cc
  7868. * test/HttpRequestTest.cc
  7869. * test/RequestTest.cc
  7870. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7871. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  7872. finished.
  7873. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7874. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  7875. catching it inside the method.
  7876. When no file entry is found in a metalink without querying user
  7877. preferences, throw the exception with the error message that suggests
  7878. metalink file is probably broken.
  7879. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  7880. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Fixed the bug that prevents remote Metalink/Torrent file from begin
  7882. processed.
  7883. * src/RequestGroupMan.cc (removeStoppedGroup)
  7884. Added debug message.
  7885. * src/BtPostDownloadHandler.cc
  7886. * src/MetalinkPostDownloadHandler.cc
  7887. * src/PostDownloadHandler.{h, cc}
  7888. * src/RequestGroup.cc
  7889. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7890. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  7891. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  7893. stops and there are any unfinished or in-progress downloads.
  7894. Added the legend of "stat".
  7895. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7896. Throw exception when chunck checksum verification fails.
  7897. * src/DownloadCommand.cc (validatePieceHash): New function.
  7898. * src/PiecedSegment.{h, cc} (clear): New function.
  7899. * src/GrowSegment.{h, cc} (clear): New function.
  7900. * src/Segment.h (clear): New function.
  7901. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  7902. * test/SegmentTest.cc
  7903. * test/GrowSegmentTest.cc
  7904. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7905. Do not send referer when redirected.
  7906. * src/Request.cc (redirectUrl)
  7907. * test/RequestTest.cc
  7908. * test/HttpRequestTest.cc
  7909. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7910. Implemented BitTorrent/http/ftp integrated download.
  7911. I've rewritten lots of files and now some headers have forward
  7912. class declarations to reduce compile time.
  7913. The implementation is extremely alpha stage, I recommend to use this
  7914. for testing purpose only.
  7915. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7916. Fixed the compilation error on 64bit platform.
  7917. * test/HttpHeaderProcessorTest.cc
  7918. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7919. Merged Ross's patch that fixes compilation problem in MinGW
  7920. * test/DefaultBtProgressInfoFileTest.cc
  7921. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Updated fr.po by sebone
  7923. * po/fr.po
  7924. Updated man page.
  7925. * doc/aria2c.1.txt
  7926. * Release 0.11.3
  7927. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7928. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  7929. failure in Metalink.
  7930. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. Automatically save *.aria2 control file of http/ftp download in every
  7932. 60 seconds.
  7933. * src/AutoSaveCommand.{h, cc}: New class.
  7934. * src/TimeBasedCommand.{h, cc}: New class.
  7935. * src/DownloadEngineFactory.cc (newConsoleEngine)
  7936. Disable parameterized URI support by default. Added -P option to
  7937. enable the feature.
  7938. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  7939. * src/OptionHandlerFactory.cc
  7940. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  7941. Updated Japanese translation.
  7942. * po/ja.po
  7943. Updated man page.
  7944. * doc/aria2c.1.txt
  7945. * Release 0.11.3-rc
  7946. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  7948. it is successful, then renamed to *.aria2.
  7949. This prevents *.aria2 file from being truncated or corrupted when
  7950. file system becomes out of space.
  7951. * src/DefaultBtProgressInfoFile.cc (save)
  7952. * src/SegmentMan.cc (save)
  7953. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  7954. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7955. Reduced the fragmentation of bitfield in http/ftp download.
  7956. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  7957. * test/BitfieldManTest.cc
  7958. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Added the ability to disable segmented download in .metalink.
  7960. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  7961. 'url' tag.
  7962. * src/MetalinkEntry.{h, cc}
  7963. * src/RequestResource.{h, cc}
  7964. * src/MetalinkRequestInfo.cc
  7965. * src/Xml2MetalinkProcessor.cc
  7966. * test/Xml2MetalinkProcessorTest.cc
  7967. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. Added parameterized URI support.
  7969. * src/main.cc: -Z option added.
  7970. * src/OptionHandlerFactory.cc
  7971. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  7972. * src/PStringDatum.h: New class.
  7973. * src/PStringSegment.{h,cc}: New class.
  7974. * src/PStringNumLoop.h: New class.
  7975. * src/PStringSelect.h: New class.
  7976. * src/NumberDecorator.h: New class.
  7977. * src/FixedWidthNumberDecorator.h: New class.
  7978. * src/AlphaNumberDecorator.h: New class.
  7979. * src/PStringVisitor.h: New class.
  7980. * src/PStringBuildVisitor.{h,cc}: New class.
  7981. * src/ParameterizedStringParser.{h,cc}: New class.
  7982. * src/Util.{h,cc}
  7983. (isNumber): New function.
  7984. (isLowercase): New function.
  7985. (isUppercase): New function.
  7986. (alphaToNum): New function.
  7987. * test/ParameterizedStringParserTest.cc: New class.
  7988. * test/AlphaNumberDecoratorTest.cc: New class.
  7989. * test/PStringBuildVisitorTest.cc: New class.
  7990. * test/UtilTest.cc
  7991. (testIsNumber): New function.
  7992. (testIsLowercase): New function.
  7993. (testIsUppercase): New function.
  7994. (testAlphaToNum): New function.
  7995. Added '\n' after the error message
  7996. * src/RequestInfo.h (printDownloadAbortMessage)
  7997. Added auto file renaming feature in http(s)/ftp download.
  7998. * src/main.cc: Added --auto-file-renaming command-line option.
  7999. * src/OptionHandlerFactory.cc
  8000. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8001. * src/RequestGroup.{h, cc}
  8002. (shouldCancelDownloadForSafety): Rewritten
  8003. (tryAutoFileRenaming): New function.
  8004. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8005. * src/HttpResponseCommand.cc
  8006. (executeInternal): Removed the call to RequestGroupMan::
  8007. isSameFileBeingDownloaded()
  8008. * src/FtpNegotiateCommand.cc
  8009. (recvSize): Removed the call to RequestGroupMan::
  8010. isSameFileBeingDownloaded()
  8011. * test/RequestGroupTest.cc: New class.
  8012. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8013. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8014. IO.
  8015. * src/DefaultBtProgressInfoFile.cc
  8016. * src/MetaFileUtil.cc
  8017. * src/SimpleLogger.cc
  8018. * src/SegmentMan.cc
  8019. * src/Util.cc
  8020. * src/Platform.cc
  8021. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8022. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8023. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8024. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8025. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8026. Fixed the bug that prevents file allocation is not done when
  8027. dowloading multi-torrent file.
  8028. * src/AbstractDiskWriter.cc (openFile)
  8029. Increase the maximum number of -j option from 15 to 45.
  8030. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8031. Added fr.po, thanks to Charles Landemaine.
  8032. * po/fr.po
  8033. * po/LINGUAS
  8034. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8035. gcc 3.4.4 support:
  8036. * src/DefaultBtContext.cc: int32_t -> int
  8037. * src/main.cc: int -> int32_t, int32_t -> int
  8038. * src/messageDigest.h: uint32_t -> unsigned int
  8039. * src/NameResolver.h: int32_t -> int
  8040. * src/PeerConnection.cc: int -> int32_t
  8041. * src/SpeedCalc.cc: int32_t -> int
  8042. * src/TrackerUpdateCommand.h: int -> int32_t
  8043. * src/Util.cc: int32_t -> int
  8044. * src/Util.h: int32_t -> int
  8045. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8046. * test/AnnounceListTest.cc: int -> int32_t
  8047. * test/ChunkedEncodingTest.cc: int -> int32_t
  8048. * test/DataTest.cc: int -> int32_t
  8049. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8050. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8051. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8052. * test/FeatureConfigTest.cc: int -> int32_t
  8053. * test/MetalinkEntryTest.cc: int -> int32_t
  8054. * test/MockBtRequestFactory.h: int -> int32_t
  8055. * test/MockPieceStorage.h: int -> int32_t
  8056. * test/OptionTest.cc: int -> int32_t
  8057. * test/RequestTest.cc: int -> int32_t
  8058. * test/SegmentManTest.cc: int -> int32_t
  8059. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8060. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8061. Move sleep functions to Util class:
  8062. * src/Util.cc
  8063. (sleep): New function.
  8064. (usleep): New function.
  8065. * src/DownloadCommand.cc: sleep -> Util::sleep
  8066. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8067. MinGW build enhancements. The following files are added:
  8068. * src/timegm.{c,h}
  8069. Changes to support the above new files:
  8070. * configure.ac
  8071. * src/Makefile.am
  8072. * src/a2time.h
  8073. * src/Util.cc:
  8074. * src/strptime.c: Added support for %Z option.
  8075. Fixed MinGW non-blocking bug.
  8076. * src/SocketCore.cc
  8077. * src/HttpRequestCommand.cc
  8078. Miscellenous build fixes/enhancements.
  8079. * configure.ac: Added summary report.
  8080. * src/Platform.h: Tweaked #include's.
  8081. * src/a2netcompat.h: Tweaked #include's.
  8082. * src/strptime.h: Tweaked #include's.
  8083. * src/gai_strerror.c: Tweaked #include's.
  8084. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8085. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8086. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8087. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8088. Increased the initial connection size in BitTorrent download to 40.
  8089. * src/BtRuntime.h
  8090. Added the usage message of --peer-id-prefix option.
  8091. * src/main.cc
  8092. * Release 0.11.2
  8093. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8094. MessageDigestHelper is introduced in order to simplify the use
  8095. of message digest. Removed repeated code.
  8096. The message digest algorithm is now specified by string, like "sha1",
  8097. "md5".
  8098. * src/messageDigest.{h, cc}
  8099. * src/MessageDigestHelper.{h, cc}: New class.
  8100. * src/DefaultPieceStorage.cc
  8101. * src/DefaultBtContext.{h, cc}
  8102. (computeFastSet): New function.
  8103. (setInfoHash): Added for unit testing.
  8104. (setNumPieces): Added for unit testing.
  8105. * src/DefaultBtInteractive.cc
  8106. * src/BtPieceMessage.cc
  8107. * src/Peer.cc
  8108. * src/Checksum.h
  8109. * src/message.h
  8110. * src/IteratableChecksumValidator.h
  8111. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8112. inside it.
  8113. * src/SegmentMan.{h, cc}
  8114. (checkIntegrity): Removed.
  8115. * src/IteratableChunkChecksumValidator.{h, cc}
  8116. * src/Util.h
  8117. (sha1Sum): Removed.
  8118. (simpleMessageDigest): Removed.
  8119. (fileChecksum): Removed.
  8120. (computeFastSet): Removed.
  8121. * src/ShaVisitor.cc
  8122. * src/ChunkChecksum.h
  8123. * src/DownloadCommand.cc
  8124. Removed messageDigest virtual functions.
  8125. * src/MultiDiskAdaptor.{h, cc}
  8126. * src/DiskAdaptor.h
  8127. * src/ByteArrayDiskWriter.h
  8128. * src/DiskWriter.h
  8129. * src/DiskAdaptorWriter.h
  8130. * src/AbstractSingleDiskAdaptor.{h, cc}
  8131. * src/AbstractDiskWriter.{h, cc}
  8132. Fixed comilation error when message digest is disabled.
  8133. * src/MetalinkEntry.{h, cc}
  8134. * src/MetalinkRequestInfo.cc
  8135. Removed srandom and random.
  8136. * src/SimpleRandomizer.h
  8137. Added size() virtual function to DiskAdaptor
  8138. * src/MultiDiskAdaptor.h
  8139. Fixed the bug that causes that files are not opened correctly in
  8140. multi-file torrent.
  8141. * src/TorrentRequestInfo.cc
  8142. * src/MultiDiskAdaptor.cc
  8143. Added SHA256 support
  8144. * src/messageDigest.cc
  8145. * src/Xml2MetalinkProcessor.cc
  8146. Show supported message digest algorithms
  8147. * src/main.cc
  8148. Updated contact info.
  8149. * src/main.cc
  8150. Applied Ross's patch
  8151. * src/a2netcompat.h
  8152. * src/main.cc
  8153. Fixed the bug that prevents a remote metalink from not being processed
  8154. even if '-o foo.metalink' is specified.
  8155. * src/MetalinkRequestInfo.cc
  8156. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8157. Merged Dan's patch:
  8158. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8159. Use va_copy to avoid core dump on amd64:
  8160. * src/SimpleLogger.cc
  8161. Updated contact info.
  8162. * src/main.cc
  8163. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8164. digest is not available.
  8165. * src/MetalinkEntry.h
  8166. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. Make a2netcompat.h include a2io.h to fix compilation error:
  8168. * src/a2netcompat.h
  8169. * src/SocketCore.cc: Removed include of a2io.h
  8170. * src/Util.cc: Removed include of a2io.h
  8171. Gather time related functions to a2time.h:
  8172. * src/a2time.h: New file.
  8173. * src/DefaultPeerStorage.cc
  8174. * src/SimpleLogger.cc
  8175. * src/Util.{h, cc}
  8176. * src/SimpleRandomizer.h
  8177. * src/TimeA2.{h,cc}
  8178. * src/DownloadCommand.cc
  8179. * src/main.cc
  8180. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8181. a2netcompat.h:
  8182. * src/NameResolver.cc
  8183. Fixed compilation error without openssl:
  8184. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8185. Added default block to suppress compiler warnings:
  8186. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8187. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8188. MinGW build enhancements. The following files are added:
  8189. * src/gai_strerror.{c,h}
  8190. * src/gettimeofday.{c,h}
  8191. Changes to support the above new files:
  8192. * configure.ac
  8193. * src/Makefile.am
  8194. * src/a2netcompat.h
  8195. * src/TimeA2.cc
  8196. * src/DefaultPeerStorage.cc
  8197. * src/NameResolver.cc: removed mingw_strerror() function.
  8198. * src/SocketCore.cc: removed mingw_strerror() function.
  8199. Miscellaneous MinGW build fixes.
  8200. * src/a2io.h: Use _lseeki64() instead of lseek()
  8201. * src/common.h
  8202. * src/DefaultFileAllocator.cc
  8203. * src/GlowFileAllocator.cc
  8204. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8205. * src/NameResolver.cc
  8206. (callback): Changed int32_t to int.
  8207. (resolve): Changed int32_t to int.
  8208. * src/Platform.cc
  8209. * src/Platform.h
  8210. * test/MultiDiskWriterTest.cc
  8211. * test/PeerMessageUtilTest.cc
  8212. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8213. Other enhancements and fixes.
  8214. * src/HttpRequestCommand.cc
  8215. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8216. * src/SocketCore.cc:
  8217. (error): New function to abstract errno/WSAGetLastError().
  8218. (errorMsg): New function to abstract errno/WSAGetLastError().
  8219. (initiateSecureConnection): Added more detailed error reporting.
  8220. * src/SocketCore.h: Added private variable blocking, to allow
  8221. proper handling of OpenSSL psuedo-errors.
  8222. * src/message.h
  8223. (EX_SSL_INIT_FAILURE)
  8224. (EX_SSL_IO_ERROR)
  8225. (EX_SSL_PROTOCOL_ERROR)
  8226. (EX_SSL_UNKNOWN_ERROR)
  8227. (EX_SSL_CONNECT_ERROR)
  8228. (EX_SOCKET_BLOCKING)
  8229. (EX_SOCKET_NONBLOCKING)
  8230. (EX_SOCKET_UNKNOWN_ERROR)
  8231. * src/Util.cc
  8232. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8233. reserved name.
  8234. (httpGMT): Fixed typo.
  8235. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8236. Merged Ross's win32 patch(manually)
  8237. In the course of merging, following files are added.
  8238. * src/strptime.{h,c}
  8239. * src/libgen.{h,c}
  8240. * src/inet_aton.{h,c}
  8241. * src/Platform.{h,cc}
  8242. * src/localtime_r.{h,c}
  8243. * src/getaddrinfo.{h,c}
  8244. I've gethered network related things, and put them to following file:
  8245. * src/a2netcompat.h
  8246. Also io related things are put to following file:
  8247. * src/a2io.h
  8248. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8249. * src/message.h
  8250. (MSG_ALLOCATION_COMPLETED)
  8251. (EX_TOO_LARGE_FILE)
  8252. (EX_SIZE_MISMATCH)
  8253. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8254. (EX_INVALID_CHUNK_CHECKSUM)
  8255. (EX_INVALID_RANGE_HEADER)
  8256. * src/FileAllocationCommand.cc
  8257. * src/HttpResponse.cc
  8258. * src/RequestGroup.cc
  8259. * src/MultiDiskAdaptor.cc
  8260. * src/OptionHandlerImpl.h
  8261. * src/HttpResponseCommand.cc
  8262. * src/FtpNegotiateCommand.cc
  8263. * src/IteratableChecksumValidator.cc
  8264. * src/SegmentMan.cc
  8265. * src/ChunkChecksumValidator.cc
  8266. Added Randomizer::getRandomNumber(long int)
  8267. * src/Randomizer.h (getRandomNumber)
  8268. * src/SimpleRandomizer.h (getRandomNumber)
  8269. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8270. * src/Util.cc (randomAlpha): Use this new function.
  8271. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8272. Converted int's to in32_t. long long int's are also converted to
  8273. int64_t
  8274. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Fixed the bug that prevents cookies from being sent to the server
  8276. if the domain of cookie is FQDN and starts with ".".
  8277. * src/Cookie.cc (match)
  8278. To add the ability to change peer id.
  8279. * src/DefaultBtContext.h
  8280. (_peerIdPrefix): New variable
  8281. (setPeerIdPrefix): New function.
  8282. * src/torrentRequestInfo.cc
  8283. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8284. DefaultBtContext.
  8285. * src/main.cc (main): Added peer-id-prefix command-line option.
  8286. The usage message is not added yet.
  8287. * src/DefaultBtContext.cc
  8288. (generatePeerId): Use _peerIdPrefix.
  8289. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8290. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8291. Fixed the bug that prevents filename in content-disposition from
  8292. being retrieved when filename is not quoted.
  8293. * src/Util.cc (getContentDispositionFilename)
  8294. Fixed the bug that causes infinate loop and memory leak when file open
  8295. operation failed.
  8296. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8297. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. Fixed the bug that causes segfault when all URIs specified are
  8299. unsupported.
  8300. * src/RequestGroupMan.cc (getInitialCommands)
  8301. Check if RequestGroup::createNextCommand() returns empty list of
  8302. commands.
  8303. * src/RequestGroup.cc (createNextCommand)
  8304. Change log level from info to error so that users can notice that
  8305. an error occurred.
  8306. Fixed the bug that causes segfault when a zero-sized file is
  8307. downloaded.
  8308. * src/BitfieldMan.cc (isAllBitSet)
  8309. Return true if bitfieldLength is 0.
  8310. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8311. * src/main.cc
  8312. (showUsage): Added 3 usage examples for metalink download.
  8313. Replace MetalinkChunkChecksum with ChunkChecksum.
  8314. * src/MetalinkChunkChecksum.h: Removed.
  8315. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8316. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8317. * src/Xml2MetalinkProcessor.cc
  8318. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8319. * src/MetalinkRequestInfo.cc (execute)
  8320. * Release 0.11.1
  8321. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Reads URIs from stdin when "-i -" is specified.
  8323. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8324. * src/UriListParser.h, src/UriListParser.cc: New class.
  8325. * src/StreamUriListParser.h: New class.
  8326. * src/FileUriListParser.h: New class.
  8327. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8328. instead of UriFileListParser.
  8329. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. Made console readout more readable.
  8331. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8332. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Fix the bug that causes -s option not to work.
  8334. * src/main.cc (main)
  8335. * src/a2algo.h: New file.
  8336. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. Create directory structure specified in metalink file.
  8338. * src/RequestGroup.h, src/RequestGroup.cc
  8339. (initAndOpenFile): Create a directory to store files if it does not
  8340. exist.
  8341. (getDir): New function.
  8342. Added ETA and download speed for an individual file to readout.
  8343. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8344. * src/RequestGroup.h
  8345. (calculateDownloadSpeed): New function.
  8346. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8347. Made -S option work with metalink file and provided selective download
  8348. to metalink.
  8349. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8350. (filename): Removed.
  8351. (file): New variable.
  8352. (size): Removed.
  8353. (operator=): Updated.
  8354. (getPath): New function.
  8355. (getLength): New function.
  8356. (toFileEntry): New function.
  8357. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8358. (execute): Use toStream.
  8359. (showFileEntry): Removed.
  8360. * src/MetalinkRequestInfo.h
  8361. (targetFiles): New variable.
  8362. (setTargetFiles): New variable.
  8363. * src/MetalinkRequestInfo.cc
  8364. (execute): Added the ability to print file information included in
  8365. a metalink file.
  8366. Added selective download mode to metalink.
  8367. * src/main.cc
  8368. (showUsage): Updated to denote that -S and --select-file options are
  8369. applicable to metalink.
  8370. * src/FileEntry.h
  8371. (operator=): New function.
  8372. (getBasename): New function.
  8373. (getDirname): New function.
  8374. * src/Util.h, src/Util.cc
  8375. (toStream): New function.
  8376. * src/Xml2MetalinkProcessor.cc: Updated.
  8377. Made aria2 work with metalink with directory structure.
  8378. * src/File.h, src/File.cc
  8379. (getBasename): New function.
  8380. (getDirname): New function.
  8381. * src/RequestGroup.h, src/RequestGroup.cc
  8382. (_topDir): New variable.
  8383. (setTopDir): New function.
  8384. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8385. Rewrote HTTP header parsing with stringstream.
  8386. * src/HttpConnection.h, src/HttpConnection.cc
  8387. (HttpRequestEntry): New class.
  8388. (headerBuf): Removed.
  8389. (headerBufLength): Removed.
  8390. (outstandingHttpRequests): Now its element type is
  8391. HttpRequestEntryHandle.
  8392. (findEndOfHeader): Removed.
  8393. (receiveResponse): Rewritten.
  8394. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8395. Updated doc for -j option to notice that it should be used with -i
  8396. option.
  8397. * src/main.cc (showUsage)
  8398. Removed unused classes.
  8399. * src/RequestInfo.h
  8400. (FileInfo): Removed.
  8401. (checksum): Removed.
  8402. (fileInfo): Removed.
  8403. (setChecksum): Removed.
  8404. (getChecksum): Removed.
  8405. (getFileInfo): Removed.
  8406. Use ISO units.
  8407. * src/ConsoleDownloadEngine.cc
  8408. * src/TorrentConsoleDownloadEngine.cc
  8409. * src/Util.cc (abbrevSize)
  8410. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8411. Added the default listening ports to the help message.
  8412. * src/main.cc (showUsage)
  8413. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8414. Reduce the number of calls to gettimeofday to lower CPU load.
  8415. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8416. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8417. * src/Peer.h (calculateUploadSpeed): New function.
  8418. (calculateDownloadSpeed): New function.
  8419. * src/DefaultPeerStorage.cc
  8420. (CalculateStat): Added _now variable.
  8421. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8422. and Peer::calculateUploadSpeed(const struct timeval&)
  8423. Drop connection if no request or piece message is exchanged in
  8424. a certain interval.
  8425. * src/DefaultBtInteractive.h
  8426. (btRuntime): New variable.
  8427. (inactiveCheckPoint): New variable.
  8428. (checkActiveInteraction): New function.
  8429. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8430. request or piece message is received.
  8431. (checkActiveInteraction): New function.
  8432. (doInteractionProcessing): Call checkActiveInteraction.
  8433. Fixed the bug that causes remote Metalink and Torrent files are not
  8434. processed.
  8435. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8436. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8437. Changed format of log file.
  8438. * src/SimpleLogger.cc
  8439. * Release 0.11.0
  8440. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8441. * src/AbstractCommand.cc
  8442. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8443. MSG_MAX_TRY from error to info.
  8444. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8445. * src/message.h
  8446. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8447. (MSG_DOWNLOAD_ABORTED): Added %s.
  8448. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8449. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8450. * src/PeerAbstractCommand.cc
  8451. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8452. * src/Request.h
  8453. (cookieBox): Made ShardHandle.
  8454. * src/RequestGroup.h, src/RequestGroup.cc
  8455. (createNextCommandWithAdj): New function.
  8456. * src/FileAllocationCommand.cc
  8457. (executeInternal): Use createNextCommandWithAdj().
  8458. * src/CheckIntegrityCommand.cc
  8459. (executeInternal): Use createNextCommandWithAdj().
  8460. Added --load-cookies command-option.
  8461. * src/OptionHandlerFactory.cc
  8462. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8463. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8464. Now aria2 can handle cookie's expiration date.
  8465. * src/Cookie.h (expires): Changed its type to time_t.
  8466. * src/main.cc: Added --load-cookies command-line option.
  8467. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8468. * src/Util.h, src/Util.cc (httpGMT): New function.
  8469. * src/Request.cc (Request): Initialize cookieBox using
  8470. CookieBoxFactory.
  8471. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8472. * src/CookieParser.h, src/CookieParser.cc: New class.
  8473. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8474. * src/HttpResponseCommand.cc
  8475. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8476. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8477. download.
  8478. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Added -j command-line option.
  8480. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8481. * src/main.cc
  8482. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8483. Rewritten using stringstream.
  8484. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8485. Rewritten using stringstream.
  8486. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Make download size shown in MB, KB.
  8488. * src/ConsoleDownloadEngine.h (sendStatistics)
  8489. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8490. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8491. Accept incoming connections if download rate is low.
  8492. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8493. (_lowestSpeedLimit): New variable.
  8494. (setLowestSpeedLimit): New function.
  8495. (execute): Accept incoming connections if download rate is low.
  8496. MAX_PEERS is ignored in this case.
  8497. Disable PREF_OUT in multiple concurrent download:
  8498. * src/RequestGroup.h, src/RequestGroup.cc
  8499. (setUserDefinedFilename): New function.
  8500. * src/DownloadEngineFactory.cc
  8501. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8502. concurrent download.
  8503. * src/DefaultSegmentManFactory.cc
  8504. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8505. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8506. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8507. Added its overloaded method.
  8508. * src/RequestGroup.h
  8509. (_numConcurrentCommand): New variable.
  8510. (setNumConcurrentCommand): New function.
  8511. * src/RequestGroup.cc
  8512. Abort download if same file is being downloaded concurrently.
  8513. * src/RequestGroup.h, src/RequestGroupMan.cc
  8514. (isSameFileBeingDownloaded): New function.
  8515. * src/HttpResponseCommand.cc (executeInternal)
  8516. * src/FtpNegotiateCommand.cc (recvSize)
  8517. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8518. * main.cc: Added help message for -i option.
  8519. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8520. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8521. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8522. * src/MetalinkEntry.h
  8523. (checksum): Changed to ChecksumHandle
  8524. * src/MetalinkRequestInfo.cc
  8525. (checksum): Changed to ChecksumHandle
  8526. * src/File.cc
  8527. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8528. * src/common.h
  8529. (DIR_OPEN_MODE): New definition
  8530. * src/RequestGroup.cc
  8531. (prepareForNextAction): Added an argument.
  8532. * src/message.h
  8533. (MSG_GOOD_CHECKSUM): New definition
  8534. (MSG_BAD_CHECKSUM): New definition
  8535. * src/HttpResponseCommand.cc
  8536. (handleDefaultEncoding): Continue download sequence in new
  8537. non-segmented download.
  8538. * src/FileAllocationEntry.h
  8539. (_nextDownloadCommand): New variable.
  8540. * src/DownloadCommand.cc
  8541. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8542. available.
  8543. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8544. * src/IteratableChecksumValidator.h,
  8545. src/IteratableChecksumValidator.cc: New class.
  8546. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8547. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8548. Change file mode to 666:
  8549. * src/common.h (OPEN_MODE): New definition.
  8550. * src/File.cc
  8551. * src/Util.cc
  8552. * src/Directry.cc
  8553. * src/AbstractDiskWriter.cc
  8554. Change the level of log message "download aborted" to debug:
  8555. * src/PeerAbstractCommand.cc (execute)
  8556. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8557. * src/TrackerWatcherCommand.cc
  8558. (createCommand): Sleep some seconds after request failed.
  8559. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8560. then abort tracker request.
  8561. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8562. * Added the simultaneous download feature.
  8563. * src/main.cc: Print "Exception caught: " when exception is caught.
  8564. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8565. * src/ActivePeerConnectionCommand.cc
  8566. * src/PeerInteractionCommand.cc
  8567. * src/BtRuntime.h
  8568. (cuidCounter): Removed.
  8569. (getNewCuid): Removed.
  8570. * src/DownloadEngineFactory.cc
  8571. * src/PeerListenCommand.cc
  8572. * src/TrackerUpdateCommand.cc
  8573. * src/PeerInitiateConnectionCommand.cc
  8574. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8575. * src/PeerAbstractCommand.cc
  8576. (onAbort): Call PeerStorage::returnPeer()
  8577. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8578. (incomingPeers): New variable.
  8579. (addIncomingPeer): New function.
  8580. (returnPeer): New function.
  8581. (onErasingPeer): New function.
  8582. (addPeer): push_back -> push_front
  8583. (getActivePeers): Rewritten.
  8584. (calculateStat): Rewritten.
  8585. * src/PeerStorage.h
  8586. (TransferStat::copy): New function.
  8587. (TransferStat::TransferStat): New function.
  8588. (TransferStat::operator=): New function.
  8589. (addIncomingPeer): New function.
  8590. (returnPeer): New function.
  8591. * src/PeerListenCommand.cc
  8592. (execute): Use PeerStorage::addIncomingPeer() instead of
  8593. Peer::addPeer().
  8594. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8595. Connect to a peer actively when download speed is lower than specified
  8596. speed in torrent download:
  8597. * src/ActivePeerConnectionCommand.h: New class.
  8598. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8600. * src/main.cc: Fixed the bug that prevents download if .netrc
  8601. doesn't exist.
  8602. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8603. To cache resolved hostname:
  8604. * src/AbstractCommand.h, src/AbstractCommand.cc
  8605. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8606. Added dns cache.
  8607. * src/FtpInitiateConnectionCommand.cc
  8608. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8609. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8610. NameResolver working without ares.
  8611. * src/TorrentRequestInfo.cc
  8612. (execute): Don't cache dns in torrent download.
  8613. * src/HttpInitiateConnectionCommand.cc
  8614. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8615. * src/DNSCache.h: New class.
  8616. * src/UrlRequestInfo.cc
  8617. (execute): Use dns cache.
  8618. In http request, suppress port number in http request header if port
  8619. is 80 or 443:
  8620. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8621. request header if port is 80 or 443.
  8622. (createProxyRequest): Allways send port number.
  8623. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8624. To add the command-line option which disables netrc support:
  8625. * src/OptionHandlerFactory.cc
  8626. (createOptionHandlers): Added PREF_NO_NETRC.
  8627. * src/main.cc: Added -n option.
  8628. * src/prefs.h (PREF_NO_NETRC): New definition.
  8629. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8630. V_TRUE.
  8631. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8632. is V_FALSE. This may get configurable in the future release.
  8633. To clear peer's error status by time basis:
  8634. * src/PeerAbstractCommand.cc
  8635. (onAbort): Call Peer::startBadCondition().
  8636. * src/Peer.h, src/Peer.cc
  8637. (error): Removed.
  8638. (_badConditionStartTime): New variable.
  8639. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8640. (startBadCondition): New function.
  8641. (isGood): New function.
  8642. * src/DefaultPeerStorage.cc
  8643. (addPeer): Use Peer::isGood().
  8644. (FindFinePeer): Use Peer::isGood().
  8645. Always include port number in http request header:
  8646. * src/HttpRequest.cc (getHostText): Always include port number in
  8647. http request header.
  8648. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. To the ability to read options from a config file:
  8650. * src/main.cc: Command-line parameter validation is delegated to
  8651. OptionHandler class.
  8652. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8653. * src/Option.h, src/Option.cc (clear): New function.
  8654. * src/OptionParser.h, src/OptionParser.cc: New class.
  8655. * src/OptionHandler.h: New class.
  8656. * src/NameMatchOptionHandler.h: New class.
  8657. * src/OptionHandlerImpl.h: New classes.
  8658. * src/prefs.h: '_' -> '-'
  8659. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8660. (FTP_PASV): New definition.
  8661. * src/Util.h, src/Util.cc (getRealSize): New function.
  8662. To disable netrc support if .netrc file does not have correct
  8663. permissions:
  8664. * src/File.h, src/File.cc (mode): New function.
  8665. To prevent confidential information to be logged:
  8666. * src/HttpConnection.h, src/HttpConnection.cc
  8667. (eraseConfidentialInfo): New function.
  8668. (sendRequest): Call eraseConfidentialInfo().
  8669. (sendProxyRequest): Call eraseConfidentialInfo().
  8670. * src/main.cc: Validate permissions of .netrc file.
  8671. To add --user-agent command-line option:
  8672. * src/main.cc: Added new command line option: --user-agent
  8673. * src/prefs.h (PREF_USER_AGENT): New definition.
  8674. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8675. parameter to HttpRequest object.
  8676. * src/AbstractProxyRequestCommand.cc
  8677. (executeInternal): Set user-agent option parameter to HttpRequest
  8678. object.
  8679. Marged the patches from Dan Fandrich.
  8680. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. Use filename and size from Metalink file instead of sending HEAD
  8682. request:
  8683. * src/UrlRequestInfo.h
  8684. (_filename): New variable.
  8685. (_totalLength): New variable.
  8686. (setTotalLength): New variable.
  8687. (setFilename): New variable.
  8688. * src/MetalinkRequestInfo.cc
  8689. (execute): Set filename and size to UrlRequestInfo
  8690. * src/UrlRequestInfo.cc
  8691. (execute): Use filename and size from Metalink instead of seding
  8692. HEAD request to servers.
  8693. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8694. To add the ability to resume downloading a partially downloaded file
  8695. which is downloaded from the beginning:
  8696. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8697. takes this role.
  8698. * src/main.cc: Added -c option.
  8699. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8700. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8701. * src/prefs.h (PREF_CONTINUE): New definition.
  8702. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8703. * src/DefaultDiskWriter.cc
  8704. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8705. * src/AbstractDiskWriter.h
  8706. (glowFileAllocator): New variable.
  8707. * src/AbstractDiskWriter.cc
  8708. (openExistingFile): Now preallocate file space from the end of the
  8709. existing file if totalLength argument is specified and grater than 0.
  8710. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8711. to download exists in local, continue the download of the file.
  8712. --allow-overwrite=true is assumed in this context.
  8713. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8714. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8715. Throw exception if --check-integrity=true is specified but chunk
  8716. checksums are not provided:
  8717. * src/UrlRequestInfo.cc
  8718. Do not print URLs to stdout:
  8719. * src/UrlRequestInfo.cc
  8720. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. * src/Request.h: Use AuthResolver to get authentication information.
  8722. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8723. set to RequestFactory object.
  8724. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8725. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8726. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8727. create Request object.
  8728. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8729. To integrate Netrc into exsiting classes:
  8730. * src/Request.h
  8731. (_userDefinedAuthConfig): New variable.
  8732. (findNetrcAuthenticator): New function.
  8733. (segment): Removed.
  8734. (setUserDefinedAuthConfig): New function.
  8735. (resolveHttpAuthConfigItem): New function.
  8736. (resolveFtpAuthConfigItem): New function.
  8737. (resolveHttpProxyAuthConfigItem): New function.
  8738. * src/HttpRequest.h
  8739. (authConfig): Removed.
  8740. (proxyAuthConfig): Removed.
  8741. (setAuthConfig): Removed.
  8742. (setProxyAuthConfig): Removed.
  8743. * src/UrlRequest.h
  8744. (getHeadResult): Added a parameter: authConfigHandle
  8745. * src/common.h
  8746. (SingletonHolder.h): New include.
  8747. * src/main.cc
  8748. (Netrc.h): New include.
  8749. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8750. Added initial value of PREF_NETRC_PATH.
  8751. Added the initialization of netrc.
  8752. * src/AuthConfig.h: New class.
  8753. * src/prefs.h
  8754. (PREF_NETRC_PATH): New definition.
  8755. * src/HttpAuthConfig.h: Removed.
  8756. * src/Netrc.cc
  8757. (getRequiredNextToken): New function.
  8758. (skipMacdef): New function.
  8759. (parse): Rewritten.
  8760. * src/Netrc.h
  8761. (getRequiredNextToken): New function.
  8762. (skipMacdef): New function.
  8763. * src/Util.h, src/Util.cc
  8764. (getHomeDir): New function.
  8765. * src/TrackerWatcherComand.cc
  8766. (createRequestCommand): Use AuthConfig.
  8767. * src/FtpConnection.cc
  8768. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8769. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8770. * src/Request.cc
  8771. (findNetrcAuthenticator): New function.
  8772. (resolveHttpAuthConfigItem): New function.
  8773. (resolveFtpAuthConfigItem): New function.
  8774. (resolveHttpProxyAuthConfigItem): New function.
  8775. * src/UrlRequestInfo.cc: Use AuthConfig.
  8776. * src/HttpRequest.cc
  8777. (createRequest): Use authConfig.
  8778. (getProxyAuthString): Use authConfig.
  8779. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8780. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8781. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. To reduce overhead to find commands whose socket is either
  8783. readable or writable in the download engine loop:
  8784. * src/Command.h, src/Command.cc
  8785. (STATUS): New enum.
  8786. (status): New variable.
  8787. (statusMatch): New function.
  8788. (setStatusActive): New function.
  8789. (setStatusInactive): New function.
  8790. * src/DownloadEngine.h, src/DownloadEngine.cc
  8791. (executeCommand): New function.
  8792. (run): Simplified.
  8793. (waitData): Call Command::setStatusActive() when command's socket is
  8794. readable or writable.
  8795. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8796. To handle Segment as SegmentHandle:
  8797. * src/AbstractCommand.cc (execute): Rewritten.
  8798. * src/SegmentMan.h: Segment -> SegmentHandle
  8799. Introducded HttpResponse class, HttpRequest class to improve code
  8800. extensiveness and make it clear:
  8801. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8802. HttpResponse class.
  8803. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8804. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8805. * src/HttpConnection.cc: Contruction of http request were moved to
  8806. HttpRequest class.
  8807. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8808. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8809. * src/HttpAuthConfig.h: New class.
  8810. * src/Range.h: New class.
  8811. To make FtpTunnel{Request, Response}Command and
  8812. HttpProxy{Request, Response}Command derived from
  8813. AbstractProxy{Request, Response}Command:
  8814. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8815. Derived from AbstractProxyRequestCommand class.
  8816. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8817. Derived from AbstractProxyResponseCommand class.
  8818. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8819. Derived from AbstractProxyRequestCommand class.
  8820. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8821. Derived from AbstractProxyResponseCommand class.
  8822. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8823. : New class.
  8824. * src/AbstractProxyResponseCommand.h,
  8825. src/AbstractProxyResponseCommand.cc: New class.
  8826. To add netrc support:
  8827. * src/Netrc.h, src/Netrc.cc: New class.
  8828. * src/Util.h, src/Util.cc (split): New function.
  8829. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8830. "Content-Range" header instead of "Range" header.
  8831. * src/HttpHeader.h
  8832. (getStatus): Removed.
  8833. (setStatus): Removed.
  8834. * src/Segment.h
  8835. (getPositionToWrite): New function.
  8836. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8837. * src/HttpHeader.h
  8838. (Range.h): New include.
  8839. (status): New variable.
  8840. (HttpHeader): Initialized status with 0.
  8841. (getStatus): New function.
  8842. (setStatus): New function.
  8843. (getRange): New function.
  8844. (HttpHeaderHandle): New function.
  8845. * src/HttpHeader.cc
  8846. (getRange): New function.
  8847. * src/Request.h
  8848. (RequestWeakHandle): New definition.
  8849. * src/HttpConnection.h
  8850. (HttpConnectionHandle): New type definition.
  8851. * src/HttpConnection.cc
  8852. (receiveResponse): Set HTTP status to headers.
  8853. * src/main.cc
  8854. (showUsage): Fixed typo.
  8855. * src/Segment.h
  8856. (SegmentHandle): New type definition.
  8857. * src/BitfieldMan.h
  8858. (getMissingUnusedLength): New function.
  8859. * src/BitfieldMan.cc
  8860. (getMissingUnusedLength): New function.
  8861. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. To fix static initialization order problem:
  8863. * src/BitfieldManFactory.h
  8864. (defaultRandomizer): Removed.
  8865. (factory): New variable.
  8866. (getNewFactory): Removed.
  8867. (getFactoryInstance): New function.
  8868. (setDefaultRandomizer): Rewritten.
  8869. (getDefaultRandomizer): Rewritten.
  8870. * src/BitfieldManFactory.cc
  8871. (defaultRandomizer): Removed.
  8872. (factory): Initialized to 0.
  8873. (BitfieldManFactory): Initialized randomizer to 0.
  8874. * src/DefaultPieceStorage.cc
  8875. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  8876. * src/Peer.cc
  8877. (Peer): getNewFactory() -> getFactoryInstance()
  8878. * src/SegmentMan.cc
  8879. (initBitfield): getNewFactory() -> getFactoryInstance()
  8880. * src/Piece.cc
  8881. (Piece): getNewFactory() -> getFactoryInstance()
  8882. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. To fix the bug that causes crash on Max OS X:
  8884. * src/SimpleRandomizer.h
  8885. (getInstance): Create new instance if the static variable is null.
  8886. * src/SimpleRandomizer.cc
  8887. (randomizer): Initialized to 0.
  8888. * src/BitfieldManFactory.h
  8889. (getNewFactory): Removed the call to setRandomizer().
  8890. To fix the miscalculation of the range of checksum:
  8891. * src/BitfieldMan.h
  8892. (isBitSetOffsetRange): New function.
  8893. * src/BitfieldMan.cc
  8894. (isBitSetOffsetRange): New function.
  8895. * src/SegmentMan.cc
  8896. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  8897. Use bitfield->getBlockLength() instead of segment.segmentLength.
  8898. * Release 0.10.1
  8899. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8900. To lower CPU usage in BitTorrent download when --max-upload-limit
  8901. command-line option specified:
  8902. * src/DefaultBtMessageDispatcher.cc
  8903. (sendMessages): Calculate uploading speed only when current message
  8904. is uploading data and is not sent yet.
  8905. * src/DefaultPeerStorage.h
  8906. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  8907. * src/HttpResponseCommand.cc
  8908. (handleDefaultEncoding): Added the cast to int32_t to itos.
  8909. This fixes compile error in Soralis 10.
  8910. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8911. To fix segfault in Metalink download:
  8912. * src/UrlRequestInfo.h
  8913. (filename): Removed.
  8914. (totalLength): Removed.
  8915. (setTotalLength): Removed.
  8916. (setFilename): Removed.
  8917. * src/MetalinkRequestInfo.cc
  8918. (execute): Do not set filename and totalLength to reqInfo.
  8919. Set chunk checksum to reqInfo if it is not null.
  8920. * src/HttpResponseCommand.cc
  8921. (executeInternal): Fixed filename in log.
  8922. (handleDefaultEncoding): Removed the call to initBitfield() and
  8923. markAllPiecesDone().
  8924. (handleOtherEncoding): Added HEAD method handling.
  8925. * src/FtpNegotiateCommand.cc
  8926. (executeInternal): Added SEQ_HEAD_OK handling.
  8927. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  8928. return false.
  8929. * src/FtpNegotiateCommand.h
  8930. (SEQ_HEAD_OK): New definition.
  8931. * src/SegmentMan.cc
  8932. (initBitfield): Delete bitfield.
  8933. (isChunkChecksumValidationReady): Fixed the condition.
  8934. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  8935. works fine.
  8936. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8937. * src/Xml2MetalinkProcessor.h
  8938. (xpathExists): New function.
  8939. * src/Xml2MetalinkProcessor.cc
  8940. (xpathExists): New function.
  8941. Not to send HEAD request if filename and size are available in Metalink
  8942. file:
  8943. * src/UrlRequestInfo.h
  8944. (filename): New variable.
  8945. (totalLength): New variable.
  8946. (setTotalLength): New function.
  8947. (setFilename): New function.
  8948. * src/MetalinkRequestInfo.cc
  8949. (execute): Set filename and size to UrlRequestInfo.
  8950. * src/MetalinkEntry.cc
  8951. (MetalinkEntry): Initialize size with 0.
  8952. * src/UrlRequestInfo.cc
  8953. (execute): Set filename and size to SegmentMan.
  8954. Not to download rest of the files after selected files are downloaded
  8955. in BitTorrent:
  8956. * src/PieceStorage.h
  8957. (allDownloadFinished): New function.
  8958. * src/DefaultBtAnnounce.cc
  8959. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  8960. downloadFinished.
  8961. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  8962. * src/DefaultPieceStorage.cc
  8963. (completePiece): Use allDownloadFinished instead of downloadFinished.
  8964. Commented out the call to finishSelectiveDownloadingMode().
  8965. (downloadFinished): Call isFilteredAllBitSet() instead of
  8966. isAllBitSet().
  8967. (allDownloadFinished): New function.
  8968. * src/DefaultBtInteractive.cc
  8969. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  8970. downloadFinished().
  8971. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  8972. * src/TorrentDownloadEngine.cc
  8973. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  8974. * src/BitfieldMan.h
  8975. (isFilteredAllBitSet): New function.
  8976. * src/ShareRatioSeedCriteria.h
  8977. (PieceStorage.h): New include.
  8978. (pieceStorage): New variable.
  8979. (evaluate):
  8980. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  8981. * src/BitfieldMan.cc
  8982. (isFilteredAllBitSet): New function.
  8983. (isAllBitSet): Filter is not took into account.
  8984. Rename --force-truncate as --allow-overwrite:
  8985. * src/TorrentRequestInfo.cc
  8986. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  8987. * src/main.cc
  8988. (showUsage): --force-truncate -> --allow-overwrite
  8989. * src/message.h
  8990. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  8991. * src/prefs.h
  8992. (PREF_FORCE_TRUNCATE): Removed.
  8993. (PREF_ALLOW_OVERWRITE): New definition.
  8994. * src/SegmentMan.cc
  8995. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  8996. * src/MetalinkRequestInfo.cc
  8997. (execute): Queueing message are now logged in info level.
  8998. * src/common.h
  8999. (LONG_LONG_MAX): Removed.
  9000. (LONG_LONG_MIN): Removed.
  9001. * src/HttpResponseCommand.cc
  9002. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9003. * src/FtpNegotiateCommand.cc
  9004. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9005. * src/main.cc
  9006. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9007. command-line option.
  9008. (main): Added --check-integriy and --realtime-chunk-checksum
  9009. command-line option.
  9010. --force-truncate -> --allow-overwrite
  9011. Set initial value of --check-integrity option to false.
  9012. Don't show usage when error occurs while persing command-line options.
  9013. Removed deprecated --upload-limit option.
  9014. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9015. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9016. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9017. * src/BtAllowedFastMessage.cc:
  9018. * src/BtBitfieldMessage.cc
  9019. * src/BtCancelMessage.cc
  9020. * src/BtChokeMessage.cc
  9021. * src/BtHaveAllMessage.cc
  9022. * src/BtHaveMessage.cc
  9023. * src/BtHaveNoneMessage.cc
  9024. * src/BtInterestedMessage.cc
  9025. * src/BtNotInterestedMessage.cc
  9026. * src/BtPieceMessage.cc
  9027. * src/BtPortMessage.cc
  9028. * src/BtRejectMessage.cc
  9029. * src/BtRequestMessage.cc
  9030. * src/BtSuggestPieceMessage.cc
  9031. * src/BtUnchokeMessage.cc
  9032. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9033. files are affected.
  9034. * src/ChunkChecksumValidator.cc
  9035. * src/SegmentMan.cc
  9036. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9037. To add chunk checksum validation:
  9038. * src/MetalinkEntry.h
  9039. (MetalinkChunkChecksum.h): New include.
  9040. (chunkChecksum): New variable.
  9041. * src/Request.h
  9042. (method): New variable.
  9043. (setMethod): New function.
  9044. (getMethod): New function.
  9045. (METHOD_GET): New static constant.
  9046. (METHOD_HEAD): New static constant.
  9047. * src/Xml2MetalinkProcessor.h
  9048. (getPieceHash): New function.
  9049. * src/PieceStorage.h
  9050. (markAllPiecesDone): New function.
  9051. (checkIntegrity): New function.
  9052. * src/FileAllocator.h
  9053. (NullFileAllocationMonitor.h): New include.
  9054. (FileAllocator): Initialize fileAllocationMonitor with new
  9055. NullFileAllocationMonitor().
  9056. * src/MultiDiskAdaptor.h
  9057. (messageDigest.h): Remove include.
  9058. (ctx): Removed.
  9059. (hashUpdate): Added ctx.
  9060. (MultiDiskAdaptor): Removed ctx.
  9061. (sha1Sum): Renamed as messageDigest.
  9062. (messageDigest): New function.
  9063. * src/UrlRequestInfo.h
  9064. (HeadResult): New class.
  9065. (digestAlgo): New variable.
  9066. (chunkChecksumLength): New variable.
  9067. (chunkChecksums): New variable.
  9068. (getHeadResult): New function.
  9069. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9070. (setDigestAlgo): New function.
  9071. (setChunkChecksumLength): New function.
  9072. (setChunkChecksums): New function.
  9073. * src/DefaultPieceStorage.cc
  9074. (DiskAdaptorWriter.h): New include.
  9075. (ChunkChecksumValidator.h): New include.
  9076. (markAllPiecesDone): New function.
  9077. (checkIntegrity): New function.
  9078. * src/DefaultBtContext.h
  9079. (getPieceHashes): New function.
  9080. * src/TorrentRequestInfo.cc
  9081. (execute): Try to validate chunk checksum if file already exists and
  9082. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9083. * src/messageDigest.h
  9084. (~MessageDigestContext): Added digestFree().
  9085. * src/MetalinkRequestInfo.cc
  9086. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9087. * src/DiskAdaptor.h
  9088. (messageDigest.h): New include.
  9089. (sha1Sum): Renamed as messageDigest.
  9090. (messageDigest): New function.
  9091. * src/DownloadCommand.h
  9092. (PeerStat.h): New include.
  9093. (maxDownloadSpeedLimit): New variable.
  9094. (startupIdleTime): New variable.
  9095. (lowestDownloadSpeedLimit): New variable.
  9096. (peerStat): New variable.
  9097. (setMaxDownloadSpeedLimit): New function.
  9098. (setStartupIdleTime): New function.
  9099. (setLowestDownloadSPeedLimit): New function.
  9100. * src/BtContext.h
  9101. (getPieceHashes): New function.
  9102. * src/main.cc
  9103. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9104. option to true for testing purpose.
  9105. * src/BtPieceMessage.cc
  9106. (checkPieceHash): Use messageDigest
  9107. * src/DownloadEngine.cc
  9108. (SetDescriptor): Removed.
  9109. (AccumulateActiveCommand): Removed.
  9110. (waitData): Rewritten.
  9111. (updateFdSet): Rewritten.
  9112. * src/MultiDiskAdaptor.cc
  9113. (hashUpdate): Added ctx.
  9114. (sha1Sum): Renamed as messageDigest.
  9115. (messageDigest): New function.
  9116. * src/BitfieldMan.h
  9117. (isBitRangeSet): New function.
  9118. (unsetBitRange): New function.
  9119. * src/ByteArrayDiskWriter.h
  9120. (sha1Sum): Renamed as messageDigest.
  9121. (messageDigest): New function.
  9122. * src/ConsoleDownloadEngine.cc
  9123. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9124. * src/DiskWriter.h
  9125. (messageDigest.h): New include.
  9126. (sha1Sum): Renamed as messageDigest.
  9127. (messageDigest): New function.
  9128. * src/ChunkChecksumValidator.h: New class.
  9129. * src/DiskAdaptorWriter.h: New class.
  9130. * src/prefs.h
  9131. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9132. (PREF_CHECK_INTEGRITY): New definition.
  9133. * src/HttpResponseCommand.cc
  9134. (handleDefaultEncoding): Added method "HEAD" handling.
  9135. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9136. (handleOtherEncoding):
  9137. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9138. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9139. startupIdleTime, lowestDownloadSpeedLimit to command.
  9140. * src/SegmentMan.h
  9141. (getSegmentEntryByIndex): New function.
  9142. (getSegmentEntryByCuid): New function.
  9143. (getSegmentEntryIteratorByCuid): New function.
  9144. (diskWriter): DiskWriter -> DiskWriterHandle
  9145. (pieceHashes): New variable.
  9146. (chunkHashLength): New variable.
  9147. (digestAlgo): New variable.
  9148. (FindPeerStat): Removed.
  9149. (getPeerStat): Rewritten.
  9150. (markAllPiecesDone): New function.
  9151. (checkIntegrity): New function.
  9152. (tryChunkChecksumValidation): New function.
  9153. (isChunkChecksumValidationReady): New function.
  9154. * src/BitfieldMan.cc
  9155. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9156. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9157. blocks to 0.
  9158. (isBitRangeSet): New function.
  9159. (unsetBitRange): New function.
  9160. * src/FtpNegotiateCommand.cc
  9161. (executeInternal): Set maxDownloadSpeedLimit,
  9162. startupIdleTime, lowestDownloadSpeedLimit to command.
  9163. (recvSize): Added method "HEAD" handling.
  9164. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9165. * src/AbstractSingleDiskAdaptor.cc
  9166. (sha1Sum): Renamed as messageDigest.
  9167. (messageDigest): New function.
  9168. * src/AbstractSingleDiskAdaptor.h
  9169. (sha1Sum): Renamed as messageDigest.
  9170. (messageDigest): New function.
  9171. * src/Util.h
  9172. (indexRange): New function.
  9173. * src/MetalinkEntry.cc
  9174. (MetalinkEntry): Initialized chunkChecksum to 0.
  9175. * src/ShaVisitor.cc
  9176. (~ShaVisitor): Removed the call to ctx.digestFree().
  9177. * src/SegmentMan.cc
  9178. (ChunkChecksumValidator.h): New include.
  9179. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9180. to DIGEST_ALGO_SHA1.
  9181. (~SegmentMan): Removed diskWriter.
  9182. (FindSegmentEntryByIndex): Removed.
  9183. (FindSegmentEntryByCuid): Removed.
  9184. (checkoutSegment): Rewritten.
  9185. (findSlowerSegmentEntry): Rewritten.
  9186. (getSegment): Rewritten.
  9187. (updateSegment): Rewritten.
  9188. (completeSegment): Rewritten.
  9189. (markAllPiecesDone): New function.
  9190. (checkIntegrity): New function.
  9191. (isChunkChecksumValidationReady): New function.
  9192. (tryChunkChecksumValidation): New function.
  9193. * src/Xml2MetalinkProcessor.cc
  9194. (getEntry): Get size and set it to entry.
  9195. Get chunk checksum and set it to entry.
  9196. (getPieceHash): New function.
  9197. * src/Util.cc
  9198. (sha1Sum): Removed ctx.digestFree()
  9199. (fileChecksum): Removed ctx.digestFree()
  9200. (indexRange): New function.
  9201. * src/Request.cc
  9202. (METHOD_GET): New variable.
  9203. (METHOD_HEAD): New variable.
  9204. (Request): Added method.
  9205. * src/UrlRequestInfo.cc
  9206. (FatalException.h): New include.
  9207. (message.h): New include.
  9208. (operator<<): Added operator<< for class HeadResult.
  9209. (getHeadResult): New function.
  9210. (execute): Get filename and size in separate download engine.
  9211. * src/ChunkChecksumValidator.cc: New class.
  9212. * src/DownloadCommand.cc:
  9213. (DownloadCommand): Added peerStat.
  9214. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9215. the value from Option.
  9216. The buffer size is now 16KB.
  9217. Use peerStat member instead of getting it from SegmentMan.
  9218. Use startupIdleTime member instead of gettingit from Option.
  9219. Added chunk checksum validation.
  9220. * src/AbstractDiskWriter.cc
  9221. (AbstractDiskWriter): Removed ctx.
  9222. (~AbstractDiskWriter): Removed ctx.digestFree()
  9223. (writeDataInternal): Returns the return value of write.
  9224. (readDataInternal): Returns the return value of read.
  9225. (sha1Sum): Renamed as messageDigest
  9226. (messageDigest): New function.
  9227. * src/AbstractDiwkWriter.h
  9228. (messageDigest.h): Removed include.
  9229. (ctx): Removed.
  9230. (sha1Sum): Renamed as messageDigest
  9231. (messageDigest): New function.
  9232. * src/DefaultPieceStorage.h
  9233. (markAllPiecesDone): New function.
  9234. (checkIntegrity): New function.
  9235. * src/NullFileAllocationMonitor.h: New class.
  9236. * src/MetalinkChunkChecksum.h: New class.
  9237. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9238. To decrease CPU usage in bittorrent download, calculation results in
  9239. BitfieldMan were cached and realtime fetching PeerObject was removed
  9240. with WeakHandle introduced. Option values are set to the objects
  9241. by setter before download begins.
  9242. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9243. * src/DefaultBtRequestFactory.h
  9244. (dispatcher): BtMessageDispatcherHandle ->
  9245. BtMessageDispatcherWeakHandle.
  9246. (messageFactory): New variable.
  9247. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9248. BtMessageDispatcherWeakHandle.
  9249. (setBtMessageFactory): New function.
  9250. * src/DefaultBtMessageDispatcher.cc:
  9251. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9252. from Option.
  9253. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9254. feating the value from Option.
  9255. Use messageFactory member.
  9256. * src/PeerInteractionCommand.cc
  9257. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9258. Add reverse dependencies to factory object.
  9259. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9260. dispatcher.
  9261. Set messageFactory to receiver.
  9262. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9263. btInteractive.
  9264. Set receiver to peerObject.
  9265. Set maxDownloadSpeedLimit to this.
  9266. (executeInternal): Use maxDownloadSpeedLimit member.
  9267. * src/BtChokeMessage.cc
  9268. (doReceivedAction): Use dispatcher, requestFactory member.
  9269. (onSendComplete): Use dispatcher member.
  9270. * src/PeerInteractionCommand.h
  9271. (maxDownloadSpeedLimit): New variable.
  9272. * src/DefaultBtMessageReceiver.h
  9273. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9274. (dispatcher):
  9275. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9276. (messageFactory): New variable.
  9277. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9278. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9279. (setDispatcher):
  9280. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9281. (setBtMessageFactory): New function.
  9282. * src/DefaultBtInteractive.cc
  9283. (initiateHandshake): Use messageFactory member.
  9284. (addBitfieldMessageToQueue): Use messageFactory member.
  9285. (addAllowedFastMessageToQueue): Use messageFactory member.
  9286. (decideChoking): Use messageFactory member.
  9287. (checkHave): Use messageFactory member.
  9288. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9289. (receiveMessages): Use maxDownloadSpeedLimit member.
  9290. (decideInterest): Use messageFactory member.
  9291. * src/BtRequestMessage.cc
  9292. (doReceivedAction): Use messageFactory, dispatcher member.
  9293. (onQueued): Use dispatcher member.
  9294. * src/BtPieceMessage.cc
  9295. (doReceivedAction): Use dispatcher member.
  9296. (send): Use peerConnection member.
  9297. (onWrongPiece): Use requestFactory member.
  9298. (handleChokingEvent): Use messageFactory, dispatcher member.
  9299. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9300. * src/BtMessageDispatcher.h
  9301. (BtMessageDispatcherWeakHandle): New type definition.
  9302. * src/SimpleBtMessage.cc
  9303. (send): Use peerConnection member.
  9304. * src/BtRejectMessage.cc
  9305. (doReceivedAction): Use dispatcher member.
  9306. * src/DefaultBtMessageDispatcher.h
  9307. (Option.h): Removed include.
  9308. (messageFactory): New variable.
  9309. (option): Removed.
  9310. (maxUploadSpeedLimit): New variable.
  9311. (requestTimeout): New variable.
  9312. (DefaultBtMessageDispatcher): Removed option.
  9313. Added maxUploadSpeedLimit, requestTimeout.
  9314. (setOption): Removed.
  9315. (getOption): Removed.
  9316. (setMaxUploadSpeedLimit): New function.
  9317. (setRequestTimeout): New function.
  9318. (setBtMessageFactory): New function.
  9319. * src/DefaultBtInteractive.h
  9320. (btMessageReceiver):
  9321. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9322. (dispatcher):
  9323. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9324. (btRequestFactory):
  9325. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9326. (peerConnection):
  9327. PeerConnectionHandle -> PeerConnectionWeakHandle
  9328. (messageFactory): New variable.
  9329. (option): Removed.
  9330. (keepAliveInterval): New variable.
  9331. (maxDownloadSpeedLimit): New variable.
  9332. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9333. (setBtMessageReceiver):
  9334. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9335. (setDispatcher):
  9336. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9337. (setBtRequestFactory):
  9338. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9339. (setPeerConnection):
  9340. PeerConnectionHandle -> PeerConnectionWeakHandle
  9341. (setOption): Removed.
  9342. (setKeepAliveInterval): New function.
  9343. (setMaxDownloadSpeedLimit): New function.
  9344. (setBtMessageFactory): New function.
  9345. * src/BitfieldMan.h
  9346. (cachedNumMissingBlock): New variable.
  9347. (cachedNumFilteredBlock): New variable.
  9348. (cachedCompletedLength): New variable.
  9349. (cachedFilteredComletedLength): New variable.
  9350. (cachedFilteredTotalLength): New variable.
  9351. (countMissingBlockNow): New function.
  9352. (countFilteredBlockNow): New function.
  9353. (getFilteredTotalLengthNow): New function.
  9354. (getCompletedLengthNow): New function.
  9355. (getFilteredCompletedLengthNow): New function.
  9356. (updateCache): New function.
  9357. * src/AbstractBtMessage.h
  9358. (BtMessageDispatcher.h): New include.
  9359. (PeerConnection.h): New include.
  9360. (BtRequestFactory.h): New include
  9361. (BtMessageFactory.h): New include.
  9362. (dispatcher): New variable.
  9363. (messageFactory): New variable.
  9364. (peerConnection: New variable.
  9365. (setBtMessageDispatcher): New function.
  9366. (setPeerConnection): New function.
  9367. (setBtMessageFactory): New function.
  9368. (setBtRequestFactory): New function.
  9369. * src/DefaultBtMessageFactory.cc
  9370. (setCommonProperty): Set dispatcher, requestFactory, this,
  9371. peerConnection to msg.
  9372. * src/BtRegistry.h
  9373. (BT_MESSAGE_RECEIVER): New macro.
  9374. * src/PeerConnection.h
  9375. (PeerConnectionWeakHandle): New type definition.
  9376. * src/BtMessageFactory.h
  9377. (BtMessageFactoryWeakHandle): New type definition.
  9378. * src/BitfieldMan.cc
  9379. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9380. cachedCompletedLength, cachedFilteredComletedLength,
  9381. cachedFilteredTotalLength.
  9382. Call updateCache().
  9383. (countMissingBlock): Return cachedNumMissingBlock.
  9384. (countMissingBlockNow): New function.
  9385. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9386. (countFilteredBlockNow): New function.
  9387. (setBit): Call updateCache().
  9388. (unsetBit): Call updateCache().
  9389. (setBitfield): Call updateCache().
  9390. (clearAllBit): Call updateCache().
  9391. (setAllBit): Use setBitInternal instead of setBit.
  9392. Call updateCache().
  9393. (addFilter): Call updateCache().
  9394. (enableFilter): Call updateCache().
  9395. (disableFilter): Call updateCache().
  9396. (clearFilter): Call updateCache().
  9397. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9398. (getFilteredTotalLengthNow): New function.
  9399. (getCompletedLength): Return cachedCompletedLength.
  9400. (getCompletedLengthNow): New function.
  9401. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9402. (getFilteredCompletedLengthNow): New function.
  9403. (updateCache): New function.
  9404. * src/BtMessageReceiver.h
  9405. (BtMessageReceiverWeakHandle): New type definition.
  9406. * src/DefaultBtMessageReceiver.cc
  9407. (receiveHandshake): Use messageFactory member.
  9408. (sendHandshake): Use messageFactory member.
  9409. (receiveMessage): Use messageFactory member.
  9410. * src/DefaultBtMessageFactory.h
  9411. (dispatcher): New variable.
  9412. (requestFactory): New variable.
  9413. (peerConnection): New variablle.
  9414. (setBtMessageDispatcher): New function.
  9415. (setBtRequestFactory): New function.
  9416. (setPeerConnection): New function.
  9417. * src/SharedHandle.h
  9418. (RefCount): New class.
  9419. (WeakHandle): New class.
  9420. * src/PeerObject.h
  9421. (BtMessageReceiver.h): New include.
  9422. (PeerObject): Added btMessageReceiver.
  9423. (btMessageReceiver): New variable.
  9424. * src/Util.cc
  9425. (countBit): Simplified.
  9426. * src/BtCancelMessage.cc
  9427. (doReceivedAction): Use dispatcher member.
  9428. * src/BtRequestFactory.h
  9429. (BtRequestFactoryWeakHandle): New type definition.
  9430. * src/PeerStorage.h
  9431. (downloadSpeed): int -> uint32_t
  9432. (uploadSpeed): int -> uint32_t
  9433. (sessionDownloadLength): long long int -> uint64_t
  9434. (sessionUploadLength): long long int -> uint64_t
  9435. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9436. To add RecoverableException, FatalException:
  9437. * src/AbstractCommand.cc
  9438. (onAbort): Exception -> RecoverableException
  9439. * src/PeerAbstractCommand.h
  9440. (RecoverableException.h): New include.
  9441. (onAbort): Exception -> RecoverableException.
  9442. * src/PeerInteractionCommand.cc
  9443. (onAbort): Exception -> RecoverableException.
  9444. * src/PeerAbstractCommand.cc
  9445. (execute): Exception -> RecoverableException.
  9446. (onAbort): Exception -> RecoverableException.
  9447. * src/TorrentRequestInfo.cc
  9448. (execute): Exception -> RecoverableException.
  9449. * src/MetalinkRequestInfo.cc
  9450. (execute): Exception -> RecoverableException.
  9451. * src/MetaFileUtil.cc: RecoverableException.
  9452. * src/AbstractCommand.h
  9453. (onAbort): Exception -> RecoverableException.
  9454. * src/DlRetryEx.h: Exception -> RecoverableException.
  9455. * src/DlAbortEx.h: Exception -> RecoverableException.
  9456. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9457. * src/Util.cc: Exception -> RecoverableException.
  9458. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9459. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9460. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9461. To make ID static const int
  9462. * src/BtInterestedMessage.h
  9463. (ID_t): Removed.
  9464. (ID): New variable.
  9465. (getId): Made non-const.
  9466. * src/BtPieceMessage.h
  9467. (ID_t): Removed.
  9468. (ID): New variable.
  9469. (getId): Made non-const.
  9470. * src/BtChokeMessage.h
  9471. (ID_t): Removed.
  9472. (ID): New variable.
  9473. (getId): Made non-const.
  9474. * src/BtHaveAllMessage.h
  9475. (ID_t): Removed.
  9476. (ID): New variable.
  9477. (getId): Made non-const.
  9478. * src/BtKeepAliveMessage.h
  9479. (ID_t): Removed.
  9480. (ID): New variable.
  9481. (getId): Made non-const.
  9482. * src/BtHandshakeMessage.h
  9483. (ID): New variable.
  9484. (getId): Made non-const.
  9485. * src/BtSuggestPieceMessage.h
  9486. (ID_t): Removed.
  9487. (ID): New variable.
  9488. (getId): Made non-const.
  9489. * src/BtPortMessage.h
  9490. (ID_t): Removed.
  9491. (ID): New variable.
  9492. (getId): Made non-const.
  9493. * src/AbstractBtMessage.h
  9494. (id): Removed.
  9495. (AbstractBtMessage): Removed id.
  9496. (getId): Removed.
  9497. * src/BtHaveMessage.h
  9498. (ID_t): Removed.
  9499. (ID): New variable.
  9500. (getId): Made non-const.
  9501. * src/BtAllowedFastMessage.h
  9502. (ID_t): Removed.
  9503. (ID): New variable.
  9504. (getId): Made non-const.
  9505. * src/BtCancelMessage.h
  9506. (ID_t): Removed.
  9507. (ID): New variable.
  9508. (getId): Made non-const.
  9509. * src/BtNotInterestedMessage.h
  9510. (ID_t): Removed.
  9511. (ID): New variable.
  9512. (getId): Made non-const.
  9513. * src/BtChokeMessage.h
  9514. (ID_t): Removed.
  9515. (ID): New variable.
  9516. (getId): Made non-const.
  9517. * src/BtRejectMessage.h
  9518. (ID_t): Removed.
  9519. (ID): New variable.
  9520. (getId): Made non-const.
  9521. * src/BtBitfieldMessage.h
  9522. (ID_t): Removed.
  9523. (ID): New variable.
  9524. (getId): Made non-const.
  9525. * src/BtUnchokeMessage.h
  9526. (ID_t): Removed.
  9527. (ID): New variable.
  9528. (getId): Made non-const.
  9529. * src/BtRequestMessage.h
  9530. (ID_t): Removed.
  9531. (ID): New variable.
  9532. (getId): Made non-const.
  9533. * src/BtHaveMessage.h
  9534. (ID_t): Removed.
  9535. (ID): New variable.
  9536. (getId): Made non-const.
  9537. To add --force-truncate command-line option and a check whether
  9538. the file already exists:
  9539. * src/DirectDiskAdaptor.h
  9540. (getFilePath): Made virtual public.
  9541. * src/MultiDiskAdaptor.h
  9542. (File.h): New include.
  9543. (DiskWriterEntry::fileEntry): Made private.
  9544. (DiskWriterEntry::fileExists): New function.
  9545. (DiskWriterEntry::getFileEntry): New function.
  9546. (fileExists): New function.
  9547. (getFilePath): New function.
  9548. * src/TorrentRequestInfo.cc
  9549. (FatalException.h): New include.
  9550. (message.h): New include.
  9551. (RecoverableException.h): New include.
  9552. (execute): Added a check whether file is already exists or not.
  9553. * src/DiskAdaptor.h
  9554. (fileExists): New function.
  9555. (getFilePath): New function.
  9556. * src/main.cc
  9557. (showUsage): Added an explanation of --force-truncate command-line
  9558. option.
  9559. (main): Added --force-truncate command-line option.
  9560. * src/Exception.h
  9561. (setMsg): buf[256] -> buf[1024]
  9562. * src/CopyDiskWriter.h
  9563. (getFilePath): Made public virtual.
  9564. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9565. (fileExists): New function.
  9566. * src/DownloadEngineFactory.cc
  9567. (newTorrentConsoleEngine): Don't open file here.
  9568. * src/message.h
  9569. (EX_FILE_ALREADY_EXISTS): New definition.
  9570. * src/prefs.h
  9571. (PREF_FOECE_TRUNCATE): New definition.
  9572. * src/HttpResponseCommand.cc
  9573. (handleDefaultEncoding): Added a check whether the file already exists.
  9574. * src/SegmentMan.h
  9575. (fileExists): New function.
  9576. (shouldCancelDownloadForSafety): New function.
  9577. * src/FtpNegotiateCommand.cc
  9578. (recvSize): Added a check whether the file already exists.
  9579. * src/AbstractSingleDiskAdaptor.cc
  9580. (File.h): New include.
  9581. (fileExists): New function.
  9582. * src/AbstractSingleDiskAdaptor.h
  9583. (getFilePath): Removed.
  9584. (fileExists): New function.
  9585. * src/SegmentMan.cc
  9586. (fileExists): New function.
  9587. (shouldCancelDownloadForSafety): New function.
  9588. To fix regression bug in torrent downloading:
  9589. * src/DefaultBtRequestFactory.cc
  9590. (doChokedAction): New function.
  9591. * src/DefaultBtRequestFactory.h
  9592. (doChokedAction): New function.
  9593. * src/DefaultBtMessageDispatcher.cc
  9594. (doChokedAction): Do not delete request if its target is in allowed
  9595. fast set.
  9596. * src/DefaultBtInteractive.cc
  9597. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9598. (sendKeepAlive): Send keep alive message even if the outgoing message
  9599. queue is not empty.
  9600. (decideInterest): Simplified the code.
  9601. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9602. it is already called when BtChokeMessage is received from a peer.
  9603. * src/BtRequestFactory.h
  9604. (doChokedAction): New function.
  9605. To clean up code:
  9606. * src/PeerInteractionCommand.h
  9607. (executeInternal): Added virtual keyword explicitly.
  9608. (prepareForRetry): Added virtual keyword explicitly.
  9609. (prepareForNextPeer): Added virtual keyword explicitly.
  9610. (onAbort): Added virtual keyword explicitly.
  9611. * src/RequestSlot.cc
  9612. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9613. * src/BtPieceMessage.cc
  9614. (doReceivedAction): Added a debug log of piece's bitfield.
  9615. * src/Piece.h
  9616. (getBitfieldLength): New function.
  9617. * src/ByteArrayDiskWriter.cc
  9618. (clear): Added buf = 0 to avoid double free corruption.
  9619. * src/FileAllocator.cc
  9620. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9621. Added cp.reset().
  9622. * src/BitfieldMan.h
  9623. (operator=): Rewritten.
  9624. * src/BitfieldMan.cc
  9625. (BitfieldMan): Initialized bitfield, useBitfield.
  9626. * src/PeerConnection.cc
  9627. (receiveMessage): Added a call to socket->readable() after getting
  9628. message length to avoid possible EOF.
  9629. * src/Util.cc
  9630. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9631. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. To add an ability to pre-allocate file space:
  9633. * src/DirectDiskAdaptor.h: Rewritten.
  9634. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9635. * src/MultiDiskAdaptor.h: Rewritten.
  9636. * src/DefaultPieceStorage.cc
  9637. (MultiDiskWriter.h): Removed include.
  9638. (PreAllocationDiskWriter.h): Removed include.
  9639. (FileAllocationMonitor.h): New include.
  9640. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9641. (initStorage): Rewritten.
  9642. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9643. * src/FileAllocator.h: New class.
  9644. * src/FileAllocator.cc: New class.
  9645. * src/FileAllocationMonitor.h: New class.
  9646. * src/FileAllocationMonitor.cc: New class.
  9647. * src/ConsoleFileAllocationMonitor.h: New class.
  9648. * src/ConsoleFileAllocationMonitor.cc: New class.
  9649. * src/AbstractSingleDiskAdaptor.h: New class.
  9650. * src/AbstractSingleDiskAdaptor.cc: New class.
  9651. * src/DiskAdaptor.h
  9652. (Directory.h): Removed include.
  9653. (DiskWriter.h): Removed include.
  9654. (FileEntry.h): Removed include.
  9655. (diskWriter): Removed.
  9656. (DiskAdaptor): Removed diskWriter.
  9657. (openFile): Made pure virtual.
  9658. (closeFile): Made pure virtual.
  9659. (openExistingFile): Made pure virtual.
  9660. (initAndOpenFile): Made pure virtual.
  9661. (writeData): Made pure virtual.
  9662. (readData): Made pure virtual.
  9663. (sha1Sum): Made pure virtual.
  9664. (getStoreDir): Returns const reference of storeDir.
  9665. (DiskAdaptorHandle): New type definition.
  9666. * src/main.cc
  9667. (ConsoleFileAllocationMonitor.h): New include.
  9668. (showUsage): Added default value description of -s option.
  9669. Added the description of --file-allocation option.
  9670. (main): Set default value of --file-allocation option to 'none'.
  9671. Added --file-allocation command-line option.
  9672. Setup FileAllocationMonitorFactory.
  9673. * src/FtpInitiateConnectionCommand.cc
  9674. (executeInternal): Removed diskWriter related processing, which was
  9675. moved to FtpNegotiationCommand.cc.
  9676. * src/DirectDiskAdaptor.cc
  9677. (getFilePath): Made non-const.
  9678. * src/CopyDiskAdaptor.h
  9679. (DiskAdaptor.h): Removed include.
  9680. (DiskWriter.h): Removed include.
  9681. (AbstractSingleDiskAdaptor.h): New include.
  9682. (getFilePath): Made non-const. Added virtual keyword.
  9683. (CopyDiskAdaptor): Removed diskWriter.
  9684. (getTempFile): Returns const reference.
  9685. (CopyDiskAdaptorHandle): New type definition.
  9686. * src/ByteArrayDiskWriter.cc
  9687. (clear): Simplified.
  9688. (initAndOpenFile): Rewritten.
  9689. (openFile): Call initAndOpenFile()
  9690. * src/MultiDiskAdaptor.cc: Rewritten.
  9691. * src/DownloadEngineFactory.cc
  9692. (FileAllocator.h): New include.
  9693. (FileAllocationMonitor.h): New include.
  9694. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9695. create DefaultDiskWriter with file allocator.
  9696. * src/DiskWriter.h
  9697. (initAndOpenFile): Added totalLength argument.
  9698. (openFile): Added totalLength argument.
  9699. * src/prefs.h
  9700. (PREF_FILE_ALLOCATION): New definition.
  9701. (V_PREALLOC): New definition.
  9702. (V_NONE): New definition.
  9703. * src/HttpResponseCommand.cc
  9704. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9705. size.
  9706. * src/FtpNegotiateCommand.cc
  9707. (Util.h): New include.
  9708. (recvSize): Open file here.
  9709. * src/Util.h
  9710. (ullitos): New function.
  9711. * src/CopyDiskWriter.h
  9712. (getFilePath): Made non-const.
  9713. * src/DefaultDiskWriter.h
  9714. (Option.h): New include.
  9715. (totalLength): Removed.
  9716. (DefaultDiskWriter): Removed totalLength.
  9717. (initAndOpenFile): Added totalLength argument.
  9718. (DefaultDiskWriterHandle): New type definition.
  9719. (createNewDiskWriter): New function.
  9720. * src/Util.cc
  9721. (ullitos): New function.
  9722. * src/DefaultDiskWriter.cc
  9723. (message.h): New include.
  9724. (FileAllocator.h): New include.
  9725. (prefs.h): New include.
  9726. (Util.h): New include.
  9727. (DefaultDiskWriter): Removed totalLength.
  9728. (initAndOpenFile): Added file allocation.
  9729. (createNewDiskWriter): New function. Just for temporary solution.
  9730. It will be rewritten later.
  9731. * src/DiskAdaptor.cc
  9732. (DiskAdaptor): Removed diskWriter.
  9733. * src/AbstractDiskWriter.cc
  9734. (LogFactory.h): New include.
  9735. (AbstractDiskWriter): Added fileAllocator, logger.
  9736. (openFile): Added totalLength argument.
  9737. * src/AbstractDiskWriter.h
  9738. (FileAllocator.h): New include.
  9739. (Logger.h): New include.
  9740. (fileAllocator): New variable.
  9741. (logger): New variable.
  9742. (openFile): Added totalLength argument. Added virtual keyword
  9743. explicitly.
  9744. (openExistingFile): Added totalLength argument. Added virtual keyword
  9745. explicitly.
  9746. (closeFile): Added virtual keyword explicitly.
  9747. (sha1Sum): Added virtual keyword explicitly.
  9748. (writeData): Added virtual keyword explicitly.
  9749. (readData): Added virtual keyword explicitly.
  9750. (setFileAllocator): New function.
  9751. * src/DefaultPieceStorage.h
  9752. (FileAllocator.h): New include.
  9753. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9754. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9755. * src/FileProgressMonitor.h: New class.
  9756. To compile aria2 on PC-BSD:
  9757. * src/DefaultBtContext.cc
  9758. (libgen.h): New include.
  9759. To fix memory leak:
  9760. * src/Exception.h
  9761. (~Exception): Delete cause. Fixed memory leak.
  9762. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9763. Rewritten a portion of bittorrent implementation:
  9764. * src/BtMessageValidator.h: New class.
  9765. * src/BtBitfieldMessageValidator.h: New class.
  9766. * src/BtHandshakeMessageValidator.h: New class.
  9767. * src/BtRequestMessageValidator.h: New class.
  9768. * src/BtSuggestPieceMessageValidator.h: New class.
  9769. * src/BtAllowedFastMessageValidator.h: New class.
  9770. * src/BtRejectMessageValidator.h: New class.
  9771. * src/BtCancelMessageValidator.h: New class.
  9772. * src/BtPieceMessageValidator.h: New class.
  9773. * src/BtHaveMessageValidator.h: New class.
  9774. * src/BtEventListener.h: New class.
  9775. * src/AbstractBtEventListener.h: New class.
  9776. * src/BtEvent.h: New class.
  9777. * src/BtChokingEvent.h: New class.
  9778. * src/BtChokedEvent.h: New class.
  9779. * src/BtCancelSendingPieceEvent.h: New class.
  9780. * src/BtAbortOutstandingRequestEvent.h: New class.
  9781. * src/Randomizer.h: New class.
  9782. * src/SimpleRandomizer.h: New class.
  9783. * src/BtMessage.h: New class.
  9784. * src/AbstractBtMessage.h: New class.
  9785. * src/SimpleBtMessage.h: New class.
  9786. * src/BtHaveMessage.h: New class.
  9787. * src/BtInterestedMessage.h: New class.
  9788. * src/BtAllowedFastMessage.h: New class.
  9789. * src/BtUnchokeMessage.h: New class.
  9790. * src/BtCancelMessage.h: New class.
  9791. * src/BtNotInterestedMessage.h: New class.
  9792. * src/BtChokeMessage.h: New class.
  9793. * src/BtHaveNoneMessage.h: New class.
  9794. * src/BtHandshakeMessage.h: New class.
  9795. * src/BtSuggestPieceMessage.h: New class.
  9796. * src/BtHaveMessage.h: New class.
  9797. * src/BtPieceMessage.h: New class.
  9798. * src/BtHaveAllMessage.h: New class.
  9799. * src/BtKeepAliveMessage.h: New class.
  9800. * src/BtPortMessage.h: New class.
  9801. * src/BtRejectMessage.h: New class.
  9802. * src/BtBitfieldMessage.h: New class.
  9803. * src/BtRequestMessage.h: New class.
  9804. * src/DefaultBtRequestFactory.h: New class.
  9805. * src/DefaultBtMessageReceiver.h: New class.
  9806. * src/BtInteractive.h: New class.
  9807. * src/BtMessageDispatcher.h: New class.
  9808. * src/DefaultBtMessageDispatcher.h: New class.
  9809. * src/DefaultBtInteractive.h: New class.
  9810. * src/BitfieldManFactory.h: New class.
  9811. * src/HandleRegistry.h: New class.
  9812. * src/BtMessageFactory.h: New class.
  9813. * src/BtMessageReceiver.h: New class.
  9814. * src/DefaultBtMessageFactory.h: New class.
  9815. * src/PeerObject.h: New class.
  9816. * src/BtRequestFactory.h: New class.
  9817. * src/SuggestPieceMessage.h: Removed.
  9818. * src/PortMessage.h: Removed.
  9819. * src/SuggestPieceMessage.h: Removed.
  9820. * src/KeepAliveMessage.h: Removed.
  9821. * src/HandshakeMessage.h: Removed.
  9822. * src/PeerInteraction.h: Removed.
  9823. * src/UnchokeMessage.h: Removed.
  9824. * src/PieceMessage.h: Removed.
  9825. * src/RequestMessage.h: Removed.
  9826. * src/InterestedMessage.h: Removed.
  9827. * src/HaveMessage.h: Removed.
  9828. * src/CancelMessage.h: Removed.
  9829. * src/RejectMessage.h: Removed.
  9830. * src/AllowedFastMessage.h: Removed.
  9831. * src/HaveNoneMessage.h: Removed.
  9832. * src/SimplePeerMessage.h: Removed.
  9833. * src/HaveAllMessage.h: Removed.
  9834. * src/BitfieldMessage.h: Removed.
  9835. * src/PeerMessageFactory.h: Removed.
  9836. * src/NotInterestedMessage.h: Removed.
  9837. * src/ChokeMessage.h: Removed.
  9838. * src/PeerMessage.h: Removed.
  9839. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9840. To know root cause of exception:
  9841. * src/Exception.h
  9842. (cause): New variable.
  9843. (Exception): Added a parameter.
  9844. (getMsg): Return const reference to msg.
  9845. (getCause): New function.
  9846. * src/DlRetryEx.h
  9847. (DlRetryEx): Added a parameter 'cause'.
  9848. Added an overloaded constructor.
  9849. (DlAbortEx): Added a parameter 'cause'.
  9850. Added an overloaded constructor.
  9851. * src/SimpleLogger.cc
  9852. (writeLog): Log nested exception messages recursively.
  9853. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9854. * src/DefaultBtProgressInfoFile.cc
  9855. (load): Fixed memory leak when the infohash doesn't match.
  9856. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9857. * src/DefaultPeerStorage.cc
  9858. (calculateStat): Simplified the code by combining 2 loops into 1.
  9859. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9860. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  9861. for BitTorrent download:
  9862. * src/PeerAbstractCommand.cc
  9863. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  9864. * src/main.cc:
  9865. (timeoutSpecified): Removed.
  9866. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  9867. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  9868. * src/TorrentRequestInfo.cc
  9869. (timeoutSpecified): Removed.
  9870. (torrentHandler): Removed timeoutSpecified and the adjustment of
  9871. timeout value.
  9872. * src/prefs.h
  9873. (PREF_BT_TIMEOUT): New definition.
  9874. Delete unused variables:
  9875. * src/TorrentRequestInfo.cc
  9876. (requestInfo): Removed.
  9877. Move setSignalHander to Util::setGlobalSignalHandler:
  9878. * src/TorrentRequestInfo.cc:
  9879. setSignalHander -> Util::setGlobalSignalHandler
  9880. * src/main.cc
  9881. (setSignalHander): Removed.
  9882. (main): setSignalHander -> Util::setGlobalSignalHandler
  9883. * src/Util.h
  9884. (setGlobalSignalHandler): New function.
  9885. * src/Util.cc
  9886. (setGlobalSignalHandler): New function.
  9887. * src/UrlRequestInfo.cc:
  9888. setSignalHander -> Util::setGlobalSignalHandler
  9889. Reset peer status in order to exit gracefully:
  9890. * src/PeerAbstractCommand.cc
  9891. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  9892. To fix the bug that causes the number of bytes uploaded is not saved
  9893. to .aria2 file:
  9894. * src/DefaultPeerStorage.h
  9895. (removedPeerSessionDownloadLength): New variable.
  9896. (removedPeerSessionUploadLength): New variable.
  9897. * src/DefaultPeerStorage.cc
  9898. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  9899. removedPeerSessionUploadLength(0).
  9900. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  9901. through all peers, and then add removedPeerSessionDownloadLength(
  9902. removedPeerSessionUploadLength) to it.
  9903. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  9904. (to) the peer to removedPeerSessionDownloadLength
  9905. (removedPeerSessionUploadLength).
  9906. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9907. To add Metalink location option:
  9908. * src/MetalinkRequestInfo.cc
  9909. (execute): Call MetalinkEntry::setLocationPreference()
  9910. * src/main.cc
  9911. (showUsage): Added the help message for --metalink-location option.
  9912. (main): Added --metalink-location option.
  9913. * src/prefs.h
  9914. (PREF_METALINK_LOCATION): New definition.
  9915. * src/MetalinkEntry.cc
  9916. (AddLocationPreference): New function object.
  9917. (setLocationPreference): New function.
  9918. * src/Xml2MetalinkProcessor.cc
  9919. (getResource): Set location attribute to MetalinkResource
  9920. To show URLs to download
  9921. * src/UrlRequestInfo.h
  9922. (printUrls): New function.
  9923. To add multiple <file> Metalink support:
  9924. * src/MetalinkEntry.h
  9925. (MetalinkResources): Removed.
  9926. (setLocationPreference): New function.
  9927. (MetalinkEntryHandle): New type definition.
  9928. (MetalinkEntries): New type definition.
  9929. * src/Xml2MetalinkProcessor.h
  9930. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9931. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9932. (parseFile): Metalinker* -> MetalinkerHandle
  9933. * src/UrlRequestInfo.h
  9934. (execute): RequestInfo* -> RequestInfos
  9935. * src/MetalinkRequestInfo.cc
  9936. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  9937. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  9938. (execute): RequestInfo* -> RequestInfos
  9939. Added multiple <file> support. Print filename when it is queued.
  9940. * src/MetalinkRequestInfo.h
  9941. (execute): RequestInfo* -> RequestInfos
  9942. (getDownloadEngine): Removed.
  9943. * src/RequestInfo.h
  9944. (RequestInfoHandle): New type definition.
  9945. (RequestInfos): New type definition.
  9946. (execute): RequestInfo* -> RequestInfos
  9947. (getDownloadEngine): Removed.
  9948. * src/MetalinkResource.h
  9949. (MetalinkResourceHandle): New type definition.
  9950. (MetalinkResources): New type definition.
  9951. * src/MetalinkEntry.cc
  9952. (~MetalinkEntry): Removed the deletion of the elements of resources,
  9953. because the element is now of type MetalinkResourceHandle.
  9954. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  9955. (Supported): MetalinkResource* -> MetalinkResourceHandle
  9956. (dropUnsupportedResource): Removed the deletion of the elements of
  9957. resources because the element is now of type MetalinkResourceHandle.
  9958. * src/Xml2MetalinkProcessor.cc
  9959. (parseFile): Metalinker* -> MetalinkerHandle
  9960. MetalinkEntry* -> MetalinkEntryHandle
  9961. Removed try-catch block.
  9962. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9963. MetalinkResource* -> MetalinkResourceHandle
  9964. Removed try-catch block.
  9965. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9966. Free result by using xmlXPathFreeObject()
  9967. * src/Metalinker.cc
  9968. (~Metalinker): Removed the deletion of entries.
  9969. MetalinkEntry* -> MetalinkEntryHandle
  9970. (queryEntry): Add multiple <file> Metalink support.
  9971. * src/Metalinker.h
  9972. (MetalinkEntries): Removed.
  9973. (queryEntry): MetalinkEntry* -> MetalinkEntries
  9974. * src/MetalinkProcessor.h
  9975. (parseFile): Metalinker* -> MetalinkerHandle
  9976. Bug fixes:
  9977. * src/PeerChokeCommand.cc
  9978. (execute): cat01->cat02
  9979. * src/DefaultPieceStorage.cc
  9980. (DefaultPieceStorage): Added diskAdaptor(0)
  9981. * src/TrackerWatcherComand.cc:
  9982. (execute): Use btAnnounce->noMoreAnnounce()
  9983. to determin whether the function returns true or not.
  9984. * src/TrackerUpdateCommand.cc:
  9985. (execute): Use btAnnounce->noMoreAnnounce()
  9986. to determin whether the function returns true or not.
  9987. * src/FtpConnection.cc
  9988. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  9989. This is the fix of the busy loop bug.
  9990. * src/DownloadCommand.cc
  9991. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  9992. cached PeerStat.
  9993. The value of "name" entry in torrent file is now set by
  9994. *DiskAdaptor::setTopDir(...) methods.
  9995. * src/MultiDiskAdaptor.h
  9996. (topDir): New variable.
  9997. (setTopDir): New function.
  9998. (getTopDir): New function.
  9999. * src/MultiDiskAdaptor.cc
  10000. (getFilePath): Concat storDir, "/" and topDir.
  10001. (mkdir): Use getFilePath() to get the directory path for output.
  10002. * src/DefaultPieceStorage.cc
  10003. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10004. CopyDiskAdaptor.
  10005. * src/CopyDiskAdaptor.h
  10006. (topDir): New variable.
  10007. (setTopDir): New function.
  10008. (getTopDir): New function.
  10009. * src/CopyDiskAdaptor.cc
  10010. (fixFilename): Updated.
  10011. Misc
  10012. * src/UrlRequestInfo.h
  10013. (e): Removed.
  10014. (UrlRequestInfo): Removed e.
  10015. (getDownloadEngine): Removed.
  10016. * src/UrlRequestInfo.cc
  10017. (handler): Rewritten.
  10018. (printUrls): New function.
  10019. (execute): Call printUrls().
  10020. * src/HandshakeMessage.cc
  10021. (check): peerinteraction->getBtContext() -> btContext
  10022. * src/PeerInteraction.h
  10023. (getBtContext): Removed.
  10024. * src/TorrentRequestInfo.h
  10025. (execute): RequestInfo* -> RequestInfos
  10026. (getDownloadEngine): Removed.
  10027. * src/TorrentRequestInfo.cc
  10028. (haltRequested): Removed.
  10029. (btHaltRequested): New variable.
  10030. (torrentHandler): haltRequested -> btHaltRequested
  10031. (execute): RequestInfo* -> RequestInfos
  10032. * src/TorrentConsoleDownloadEngine.cc
  10033. (afterEachIteration): haltRequested -> btHaltRequested.
  10034. * src/ConsoleDownloadEngine.h
  10035. (initStatistics): Added virtual.
  10036. (calculateStatistics): Added virtual.
  10037. (onEndOfRun): Added virtual.
  10038. (afterEachIteration): Added virtual.
  10039. * src/ConsoleDownloadEngine.cc
  10040. (haltRequested): New variable.
  10041. (afterEachIteration): New function.
  10042. * src/main.cc
  10043. (requestInfo): Removed.
  10044. * src/SegmentMan.cc
  10045. (findSlowerSegmentEntry): Refactored.
  10046. * Release 0.9.0
  10047. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10048. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10049. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10050. * src/TorrentMan.h: Removed.
  10051. * src/TorrentMan.cc: Removed.
  10052. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10053. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10054. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10055. * src/PeerAbstractCommand.cc: Use btRuntime.
  10056. * src/BtContextAwareCommand.h: New class.
  10057. * src/FileEntry.h: Added accessor methods for following variables.
  10058. (path): Made private.
  10059. (length): Made private.
  10060. (offset): Made private.
  10061. (extracted): Made private.
  10062. (requested): Made private.
  10063. (FileEntries): New definition.
  10064. (FileEntryHandle): New definition.
  10065. * src/FileEntry.cc: New file.
  10066. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10067. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10068. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10069. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10070. * src/PieceStorage.h: New file.
  10071. * src/PeerInteractionCommand.h: Use btContext.
  10072. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10073. btRuntime.
  10074. * src/DefaultBtProgressInfoFile.h: New file.
  10075. * src/DefaultBtProgressInfoFile.cc: New file.
  10076. * src/File.cc
  10077. (Util.h): New include.
  10078. (mkdirs): New function.
  10079. * src/MultiDiskAdaptor.h
  10080. (mkdir): New function.
  10081. * src/PeerListProcessor.h
  10082. (Peers): Removed.
  10083. * src/PeerInteraction.h
  10084. (torrentMan): Removed.
  10085. (btContext): New variable.
  10086. (peerStorage): New variable.
  10087. (pieceStorage): New variable.
  10088. (btAnnounce): New variable.
  10089. (getTorrentMan): Removed.
  10090. (getBtContext): New function.
  10091. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10092. btAnnounce.
  10093. * src/HandshakeMessage.h
  10094. (TorrentMan.h): Removed.
  10095. * src/HandshakeMessage.cc: Use btContext.
  10096. * src/DefaultBtAnnounce.cc: New file.
  10097. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10098. * src/DefaultPieceStorage.cc: New file.
  10099. * src/DefaultBtContext.h: New file.
  10100. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10101. Use the accessor methods of FileEntry.
  10102. * src/CookieBox.cc: Updated to use Util::slice().
  10103. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10104. * src/common.h (SharedHandle.h): New include.
  10105. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10106. pieceStorage.
  10107. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10108. * src/DiskAdaptor.h
  10109. (topDir): Removed.
  10110. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10111. (setTopDir): Removed.
  10112. (getTopDir): Removed.
  10113. * src/BtContext.h: New file.
  10114. * src/DefaultPeerStorage.h: New file.
  10115. * src/PieceMessage.h (TorrentMan.h): Removed.
  10116. * src/RequestMessage.h (TorrentMan.h): Removed.
  10117. * src/TorrentDownloadEngine.h
  10118. (uploadLength): New variable.
  10119. (btContext): New variable.
  10120. (btRuntime): New variable.
  10121. (pieceStorage): New variable.
  10122. (peerStorage): New variable.
  10123. (btAnnounce): New variable.
  10124. (btProgressInfoFile): New variable.
  10125. (torrentMan): Removed.
  10126. (setBtContext): New function.
  10127. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10128. peerStorage, btAnnounce, btProgressInfoFile.
  10129. * src/Piece.h
  10130. (toString): New function.
  10131. (Pieces): New type definition.
  10132. * src/Peer.h
  10133. (active): New variable.
  10134. (Peer): Added active.
  10135. (activate): Set active to true.
  10136. (deactivate): Set active to false.
  10137. (isActive): New function.
  10138. (Peers): New type definition.
  10139. * src/DirectDiskAdaptor.cc
  10140. (getFilePath): Use the accessor methods of FileEntry.
  10141. * src/TorrentConsoleDownloadEngine.h
  10142. (afterEachIteration): New function.
  10143. * src/TorrentConsoleDownloadEngine.cc
  10144. (haltRequested): New variable.
  10145. (sendStatistics): Use pieceStorage, btRuntime.
  10146. (afterEachIteration): New function.
  10147. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10148. * src/Directry.h
  10149. (Directory): New function.
  10150. (DirectoryHandle): New type definition.
  10151. * src/BtProgressInfoFile.h: New file.
  10152. * src/RequestMessage.cc: Use pieceStorage.
  10153. * src/BtRuntime.h: New file.
  10154. * src/DefaultBtContext.cc: New file.
  10155. * src/BitfieldMan.h
  10156. (getCompletedLength): New function(private).
  10157. (getCompletedLength): New function.
  10158. (getFilteredCompletedLength): New function.
  10159. * src/BitfieldMan.h
  10160. (getCompletedLength): New function(private).
  10161. (getCompletedLength): New function.
  10162. (getFilteredCompletedLength): New function.
  10163. * src/MultiDiskAdaptor.cc
  10164. (mkdir): New function.
  10165. (openFile): Call mkdir().
  10166. (initAndOpenFile): Call mkdir().
  10167. * src/CancelMessage.h
  10168. (TorrentMan.h): Removed.
  10169. * src/RejectMessage.h
  10170. (TorrentMan.h): Removed.
  10171. * src/DownloadEngineFactory.cc
  10172. (DefaultPieceStorage.h): New include.
  10173. (DefaultPeerStorage.h): New include.
  10174. (DefaultBtAnnounce.h): New include.
  10175. (DefaultBtProgressInfoFile.h): New include.
  10176. (newTorrentConsoleEngine): Rewritten.
  10177. * src/ShareRatioSeedCriteria.h
  10178. (torrentMan): Removed.
  10179. (btContext): New variable.
  10180. (peerStorage): New variable.
  10181. (btRuntime): New variable.
  10182. (evaluate): Use btContext, btRuntime, peerStorage.
  10183. * src/AnnounceTier.h: New file.
  10184. * src/BtAnnounce.h: New file.
  10185. * src/BtRegistry.h: New file.
  10186. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10187. * src/PeerConnection.h (TorrentMan.h): Removed.
  10188. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10189. * src/Util.h
  10190. (slice): Added an argument.
  10191. * src/Util.cc
  10192. (slice): Added an argument to control whether trim is made or not.
  10193. * src/PeerStorage.h: New file.
  10194. * src/BtRegistry.cc: New file.
  10195. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10196. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10197. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10198. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10199. * src/TorrentRequestInfo.h
  10200. (e): Removed.
  10201. (showFileEntry): Added an argument.
  10202. (getDownloadEngine): Return 0.
  10203. * src/DefaultBtAnnounce.h: New file.
  10204. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10205. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10206. * src/PeerMessageFactory.h
  10207. (btContext): New variable.
  10208. (pieceStorage): New variable.
  10209. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10210. btAnnounce.
  10211. * src/DiskAdaptor.cc
  10212. (DiskAdaptor): Removed topDir.
  10213. (~DiskAdaptor): Removed topDir.
  10214. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10215. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10216. * src/File.h (mkdirs): New function.
  10217. * src/DefaultPeerStorage): New file.
  10218. * src/DownloadEngineFactory.h
  10219. (newTorrentConsoleEngine): Use btContext.
  10220. * src/BtContextAwareCommand.cc: New file.
  10221. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10222. * src/PeerMessage.h
  10223. (btContext): New variable.
  10224. (peerStorage): New variable.
  10225. (pieceStorage): New variable.
  10226. (setBtContext): New function.
  10227. * src/Directry.cc
  10228. (Directory): New function.
  10229. (createDir): Do nothing if name.size() == 0.
  10230. * src/AnnounceList.h
  10231. (AnnounceTier): Removed.
  10232. (AnnounceTiers): Removed.
  10233. * src/DefaultPieceStorage.h: New file.
  10234. * src/Piece.cc (toString): New function.
  10235. To fix typo:
  10236. * src/main.cc (showVersion): Fixed typo.
  10237. To fix compile warning:
  10238. * src/DelegatingPeerListProcessor.cc
  10239. (canHandle): Added "return false".
  10240. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10241. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10242. make the process of announce request testable.
  10243. * src/TrackerWatcherCommand.h
  10244. (TimeA2.h): Removed.
  10245. (interval): Removed.
  10246. (checkPoint): Removed.
  10247. (createRequestCommand): Added an argument 'url'.
  10248. (TrackerWatherCommand): Removed interval.
  10249. (createCommand): New function.
  10250. * src/DownloadEngineFactory.cc
  10251. (newTorrentConsoleEngine): Updated according to the changes in
  10252. TrackerWatherCommand.
  10253. * src/TorrentMan.cc
  10254. (DelegatingPeerListProcessor.h): New includes.
  10255. (TorrentMan): Added the initialization of announceInterval.
  10256. (isStoppedAnnounceReady): New function.
  10257. (isCompletedAnnounceReady): New function.
  10258. (isDefaultAnnounceReady): New function.
  10259. (isAnnounceReady): New function.
  10260. (getAnnounceUrl): New function.
  10261. (announceStart): New function.
  10262. (announceFailure): New function.
  10263. (announceSuccess): New function.
  10264. (isAllAnnounceFailed): New function.
  10265. (resetAnnounce): New function.
  10266. (processAnnounceResponse): New function.
  10267. (needMorePeerConnection): New function.
  10268. (noMoreAnnounce): New function.
  10269. * src/TrackerUpdateCommand.h
  10270. (getTrackerResponse): int->size_t
  10271. * src/TorrentMan.h
  10272. (isStoppedAnnounceReady): New function.
  10273. (isCompletedAnnounceReady): New function.
  10274. (isDefaultAnnounceReady): New function.
  10275. (announceInterval): New variable.
  10276. (isAnnounceReady): New function.
  10277. (getAnnounceUrl): New function.
  10278. (announceStart): New function.
  10279. (announceFailure): New function.
  10280. (announceSuccess): New function.
  10281. (isAllAnnounceFailed): New function.
  10282. (resetAnnounce): New function.
  10283. (processAnnounceResponse): New function.
  10284. (needMorePeerConnection): New function.
  10285. (noMoreAnnounce): New function.
  10286. * src/TrackerWatcherCommand.cc
  10287. (TrackerWatherCommand): Removed interval and checkPoint.
  10288. (execute): Rewritten.
  10289. (createCommand): New function.
  10290. (createRequestCommand): Rewritten.
  10291. * src/TrackerUpdateCommand.cc
  10292. (MetaFileUtil.h): Removed.
  10293. (DelegatingPeerListProcessor.h): Removed.
  10294. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10295. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10296. Request -> RequestHandle:
  10297. * src/HttpResponseCommand.h: Request->RequestHandle
  10298. * src/AbstractCommand.cc: Request->RequestHandle
  10299. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10300. * src/HttpRequestCommand.cc: Request->RequestHandle
  10301. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10302. * src/AbstractCommand.h: Request->RequestHandle
  10303. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10304. * src/HttpResponseCommand.cc: Request->RequestHandle
  10305. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10306. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10307. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10308. * src/HttpConnection.h: Request->RequestHandle
  10309. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10310. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10311. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10312. * src/DownloadCommand.h: Request->RequestHandle
  10313. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10314. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10315. * src/HttpRequestCommand.h: Request->RequestHandle
  10316. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10317. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10318. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10319. * src/HttpDownloadCommand.h: Request->RequestHandle
  10320. * src/FtpConnection.cc: Request->RequestHandle
  10321. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10322. * src/UrlRequestInfo.cc: Request->RequestHandle
  10323. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10324. * src/HttpConnection.h: Request->RequestHandle
  10325. * src/DownloadCommand.cc: Request->RequestHandle
  10326. * src/FtpConnection.h: Request->RequestHandle
  10327. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10328. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10329. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10330. * src/Request.h
  10331. (SharedHandle.h): New include.
  10332. (RequestHandle): New type definition.
  10333. (Requests): Redefined.
  10334. To add MULTITRACKER support:
  10335. * src/TrackerWatcherCommand.h
  10336. (createRequestCommand): New function.
  10337. * src/DownloadEngineFactory.cc
  10338. (newTorrentConsoleEngine): Removed req.
  10339. * src/prefs.h
  10340. (PREF_TRACKER_MAX_TRIES): New definition.
  10341. * src/TorrentMan.cc
  10342. (TorrentMan): Removed req. Added trackerNumTry.
  10343. (~TorrentMan): Removed req.
  10344. (setupInternal1): Added announceList.
  10345. * src/TorrentRequestInfo.cc
  10346. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10347. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10348. * src/main.cc
  10349. (main): Added PREF_TRACKER_MAX_TRIES.
  10350. * src/TorrentMan.h
  10351. (Request.h): Removed.
  10352. (AnnounceList.h): New include.
  10353. (trackerNumTry): New variable.
  10354. (req): Removed.
  10355. (announceList): New variable.
  10356. * src/TrackerWatcherCommand.cc
  10357. (execute): Rewritten.
  10358. (createRequestCommand): New function.
  10359. * src/TrackerUpdateCommand.cc
  10360. (execute): Updated with the use of AnnounceList.
  10361. * src/AnnounceList.cc: New class.
  10362. * src/AnnounceList.h: New class.
  10363. To fix typo:
  10364. * src/prefs.h
  10365. (PREF_MAX_TRIES): max_try->max_tries
  10366. To not to decode "+" as space in URL decode:
  10367. * src/Util.cc
  10368. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10369. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10370. To add timeout to async name resolution:
  10371. * src/AbstractCommand.h
  10372. (nameResolveFinished): New function. This is not elegant way. It needs
  10373. to be more refined.
  10374. (nameResolverCheck): New variable.
  10375. * src/AbstractCommand.cc
  10376. (AbstractCommand): Added nameResolverCheck.
  10377. (execute): Added the check whether the name resolution has finished.
  10378. (setNameResolverCheck): Set nameResolverCheck to true.
  10379. (disableNameResolverCheck): Set nameResolverCheck to false.
  10380. (nameResolverFinished): New function.
  10381. * src/FtpInitiateConnectionCommand.h
  10382. (nameResolverFinished): New function.
  10383. * src/FtpInitiateConnectionCommand.cc
  10384. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10385. * src/HttpInitiateConnectionCommand.h
  10386. (nameResolverFinished): New function.
  10387. * src/HttpInitiateConnectionCommand.cc
  10388. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10389. * src/prefs.h
  10390. (PREF_DNS_TIMEOUT): New definition.
  10391. * src/main.cc
  10392. (main): Added PREF_DNS_TIMEOUT.
  10393. To add the support for a non-compact response from a tracker:
  10394. * src/PeerListProcessor.h: New class.
  10395. * src/DefaultPeerListProcessor.h: New class.
  10396. * src/DefaultPeerListProcessor.cc: New class.
  10397. * src/CompactPeerListProcessor.h: New class.
  10398. * src/CompactPeerListProcessor.cc: New class.
  10399. * src/DelegatingPeerListProcessor.h: New class.
  10400. * src/DelegatingPeerListProcessor.cc: New class.
  10401. * src/TorrentMan.cc
  10402. (addPeer): New function(overload).
  10403. (addPeer): Delete unused peers only when new peer is added.
  10404. * src/TorrentMan.h
  10405. (PeerListProcessor.h): Included.
  10406. (Peers): Removed.
  10407. (addPeer): New function(overload).
  10408. * src/TrackerUpdateCommand.cc
  10409. (netinet/in.h): Removed.
  10410. (DelegatingPeerListProcessor.h): Included.
  10411. (execute): Updated to use DelegatingPeerListProcessor.
  10412. To fix the memory leak in TorrentMan::peers:
  10413. * src/PeerAbstractCommand.cc
  10414. (onAbort): Added peer->resetStatus().
  10415. * src/Peer.h
  10416. (resetStatus): Made public.
  10417. To improve the precision of the speed calculation:
  10418. * src/SpeedCalc.h
  10419. (nextInterval): New variable.
  10420. * src/SpeedCalc.cc
  10421. (reset): Added nextInterval.
  10422. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10423. (changeSw): Set nextInterval to 15 seconds relative to the current
  10424. instant time.
  10425. * src/main.cc
  10426. (showVersion): Updated.
  10427. (showUsage): Updated.
  10428. * Release 0.8.1
  10429. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10430. * src/main.cc
  10431. (showUsage): Commented out --min-segment-size option.
  10432. (main): Commented out --min-segment-size option.
  10433. * Release 0.8.0
  10434. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10435. * src/*.{h,cc}:
  10436. Added an exception to the license which allows linking with OpenSSL.
  10437. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. * src/AbstractCommand.cc
  10439. (execute): Check whether the download has finished before checking
  10440. socket status.
  10441. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10442. Do not exit even if no segment is available.
  10443. * src/prefs.h
  10444. (PREF_STARTUP_IDLE_TIME): New definition.
  10445. * src/PeerInteractionCommand.cc
  10446. (executeInternal): Removed max speed limit. Because it performs bad.
  10447. (receiveMessages): Added max speed limit. This was better than above,
  10448. but still a little bit to be desired. Sometimes the download speed
  10449. became much faster than I specified.
  10450. * src/SpeedCalc.h
  10451. (start): New variable.
  10452. (accumulatedLength): New variable.
  10453. (getAvgSpeed): New function.
  10454. * src/SpeedCalc.cc
  10455. (reset): Added start, accumulatedLength.
  10456. (update): Added calculation of an average speed.
  10457. (getAvgSpeed): New function.
  10458. * src/DownloadCommand.h
  10459. (sw): Removed.
  10460. * src/main.cc
  10461. (main): Added PREF_STARTUP_IDLE_TIME.
  10462. * src/PeerStat.h
  10463. (STATUS): Added REQUEST_IDLE.
  10464. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10465. (getAvgDownloadSpeed): New function
  10466. (requestIdle): New function.
  10467. * src/SegmentMan.h
  10468. (SegmentEntryHandle): New type definition.
  10469. (SegmentEntries): Now holds SegmentEntryHandle.
  10470. (findSlowerSegmentEntry): New funtion.
  10471. * src/SegmentMan.cc
  10472. (save): Updated according to the changes in SegmentEntries.
  10473. (read): Updated according to the changes in SegmentEntries.
  10474. (FindSegmentEntryByIndex): Updated according to the changes in
  10475. SegmentEntries.
  10476. (FindSegmentEntryByCuid): Updated according to the changes in
  10477. SegmentEntries.
  10478. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10479. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10480. Renamed uitr as itr.
  10481. (findSlowerSegmentEntry): New function.
  10482. (getSegment): Updated according to the changes in SegmentEntries.
  10483. Added the feature that cancels the segment with slow server and fast
  10484. one takes it over.
  10485. (cancelSegment): Updated according to the changes in SegmentEntries.
  10486. (getDownloadLength): Updated according to the changes in
  10487. SegmentEntries.
  10488. (init): Assigned 0 to bitfield after deleting it.
  10489. * src/DownloadCommand.cc
  10490. (STARTUP_IDLE_TIME): Removed.
  10491. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10492. * src/PeerChokeCommand.cc
  10493. (optUnchokingPeer): Updated according to the changes in Peer.
  10494. (ResetDelta): Removed.
  10495. (UploadFaster): Updated according to the changes in Peer.
  10496. (DownloadFaster): Updated according to the changes in Peer.
  10497. (execute): I clarify the meaning of "upload" and "download" here.
  10498. "upload" means the transfer from localhost to remote host.
  10499. "download" means the transfer from remote host to localhost.
  10500. Based on this rule, I swapped orderByUploadRate and
  10501. orderByDownloadRate.
  10502. * src/PeerInteractionCommand.cc
  10503. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10504. (executeInternal): Removed the argument of
  10505. peerInteraction->sendMessages().
  10506. (receiveMessages): Rewritten download speed limit.
  10507. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10508. * src/HttpResponseCommand.cc
  10509. (handleDefaultEncoding): If file size is unknown in torrent request,
  10510. do not call segmentMan->initBitfield() here.
  10511. Disabled persistent connection feature in torrent request.
  10512. * src/UrlRequestInfo.h
  10513. (UrlRequestInfo): Removed const qualifier from option.
  10514. * src/TorrentMan.h
  10515. (TransferStat): New class.
  10516. (deltaDownloadLength): Removed.
  10517. (deltaUploadLength): Removed.
  10518. (addDeltaDownloadLength): Removed.
  10519. (getDeltaDownloadLength): Removed.
  10520. (resetDeltaDownloadLength): Removed.
  10521. (addDeltaUploadLength): Removed.
  10522. (getDeltaUploadLength): Removed.
  10523. (resetDeltaUploadLength): Removed.
  10524. (addActivePeer): Added peer->activate().
  10525. (deleteActivePeer): Added peer->deactivate().
  10526. (calculateStat): New function.
  10527. * src/TorrentMan.cc
  10528. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10529. (calculateStat): New function.
  10530. * src/PeerInteraction.h
  10531. (uploadLimit): Removed.
  10532. (option): New variable.
  10533. (setUploadLimit): Removed.
  10534. (getUploadSpeed): Removed.
  10535. (sendMessages): Removed the argument "currentUploadSpeed".
  10536. * src/PeerInteraction.cc
  10537. (prefs.h): Included.
  10538. (PeerInteraction): Removed uploadLimit. Added option.
  10539. (sendMessages): Rewritten upload speed limit.
  10540. (sendHandshake): Removed the argument from sendMessages().
  10541. (sendBitfield): Removed the argument from sendMessages().
  10542. * src/PeerAbstractCommand.cc
  10543. (execute): Commented out the portion of upload limit.
  10544. (onAbort): Removed peer->resetStatus().
  10545. * src/TorrentRequestInfo.cc
  10546. (timeoutSpecified): Declared extern.
  10547. (execute): Set timeout to 180 if timeout is not specified by.
  10548. command-line.
  10549. * src/PieceMessage.cc
  10550. (receivedAction): Added peer->updateDownloadLength().
  10551. Removed peer->addPeerUpload().
  10552. Removed torrentMan->addDeltaDownloadLength().
  10553. (send): Added peer->updateUploadLength().
  10554. Removed peer->addPeerDownload().
  10555. Removed torrentMan->addDeltaUploadLength().
  10556. * src/main.cc
  10557. (timeoutSpecified): New variable.
  10558. (main): Set timeoutSpecified to false.
  10559. If the command-line option "--upload-limit" is specified, then
  10560. timeoutSpecified is set to true. This option will remain in the next
  10561. release, but be deprecated in the future release.
  10562. * src/TorrentRequestInfo.h
  10563. (TorrentRequestInfo): Removed const qualifier from op.
  10564. * src/PeerStat.h
  10565. (uploadSpeed): New variable.
  10566. (PeerStat): Added default value to cuid.
  10567. (calculateUploadSpeed): New function.
  10568. (updateUploadLength): New function.
  10569. (getMaxUploadSpeed): New function.
  10570. (getAvgUploadSpeed): New function.
  10571. (reset): Added uploadSpeed. Set status to IDLE.
  10572. * src/TorrentDownloadEngine.h
  10573. (cp): Declared as Time.
  10574. (sessionDownloadLengthArray): Removed.
  10575. (sessionUploadLengthArray): Removed.
  10576. (currentCp): Removed.
  10577. (lastCalcStat): New variable
  10578. (lastElapsed): Removed.
  10579. (sessionDownloadLength): Removed.
  10580. (calculateStat): New function.
  10581. * src/TorrentDownloadEngine.cc
  10582. (initStatistics): Removed lastElapsed, cp[],
  10583. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10584. currentCp, sessionDownloadLength.
  10585. Added cp.reset() and lastCalcStat.reset().
  10586. (calculateSpeed): Changed the name of the argument.
  10587. (calculateStatistics): Rewritten.
  10588. (calculateStat): New function.
  10589. * src/Peer.h
  10590. (PeerStat.h): Included.
  10591. (peerUpload): Removed.
  10592. (peerDownload): Removed.
  10593. (peerStat): New variable.
  10594. (sessionUploadLength): New variable.
  10595. (sessionDownloadLength): New variable.
  10596. (deltaUpload): Removed.
  10597. (deltaDownload): Removed.
  10598. (resetStatus): Made private.
  10599. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10600. Removed peerUpload, peerDownload.
  10601. (updateUploadLength): New function.
  10602. (addDeltaUpload): Removed.
  10603. (updateDownloadLength): New function.
  10604. (resetDeltaUpload): Removed.
  10605. (getDeltaUpload): Removed.
  10606. (addDeltaDownload): Removed.
  10607. (calculateUploadSpeed): New function.
  10608. (resetDeltaDownload): Removed.
  10609. (getDeltaDownload): Removed.
  10610. (calculateDownloadSpeed): New function.
  10611. (getSessionUploadLength): New function.
  10612. (getSessionDownloadLength): New function.
  10613. (activate): New function.
  10614. (deactivate): New function.
  10615. (addPeerUpload): Removed.
  10616. (setPeerUpload): Removed.
  10617. (getPeerUpload): Removed.
  10618. (addPeerDownload): Removed.
  10619. (setPeerDownload): Removed.
  10620. (getPeerDownload): Removed.
  10621. * src/Peer.cc
  10622. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10623. * src/MetalinkRequestInfo.h
  10624. (MetalinkRequestInfo): Removed const qualifier from op.
  10625. * src/RequestInfo.h
  10626. (op): Removed const qualifier.
  10627. (RequestInfo): Removed const qualifier from op.
  10628. * src/prefs.h
  10629. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10630. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10631. * src/PeerInteractionCommand.cc
  10632. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10633. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10634. * src/PeerInteraction.cc
  10635. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10636. * src/main.cc
  10637. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10638. Added the description of "--max-download-limit" option.
  10639. Removed the description of "--upload-limit" option.
  10640. Added the description of "--max-upload-limit" option.
  10641. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10642. Added "--max-download-limit" option and "--max-upload-limit" option.
  10643. Added the warning message if "--upload-limit" option is used.
  10644. * src/DownloadCommand.cc
  10645. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10646. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10647. To rewrite segment download mechanism for HTTP/FTP download.
  10648. Use BitfieldMan to manage segment download.
  10649. * src/HttpResponseCommand.h
  10650. (executeInternal): Pass the reference of segment.
  10651. * src/AbstractCommand.cc
  10652. (prepareForRetry): Call segmentMan->cancelSegment here.
  10653. (onAbort): Call segmentMan->cancelSegment here.
  10654. * src/HttpDownloadCommand.cc
  10655. (prepareForNextSegment): New function.
  10656. * src/DownloadEngineFactory.cc
  10657. (newConsoleEngine): Removed splitter.
  10658. (newTorrentConsoleEngine): Removed splitter.
  10659. * src/Request.h
  10660. (segment): Renamed from seg.
  10661. * src/FtpInitiateConnectionCommand.h
  10662. (executeInternal): Pass the reference of segment.
  10663. * src/AbstractCommand.h
  10664. (executeInternal): Pass the reference of segment.
  10665. * src/pref.h
  10666. (PREF_SEGMENT_SIZE): New definition.
  10667. * src/HttpProxyRequestCommand.h
  10668. (executeInternal): Pass the reference of segment.
  10669. * src/HttpResponseCommand.cc
  10670. (checkResponse): Allowed status 206 when a request range starts 0.
  10671. (handleDefaultEncoding): Rewritten the code related to Segment.
  10672. (handleOtherEncoding): Rewritten the code related to Segment.
  10673. * src/SegmentMan.h
  10674. (SegmentEntry): New class.
  10675. (SegmentEntries): New type definition.
  10676. (bitfield): New variable.
  10677. (usedSegmentEntries): New variable.
  10678. (onNullBitfield): New function.
  10679. (checkoutSegment): New function.
  10680. (segments): Removed.
  10681. (splitter): Removed.
  10682. (unregisterId): Removed.
  10683. (getSegment): New function(overload)
  10684. (getDownloadedSize): Removed.
  10685. (cancelSegment): New function.
  10686. (completeSegment): New function.
  10687. (initBitfield): New function.
  10688. (hasSegment): New function.
  10689. (getDownloadLength): New function.
  10690. * src/BitfieldMan.h
  10691. (getStartIndex): New function.
  10692. (getEndIndex): New function.
  10693. (getMissingUnusedIndex): New function(overload).
  10694. (getSparseMissingUnusedIndex): New function.
  10695. * src/BitfieldMan.cc
  10696. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10697. (getMissingUnusedIndex): New function(overload).
  10698. (Range): New class.
  10699. (getStartIndex): New function.
  10700. (getEndIndex): New function.
  10701. (getSparseMissingUnusedIndex): New function.
  10702. (isBitSetInternal): Return false if the given index is less than 0.
  10703. * src/HttpInitiateConnectionCommand.h
  10704. (executeInternal): Pass the reference of segment.
  10705. * src/FtpNegotiateCommand.h
  10706. (executeInternal): Pass the reference of segment.
  10707. * src/FtpNegotiateCommand.cc
  10708. (recvSize): Initialize bitfield here.
  10709. * src/FtpTunnelResponseCommand.h
  10710. (executeInternal): Pass the reference of segment.
  10711. * src/HttpConnection.cc
  10712. (createRequest): Rewritten range header processing.
  10713. * src/DownloadCommand.h
  10714. (executeInternal): Pass the reference of segment.
  10715. (prepareForRetry): Removed.
  10716. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10717. function.
  10718. * src/main.cc
  10719. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10720. * src/SegmentMan.cc
  10721. (SegmentMan): Added bitfield. Removed splitter.
  10722. (~SegmentMan): Added bitfield. Removed splitter.
  10723. (unregisterId): Removed.
  10724. (getSegment): Rewritten.
  10725. (updateSegment): Rewritten.
  10726. (save): Rewritten.
  10727. (read): Rewritten.
  10728. (finished): Rewritten.
  10729. (getDownloadedSize): Removed.
  10730. (initBitfield): New function.
  10731. (FindSegmentEntryByIndex): New function object.
  10732. (FindSegmentEntryByCuid): New function object.
  10733. (checkoutSegment): New function.
  10734. (onNullBitfield): New function.
  10735. (getSegment): New function(overload).
  10736. (CancelSegment): New function object.
  10737. (cancelSegment): New function.
  10738. (completeSegment): New function.
  10739. (hasSegment): New function.
  10740. (getDownloadLength): New function.
  10741. * src/FtpInitiateConnectionCommand.cc
  10742. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10743. * src/Segment.h: Rewritten.
  10744. * src/Segment.cc (operator<<): New function.
  10745. * src/HttpDownloadCommand.h
  10746. (prepareForNextSegment): New function.
  10747. * src/Request.cc
  10748. (resetUrl): Made segment null.
  10749. * src/DownloadEngine.cc
  10750. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10751. * src/HttpProxyRequestCommand.h
  10752. (executeInternal): Pass the reference of segment.
  10753. * src/DownloadCommand.cc
  10754. (executeInternal): Rewritten the code related to Segment.
  10755. (prepareForRetry): Removed.
  10756. (prepareForNextSegment): Rewritten.
  10757. * src/FtpTunnelResponseCommand.h
  10758. (executeInternal): Pass the reference of segment.
  10759. To add HTTP 1.1 persistent connection support(experimental)
  10760. * src/HttpRequestCommand.cc
  10761. (executeInternal): Disable keep alive if it is disabled by
  10762. configuration.
  10763. * src/Request.h
  10764. (keepAlive): New variable.
  10765. (isKeepAlive): New function.
  10766. (setKeepAlive): New function.
  10767. * src/pref.h
  10768. (PREF_HTTP_KEEP_ALIVE): New definition.
  10769. * src/HttpResponseCommand.cc
  10770. (executeInternal): Check the remote server supports keep alive.
  10771. * src/HttpConnection.cc
  10772. (createRequest): Send "Connection: close" only if keep alive is
  10773. disabled.
  10774. * src/main.cc
  10775. (main):
  10776. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10777. To add max download speed limit:
  10778. * src/pref.h
  10779. (PREF_MAX_SPEED_LIMIT): New definition.
  10780. * src/PeerInteractionCommand.cc
  10781. (executeInternal): Added max download speed limit. Not tested yet.
  10782. * src/SegmentMan.h
  10783. (PeerStats): New type definition.
  10784. (peerStats): New variable.
  10785. (registerPeerStat): New function.
  10786. (FindPeerStat): New function object.
  10787. (getPeerStat): New function.
  10788. (calculateDownloadSpeed): New function.
  10789. * src/SpeedCalc.h: New class.
  10790. * src/SpeedCalc.cc: New class.
  10791. * src/main.cc
  10792. (main):
  10793. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10794. download speed is not restricted).
  10795. * src/PeerStat.h: New class.
  10796. * src/SegmentMan.cc
  10797. (registerPeerStat): New function.
  10798. (calculateDownloadSpeed): New function.
  10799. * src/DownloadCommand.cc
  10800. (STARTUP_IDLE_TIME): New definition.
  10801. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10802. downloadStart.
  10803. (~DownloadCommand): Call peerStat->downloadStop.
  10804. (executeInternal): Added download speed limitter. Rewritten lowest
  10805. speed limitter.
  10806. * src/HttpConnection.cc
  10807. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10808. * src/AbstractCommand.cc
  10809. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10810. Added hostname to the error message.
  10811. * src/ConsoleDownloadEngine.cc
  10812. (calculateStatistics): Initialize psize with dlSize.
  10813. * src/PieceMessage.cc
  10814. (receivedAction): Do not call peerInteraction->abortPiece here.
  10815. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10816. * src/BitfieldMan.h
  10817. (clearAllUseBit): New function.
  10818. (setAllUseBit): New function.
  10819. * src/BitfieldMan.cc
  10820. (clearAllBit): Do not clear useBitfield here.
  10821. (clearAllUseBit): New function.
  10822. (setAllUseBit): New function.
  10823. * src/Piece.cc
  10824. (clearAllBlock): Call bitfield->clearAllUseBit().
  10825. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10826. To make filename URL-decoded:
  10827. * src/HttpResponseCommand.h: Updated doc.
  10828. * src/HttpResponseCommand.cc
  10829. (determinFilename): Made filename URL-decoded.
  10830. * src/FtpInitiateConnectionCommand.cc
  10831. (executeInternal): Made filename URL-decoded.
  10832. * src/Util.h (urldecode): New function.
  10833. * src/Util.cc (urldecode): New function.
  10834. To fix a bug that caused assertion failure in ares_strerror:
  10835. * src/NameResolver.cc (callback): Fixed the bug.
  10836. * Release 0.7.3
  10837. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10838. To add --seed-time and --seed-ratio command-line option:
  10839. * src/Option.h (getAsDouble): New function.
  10840. * src/Option.cc (getAsDouble): New function.
  10841. * src/SeedCheckCommand.h: New class.
  10842. * src/SeedCheckCommand.cc: New class.
  10843. * src/DownloadEngineFactory.cc
  10844. (SeedCheckCommand.h): Included.
  10845. (UnionSeedCriteria.h): Included.
  10846. (TimeSeedCriteria.h): Included.
  10847. (ShareRatioSeedCriteria.h): Included.
  10848. (newTorrentConsoleEngine): Added the processing of seed option.
  10849. * src/SeedCriteria.h: New class.
  10850. * src/ShareRatioSeedCriteria.h: New class.
  10851. * src/TimeSeedCriteria.h: New class.
  10852. * src/UnionSeedCriteria.h: New class.
  10853. * src/prefs.h
  10854. (PREF_SEED_TIME): New definition.
  10855. (PREF_SEED_RATIO): New definition.
  10856. * src/main.cc
  10857. (showUsage): Added --seed-time and --seed-ratio option.
  10858. (main): Added --seed-time and --seed-ratio option.
  10859. Made default log file name "/dev/null".
  10860. * src/SharedHandle.h
  10861. (SharedHandle): Copy constructor. Made it assignable from the
  10862. SharedHandle of the subclasses.
  10863. (operator=): Made it assignable from the SharedHandle of the
  10864. subclasses.
  10865. (getRefCount): New function.
  10866. To add notice log level and the switch to write log to stdout. This
  10867. switch is configurable per log level.
  10868. * src/Logger.h
  10869. (notice): New function.
  10870. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  10871. constant.
  10872. * src/LogFactory.cc
  10873. (getInstance): The use of NullLogger was removed. A log message with
  10874. notice log level was made written to stdout along with log file.
  10875. * src/NullLogger.h
  10876. (notice): New function.
  10877. * src/SimpleLogger.h
  10878. (writeHeader): Added the 'file' argument.
  10879. (writeLog): Added the 'file' argument.
  10880. (writeFile): New function.
  10881. (stdoutField): New variable.
  10882. (SimpleLogger): Removed the default constructor.
  10883. (SimpleLogger): Made the default value of logfile 0.
  10884. (debug): Added 'virtual' keyword.
  10885. (info): Added 'virtual' keyword.
  10886. (warn): Added 'virtual' keyword.
  10887. (error): Added 'virtual' keyword.
  10888. (notice): New function.
  10889. (setStdout): New function.
  10890. * src/SimpleLogger.cc
  10891. (WRITE_LOG): Replaced writeLog with writeFile.
  10892. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  10893. (SimpleLogger): Removed the default constructor.
  10894. (setStdout): New function.
  10895. (writeLog): Added the handling of NOTICE log level.
  10896. (writeFile): New function.
  10897. (notice): New function.
  10898. * src/TorrentMan.h: Updated doc.
  10899. * src/BitfieldMan.h: Updated doc.
  10900. * src/TrackerWatcherCommand.cc
  10901. (execute): Return true if error occurred in the request to the tracker
  10902. and halt is requested.
  10903. * src/TrackerUpdateCommand.cc
  10904. (execute): Return true if error occurred in the request to the tracker
  10905. and halt is requested.
  10906. To call onDownloadComplete from TorrentMan::completePiece(), not from
  10907. DownloadEngine:
  10908. * src/TorrentConsoleDownloadEngine.h
  10909. (onSelectiveDownloadingCompletes): Removed.
  10910. * src/TorrentConsoleDownloadEngine.cc
  10911. (onSelectiveDownloadingCompletes): Removed.
  10912. * src/TorrentDownloadEngine.h
  10913. (onEndOfRun): Added 'virtual' keyword.
  10914. (afterEachIteration): Removed.
  10915. (onSelectiveDownloadingCompletes): Removed.
  10916. * src/TorrentDownloadEngine.cc
  10917. (onEndOfRun): Removed filenameFixed.
  10918. (afterEachIteration): Removed.
  10919. * src/TorrentMan.cc
  10920. (completePiece): Call onDownloadComplete here.
  10921. (onDownloadComplete): Added 2 log messages.
  10922. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10923. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  10924. * src/NameResolver.h: Added the prototype declaration of callback().
  10925. To support c-ares library:
  10926. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10927. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10928. * src/FtpInitiateConnectionCommand.h:
  10929. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10930. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10931. * src/HttpInitiateConnectionCommand.h:
  10932. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10933. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  10934. Added thes upport of c-ares's ares_strerror(the idea came from patch
  10935. #1542285 by tizianomueller)
  10936. * src/HttpInitiateConnectionCommand.cc:
  10937. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10938. * src/FtpInitiateConnectionCommand.cc:
  10939. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10940. * src/DownloadEngine.h:
  10941. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10942. * src/DownloadEngine.cc:
  10943. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10944. To fix the bug that causes compilation failure with metalink-support
  10945. disabled(bug#1543587):
  10946. * src/main.cc: Fixed with the patch by tizianomueller.
  10947. * Release 0.7.2
  10948. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10949. * src/main.cc
  10950. (main): Added a message to inform users that aria2 is starting to
  10951. verify checksum.
  10952. * src/RequestInfo.cc
  10953. (printDownloadAbortMessage): Added a message to inform users that
  10954. transfer can be resumed.
  10955. * src/FeatureConfig.cc
  10956. (FEATURE_ASYNC_DNS): New definition.
  10957. (FeatureConfig): Added aysnc DNS entry.
  10958. To replace CommandUuid with Command* in SocketEntry and
  10959. NameResolverEntry:
  10960. * src/DownloadEngine.h
  10961. (CommandUuids): Removed.
  10962. (SocketEntry::commandUuid): Removed.
  10963. (SocketEntry::command): New variable.
  10964. (SocketEntry::SocketEntry): Updated.
  10965. (SocketEntry::operator==): Updated.
  10966. (NameResolverEntry::commandUuid): Removed.
  10967. (NameResolverEntry::command): New variable.
  10968. (NameResolverEntry::NameResolverEntry): Updated.
  10969. (NameResolverEntry::operator==): Updated.
  10970. (waitData): Changed the argument type.
  10971. (addSocketForReadCheck): Changed the argument type.
  10972. (deleteSocketForReadCheck): Changed the argument type.
  10973. (addSocketForWriteCheck): Changed the argument type.
  10974. (deleteSocketForWriteCheck): Changed the argument type.
  10975. (addNameResolverCheck): Changed the argument type.
  10976. (deleteNameResolverCheck): Changed the argument type.
  10977. * src/DownloadEngine.cc
  10978. (FindCommand): Removed.
  10979. (run): Removed activeUuid. Added activeCommands instead.
  10980. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  10981. (AccumulateActiveCommand): New function object.
  10982. (waitData): Use AccumulateActiveCommand.
  10983. (addSocketForReadCheck): Use Command instead of CommandUuid.
  10984. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  10985. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  10986. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  10987. (addNameResolverCheck): Use Command instead of CommandUuid.
  10988. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  10989. * src/AbstractCommand.cc
  10990. (disableReadCheckSocket): Updated according to the changes in
  10991. DownloadEngine.
  10992. (setReadCheckSocket): Updated according to the changes in
  10993. DownloadEngine.
  10994. (disableWriteCheckSocket): Updated according to the changes in
  10995. DownloadEngine.
  10996. (setWriteCheckSocket): Updated according to the changes in
  10997. DownloadEngine.
  10998. (setNameResolverCheck): Updated according to the changes in
  10999. DownloadEngine.
  11000. (disableNameResolverCheck): Updated according to the changes in
  11001. DownloadEngine.
  11002. * src/AbstractCommand.cc
  11003. (disableReadCheckSocket): Updated according to the changes in
  11004. DownloadEngine.
  11005. (setReadCheckSocket): Updated according to the changes in
  11006. DownloadEngine.
  11007. (disableWriteCheckSocket): Updated according to the changes in
  11008. DownloadEngine.
  11009. (setWriteCheckSocket): Updated according to the changes in
  11010. DownloadEngine.
  11011. * release 0.7.1
  11012. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11013. To handle the case where some BitTorrent tracker requires all letters
  11014. except for [A-Za-z0-9] is URL encoded.
  11015. * src/Util.h
  11016. (torrentUrlencode): New function.
  11017. * src/Util.cc
  11018. (ctype.h): Included.
  11019. (torrentUrlencode): New function.
  11020. * src/TrackerWatcherCommand.cc
  11021. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11022. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11023. To add asynchronous DNS support(libares):
  11024. * src/AbstractCommand.h
  11025. (setNameResolverCheck): New function.
  11026. (disableNameResolverCheck): New function
  11027. (resolveHostname): New function.
  11028. * src/AbstractCommand.cc
  11029. (setNameResolverCheck): New function.
  11030. (disableNameResolverCheck): New function
  11031. (resolveHostname): New function.
  11032. * src/FtpInitiateConnectionCommand.h
  11033. (nameResolver): New function.
  11034. * src/FtpInitiateConnectionCommand.cc
  11035. (Util.h): Included.
  11036. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11037. disableWriteCheckSocket.
  11038. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11039. (executeInternal): Added async DNS support.
  11040. * src/HttpInitiateConnectionCommand.h
  11041. (nameResolver): New function.
  11042. * src/HttpInitiateConnectionCommand.cc
  11043. (DlRetryEx.h): Included.
  11044. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11045. disableWriteCheckSocket.
  11046. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11047. (executeInternal): Added async DNS support.
  11048. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11049. by extern "C" declaration.
  11050. * src/NameResolver.cc: New class.
  11051. * src/Util.h:
  11052. (isNumberAndDotsNotation): New function
  11053. * src/Util.cc
  11054. (isNumberAndDotsNotation): New function.
  11055. * src/DownloadEngine.h
  11056. (NameResolver.h): Included.
  11057. (NameResolverEntry): New class.
  11058. (NameResolverEntries): New type definition.
  11059. (addNameResolverCheck): New function.
  11060. (deleteNameResolverCheck): New function.
  11061. * src/DownloadEngine.cc
  11062. (run): Initialize cp with 0.
  11063. (SetDescriptor::operator()): Added for NameResolverEntry.
  11064. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11065. (waitData): Check nameResolver entries.
  11066. (updateFdSet): Update fds in nameResolver entries.
  11067. (addNameResolverCheck): New function.
  11068. (deleteNameResolverCheck): new function.
  11069. * src/PeerInteractionCommand.cc
  11070. (executeInternal): Fixed wrong socket handling.
  11071. * src/main.cc
  11072. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11073. * src/Util.cc
  11074. (fileChecksum): Removed the call to ctx.digestReset().
  11075. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11076. * po/ru.po: Azamat sent me Russian translation.
  11077. * src/FtpNegotiateCommand.cc
  11078. (recvGreeting): Call disableWriteCheckSocket just after
  11079. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11080. (recvRetr): Recognized status code 125 as a acceptable response code.
  11081. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11082. case-insesitive filesystem(BUG#1531057).
  11083. * src/Time.h: Renamed as TimeA2.h.
  11084. * src/Time.cc: Renamed as TimeA2.cc.
  11085. * src/TimeA2.h: New class.
  11086. * src/TimeA2.cc: New class.
  11087. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11088. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11089. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11090. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11091. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11092. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11093. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11094. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11095. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11096. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11097. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11098. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11099. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11100. * release 0.7.0
  11101. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11102. * src/PeerChokeCommand.h
  11103. (PeerChokeCommand): Rearranged the arguments.
  11104. * src/PeerChokeCommand.cc
  11105. (PeerChokeCommand): Rearranged the arguments.
  11106. * src/MetalinkEntry.h
  11107. (Checksum.h): Included.
  11108. (md5): Removed.
  11109. (sha1): Removed.
  11110. (checksum): New variable.
  11111. (operator=): Updated.
  11112. (check): Removed.
  11113. * src/prefs.h
  11114. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11115. (PREF_FOLLOW_TORRENT): New definition.
  11116. (PREF_SELECT_FILE): New definition.
  11117. (PREF_FOLLOW_METALINK): New definition.
  11118. * src/MetalinkResource.h
  11119. (TYPE_HTTPS): Added to enum TYPE.
  11120. * src/TorrentMan.cc
  11121. (~TorrentMan): Rewritten.
  11122. * src/MultiDiskWriter.cc
  11123. (MultiDiskAdaptor): Updated according to the changes in
  11124. MessageDigestContext.
  11125. (~MultiDiskAdaptor): Updated according to the changes in
  11126. MessageDigestContext.
  11127. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11128. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11129. * src/Util.h
  11130. (fileChecksum): Updated according to the changes in
  11131. MessageDigestContext.
  11132. * src/Util.cc
  11133. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11134. (fileChecksum): Updated according to the changes in
  11135. MessageDigestContext.
  11136. * src/messageDigest.h: Rewritten.
  11137. * src/MetalinkEntry.cc
  11138. (check): Removed.
  11139. (Supported): Updated.
  11140. (dropUnsupportedResource): Fixed a memory leak.
  11141. * src/ShaVisitor.cc
  11142. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11143. (~ShaVisitor): Updated according to the changes in
  11144. MessageDigestContext.
  11145. (visit): Updated according to the changes in MessageDigestContext.
  11146. * src/main.cc
  11147. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11148. command-line option added.
  11149. * src/DownloadEngine.h
  11150. (SocketEntry): New class.
  11151. (SocketEntries): New definition.
  11152. (PairFind): Removed.
  11153. (SockCmdMap): Removed.
  11154. * src/DownloadEngine.cc
  11155. (DownloadEngine): Rewritten.
  11156. (~DownloadEngine): Rewritten.
  11157. (run): Renamed activeCommandUuids as activeUuids.
  11158. (SetDescriptor): Rewritten.
  11159. (AccumulateActiveCommandUuid): Removed.
  11160. (AccumulateActiveUuid): New function object.
  11161. (waitData): Rewritten.
  11162. (updateFdSet): Rewritten.
  11163. (addSocket): Rewritten.
  11164. (deleteSocket): Rewritten.
  11165. (addSocketForReadCheck): Rewritten.
  11166. (deleteSocketForReadCheck): Rewritten.
  11167. (addSocketForWriteCheck): Rewritten.
  11168. (deleteSocketForWriteCheck): Rewritten.
  11169. * src/Xml2MetalinkProcessor.cc
  11170. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11171. * src/DownloadCommand.cc
  11172. (executeInternal): Added the check routine for lowest speed limit.
  11173. * src/AbstractDiskWriter.cc
  11174. (AbstractDiskWriter): Updated according to the changes in
  11175. MessageDigestContext.
  11176. (~AbstractDiskWriter): Updated according to the changes in
  11177. MessageDigestContext.
  11178. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11179. * src/RequestInfo.h: New class.
  11180. * src/UrlRequestInfo.h: New class.
  11181. * src/UrlRequestInfo.cc: New class.
  11182. * src/TorrentRequestInfo.h: New class.
  11183. * src/TorrentRequestInfo.cc: New class.
  11184. * src/MetalinkRequestInfo.h: New class.
  11185. * src/MetalinkRequestInfo.cc: New class.
  11186. * src/Checksum.h: New class.
  11187. * src/DownloadEngineFactory.h: New class.
  11188. * src/DownloadEngineFactory.cc: New class.
  11189. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11190. * src/Option.h
  11191. (getAsBool): New function.
  11192. * src/Option.cc
  11193. (prefs.h): Included.
  11194. (defined): 0-length value is now recognized as undefined.
  11195. (getAsInt): Rewritten.
  11196. (getAsLLInt): Rewritten.
  11197. (getAsBool): New function.
  11198. * src/FeatureConfig.h: Rewritten.
  11199. * src/FeatureConfig.cc: Rewritten.
  11200. * src/prefs.h
  11201. (PREF_STDOUT_LOG): New definition.
  11202. (PREF_LOG): New definition.
  11203. (PREF_DIR): New definition.
  11204. (PREF_OUT): New definition.
  11205. (PREF_SPLIT): New definition.
  11206. (PREF_DAEMON): New definition.
  11207. (PREF_REFERER): New definition.
  11208. (PREF_TORRENT_FILE): New definition.
  11209. (PREF_LISTEN_PORT): New definition.
  11210. (PREF_METALINK_FILE): New definition.
  11211. (PREF_METALINK_VERSION): New definition.
  11212. (PREF_METALINK_LANGUAGE): New definition.
  11213. (PREF_METALINK_OS): New definition.
  11214. (PREF_METALINK_SERVERS): New definition.
  11215. * src/main.cc
  11216. (main): Following command-line parameters are now put into Option
  11217. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11218. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11219. metalinkLanguage, metalinkOs, metalinkServers
  11220. To fix the bug that aria2 can not handle http response header properly.
  11221. * src/HttpHeader.cc
  11222. (put): Made name lowercased.
  11223. (defined): Made name lowercased.
  11224. (getFirst): Made name lowercased.
  11225. (get): Made name lowercased.
  11226. (getFirstAsInt): Rewritten.
  11227. (getFirstAsLLInt): Rewritten.
  11228. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11229. * src/TorrentMan.h:
  11230. (advertisePiece): Updated doc.
  11231. (getAdvertisedPieceIndexes): Updated doc.
  11232. (removeAdvertisedPiece); New function.
  11233. * src/TorrentMan.cc
  11234. (FindElapsedHave): New function object.
  11235. (removeAdvertisedPiece): New function.
  11236. * src/HaveEraseCommand.h: New class.
  11237. * src/HaveEraseCommand.cc: New class.
  11238. * src/FeatureConfig.h: New class.
  11239. * src/FeatureConfig.cc: New class.
  11240. * src/Request.h
  11241. (defaultPorts): Removed.
  11242. * src/Request.cc
  11243. (FeatureConfig.h): Included.
  11244. (Request): Removed the statements related to defaultPorts.
  11245. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11246. A default port number is now retrieved from FeatureConfig.
  11247. * src/main.cc
  11248. (HaveEraseCommand.h): Included.
  11249. (showVersion): Added the output of feature list.
  11250. (main): Added HaveEraseCommand to command queue in BitTorrent
  11251. downloading.
  11252. * src/PeerInteractionCommand.h
  11253. (chokeCheckPoint): Commented out.
  11254. (periodicExecPoint): New variable.
  11255. * src/PeerInteractionCommand.cc
  11256. (executeInternal): Following methods are now called in at least every
  11257. 0.5 seconds to reduce CPU usage:
  11258. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11259. checkHave(), sendKeepAlive().
  11260. (checkLongTimePeerChoking): Commented out.
  11261. * src/BitfieldMan.h
  11262. (getNthBitIndex): Changed the method signature.
  11263. (getMissingIndexRandomly): Changed the method signature.
  11264. * src/BitfieldMan.cc
  11265. (getNthBitIndex): Rewritten
  11266. (getMissingIndexRandomly): Rewritten.
  11267. (hasMissingPiece): Rewritten.
  11268. (getMissingIndex): Refactored.
  11269. (getMissingUnusedIndex); Refactored.
  11270. (getMissingIndex): Refactored.
  11271. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11272. * src/PeerMessage.h
  11273. (Piece.h): Included.
  11274. (SharedHandle.h): Included.
  11275. (invalidate): New variable.
  11276. (uploading): New variable.
  11277. (isInvalidate): New function.
  11278. (isUploading): New function.
  11279. (onPush): New function.
  11280. (onChoked): New function.
  11281. (onCanceled): New function.
  11282. (onAbortPiece): New function.
  11283. (PeerMessageHandle): New type definition.
  11284. * src/PeerMessage.cc
  11285. (PeerMessage): Added the initialization for invalidate and uploading.
  11286. * src/CancelMessage.h
  11287. (CancelMessage): Rewritten.
  11288. * src/RejectMessage.h
  11289. (RejectMessage): Rewritten.
  11290. * src/Metalinker.h
  11291. (operator=): Defined.
  11292. * src/MetaEntry.h
  11293. (operator=): Defined.
  11294. * src/MetalinkResource.h
  11295. (operator=): Defined.
  11296. * src/AllowedFastMessage.h
  11297. (AllowedFastMessage): Rewritten.
  11298. * src/HandshakeMessage.h
  11299. (HandshakeMessage): New function(overload).
  11300. * src/HandshakeMessage.cc
  11301. (HandshakeMessage): Rewritten.
  11302. (init): New function.
  11303. * src/HaveMessage.h
  11304. (HaveMessage): Rewritten.
  11305. * src/Time.h
  11306. (operator=): Defined the function body here.
  11307. * src/Time.cc
  11308. (operator=): Removed.
  11309. * src/SocketCore.h
  11310. (operator==): Defined here.
  11311. (operator!=): Defined here.
  11312. (operator<): Defined here.
  11313. * src/SocketCore.cc
  11314. (operator==): Removed.
  11315. (operator<): Removed.
  11316. * src/BitfieldMan.h
  11317. (operator=): Defined the function body here.
  11318. * src/BitfieldMan.cc
  11319. (operator=): Removed.
  11320. * src/TorrentMan.h
  11321. (deleteErrorPeer): Removed.
  11322. (deleteUnusedPeer); New function.
  11323. * src/TorrentMan.cc
  11324. (addPeer): Call deleteUnusedPeer.
  11325. (deleteErrorPeer): Removed.
  11326. (deleteUnusedPeer): New function.
  11327. * src/PeerAbstractCommand.h
  11328. (setNoCheck): New function.
  11329. (noCheck): New variable.
  11330. * src/PeerAbstractCommand.cc
  11331. (PeerAbstractCommand): Added the initialization of noCheck.
  11332. (execute): Added a check for noCheck.
  11333. (setNoCheck): New function.
  11334. * src/Util.h
  11335. (stdio.h): Included.
  11336. * src/Util.cc
  11337. (unistd.h): Included.
  11338. * src/DefaultDiskWriter.cc
  11339. (unistd.h): Included.
  11340. * src/Peer.h
  11341. (operator==): Defined the function body here.
  11342. (operator!=): Defined the function body here.
  11343. * src/Peer.cc
  11344. (operator==): Removed.
  11345. (operator!=): Removed.
  11346. * src/Piece.h
  11347. (Piece): Defined the function body here(copy constructor).
  11348. (operator=): Defined the function body here.
  11349. (operator==): Defined the function body here.
  11350. * src/Piece.cc
  11351. (Piece): Removed(copy constructor).
  11352. (operator=): Removed.
  11353. (operator==): Removed.
  11354. * src/PeerMessageUtil.h
  11355. (ChokeMessage.h): Removed.
  11356. (UnchokeMessage.h): Removed.
  11357. (InterestedMessage.h): Removed.
  11358. (NotInterestedMessage.h): Removed.
  11359. (HaveMessage.h): Removed.
  11360. (BitfieldMessage.h): Removed.
  11361. (RequestMessage.h): Removed.
  11362. (CancelMessage.h): Removed.
  11363. (PieceMessage.h): Removed.
  11364. (HandshakeMessage.h): Removed.
  11365. (KeepAliveMessage.h): Removed.
  11366. (PortMessage.h): Removed.
  11367. (HaveAllMessage.h): Removed.
  11368. (HaveNoneMessage.h): Removed.
  11369. (PeerConnection.h): Removed.
  11370. (HandshakeMessage.h): Included.
  11371. * src/BitfieldMessage.h
  11372. (init): New function.
  11373. (BitfieldMessage): Rewritten.
  11374. (BitfieldMessage): New function(overload).
  11375. * src/RequestSlot.h
  11376. (operator=): Defined the function body here.
  11377. (operator==): Defined the function body here.
  11378. * src/RequestSlot.cc
  11379. (operator=): Removed.
  11380. (operator==): Removed.
  11381. To remove the dependency on the PeerMessage subclass from
  11382. PeerInteraction:
  11383. * src/PeerMessageFactory.h: New class.
  11384. * src/PeerMessageFactory.cc: New class.
  11385. * src/SimplePeerMessage.cc
  11386. (send): If invalidate is true then do nothing.
  11387. * src/PeerInteractionCommand.cc
  11388. (HandshakeMessage.h): Included.
  11389. (KeepAliveMessage.h): Included.
  11390. (ChokeMessage.h): Included.
  11391. (UnchokeMessage.h): Included.
  11392. (HaveMessage.h): Included.
  11393. (executeInternal): Call setNoCheck().
  11394. Removed setWriteCheckSocket(socket).
  11395. * src/PeerInteraction.h
  11396. (ChokeMessage.h): Removed.
  11397. (UnchokeMessage.h): Removed.
  11398. (InterestedMessage.h): Removed.
  11399. (NotInterestedMessage.h): Removed.
  11400. (HaveMessage.h): Removed.
  11401. (BitfieldMessage.h): Removed.
  11402. (RequestMessage.h): Removed.
  11403. (CancelMessage.h): Removed.
  11404. (PieceMessage.h): Removed.
  11405. (HandshakeMessage.h): Removed.
  11406. (KeepAliveMessage.h): Removed.
  11407. (PortMessage.h): Removed.
  11408. (HaveAllMessage.h): Removed.
  11409. (HaveNoneMessage.h): Removed.
  11410. (RejectMessage.h): Removed.
  11411. (AllowedFastMessage.h): Removed.
  11412. (SuggestPieceMessage.h): Removed.
  11413. (PeerMessageFactory.h): Included.
  11414. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11415. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11416. (PeerMessageFactory): New variable.
  11417. (createPeerMessage): Removed.
  11418. (createHandshakeMessage): Removed.
  11419. (setPeerMessageCommonProperty): Removed.
  11420. (addRequestSlot): New function.
  11421. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11422. (getPeerMessageFactory): New function.
  11423. (createRequestMessage): Removed.
  11424. (createCancelMessage): Removed.
  11425. (createPieceMessage): Removed.
  11426. (createHaveMessage): Removed.
  11427. (createChokeMessage): Removed.
  11428. (createUnchokeMessage): Removed.
  11429. (createInterestedMessage): Removed.
  11430. (createNotInterestedMessage): Removed.
  11431. (createBitfieldMessage): Removed.
  11432. (createKeepAliveMessage): Removed.
  11433. (createHaveAllMessage): Removed.
  11434. (createHaveNoneMessage): Removed.
  11435. (createRejectMessage): Removed.
  11436. (createAllowedFastMessage): Removed.
  11437. * src/PeerInteraction.cc
  11438. (PeerInteraction): Allocate PeerMessageFactory here.
  11439. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11440. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11441. PieceMessage::ID.
  11442. (addMessage): Simplified by using PeerMessage::onPush().
  11443. (addRequestSlot): New function.
  11444. (rejectAllPieceMessageInQueue): Simplified by using
  11445. PeerMessage::onChoked().
  11446. (rejectPieceMessageInQueue): Simplified by using
  11447. PeerMessage::onCanceled().
  11448. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11449. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11450. (createHandshakeMessage): Removed.
  11451. (createPeerMessage): Removed.
  11452. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11453. (setPeerMessageCommonProperty): Removed.
  11454. (createRequestMessage): Removed.
  11455. (createCancelMessage): Removed.
  11456. (createPieceMessage): Removed.
  11457. (createHaveMessage): Removed.
  11458. (createChokeMessage): Removed.
  11459. (createUnchokeMessage): Removed.
  11460. (createInterestedMessage): Removed.
  11461. (createNotInterestedMessage): Removed.
  11462. (createBitfieldMessage): Removed.
  11463. (createKeepAliveMessage): Removed.
  11464. (createHaveAllMessage): Removed.
  11465. (createHaveNoneMessage): Removed.
  11466. (createRejectMessage): Removed.
  11467. (createAllowedFastMessage): Removed.
  11468. * src/PieceMessage.h
  11469. (createRejectMessage): New function.
  11470. (PieceMessage): Rewritten.
  11471. (onChoked): New function.
  11472. (onCanceled): New function.
  11473. * src/PieceMessage.cc
  11474. (send): If invalidate is true then do nothing, just return.
  11475. (createRejectMessage): New function.
  11476. (onChoked): New function.
  11477. (onCanceled): New function.
  11478. * src/RequestMessage.h
  11479. (RequestMessage): Rewritten.
  11480. (onPush): New function.
  11481. (onAbortPiece): New function.
  11482. * src/RequestMessage.cc
  11483. (onPush): New function.
  11484. (onAbortPiece): New function.
  11485. Update fd_set when a socket is added or deleted in order to improve
  11486. performance:
  11487. * src/DownloadEngine.h
  11488. (rfdset): New variable.
  11489. (wfdset): New variable.
  11490. (updateFdSet): New function.
  11491. * src/DownloadEngine.cc
  11492. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11493. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11494. (waitData): Copy rfdset and wfdset.
  11495. (updateFdSet): New function.
  11496. (addSocket): Call updateFdSet.
  11497. (deleteSocket): Call updateFdSet.
  11498. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11499. To add the support for Metalink3.0 backward compatible links:
  11500. * src/Request.h
  11501. (SAFE_CHARS): Added '#'.
  11502. (METALINK_MARK): New definition.
  11503. * src/Request.cc
  11504. (parseUrl): Added the support for Metalink3.0 backward compatible
  11505. links.
  11506. etc
  11507. * src/PeerInteraction.cc
  11508. (MsgPushBack): Removed.
  11509. (sendMessages): Use STL copy and back_inserter.
  11510. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11511. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11512. * src/TorrentMan.h
  11513. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11514. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11515. * src/SharedHandle.h: New class.
  11516. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11517. * src/HttpResponseCommand.h
  11518. (HttpResponseCommand): Wrapped Socket.
  11519. * src/SocketCore.h
  11520. (operator==): New function.
  11521. (operator!=): New function.
  11522. (operator<): New function.
  11523. (getSockfd): New function.
  11524. (isOpen): New function.
  11525. (writeData): New function.
  11526. * src/SocketCore.cc
  11527. (operator==): New function.
  11528. (operator!=): New function.
  11529. (operator<): New function.
  11530. * src/AbstractCommand.h
  11531. (socket): Changed its type to SocketHandle.
  11532. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11533. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11534. (disableReadCheckSocket): New function.
  11535. (disableWriteCheckSocket): New function.
  11536. (readCheckTarget): Changed its type to SocketHandle.
  11537. (writeCheckTarget): Changed its type to SocketHandle.
  11538. (AbstractCommand): Replaced Socket with SocketHandle.
  11539. * src/AbstractCommand.cc
  11540. (AbstractCommand): Replaced Socket with SocketHandle.
  11541. (~AbstractCommand): Removed the deallocation for Socket object.
  11542. (disableReadCheckSocket): New function.
  11543. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11544. (disableWriteCheckSocket): New function.
  11545. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11546. * src/HttpDownloadCommand.cc
  11547. (DownloadCommand): Replaced Socket with SocketHandle.
  11548. * src/PeerAbstractCommand.h
  11549. (socket): Changed its type to SocketHandle.
  11550. (peer): Changed its type to PeerHandle.
  11551. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11552. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11553. (disableReadCheckSocket): New function.
  11554. (disableWriteCheckSocket): New function.
  11555. (readCheckTarget): Changed its type to SocketHandle.
  11556. (writeCheckTarget): Changed its type to SocketHandle.
  11557. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11558. Replaced Peer with PeerHandle.
  11559. * src/HttpRequestCommand.cc
  11560. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11561. Use disableReadCheckSocket.
  11562. * src/PeerInitiateConnectionCommand.h
  11563. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11564. * src/PeerChokeCommand.cc
  11565. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11566. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11567. (execute): Use PeerHandle.
  11568. * src/PeerConnection.h
  11569. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11570. (socket): Changed its type to SocketHandle.
  11571. (PeerConnection): Replaced Socket with SocketHandle.
  11572. * src/PeerConnection.cc
  11573. (PeerConnection): Replaced Socket with SocketHandle.
  11574. * src/PeerInteractionCommand.h
  11575. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11576. Replaced Peer with PeerHandle.
  11577. * src/PeerInteractionCommand.cc
  11578. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11579. Replaced Peer with PeerHandle.
  11580. (executeInternal): Use disableWriteCheckSocket.
  11581. Use HandshakeMessageHandle.
  11582. (receiveMessages): Use PeerMessageHandle.
  11583. (prepareForNextPeer): Use PeerHandle.
  11584. * src/HttpProxyRequestCommand.h
  11585. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11586. * src/HttpResponseCommand.cc
  11587. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11588. * src/TorrentMan.cc
  11589. (nullPeer): Added external reference.
  11590. (~TorrentMan): Removed the deallocation of the elements of peers.
  11591. (addPeer): Rewritten.
  11592. (isPeerAvailable): Use nullPeer.
  11593. (deleteOldpeers): Replaced with deleteErrorPeer.
  11594. (deleteErrorPeer): New function.
  11595. (getPeer): Use PeerHandle and nullPeer.
  11596. (hasMissingPiece): Replaced Peer with PeerHandle.
  11597. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11598. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11599. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11600. (getMissingPiece): Replaced Peer with PeerHandle.
  11601. * src/FtpNegotiateCommand.cc
  11602. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11603. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11604. (recvGreeting): Use disableWriteCheckSocket.
  11605. (recvPasv): Removed the allocation of Socket.
  11606. Use disableReadCheckSocket.
  11607. (sendRestPasv): Use disableWriteCheckSocket.
  11608. (recvRetr): Changed assertion.
  11609. * src/PeerInteraction.h
  11610. (SharedHandle.h): Included SharedHandle.h.
  11611. (PeerMessageHandle): New type definition.
  11612. (HandshakeMessageHandle): New type definition.
  11613. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11614. (peer): Changed its type to PeerHandle.
  11615. (createHandshakeMessage): Replaced HandshakeMessage with
  11616. HandshakeMessageHandle.
  11617. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11618. (PeerInteraction): Replaced Peer with PeerHandle.
  11619. Replaced Socket with SocketHandle.
  11620. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11621. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11622. (receiveHandshake): Replaced HandshakeMessage with
  11623. HandshakeMessageHandle.
  11624. * src/PeerInteraction.cc
  11625. (PeerInteraction): Replaced Peer with PeerHandle.
  11626. Replaced Socket with SocketHandle.
  11627. (~PeerInteraction): Removed the deallocation of the elements of
  11628. messageQueue.
  11629. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11630. (isSendingMessageInProgress): Replaced PeerMessage with
  11631. PeerMessageHandle.
  11632. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11633. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11634. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11635. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11636. (abortPiece): Use PeerMessageHandle.
  11637. (receiveHandshake): Replaced HandshakeMessage with
  11638. HandshakeMessageHandle. Removed try-catch block.
  11639. (createHandshakeMessage): Replaced HandshakeMessage with
  11640. HandshakeMessageHandle.
  11641. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11642. Removed try-catch block.
  11643. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11644. * src/HttpProxyResponseCommand.cc
  11645. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11646. * src/FtpTunnelResponseCommand.h
  11647. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11648. * src/HttpConnection.cc
  11649. (HttpConnection): Replaced Socket with SocketHandle.
  11650. * src/PeerAbstractCommand.cc
  11651. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11652. (~PeerAbstractCommand): Removed the deallocation of socket.
  11653. Use disableReadCheckSocket, disableWriteCheckSocket.
  11654. (disableReadCheckSocket): New function.
  11655. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11656. (disableWriteCheckSocket): New function.
  11657. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11658. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11659. * src/FtpTunnelRequestCommand.cc
  11660. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11661. (~FtpTunnelRequestCommand): Corrected indentation.
  11662. * src/DownloadCommand.h
  11663. (DownloadCommand): Replaced Socket with SocketHandle.
  11664. * src/PeerListenCommand.cc
  11665. (PeerListenCommand): Removed the initialization of socket.
  11666. (~PeerListenCommand): Removed the deallocation of socket.
  11667. (bindPort): Use SocketHandle.
  11668. (execute): Use SocketHandle and PeerHandle.
  11669. * src/FtpDowndloadCommand.cc
  11670. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11671. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11672. * src/main.cc
  11673. (main): Corrected indentation.
  11674. * src/HttpInitiateConnectionCommand.cc
  11675. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11676. (executeInternal): Removed the allocation of socket.
  11677. * src/HttpRequestCommand.h
  11678. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11679. * src/FtpNegotiationCommand.h
  11680. (dataSocket): Changed its type to SocketHandle.
  11681. (serverSocket): Changed its type to SocketHandle.
  11682. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11683. * src/TorrentMan.h
  11684. (MAX_PEER_UPDATE): Removed.
  11685. (MAX_PEERS): New definition.
  11686. (Peers): The element is now of type PeerHandle.
  11687. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11688. (getPeer): Replaced Peer with PeerHandle.
  11689. (deleteOldErrorPeers): Removed.
  11690. (deleteErrorPeer): New function.
  11691. (hasMissingPiece): Replaced Peer with PeerHandle.
  11692. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11693. (getMissingPiece): Replaced Peer with PeerHandle.
  11694. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11695. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11696. (addActivePeer): Replaced Peer with PeerHandle.
  11697. (deleteActivePeer): Replaced Peer with PeerHandle.
  11698. Added a check for the return value of find.
  11699. * src/FtpTunnelResponseCommand.cc
  11700. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11701. * src/FtpInitiateConnectionCommand.cc
  11702. (executeInternal): Removed the allocation of socket.
  11703. * src/DownloadEngine.h
  11704. (Sockets): An element is now of type SocketHandle.
  11705. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11706. (CommandUuids): New type definition.
  11707. (rsockets): Changed its type to SockCmdMap.
  11708. (wsockets): Changed its type to SockCmdMap.
  11709. (addSocket): Rewritten.
  11710. (deleteSocket): Rewritten.
  11711. (addSocketForReadCheck): Rewritten.
  11712. (deleteSocketForReadCheck): Rewritten.
  11713. (addSocketForWriteCheck): Rewritten.
  11714. (deleteSocketForWriteCheck): Rewritten.
  11715. (PairFind): New template class.
  11716. * src/HttpDownloadCommand.h
  11717. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11718. * src/FtpConnection.cc
  11719. (FtpConnection): Replaced Socket with SocketHandle.
  11720. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11721. block.
  11722. * src/InitiateConnectionCommandFactory.cc
  11723. (DlAbortEx.h): Included DlAbortEx.h.
  11724. (createInitiateConnectionCommand): Throw exception if the protocol of
  11725. requested URI is not supported.
  11726. * src/Peer.cc
  11727. (nullPeer): Changed its type to PeerHandle.
  11728. (operator==): New function.
  11729. (operator!=): New function.
  11730. * src/Peer.h
  11731. (SharedHandle.h): Included SharedHandle.h.
  11732. (operator==): New function.
  11733. (operator!=): New function.
  11734. (Peer): Added the default constructor.
  11735. Use resetStatus() to initialize member variables.
  11736. (nullPeer): Removed.
  11737. * src/TrackerUpdateCommand.cc
  11738. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11739. with MIN_PEERS.
  11740. * src/PeerListenCommand.h
  11741. (socket): Changed its type to SocketHandle.
  11742. * src/Command.h
  11743. (CommandUuid): New type definition.
  11744. (uuid): New variable.
  11745. (uuidGen): New variable.
  11746. (Command): Added the initialization of uuid.
  11747. (getUuid): New function.
  11748. * src/Socket.h
  11749. (Socket): Removed.
  11750. (SocketHandle): New type definition.
  11751. * src/DownloadEngine.h
  11752. (FindCommand): New function object.
  11753. (run): The portion of socket check was rewritten.
  11754. (SetDescriptor): New function object.
  11755. (AccumulateActiveCommandUuid): New function object.
  11756. (waitData): Rewritten.
  11757. (addSocket): Rewritten.
  11758. (deleteSocket): Rewritten.
  11759. (addSocketForReadCheck): Rewritten.
  11760. (addSocketForWriteCheck): Rewritten.
  11761. (deleteSocketForReadCheck): Rewritten.
  11762. (deleteSocketForWriteCheck): Rewritten.
  11763. * src/HttpProxyResponseCommand.h
  11764. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11765. * src/HttpConnection.h
  11766. (socket): Changed its type to SocketHandle.
  11767. (HttpConnection): Replaced Socket with SocketHandle.
  11768. * src/PeerInitiateConnectionCommand.cc
  11769. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11770. (executeInternal): Removed the allocation of socket.
  11771. (prepareForNextPeer): Use PeerHandle.
  11772. * src/PeerMessage.h
  11773. (peer): Changed its type to PeerHandle.
  11774. (getPeer): Replaced Peer with PeerHandle.
  11775. (setPeer): Replaced Peer with PeerHandle.
  11776. * src/DownloadCommand.cc
  11777. (DownloadCommand): Replaced Socket with SocketHandle.
  11778. * src/FtpConnection.h
  11779. (socket): Changed its type to SocketHandle.
  11780. (FtpConnection): Replaced Socket with SocketHandle.
  11781. (sendPort); Replaced Socket with SocketHandle.
  11782. * src/FtpDowndloadCommand.h
  11783. (ctrlSocket): Changed its type to SocketHandle.
  11784. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11785. * src/HttpProxyRequestCommand.cc
  11786. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11787. * src/FtpTunnelRequestCommand.h
  11788. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11789. etc
  11790. * src/PeerChokeCommand.h
  11791. (setAllPeerChoked): Removed.
  11792. (setAllPeerResetDelta): Removed.
  11793. * src/PeerChokeCommand.cc
  11794. (setAllPeerChoked): Removed.
  11795. (ChokePeer): New function object.
  11796. (setAllPeerResetDelta): Removed.
  11797. (ResetDelta): New function object.
  11798. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11799. (execute): Show download speed when the local node is a seeder.
  11800. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11801. using STL.
  11802. * src/TrackerWatcherCommand.h
  11803. (MIN_PEERS): Removed.
  11804. * src/TorrentMan.cc
  11805. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11806. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11807. To fix the bug that .aria2 file is not saved if downloading is stopped
  11808. by the errors:it results that aria2 can not resume downloading:
  11809. * src/main.cc
  11810. (normalDownload): Added the call to save().
  11811. (main): Added the deletion of the elements in 'reserved'.
  11812. To fix log:
  11813. * src/PeerInteraction.cc
  11814. (receiveHandshake): Fixed log.
  11815. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11816. To improve download performance in BitTorrent:
  11817. * src/TorrentMan.cc
  11818. (getPeer): Check the number of connections. Return nullPeer if
  11819. it is greater than MAX_PEER_UPDATE.
  11820. This code was originally here, but was removed in 0.5.1.
  11821. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11822. To improve the conditional compilation:
  11823. * src/MultiDiskWriter.h:
  11824. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11825. * src/MultiDiskWriter.cc:
  11826. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11827. * src/Util.h:
  11828. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11829. Added ENABLE_BITTORRENT around computeFastSet().
  11830. * src/Util.cc:
  11831. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11832. Added ENABLE_BITTORRENT around computeFastSet().
  11833. * src/messageDigest.h:
  11834. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11835. * src/ShaVisitor.h:
  11836. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11837. * src/ShaVisitor.cc:
  11838. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11839. * src/main.cc:
  11840. Added ENABLE_BITTORRENT around includes and blocks related to
  11841. BitTorrent.
  11842. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11843. digest support is not available.
  11844. * src/AbstractDiskWriter.h:
  11845. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11846. * src/AbstractDiskWriter.cc:
  11847. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11848. * src/MetalinkEntry.cc
  11849. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11850. support is not available.
  11851. To add command-line options for Metalink:
  11852. * src/main.cc:
  11853. Added metalink-version, metalink-language, metalink-os,
  11854. follow-metalink.
  11855. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  11856. * src/main.cc: Use these definition.
  11857. * Release 0.6.0
  11858. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11859. To add Metalink support(http/ftp only):
  11860. * src/AbstractCommand.h
  11861. (tryReserved): New function.
  11862. * src/AbstractCommand.cc
  11863. (execute): Call tryReserved().
  11864. (tryReserved): New function.
  11865. * src/Request.h
  11866. (Requests): New type definition.
  11867. * src/SegmentMan.h
  11868. (reserved): New variable.
  11869. * src/Util.h
  11870. (fileChecksum): New function.
  11871. (toUpper): New function.
  11872. (toLower): New function.
  11873. * src/Util.cc
  11874. (messageDigest.h): Included.
  11875. (trim): Trim \r\n\t.
  11876. (fileChecksum): New function.
  11877. (toUpper): New function.
  11878. (toLower): New function.
  11879. * src/main.cc
  11880. (normalDownload): New function.
  11881. (main): Added 2 command-line options: metalink-file,
  11882. metalink-connection. Their usage has not been written yet.
  11883. * src/MetalinkProcessor.h: New class.
  11884. * src/Xml2MetalinkProcessor.h: New class.
  11885. * src/Xml2MetalinkProcessor.cc: New class.
  11886. * src/MetalinkEntry.h: New class.
  11887. * src/MetalinkEntry.cc: New class.
  11888. * src/MetalinkResource.h: New class.
  11889. * src/MetalinkResource.cc: New class.
  11890. To add md5 message digest checking:
  11891. * src/messageDigest.h: Rewritten.
  11892. * src/MultiDiskWriter.cc: Updated according to the changes in
  11893. messageDigest.h.
  11894. * src/ShaVisitor.cc: Updated according to the changes in
  11895. messageDigest.h.
  11896. * src/Util.cc: Updated according to the changes in messageDigest.h.
  11897. * src/AbstractDiskWriter.cc: Updated according to the changes in
  11898. messageDigest.h.
  11899. To fix a bug that causes segfault when the payload length in peer
  11900. message is less than 0:
  11901. * src/PeerConnection.cc:
  11902. (receiveMessage): Fixed the bug.
  11903. * src/PeerMessageUtil.cc
  11904. (checkLength): Throw an exception if length is less than or equals to
  11905. 0.
  11906. To add new interfaces to Base64 encoding/decoding:
  11907. * src/Base64.h
  11908. (part_encode): Changed the method signature.
  11909. (encode): New function(overload).
  11910. (decode): New function(overload).
  11911. * src/Base64.cc
  11912. (part_encode): Rewritten.
  11913. (encode): Rewritten.
  11914. (encode): New function(overload).
  11915. To prevent a peer to download same piece if there is an error in
  11916. checksum:
  11917. * src/PieceMessage.cc
  11918. (receivedAction): Call peerInteraction->abortPiece().
  11919. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11920. To fix the bug that causes same have message is sent many times to
  11921. a single peer.
  11922. * src/Time.cc
  11923. (isNewer): Use Util::difftv().
  11924. * src/Util.cc
  11925. (difftv): Added a cast to (long long int).
  11926. * src/TorrentMan.cc
  11927. (advertisePiece): Use push_front.
  11928. (getAdvertisedPieceIndexes): A performance improvement was made.
  11929. To fix the bug that sends tracker requests without a sleep interval
  11930. when the number of connections is less than 15.
  11931. * src/TrackerWatcherCommand.cc
  11932. (execute): Now the number of connections is not a factor to decide
  11933. whether or not a tracker request should be sent or not.
  11934. * src/Time.h
  11935. (setTimeInSec): New function.
  11936. * src/Time.cc
  11937. (setTimeInSec): New function.
  11938. etc.
  11939. * src/ChokeMessage.cc
  11940. (receivedAction): Removed peer->snubbing = false
  11941. * src/PeerConnection.h
  11942. (receiveHandshake): Updated doc.
  11943. * src/TorrentMan.h
  11944. (getAdvertisedPieceIndexes): Updated the method signature.
  11945. * src/TorrentMan.cc
  11946. (getAdvertisedPieceIndexes): Updated the method signature.
  11947. * src/Time.h
  11948. (getTimeInMicros): Added a cast to (long long int).
  11949. (getTimeInMillis): Added a cast to (long long int).
  11950. * Release 0.5.2
  11951. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11952. To make a listening socket non-block:
  11953. * src/SocketCore.h
  11954. (setNonBlockingMode): New function.
  11955. * src/SocketCore.cc
  11956. (setNonBlockingMode): New function.
  11957. (beginListen): Added a call to setNonBlockingMode().
  11958. (acceptConnection): Call setNonBlockingMode().
  11959. (setBlockingMode): Updated.
  11960. To handle tracker's NAT-checking:
  11961. * src/PeerConnection.cc
  11962. (receiveHandshake): 'msg' param is filled with received data and
  11963. its length is assigned to 'length' param, even if all handshake
  11964. message is not yet received.
  11965. * src/PeerInteractionCommand.cc
  11966. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  11967. a new peer connects to localhost.
  11968. A call to peerInteraction->sendHandshake() was removed because
  11969. it is called from peerInteraction->receiveHandshake(true).
  11970. * src/PeerInteraction.h
  11971. (quickReplied): New variable.
  11972. (receiveHandshake): Added an argument.
  11973. * src/PeerInteraction.cc
  11974. (PeerInteraction): Added the initialization of quickReplied.
  11975. (receiveHandshake): Send handshake message as soon as the info hash
  11976. in a handshake message from a peer is correct.
  11977. To change the random part of peer id and key parameter:
  11978. * src/TorrentMan.h
  11979. (key): New variable.
  11980. * src/TorrentMan.cc
  11981. (setupInternal1): Use Util::randomAlpha() to generate random part
  11982. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  11983. key is also generated by Util::randomAlpha() and it is now 8 character
  11984. long.
  11985. * src/Util.h
  11986. (randomAlpha): New function.
  11987. * src/Util.cc
  11988. (randomAlpha): New function.
  11989. * src/TrackerWatcherCommand.cc
  11990. (execute): In a tracker request: Use torrentMan->key as key parameter.
  11991. Added no_peer_id=1.
  11992. Set snubbing flag to false when a choke message is received from a
  11993. snubbed peer.
  11994. * src/ChokeMessage.cc
  11995. (receivedAction): Set snubbing flag to false.
  11996. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11997. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  11998. * src/SimpleLogger.h (writeHeader): New function.
  11999. * src/SimpleLogger.cc (writeHeader): New function.
  12000. (writeLog): Fixed the bug that causes segfaults if exception message
  12001. contains an unescaped "%" character.
  12002. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12003. when a tracker request fails.
  12004. * src/Request.cc (parseUrl): Query string is now handled properly.
  12005. * Release 0.5.1
  12006. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12007. To add Time class which represents a specific instant in time and
  12008. its precision is microseconds. Time checking procedures were rewritten
  12009. using this object.
  12010. * src/Time.h: New class.
  12011. * src/Time.cc: New class.
  12012. * src/AbstractCommand.h
  12013. (updateCheckPoint): Removed.
  12014. (isTimeoutDetected): Removed.
  12015. (checkPoint): Changed the type to Time.
  12016. (timeout): New variable.
  12017. (setTimeout): New function.
  12018. * src/AbstractCommand.cc
  12019. (AbstractCommand): Removed the initialization of checkPoint.
  12020. Added the initialization of timeout.
  12021. (updateCheckPoint): Removed.
  12022. (isTimeoutDetected): Removed.
  12023. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12024. * src/PeerChokeCommand.h
  12025. (checkPoint): Changed the type to Time.
  12026. * src/PeerChokeCommand.cc
  12027. (PeerChokeCommand): Removed the initialization of checkPoint.
  12028. (execute): Rewritten using Time object.
  12029. * src/TrackerWatcherCommand.h
  12030. (checkPoint): Changed the type to Time.
  12031. * src/TrackerWatcherCommand.cc
  12032. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12033. (execute): Rewritten.
  12034. * src/ConsoleDownloadEngine.h
  12035. (cp): Changed the type to Time.
  12036. (startup): Changed the type to Time.
  12037. * src/ConsoleDownloadEngine.cc
  12038. (initStatistics): Use cp.reset(), startup.reset().
  12039. (calculateStatistics): Rewritten using Time object.
  12040. * src/PeerAbstractCommand.h
  12041. (updateCheckPoint): Removed.
  12042. (isTimeoutDetected): Removed.
  12043. (checkPoint): Changed the type to Time.
  12044. * src/PeerAbstractCommand.cc
  12045. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12046. (updateCheckPoint): Removed.
  12047. (isTimeoutDetected): Removed.
  12048. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12049. * src/PeerInteractionCommand.cc
  12050. (PeerInteractionCommand): Removed the initializations of struct
  12051. timeval variables.
  12052. * src/PeerInteractionCommand.h
  12053. (keepAliveCheckPoint): Changed the type to Time.
  12054. (chokeCheckPoint): Changed the type to Time.
  12055. (freqCheckPoint): Changed the type to Time.
  12056. (haveCheckTime): Changed the type to Time.
  12057. * src/PeerInteractionCommand.cc
  12058. (executeInternal): Rewritten using Time object.
  12059. (detectMessageFlooding): Rewritten using Time object.
  12060. (checkLongTimePeerChoking): Rewritten using Time object.
  12061. (sendKeepAlive): Rewritten using Time object.
  12062. (checkHave): Rewritten using Time object.
  12063. * src/SleepCommand.h
  12064. (checkPoint): Changed the type to Time.
  12065. * src/SleepCommand.cc
  12066. (SleepCommand): Removed the initialization of checkPoint.
  12067. (execute): Rewritten using Time object.
  12068. * src/TorrentAutoSaveCommand.h
  12069. (checkPoint): Changed the type to Time.
  12070. * src/TorrentAutoSaveCommand.cc
  12071. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12072. (execute): Rewritten.
  12073. * src/DownloadCommand.h
  12074. (sw): Changed the type to Time.
  12075. * src/DownloadCommand.cc
  12076. (DownloadCommand): Removed the initialization of sw.
  12077. (executeInternal): Rewritten.
  12078. * src/RequestSlot.h
  12079. (dispatchedTime): Changed the type to Time.
  12080. * src/RequestSlot.cc
  12081. (RequestSlot): Removed the call to setDispatchedTime().
  12082. (setDispatchedTime): Rewirtten.
  12083. (isTimeout): Rewritten.
  12084. (getLatencyInMillis): Rewritten.
  12085. * src/TorrentDownloadEngine.h
  12086. (cp): Changed the type to Time[2].
  12087. (startup): Changed the type to Time.
  12088. * src/TorrentDownloadEngine.cc
  12089. (initStatistics): Rewritten.
  12090. (calculateStatistics): Rewritten.
  12091. * src/DownloadEngine.cc
  12092. (run): Rewritten.
  12093. To detect all attempts to connect to the tracker are failed:
  12094. * src/AbstractCommand.cc
  12095. (execute): Increment e->segmentMan->errors if a command aborted.
  12096. * src/SegmentMan.h
  12097. (errors): New variable.
  12098. * src/SegmentMan.cc
  12099. (SegmentMan): Added the initialization of errors.
  12100. (init): Added the initialization of errors.
  12101. * src/TrackerWatcherCommand.cc
  12102. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12103. request was failed.
  12104. To handle snubbed peers:
  12105. * src/PeerChokeCommand.cc
  12106. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12107. (execute): Snubbed peers don't get unchoked.
  12108. * src/PeerInteraction.h
  12109. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12110. * src/PeerInteraction.cc
  12111. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12112. back the requested 16k block in 60 seconds.
  12113. * src/PieceMessage.cc
  12114. (receivedAction): A peer's snubbed state is cleard if it sends
  12115. the requested 16k block in 60 seconds.
  12116. * src/Peer.h
  12117. (snubbing): New variable.
  12118. * src/Peer.cc
  12119. (resetStatus): Added snubbed = false.
  12120. To fix the bug that causes have message is not sent:
  12121. * src/PeerInteractionCommand.cc
  12122. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12123. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12124. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12125. * src/TorrentMan.h
  12126. (HaveEntry): New class.
  12127. (advertisePiece): Rewritten.
  12128. (getAdvertisedPieceIndexes): Rewritten.
  12129. (Haves): Changed the type.
  12130. (getAdvertisedPieceIndexes): Added an argument.
  12131. Others:
  12132. * src/TorrentMan.h
  12133. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12134. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12135. * src/TorrentMan.cc
  12136. (getPeer): Don't check the number of connections here.
  12137. (setupInternal1): Changed peerId.
  12138. * src/PeerInteractionCommand.h
  12139. (KEEP_ALIVE_INTERVAL): New definition.
  12140. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12141. * src/main.cc
  12142. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12143. * src/DownloadEngine.h: Removed unnecessary header includes.
  12144. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12145. To fix the bug that causes segfaults if a tracker returns a zero-length
  12146. list as "peers":
  12147. * src/TrackerUpdateCommand.cc
  12148. (execute): Added a check to see wether the type of peers is Data*.
  12149. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12150. * Release 0.5.0
  12151. To fix compile issue with gcc3:
  12152. * src/CancelMessage.h
  12153. (ID): Renamed as ID_t
  12154. (ID_t): New enum.
  12155. * src/RejectMessage.h
  12156. (ID): Renamed as ID_t
  12157. (ID_t): New enum.
  12158. * src/SuggestPieceMessage.h
  12159. (ID): Renamed as ID_t
  12160. (ID_t): New enum.
  12161. * src/AllowedFastMessage.h
  12162. (ID): Renamed as ID_t
  12163. (ID_t): New enum.
  12164. * src/PortMessage.h
  12165. (ID): Renamed as ID_t
  12166. (ID_t): New enum.
  12167. * src/HaveNoneMessage.h
  12168. (ID): Renamed as ID_t
  12169. (ID_t): New enum.
  12170. * src/KeepAliveMessage.h
  12171. (ID): Renamed as ID_t
  12172. (ID_t): New enum.
  12173. * src/HaveAllMessage.h
  12174. (ID): Renamed as ID_t
  12175. (ID_t): New enum.
  12176. * src/UnchokeMessage.h
  12177. (ID): Renamed as ID_t
  12178. (ID_t): New enum.
  12179. * src/BitfieldMessage.h
  12180. (ID): Renamed as ID_t
  12181. (ID_t): New enum.
  12182. * src/PieceMessage.h
  12183. (ID): Renamed as ID_t
  12184. (ID_t): New enum.
  12185. * src/RequestMessage.h
  12186. (ID): Renamed as ID_t
  12187. (ID_t): New enum.
  12188. * src/NotInterestedMessage.h
  12189. (ID): Renamed as ID_t
  12190. (ID_t): New enum.
  12191. * src/ChokeMessage.h
  12192. (ID): Renamed as ID_t
  12193. (ID_t): New enum.
  12194. * src/InterestedMessage.h
  12195. (ID): Renamed as ID_t
  12196. (ID_t): New enum.
  12197. * src/HaveMessage.h
  12198. (ID): Renamed as ID_t
  12199. (ID_t): New enum.
  12200. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12201. * src/PeerAbstractCommand.h
  12202. (beforeSocketCheck): Removed.
  12203. * src/PeerAbstractCommand.cc
  12204. Modified in order to call executeInternal() even if socket check
  12205. and upload limit check fail.
  12206. * src/PeerInteractionCommand.h
  12207. (keepAlive): Removed.
  12208. (sendKeepAlive): New function.
  12209. (checkHave): New function.
  12210. (beforeSocketCheck): Removed.
  12211. * src/PeerInteractionCommand.cc
  12212. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12213. calls to checkHave() and sendKeepAlive().
  12214. (keepAlive): Renamed to sendKeepAlive().
  12215. (sendKeepAlive): New function.
  12216. (beforeSocketCheck): Removed.
  12217. (checkHave): New function.
  12218. * src/BitfieldMan.cc
  12219. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12220. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12221. 0.
  12222. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12223. * src/TorrentMan.h
  12224. (UsedPieces): Removed.
  12225. (Pieces): New type definition.
  12226. * src/Piece.h: Updated doc.
  12227. * src/Peer.h
  12228. (totalLength): Removed.
  12229. * src/Peer.cc
  12230. (updateLatency): Fixed the latency calculation.
  12231. * src/TorrentMan.cc
  12232. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12233. than or equal to MAX_PEER_LIST_SIZE.
  12234. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12235. then return false.
  12236. (deleteOldErrorPeers): Rewritten.
  12237. (deleteUsedPiece): Fixed the miss use of STL remove.
  12238. * src/PeerInteraction.h
  12239. (Pieces): Removed.
  12240. (deleteTimeoutRequestSlot): Removed.
  12241. (deleteCompletedRequestSlot): Removed.
  12242. (checkRequestSlot): New function.
  12243. * src/PeerInteraction.cc
  12244. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12245. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12246. (checkRequestSlot): New function.
  12247. * src/DownloadEngine.cc
  12248. (run): Clear activeSockets before calling waitData().
  12249. (waitData): Removed a call to activeSockets.clear().
  12250. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12251. To attempt to handle EINTR:
  12252. * src/SocketCore.cc
  12253. (isReadable): Added EINTR handling.
  12254. (isWritable): Added EINTR handling.
  12255. To improve the performance:
  12256. * src/AbstractCommand.cc
  12257. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12258. * src/PeerInteractionCommand.h
  12259. (receiveMessage): Renamed as receiveMessages().
  12260. (receiveMessages): New function.
  12261. * src/PeerInteractionCommand.cc
  12262. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12263. () function. detectMessageFlooding() is moved here.
  12264. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12265. (). The flooding detection for have message is comment out.
  12266. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12267. Util::difftv().
  12268. (receiveMessage): Renamed as receiveMessages().
  12269. (receiveMessages): New function.
  12270. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12271. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12272. * src/SleepCommand.cc
  12273. (execute): Use Util::difftvsec() instead of Util::difftv().
  12274. * src/BitfieldMan.h
  12275. (getNthBitIndex): New function.
  12276. (hasMissingPiece): New function.
  12277. (getAllMissingIndexes): New function.
  12278. * src/BitfieldMan.cc
  12279. (countSetBit): Rewritten.
  12280. (getNthBitIndex): New function.
  12281. (getMissingIndexRandomly): Rewritten.
  12282. (hasMissingPiece): New function.
  12283. (getAllMissingIndexes): New function.
  12284. * src/TorrentMan.cc
  12285. (hasMissingPiece): New function.
  12286. (deleteUsedPiece): Rewritten using STL.
  12287. * src/PeerInteraction.cc
  12288. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12289. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12290. (addRequests): Updated the number of pending requests.
  12291. * src/PeerAbstractCommand.cc
  12292. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12293. (execute): Returns true if TorrentMan::isHalt() is true.
  12294. Corrected the condition of upload limit checking.
  12295. * src/Util.h
  12296. (countBit): New function.
  12297. * src/Util.cc
  12298. (nbits): New variable.
  12299. (countBit): New function.
  12300. * src/DownloadEngine.h
  12301. (SockCmdMap): New type definition.
  12302. (waitData): Added an argument.
  12303. (addSocket): Added an argument.
  12304. (addSocketForReadCheck): Added an argument.
  12305. (addSocketForWriteCheck): Added an argument.
  12306. * src/DownloadEngine.cc
  12307. (run): Executes only commands whose sockets are ready to read or write.
  12308. All commands are executed in every 1 second.
  12309. (waitData): Calls select() again if it returned
  12310. EINTR.
  12311. (addSocket): Saves socket and command object pair to the map.
  12312. (deleteSocket): Deletes socket and command object pair from the map.
  12313. (addSocketForReadCheck): Added an argument.
  12314. (addSocketForWriteCheck): Added an argument.
  12315. * src/DownloadCommand.cc
  12316. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12317. To send "event=stopped" to the tracker when the application finishes:
  12318. * src/PeerChokeCommand.h
  12319. (checkPoint): New variable.
  12320. * src/PeerChokeCommand.cc
  12321. (PeerChokeCommand): Added the initialization of checkPoint.
  12322. (execute): The interval check is now done by checkPoint, not
  12323. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12324. * src/TorrentMan.h
  12325. (halt): New function.
  12326. (hasMissingPiece): New function.
  12327. (isHalt): New function.
  12328. (setHalt): New function.
  12329. * src/TorrentMan.cc
  12330. (TorrentMan): Added the initialization of halt.
  12331. * src/TorrentAutoSaveCommand.h
  12332. (checkPoint): New variable.
  12333. * src/PeerListenCommand.cc
  12334. (execute): Returns true if TorrentMan::isHalt() is true.
  12335. * src/main.cc
  12336. (setSignalHander): Added flags argument.
  12337. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12338. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12339. Removed printDownloadAbortMessage() after torrent downloading loop.
  12340. * src/TorrentAutoSaveCommand.cc
  12341. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12342. (execute): Returns true if TorrentMan::isHalt() is true.
  12343. The interval check is now done by checkPoint, not SleepCommand.
  12344. * src/TrackerWatcherCommand.cc
  12345. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12346. event=stopped.
  12347. * src/TrackerUpdateCommand.cc
  12348. (prepareForRetry): Do not use SleepCommand here.
  12349. (execute): Returns true if TorrentMan::isHalt() is true.
  12350. Others:
  12351. * src/TorrentMan.cc
  12352. (getMissingPieceIndex): Updated log message.
  12353. * src/PeerInteraction.cc
  12354. (createPeerMessag): Updated log message.
  12355. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12356. To add the ability to download several pieces in mix in a command and
  12357. increase the number of request slots according to request-cancel
  12358. latency:
  12359. * src/PeerInteractionCommand.cc
  12360. (executeInternal): The number of messages to be received at a time
  12361. is increased from 10 to 50.
  12362. * src/LogFactory
  12363. (getInstance): Added NullLogger.
  12364. * src/NullLogger.h: New class.
  12365. * src/BitfieldMan.h
  12366. (getMissingIndex): New function.
  12367. * src/BitfieldMan.cc
  12368. (getMissingIndex): New function.
  12369. * src/TorrentMan.h
  12370. (checkOutPiece): New function.
  12371. (getMissingPieceIndex): New function.
  12372. (getMissingFastPieceIndex): New function.
  12373. (getMissingFastPiece): New function.
  12374. * src/TorrentMan.cc
  12375. (updatePiece): Rewritten using STL.
  12376. (syncPiece): Rewritten using STL.
  12377. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12378. checkOutPiece().
  12379. (getMissingPieceIndex): New function.
  12380. (getMissingFastPieceIndex): New function.
  12381. (getMissingFastPiece): New function.
  12382. (checkOutPiece): New function.
  12383. * src/PeerInteraction.h
  12384. (Pieces): New type definition.
  12385. (piece): Removed.
  12386. (pieces): New variable.
  12387. (getNewPieceAndSendInterest): Added the "piece" argument.
  12388. (abortPiece): Added the "piece" argument.
  12389. (abortAllPieces): New function.
  12390. (isInRequestSlot): New function.
  12391. (hasDownloadPiece): Added the "index" argument.
  12392. (setDownloadPiece): Removed.
  12393. (getDownloadPiece): Added the "index" argument.
  12394. (updatePiece): New function.
  12395. (createRequestMessage): Added the "index" argument.
  12396. * src/PeerInteraction.cc
  12397. (onChoked): Rewritten.
  12398. (abortPiece): Rewirtten.
  12399. (abortAllPieces): New function.
  12400. (deleteTimeoutRequestSlot): Rewritten.
  12401. Clarified code a little bit.
  12402. (deleteCompletedRequestSlot): Rewritten.
  12403. (isInRequestSlot): New function.
  12404. (syncPiece): Rewritten.
  12405. (updatePiece): New function.
  12406. (getNewPieceAndSendInterest): Rewritten.
  12407. (addRequests): Rewritten.
  12408. (getDownloadPiece): Rewritten.
  12409. (hasDownloadPiece): Rewritten.
  12410. (createRequestMessage): Added the "index" argument.
  12411. * src/common.h
  12412. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12413. (DIV_FLOOR): New definition.
  12414. * src/PieceMessage.cc
  12415. (receivedAction): Update request-piece latency here.
  12416. * src/RequestSlot.h
  12417. (getLatencyInMillis): New function.
  12418. * src/RequestSlot.cc
  12419. (isTimeout): Rewritten using getLatencyInMillis.
  12420. (getLatencyInMillis): New function.
  12421. * src/Piece.h
  12422. (operator==): New function.
  12423. (getMissingBlockIndex): New function.
  12424. * src/Piece.cc
  12425. (operator==): New function.
  12426. (getMissingBlockIndex): New function.
  12427. * src/Peer.h
  12428. (DEFAULT_LATENCY): New definition.
  12429. (latency): New variable.
  12430. (updateLatency): New function.
  12431. (getLatency): New function.
  12432. * src/Peer.cc
  12433. (resetStatus): Reset latecy.
  12434. (updateLatency): New function.
  12435. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12436. * src/SocketCore.cc
  12437. (isReadable): Added secure to the condition.
  12438. * src/HttpConnection.cc
  12439. (receiveResponse): Fixed a bug that causes no response header
  12440. exception.
  12441. * src/Peer.h
  12442. (getFastSet): Fixed the return value type.
  12443. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12444. To remove a wait from download loop:
  12445. * src/DownloadEngine.cc
  12446. (run): Comment out shortSleep.
  12447. To rewrite the message handling:
  12448. * src/SimplePeerMessage.h: New class.
  12449. * src/SimplePeerMessage.cc: New class.
  12450. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12451. (msg): New variable.
  12452. (create): New function.
  12453. (send): Removed.
  12454. (getMessage): New function.
  12455. (getMessageLength): New function.
  12456. * src/CancelMessage.cc
  12457. (create): New function.
  12458. (receivedAction): Replaced deleteRequestMessageInQueue with
  12459. rejectPieceMessageInQueue.
  12460. (send): Removed.
  12461. (getMessage): New function.
  12462. (getMessageLength): New function.
  12463. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12464. (msg): New variable.
  12465. (msgLength): New variable.
  12466. (~BitfieldMessage): Deleted msg.
  12467. (send): Removed.
  12468. (getMessage): New function.
  12469. (getMessageLength): New function.
  12470. * src/BitfieldMessage.cc
  12471. (create): New function.
  12472. (send): Removed.
  12473. (getMessage): New function.
  12474. (getMessageLength): New function.
  12475. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12476. (msg): New variable.
  12477. (sendPredicate): New function.
  12478. (onSendComplete): New function.
  12479. (send): Removed.
  12480. (getMessage): New function.
  12481. (getMessageLength): New function.
  12482. (create): New function.
  12483. * src/ChokeMessage.cc
  12484. (create): New function.
  12485. (send): Removed.
  12486. (sendPredicate): New function.
  12487. (getMessage): New function.
  12488. (getMessageLength): New function.
  12489. (onSendComplete): New function.
  12490. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12491. (msg): New variable.
  12492. (send): Removed.
  12493. (getMessage): New function.
  12494. (getMessageLength): New function.
  12495. * src/KeepAliveMessage.cc
  12496. (send): Removed.
  12497. (getMessage): New function.
  12498. (getMessageLength): New function.
  12499. * src/PortMessage.h
  12500. (create): New function.
  12501. (receivedAction): Updated log message.
  12502. * src/PortMessage.cc: New file.
  12503. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12504. (msg): New variable.
  12505. (sendPredicate): New function.
  12506. (onSendComplete): New function.
  12507. (create): New function.
  12508. (send): Removed.
  12509. (getMessage): New function.
  12510. (getMessageLength): New function.
  12511. * src/UnchokeMessage.cc
  12512. (create): New function.
  12513. (send): Removed.
  12514. (sendPredicate): New function.
  12515. (getMessage): New function.
  12516. (getMessageLength): New function.
  12517. (onSendComplete): New function.
  12518. * src/PieceMessage.h
  12519. (leftPieceDataLength): Removed.
  12520. (leftDataLength): New variable.
  12521. (headerSend): New variable.
  12522. (pendingCount): New variable.
  12523. (msgHeader): New variable.
  12524. (sendPieceData): New function.
  12525. (incrementPendingCount): New function.
  12526. (isPendingCountMax): New function.
  12527. (create): New function.
  12528. (getMessageHeader): New function.
  12529. (getMessageHeaderLength): New function.
  12530. * src/PieceMessage.cc
  12531. (create): New function.
  12532. (getMessageHeader): New function.
  12533. (getMessageHeaderLength): New function.
  12534. (send): Rewritten.
  12535. (sendPieceData): New function.
  12536. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12537. (msg): New variable.
  12538. (create): New function.
  12539. (getMessage): New function.
  12540. (getMessageLength): New function.
  12541. * src/HaveMessage.cc
  12542. (create): New function.
  12543. (send): Removed.
  12544. (sendPieceData): New function.
  12545. (getMessage): New function.
  12546. (getMessageLength): New function.
  12547. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12548. (msg): New variable.
  12549. (create): New function.
  12550. (send): Removed.
  12551. (getMessage): New function.
  12552. (getMessageLength): New function.
  12553. * src/RequestMessage.cc
  12554. (create): New function.
  12555. (receivedAction): Added the handling of fast extension.
  12556. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12557. (send): Removed.
  12558. (getMessage): New function.
  12559. (getMessageLength): New function.
  12560. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12561. (msg): New variable.
  12562. (sendPredicate): New function.
  12563. (onSendComplete): New function.
  12564. (create): New function.
  12565. (getMessage): New function.
  12566. (getMessageLength): New function.
  12567. * src/InterestedMessage.cc
  12568. (create): New function.
  12569. (send): Removed.
  12570. (sendPieceData): New function.
  12571. (getMessage): New function.
  12572. (getMessageLength): New function.
  12573. (onSendComplete): New function.
  12574. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12575. (msg): New variable.
  12576. (sendPieceData): New function.
  12577. (onSendComplete): New function.
  12578. (create): New function.
  12579. (send): Removed.
  12580. (getMessage): New function.
  12581. (getMessageLength): New function.
  12582. * src/NotInterestedMessage.cc
  12583. (create): New function.
  12584. (send): Removed.
  12585. (sendPredicate): New function.
  12586. (getMessage): New function.
  12587. (getMessageLength): New function.
  12588. (onSendComplete): New function.
  12589. * src/AllowedFastMessage.h: New class.
  12590. * src/AllowedFastMessage.cc: New class.
  12591. * src/RejectMessage.h: New class.
  12592. * src/RejectMessage.cc: New class.
  12593. * src/SuggestPieceMessage.h: New class.
  12594. * src/SuggestPieceMessage.cc: New class.
  12595. * src/HaveAllMessage.h: New class.
  12596. * src/HaveAllMessage.cc: New class.
  12597. * src/HaveNoneMessage.h: New class.
  12598. * src/HaveNoneMessage.cc: New class.
  12599. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12600. (msg): New variable.
  12601. (reserved): New variable.
  12602. (create): New function.
  12603. (getId): New function.
  12604. (receivedAction): New function.
  12605. (getMessage): New function.
  12606. (getMessageLength): New function.
  12607. (isFastExtensionSupported): New function.
  12608. * src/HandshakeMessage.cc
  12609. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12610. (create): New function.
  12611. (getMessage): New function.
  12612. (getMessageLength): New function.
  12613. (toString): Added the output of reserved field.
  12614. (check): Added const qualifier.
  12615. (isFastExtensionSupported): New function.
  12616. * src/PeerMessageUtil.h
  12617. (createChokeMessage): Removed.
  12618. (createUnchokeMessage): Removed.
  12619. (createInterestedMessage): Removed.
  12620. (createNotInterestedMessage): Removed.
  12621. (createHaveMessage): Removed.
  12622. (createBitfieldMessage): Removed.
  12623. (createRequestMessage): Removed.
  12624. (createCancelMessage): Removed.
  12625. (createPieceMessage): Removed.
  12626. (createPortMessage): Removed.
  12627. (createChokeMessage): Removed.
  12628. (createUnchokeMessage): Removed.
  12629. (createInterestedMessage): Removed.
  12630. (createNotInterestedMessage): Removed.
  12631. (createHaveMessage): Removed.
  12632. (createBitfieldMessage): Removed.
  12633. (createRequestMessage): Removed.
  12634. (createCancelMessage): Removed.
  12635. (createPieceMessage): Removed.
  12636. (createKeepAliveMessage): Removed.
  12637. (createHandshakeMessage): Removed.
  12638. (setIntParam): New function.
  12639. (createPeerMessageString): New function.
  12640. * src/PeerMessageUtil.cc
  12641. (createChokeMessage): Removed.
  12642. (createUnchokeMessage): Removed.
  12643. (createInterestedMessage): Removed.
  12644. (createNotInterestedMessage): Removed.
  12645. (createHaveMessage): Removed.
  12646. (createBitfieldMessage): Removed.
  12647. (createRequestMessage): Removed.
  12648. (createCancelMessage): Removed.
  12649. (createPieceMessage): Removed.
  12650. (createPortMessage): Removed.
  12651. (createRequestMessage): Removed.
  12652. (createCancelMessage): Removed.
  12653. (createPieceMessage): Removed.
  12654. (createHaveMessage): Removed.
  12655. (createChokeMessage): Removed.
  12656. (createUnchokeMessage): Removed.
  12657. (createInterestedMessage): Removed.
  12658. (createNotInterestedMessage): Removed.
  12659. (createBitfieldMessage): Removed.
  12660. (createKeepAliveMessage): Removed.
  12661. (createHandshakeMessage): Removed.
  12662. (setIntParam): New function.
  12663. (createPeerMessageString): New function.
  12664. * src/PeerConnection.h
  12665. (peer): Removed.
  12666. (torrentMan): Removed.
  12667. (createNLengthMessage): Removed.
  12668. (setIntParam): Removed.
  12669. (writeOutgoingMessageLog): Removed all overloaded functions.
  12670. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12671. (sendMessage): New function.
  12672. (sendHandshake): Removed.
  12673. (sendKeepAlive): Removed.
  12674. (sendChoke): Removed.
  12675. (sendUnchoke): Removed.
  12676. (sendInterested): Removed.
  12677. (sendNotInterested): Removed.
  12678. (sendHave): Removed.
  12679. (sendBitfield): Removed.
  12680. (sendRequest): Removed.
  12681. (sendPiece): Removed.
  12682. (sendPieceHeader): Removed.
  12683. (sendPieceData): Removed.
  12684. (sendCancel): Removed.
  12685. (getPeer): Removed.
  12686. * src/PeerConnection.cc
  12687. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12688. (sendHandshake): Removed.
  12689. (sendKeepAlive): Removed.
  12690. (createNLengthMessage): Removed.
  12691. (setIntParam): Removed.
  12692. (writeOutgoingMessageLog): Removed all overloaded functions.
  12693. (sendChoke): Removed.
  12694. (sendUnchoke): Removed.
  12695. (sendInterested): Removed.
  12696. (sendNotInterested): Removed.
  12697. (sendHave): Removed.
  12698. (sendBitfield): Removed.
  12699. (sendRequest): Removed.
  12700. (sendPiece): Removed.
  12701. (sendPieceHeader): Removed.
  12702. (sendPieceData): Removed.
  12703. (sendMessage): New function.
  12704. (sendCancel): Removed.
  12705. * src/PeerInteractionCommand.cc
  12706. (PeerInteractionCommand): Call setUploadLimit.
  12707. (executeInternal): Call setUploadLimit.
  12708. Added the handling of "inProgress" state of handshake message.
  12709. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12710. sendNow().
  12711. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12712. sendNow().
  12713. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12714. * src/TorrentMan.h
  12715. (PEER_ID_LENGTH): New definition.
  12716. (hasAllPieces): New function.
  12717. * src/TorrentMan.cc
  12718. (getMissingPiece): Added the handling of fast extension.
  12719. (cancelPiece): Call updatePiece().
  12720. (hasAllPieces): New function.
  12721. * src/PeerInteraction.h
  12722. (fastSet): New variable.
  12723. (getNewPieceAndSendInterest): Changed the return type to void.
  12724. (send): Renamed as sendMessages.
  12725. (deleteAllRequestSlot): Removed.
  12726. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12727. (cancelAllRequest): Removed all overloaded functions.
  12728. (deleteAllRequestSlot): Removed.
  12729. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12730. (rejectPieceMessageInQueue): New function.
  12731. (rejectAllPieceMessageInQueue): New function.
  12732. (onChoked): New function.
  12733. (isSendingMessageInProgress): New function.
  12734. (getCorrespondingRequestSlot): Changed its arguments.
  12735. (isInFastSet): New function.
  12736. (addFastSetIndex): New function.
  12737. (addRequests): New function.
  12738. (sendNow): Removed.
  12739. (trySendNow): Removed.
  12740. (sendBitfield): New function.
  12741. (sendAllowdFast): New function.
  12742. (createHaveAllMessage): New function.
  12743. (createHaveNoneMessage): New function.
  12744. (createRejectMessage): New function.
  12745. (createAllowedFastMessage): New function.
  12746. * src/PeerInteraction.cc
  12747. (send): Renamed as sendMessages.
  12748. (sendMessages): New function.
  12749. (MsgPushBack): New class.
  12750. (isSendingMessageInProgress): New function.
  12751. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12752. (rejectAllPieceMessageInQueue): New function.
  12753. Added the handling of fast extension.
  12754. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12755. (rejectPieceMessageInQueue): New function.
  12756. Added the handling of fast extension.
  12757. (deleteRequestSlot): Replaced for loop with std::find.
  12758. (onChoked): New function.
  12759. (deleteAllRequestSlot): Removed.
  12760. (abortPiece): Rewirtten.
  12761. (deleteTimeoutRequestSlot): Updated log messages.
  12762. (getCorrespondingRequestSlot): Changed its arguments.
  12763. (cancelAllRequest): Removed all overloaded functions.
  12764. (receiveHandshake): Added the check to see whether an incoming peer
  12765. supports fast extension.
  12766. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12767. PeerMessageUtil.
  12768. (createPeerMessage): Use create() of each message class instead of
  12769. PeerMessageUtil.
  12770. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12771. AllowedFastMessage were added.
  12772. (getNewPieceAndSendInterest): Changed its return value type to void.
  12773. Added the handling of fast extension.
  12774. (addRequests): New function.
  12775. (sendNow): Removed.
  12776. (sendHandshake): Rewritten.
  12777. (trySendNow): Removed.
  12778. (sendBitfield): New function.
  12779. (sendAllowdFast): New function.
  12780. (isInFastSet): New function.
  12781. (addFastSetIndex): New function.
  12782. (createRequestMessage): Use RequestMessage::create instead of
  12783. PeerMessageUtil.
  12784. (createCancelMessage): Use CancelMessage::create instead of
  12785. PeerMessageUtil.
  12786. (createPieceMessage): Use PieceMessage::create instead of
  12787. PeerMessageUtil.
  12788. (createHaveMessage): Use HaveMessage::create instead of
  12789. PeerMessageUtil.
  12790. (createChokeMessage): Use ChokeMessage::create instead of
  12791. PeerMessageUtil.
  12792. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12793. PeerMessageUtil.
  12794. (createInterestedMessage): Use InterestedMessage::create instead of
  12795. PeerMessageUtil.
  12796. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12797. of PeerMessageUtil.
  12798. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12799. PeerMessageUtil.
  12800. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12801. PeerMessageUtil.
  12802. (createHaveAllMessage): New function.
  12803. (createHaveNoneMessage): New function.
  12804. (createRejectMessage): New function.
  12805. (createAllowedFastMessage: New function.
  12806. * src/Util.h
  12807. (sha1Sum): New function.
  12808. (computeFastSet): New function.
  12809. * src/Util.cc
  12810. (sha1Sum): New function.
  12811. (computeFastSet): New function.
  12812. * src/Peer.h
  12813. (fastExtensionEnabled): New variable.
  12814. (fastSet): New variable.
  12815. (setAllBitfield): New function.
  12816. (setFastExtensionEnabled): New function.
  12817. (isFastExtensionEnabled): New function.
  12818. (addFastSetIndex): New function.
  12819. (getFastSet): New function.
  12820. (isInFastSet): New function.
  12821. (countFastSet): New function.
  12822. * src/Peer.cc
  12823. (isInFastSet): New function.
  12824. (addFastSetIndex): New function.
  12825. (setAllBitfield): New function.
  12826. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12827. sockets.
  12828. * src/PeerAbstractCommand.cc
  12829. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12830. and uploadLimit.
  12831. (execute): Changed the procedure of checking sockets. The upload speed
  12832. checking were added.
  12833. (setUploadLimit): New function.
  12834. (setUploadLimitCheck): New function.
  12835. * src/PeerAbstractCommand.h
  12836. (setUploadLimit): New function.
  12837. (setUploadLimitCheck): New function.
  12838. (uploadLimit): New variable.
  12839. (uploadLimitCheck): New variable.
  12840. To contact a tracker regularly:
  12841. * src/TrackerWatcherCommand.h (interval): New variable.
  12842. (checkPoint): New variable.
  12843. (TrackerWatcherCommand): Added interval argument.
  12844. * src/TrackerWatcherCommand.cc
  12845. (TrackerWatcherCommand): Initialized checkPoint.
  12846. (execute): Now a tracker is contacted in every specified period.
  12847. If peer list is not needed, send request with numwant=0.
  12848. * src/TrackerUpdateCommand.cc
  12849. (execute): Updated log messages.
  12850. * src/DownloadEngine.cc
  12851. (~DownloadEngine): Removed two asserts.
  12852. (waitData): Uncommented wfds. May be a bug fix.
  12853. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12854. * src/PeerInteractionCommand.h
  12855. (checkInactiveConnection): Removed.
  12856. * src/PeerInteractionCommand.cc
  12857. (executeInternal): Removed following function calls:
  12858. detectMessageFlooding(), checkLongTimePeerChoking and
  12859. checkInactiveConnection().
  12860. (checkInactiveConnection): Removed.
  12861. (detectMessageFlooding): Removed function call to
  12862. checkInactiveConnection().
  12863. * src/PeerMessageUtil.h
  12864. (createChokeMessage): New function. Overload.
  12865. (createUnchokeMessage): New function. Overload.
  12866. (createInterestedMessage): New function. Overload.
  12867. (createNotInterestedMessage): New function. Overload.
  12868. (createHaveMessage): New function. Overload.
  12869. (createBitfieldMessage): New function. Overload.
  12870. (createRequestMessage): New function. Overload.
  12871. (createCancelMessage): New function. Overload.
  12872. (createPieceMessage): New function. Overload.
  12873. (createKeepAliveMessage): New function. Overload.
  12874. * src/PeerMessageUtil.cc
  12875. (createChokeMessage): New function. Overload.
  12876. (createUnchokeMessage): New function. Overload.
  12877. (createInterestedMessage): New function. Overload.
  12878. (createNotInterestedMessage): New function. Overload.
  12879. (createHaveMessage): New function. Overload.
  12880. (createBitfieldMessage): New function. Overload.
  12881. (createRequestMessage): New function. Overload.
  12882. (createCancelMessage): New function. Overload.
  12883. (createPieceMessage): New function. Overload.
  12884. (createKeepAliveMessage): New function. Overload.
  12885. * src/SendMessageQueue.cc
  12886. (createRequestMessage): Use PeerMessageUtil.
  12887. (createCancelMessage): Use PeerMessageUtil.
  12888. (createPieceMessage): Use PeerMessageUtil.
  12889. (createHaveMessage): Use PeerMessageUtil.
  12890. (createChokeMessage): Use PeerMessageUtil.
  12891. (createUnchokeMessage): Use PeerMessageUtil.
  12892. (createInterestedMessage): Use PeerMessageUtil.
  12893. (createNotInterestedMessage): Use PeerMessageUtil.
  12894. (createBitfieldMessage): Use PeerMessageUtil.
  12895. (createKeepAliveMessage): Use PeerMessageUtil.
  12896. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  12897. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  12898. * src/PeerInteraction.h: New class.
  12899. * src/PeerInteraction.cc: New class.
  12900. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12901. Each peer message has its own class.
  12902. * src/PendingMessages.h: Removed.
  12903. * src/PendingMessages.cc: Removed. The sending process was moved to
  12904. each message class.
  12905. * src/RequestSlotMan.h: Removed.
  12906. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  12907. SendMessageQueue.
  12908. * src/RequestMessage.h: New class.
  12909. * src/RequestMessage.cc: New class.
  12910. * src/CancelMessage.h: New class.
  12911. * src/CancelMessage.cc: New class.
  12912. * src/BitfieldMessage.h: New class.
  12913. * src/BitfieldMessage.cc: New class.
  12914. * src/ChokeMessage.h: New class.
  12915. * src/ChokeMessage.cc: New class.
  12916. * src/KeepAliveMessage.h: New class.
  12917. * src/KeepAliveMessage.cc: New class.
  12918. * src/PortMessage.h: New class.
  12919. * src/UnchokeMessage.h: New class.
  12920. * src/UnchokeMessage.cc: New class.
  12921. * src/PieceMessage.h: New class.
  12922. * src/PieceMessage.cc: New class.
  12923. * src/HaveMessage.h: New class.
  12924. * src/HaveMessage.cc: New class.
  12925. * src/BitfieldMessage.h: New class.
  12926. * src/BitfieldMessage.cc: New class.
  12927. * src/NotInterestedMessage.h: New class.
  12928. * src/NotInterestedMessage.cc: New class.
  12929. * src/InterestedMessage.h: New class.
  12930. * src/InterestedMessage.cc: New class.
  12931. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  12932. (getSendMessageQueue): New function.
  12933. (setSendMessageQueue): New function.
  12934. * src/HandshakeMessage.cc: New class.
  12935. * src/PeerConnection.h (receiveMessage): Changed return value and
  12936. arguments.
  12937. (receiveHandshake): Changed return value and arguments.
  12938. * src/PeerConnection.cc (receiveMessage): Do not create message class
  12939. here.
  12940. (receiveHandshake): Do not create handshake class here.
  12941. * src/PeerInteractionCommand.h (peerConnection): Removed.
  12942. (piece): Removed.
  12943. (syncPiece): Removed.
  12944. (sendInterest): Removed.
  12945. (sendMessages): Removed.
  12946. (createRequestPendingMessage): Removed.
  12947. (checkPieceHash): Removed.
  12948. (erasePieceOnDisk): Removed.
  12949. (getNewPieceAndSendInterest): Removed.
  12950. (onGotNewPice): Removed.
  12951. (onGotWrongPiece): Removed.
  12952. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12953. Removed peerConnection, piece.
  12954. (~PeerInteractionCommand): Removed peerConnection.
  12955. (executeInternal): Use sendMessageQueue instead of peerConnection.
  12956. (syncPiece): Moved to SendMessageQueue.
  12957. (decideChoking): Removed PendingMessage.
  12958. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  12959. The action after receiving peer message was moved to each message
  12960. class.
  12961. (onGotNewPice): Moved to SendMessageQueue.
  12962. (onGotWrongPiece): Moved to SendMessageQueue.
  12963. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  12964. (sendInterest): Moved to SendMessageQueue.
  12965. (createRequestPendingMessage): Removed.
  12966. (sendMessages): Moved to SendMessageQueue.
  12967. (onAbort): Use SendMessageQueue::abortPiece()
  12968. (keepAlive): Use sendMessageQueue instead of peerConnection.
  12969. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  12970. (checkPieceHash): Moved to SendMessageQueue.
  12971. (erasePieceOnDisk): Moved to SendMessageQueue.
  12972. * src/PeerMessageUtil.h
  12973. (createBitfieldMessage): Removed.
  12974. (createHaveMessage): Changed return value and arguments.
  12975. (createBitfieldMessage): Changed return value and arguments.
  12976. (createRequestCancelMessage): Removed.
  12977. (createPieceMessage): Changed return value and arguments.
  12978. (getShortIntParam): New function.
  12979. (checkIndex): Changed arguments.
  12980. (checkBegin): Changed arguments.
  12981. (checkLength): Changed arguments.
  12982. (checkPieceOffset): Removed.
  12983. (checkRange): New function.
  12984. (checkBitfield): Changed arguments.
  12985. (createPeerMessage): Removed.
  12986. (checkIntegrity): Removed.
  12987. (createHandshakeMessage): Changed arguments.
  12988. (createChokeMessage): New function.
  12989. (createUnchokeMessage): New function.
  12990. (createInterestedMessage): New function.
  12991. (createNotInterestedMessage): New function.
  12992. (createRequestMessage): New function.
  12993. (createCancelMessage): New function.
  12994. (createPortMessage): New function.
  12995. * src/PeerMessageUtil.cc
  12996. (createBitfieldMessage): Removed.
  12997. (createHaveMessage): Changed return value and arguments.
  12998. (createBitfieldMessage): Changed return value and arguments.
  12999. (createRequestCancelMessage): Removed.
  13000. (createPieceMessage): Changed return value and arguments.
  13001. (getShortIntParam): New function.
  13002. (checkIndex): Changed arguments.
  13003. (checkBegin): Changed arguments.
  13004. (checkLength): Changed arguments.
  13005. (checkPieceOffset): Removed.
  13006. (checkRange): New function.
  13007. (checkBitfield): Changed arguments.
  13008. (createPeerMessage): Removed.
  13009. (checkIntegrity): Removed.
  13010. (createHandshakeMessage): Changed arguments.
  13011. (createChokeMessage): New function.
  13012. (createUnchokeMessage): New function.
  13013. (createInterestedMessage): New function.
  13014. (createNotInterestedMessage): New function.
  13015. (createRequestMessage): New function.
  13016. (createCancelMessage): New function.
  13017. (createPortMessage): New function.
  13018. * src/PeerMessage.h
  13019. (id): Removed.
  13020. (index): Removed.
  13021. (begin): Removed.
  13022. (length): Removed.
  13023. (bitfield): Removed.
  13024. (bitfieldLength): Removed.
  13025. (block): Removed.
  13026. (blockLength): Removed.
  13027. (inProgress): New variable.
  13028. (cuid): New variable.
  13029. (peer): New variable.
  13030. (sendMessageQueue): New variable.
  13031. (logger): New variable.
  13032. (setBitfield): Removed.
  13033. (getBitfield): Removed.
  13034. (setBlock): Removed.
  13035. (getBlock): Removed.
  13036. (getBitfieldLength): Removed.
  13037. (getBlockLength): Removed.
  13038. (isInProgress): New function.
  13039. (toString): Made pure virtual.
  13040. (check): New function.
  13041. (send): New function.
  13042. (receivedAction): New function.
  13043. (getId): Made pure virtual.
  13044. (setId): Removed.
  13045. (getIndex): Removed.
  13046. (setIndex): Removed.
  13047. (getBegin): Removed.
  13048. (setBegin): Removed.
  13049. (getLength): Removed.
  13050. (setLength): Removed.
  13051. (getCuid): New function.
  13052. (setCuid): New function.
  13053. (getPeer): New function.
  13054. (setPeer): New function.
  13055. (getSendMessageQueue): New function.
  13056. (setSendMessageQueue): New function.
  13057. (ID): Removed.
  13058. * src/PeerMessage.cc
  13059. (setBitfield): Removed.
  13060. (setBlock): Removed.
  13061. (toString): Removed.
  13062. * src/TorrentMan.h
  13063. (getPieceLength): New function.
  13064. (getPieceLength): New function.
  13065. * src/SendMessageQueue.h
  13066. (REQUEST_TIME_OUT): New definition.
  13067. (RequestSlots): New definition.
  13068. (MessageQueue): New definition.
  13069. (requestSlotMan): Removed.
  13070. (pendingMessages): Removed.
  13071. (requestSlots): New variable.
  13072. (messageQueue): New variable.
  13073. (torrentMan): New variable.
  13074. (peerConnection): New variable.
  13075. (peer): New variable.
  13076. (piece): New variable.
  13077. (getNewPieceAndSendInterest): New function.
  13078. (createPeerMessage): New function.
  13079. (createHandshakeMessage): New function.
  13080. (send): Made private.
  13081. (setPeerMessageCommonProperty): New function.
  13082. (deleteAllRequestSlot): New function.
  13083. (deleteRequestMessageInQueue): New function.
  13084. (cancelAllRequest): Made private.
  13085. (cancelAllRequest): Made private.
  13086. (countRequestSlot): Made private.
  13087. (addPendingMessage): Removed.
  13088. (deletePendingPieceMessage): Removed.
  13089. (deletePendingRequestMessage): Removed.
  13090. (addMessage): New function.
  13091. (deletePieceMessageInQueue): New function.
  13092. (deleteTimeoutRequestSlot): Changed argument.
  13093. (deleteCompletedRequestSlot): Changed argument.
  13094. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13095. (getCorrespondingRequestSlot): New function.
  13096. (countPendingMessage): Removed.
  13097. (countMessageInQueue): New function.
  13098. (getTorrentMan): New function.
  13099. (getPeerConnection): New function.
  13100. (hasDownloadPiece): New function.
  13101. (getDownloadPiece): New function.
  13102. (setDownloadPiece): New function.
  13103. (syncPiece): New function.
  13104. (sendMessages): New function.
  13105. (sendNow): New function.
  13106. (trySendNow): New function.
  13107. (abortPiece): New function.
  13108. (sendHandshake): New function.
  13109. (receiveMessage): New function.
  13110. (receiveHandshake): New function.
  13111. (createRequestMessage): New function.
  13112. (createCancelMessage): New function.
  13113. (createPieceMessage): New function.
  13114. (createHaveMessage): New function.
  13115. (createChokeMessage): New function.
  13116. (createUnchokeMessage): New function.
  13117. (createInterestedMessage): New function.
  13118. (createNotInterestedMessage): New function.
  13119. (createBitfieldMessage): New function.
  13120. (createKeepAliveMessage): New function.
  13121. * src/SendMessageQueue.cc
  13122. (SendMessageQueue): Removed requestSlotMan.
  13123. Instantiated peerConnection here.
  13124. (~SendMessageQueue): Removed requestSlotMan.
  13125. Added deletion of peerConnection and the contents of messageQueue.
  13126. (send): Updated according to the change of messageQueue.
  13127. (addPendingMessage): Renamed to addMessage.
  13128. (addMessage): New function.
  13129. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13130. (deletePieceMessageInQueue): New function.
  13131. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13132. (deleteRequestMessageInQueue): New function.
  13133. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13134. here.
  13135. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13136. (...) was moved here.
  13137. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13138. moved here.
  13139. (deleteCompletedRequestSlot):
  13140. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13141. (getCorrespondingRequestSlot):
  13142. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13143. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13144. (countPendingMessage): Renamed to countMessageInQueue.
  13145. (countMessageInQueue): New function.
  13146. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13147. (receiveHandshake): New function.
  13148. (createHandshakeMessage): New function.
  13149. (receiveMessage): New function.
  13150. (createPeerMessage): New function.
  13151. (syncPiece): New function.
  13152. (getNewPieceAndSendInterest): New function.
  13153. (sendMessages): New function.
  13154. (sendNow): New function.
  13155. (trySendNow): New function.
  13156. (sendHandshake): New function.
  13157. (abortPiece): New function.
  13158. (getDownloadPiece): New function.
  13159. (getPeerMessageCommonProperty): New function.
  13160. (createRequestMessage): New function.
  13161. (createCancelMessage): New function.
  13162. (createPieceMessage): New function.
  13163. (createHaveMessage): New function.
  13164. (createChokeMessage): New function.
  13165. (createUnchokeMessage): New function.
  13166. (createInterestedMessage): New function.
  13167. (createNotInterestedMessage): New function.
  13168. (createBitfieldMessage): New function.
  13169. (createKeepAliveMessage): New function.
  13170. To add simple Content-Disposition support:
  13171. * src/HttpResponseCommand.h (determinFilename): New function.
  13172. * src/HttpResponseCommand.cc (executeInternal):
  13173. Use determinFilename(headers) instead of req->getFile() when comparing
  13174. filename.
  13175. (determinFilename): New function.
  13176. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13177. req->getFile().
  13178. (handleOtherEncoding): Use determinFilename(headers) instead of
  13179. req->getFile().
  13180. * src/Util.h (getContentDispositionFilename): New function.
  13181. * src/Util.cc (getContentDispositionFilename): New function.
  13182. * src/LogFactory.h (release): New function.
  13183. * src/LogFactory.cc (release): New function.
  13184. To fix a bug that causes out-of-bound exception when HTTP status
  13185. line is wrong:
  13186. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13187. size.
  13188. * src/common.h (Deleter): New class.
  13189. * src/SegmentMan.cc
  13190. (~SegmentMan): Added deletion of splitter and diskWriter.
  13191. * src/DownloadEngine.h
  13192. (Commands): Use deque.
  13193. (clearQueue): New function.
  13194. * src/DownloadEngine.cc
  13195. (~DownloadEngine): Added deletion of segmentMan.
  13196. (cleanQueue): New function.
  13197. * src/TorrentDownloadEngine.h
  13198. (TorrentDownloadEngine): The implementation was moved to
  13199. TorrentDownloadEngine.cc.
  13200. (~TorrentDownloadEngine): The implementation was moved to
  13201. TorrentDownloadEngine.cc.
  13202. * src/TorrentDownloadEngine.cc
  13203. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13204. * src/main.cc
  13205. (clearRequest): Removed.
  13206. (handler): Added deletion of e.
  13207. (torrentHandler): Added deletion of te.
  13208. (main): Do not share splitter.
  13209. Use Deleter instead of clearRequest.
  13210. Deletion of classes were updated.
  13211. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13212. * src/main.cc (main): Fixed typo.
  13213. * src/message.h: Fixed typo.
  13214. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13215. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13216. To add --select-file command-line option:
  13217. * src/Util.cc
  13218. (unfoldRange): New function.
  13219. (getNum): New function.
  13220. (unfoldSubRange): New function
  13221. * src/main.cc
  13222. (showUsage): Added help message.
  13223. (main): Added --select-file command-line option. Updated the layout of
  13224. file listing.
  13225. * src/common.h
  13226. (Integers): New definition.
  13227. * src/SocketCore.cc
  13228. (writeData): Removed timeout argument.
  13229. (readData): Removed timeout argument.
  13230. (peekData): Removed timeout argument.
  13231. * src/Socket.cc
  13232. (writeData): Removed timeout argument.
  13233. (readData): Removed timeout argument.
  13234. (peekData): Removed timeout argument.
  13235. * Release 0.4.1
  13236. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13237. To deploy upload rate based choking algorithm:
  13238. * src/PeerInteractionCommand.cc
  13239. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13240. peer currently used.
  13241. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13242. download completes. Simplified.
  13243. (receiveMessage): Updated.
  13244. * src/TorrentMan.h
  13245. (activePeers): New variable.
  13246. (addActivePeer): New function.
  13247. (getActivePeers): New function.
  13248. (deleteActivePeer): New function.
  13249. * src/TorrentMan.cc
  13250. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13251. * src/PeerAbstractCommand.cc
  13252. (onAbort): Use peer->resetStatus().
  13253. * src/main.cc
  13254. (PeerChokeCommand.h): Included.
  13255. (main): Added the instance of ChokingCommand to the command queue.
  13256. * src/Peer.h
  13257. (amChoking): Renamed from amChocking
  13258. (chokingRequired): New variable.
  13259. (optUnchoking): New variable.
  13260. (deltaUpload): New variable.
  13261. (deltaDownload): New variable.
  13262. (addDeltaUpload): New function.
  13263. (resetDeltaUpload): New function.
  13264. (addDeltaDownload): New function.
  13265. (resetDeltaDownload): New function.
  13266. (addPeerUpload): Added a call to addDeltaUpload.
  13267. (addPeerDownload): Added a call to addDeltaDownload.
  13268. * src/Peer.cc
  13269. (shouldBeChoking): Renamed from shouldChoke.
  13270. (resetStatus): New function.
  13271. * src/PeerChokeCommand.h: New class.
  13272. * src/PeerChokeCommand.cc: New class.
  13273. To add lazy upload speed limiter:
  13274. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13275. statistics calculation to TorrentDownloadEngine.
  13276. * src/TorrentConsoleDownloadEngine.cc
  13277. (sendStatistics): Renamed from printStatistics.
  13278. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13279. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13280. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13281. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13282. calculation.
  13283. (sendStatistics): New function as pure virtual function.
  13284. (getUploadSpeed): New function.
  13285. * src/TorrentDownloadEngine.cc
  13286. (initStatistics): New function.
  13287. (calculateSpeed): New function.
  13288. (calculateStatistics): New function.
  13289. * src/SendMessageQueue.h
  13290. (uploadLength): New variable.
  13291. (send): Added an argument.
  13292. (setUploadLimit): New function.
  13293. (getUploadLimit): New function.
  13294. * src/SendMessageQueue.cc
  13295. (send): Added upload speed limiter.
  13296. * src/prefs.h
  13297. (PREF_UPLOAD_LIMIT): New definition.
  13298. * src/PeerInteractionCommand.cc
  13299. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13300. * src/main.cc
  13301. (main): Added --upload-limit option
  13302. For bug fixes:
  13303. * src/main.cc
  13304. (showUsage): Corrected --listen-port help
  13305. Other changes:
  13306. * src/TorrentMan.cc
  13307. (getPeer): Return nullPeer if connection is grather than
  13308. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13309. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13310. To add some useful information to the exception message:
  13311. * src/SocketCore.cc : Updated messages.
  13312. * src/SegmentMan.cc :
  13313. * src/TorrentMan.cc : Updated messages.
  13314. * src/MultiDiskWriter.cc : Updated messages.
  13315. * src/Util.cc : Updated messages.
  13316. * src/AbstractDiskWriter.cc : Updated messages.
  13317. * src/PreAllocationDiskWriter.cc : Updated messages.
  13318. * src/message.cc : Added new messages. Updated some messages.
  13319. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13320. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13321. Updated threshold from 30 to 15.
  13322. * src/AbstractDiskWriter.h (filename): New variable.
  13323. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13324. (createFile): Assigned filename.
  13325. * src/main.cc: Updated the help message for http-auth-scheme.
  13326. * Release 0.4.0
  13327. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13328. To add TrackerUpdateCommand with which replaces
  13329. CompactTrackerResponseProcessor:
  13330. * src/TrackerWatcherCommand.h (req): Removed.
  13331. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13332. if the number of peer connections are less than 30.
  13333. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13334. * src/SegmentMan.h (diskWriter): New function.
  13335. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13336. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13337. (main): Use TrackerUpdateCommand.
  13338. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13339. (req): New variable.
  13340. (setTrackerResponseProcessor): Removed.
  13341. (getTrackerResponseProcessor): Removed.
  13342. (processTrackerResponse): Removed.
  13343. * src/DownloadEngine.h (diskWriter): Removed.
  13344. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13345. to torrentMan->processTrackerResponse().
  13346. To add Util::expandBuffer:
  13347. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13348. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13349. * src/Util.h (expandBuffer): New function.
  13350. To fix the bug that causes segmentation fault when "-l ." is specified
  13351. in command-line option:
  13352. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13353. (openFile): New function.
  13354. (closeFile): New function.
  13355. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13356. (~SimpleLogger): Call closeFile();
  13357. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13358. * src/main.cc (main): Added a check to see logger is configured
  13359. properly.
  13360. To enable HTTP authentication without specifying "--http-auth-scheme"
  13361. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13362. * src/HttpConnection.cc (createRequest): Send Authorization header
  13363. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13364. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13365. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13366. * src/Peer.cc (shouldChoke): Updated algorithm.
  13367. * src/message.h (EX_AUTH_FAILED): New definition.
  13368. (EX_FILE_OPEN): New definition.
  13369. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13370. if status == 401.
  13371. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13372. if req->isTorrent == true.
  13373. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13374. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13375. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13376. (createFile): Updated message.
  13377. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13378. To add a readout of estimated remaining time to normal HTTP/FTP
  13379. downloads:
  13380. * src/ConsoleDownloadEngine.h (startup): New variable.
  13381. (startupLength): New variable.
  13382. (isStartupLengthSet): New variable.
  13383. (avgSpeed): New variable.
  13384. (eta): New variable.
  13385. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13386. estimated remaining time.
  13387. (initStatistics): Initialized newly added variables.
  13388. (calculateStatistics): Calculate average speed and estimated remaining
  13389. time.
  13390. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13391. * src/TrackerDownloadCommand.h: Removed.
  13392. * src/TrackerDownloadCommand.cc: Removed.
  13393. * src/TrackerInitCommand.h: Removed.
  13394. * src/TrackerInitCommand.cc: Removed.
  13395. * src/TrackerUpdateCommand.h: Removed.
  13396. * src/TrackerUpdateCommand.cc: Removed.
  13397. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13398. url written in TrackerInitCommand was moved here. Do not create
  13399. tracker request command if torrentMan->trackers != 0.
  13400. * src/CompactTrackerResponseProcessor.h: New class.
  13401. * src/CompactTrackerResponseProcessor.cc: New class.
  13402. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13403. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13404. Decoupled TorrentDownloadEngine from this.
  13405. * src/SegmentMan.h (init): New function.
  13406. * src/SegmentMan.cc (init): New function.
  13407. * src/TorrentMan.h (responseProcessor): New variable.
  13408. (trackers): New variable.
  13409. (setTrackerResponseProcessor): New function.
  13410. (getTrackerResponseProcessor): New function.
  13411. (processTrackerResponse): New function.
  13412. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13413. (processTrackerResponse): New function.
  13414. * src/main.cc (main): Use ByteArrayDiskWriter and
  13415. CompactTrackerResponseProcessor.
  13416. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13417. processTrackerResponse().
  13418. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13419. readout.
  13420. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13421. which indicates download has completed.
  13422. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13423. (closeFile): fd >= 0, not fd > 0
  13424. * src/main.cc (main): Added short cut for show-files.
  13425. Added short cut for torrent-file.
  13426. Added new command-line option listen-port.
  13427. Updated i18n messages.
  13428. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13429. To add LogFactory which creates singleton logger:
  13430. * src/LogFactory.h: New class.
  13431. * src/LogFactory.cc: New class.
  13432. * src/Command.h (logger): New variable.
  13433. (Constructor): Use LogFactory.
  13434. * src/AbstractCommand.cc: Use Command::logger
  13435. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13436. Use LogFactory.
  13437. * src/SegmentSplitter.h : Made logger protected.
  13438. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13439. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13440. * src/DownloadEngine.h : Made logger protected.
  13441. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13442. * src/PeerInteractionCommand.cc : Use Command::logger.
  13443. * src/HttpResponseCommand.cc : Use Command::logger.
  13444. * src/SegmentMan.h : Made logger private.
  13445. * src/TorrentMan.h : Made logger private.
  13446. * src/TorrentMan.cc : Use LogFactory.
  13447. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13448. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13449. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13450. Use LogFactory.
  13451. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13452. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13453. Use LogFactory.
  13454. * src/DownloadCommand.cc : Use Command::logger.
  13455. * src/PeerAbstractCommand.cc : Use Command::logger.
  13456. * src/PeerListenCommand.cc : Use Command::logger.
  13457. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13458. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13459. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13460. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13461. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13462. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13463. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13464. Use LogFactory.
  13465. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13466. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13467. Use LogFactory.
  13468. * src/main.cc (main): Use LogFactory.
  13469. * src/DiskAdaptor.h (logger): New variable.
  13470. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13471. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13472. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13473. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13474. parameter to a tracker request.
  13475. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13476. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13477. * src/main.cc (setSignalHander): New function.
  13478. (main): Added a handler for SIGTERM.
  13479. (handler): Updated message.
  13480. (torrentHandler): Updated message.
  13481. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13482. * src/TorrentConsoleDownloadEngine.cc
  13483. (onPartialDownloadingCompletes): Renamed as
  13484. onSelectiveDownloadingCompletes.
  13485. (onSelectiveDownloadingCompletes): Updated message.
  13486. To add DiskAdaptor which abstract DiskWriter family:
  13487. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13488. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13489. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13490. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13491. MultiDiskAdaptor.h.
  13492. (readFileEntry): Changed its arguments.
  13493. (setup): setupDiskWriter is merged into this function.
  13494. (setupDiskWriter): Removed.
  13495. (setFileFilter): New function.
  13496. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13497. made in readFileEntry.
  13498. (getFilePath): Removed.
  13499. (getTempFilePath): Removed.
  13500. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13501. (fixFilename): Removed.
  13502. (copySingleFile): Removed.
  13503. (splitMultiFile): Removed.
  13504. (deleteTempFile): Removed.
  13505. (setFileEntriesToDownload): Removed.
  13506. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13507. (isSelectiveDownloadingMode): New function.
  13508. (setAllMultiFileRequestedState): Removed.
  13509. (finishPartialDownloadingMode): Renamed as
  13510. finishSelectiveDownloadingMode.
  13511. (finishSelectiveDownloadingMode): New function.
  13512. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13513. (getSelectedTotalLength): New function.
  13514. (onDownloadComplete): Use diskAdaptor.
  13515. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13516. (Range): Removed.
  13517. (setMultiFileEntries): Renamed as setFileEntries.
  13518. (setFileEntries): New function.
  13519. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13520. (pieceLength): New variable.
  13521. * src/main.cc (printDownloadCompeleteMessage): New function.
  13522. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13523. (main): Renamed torrent-show-files to show-files.
  13524. Rewritten file contents listing.
  13525. * src/TorrentMan.h (FileEntry): Removed.
  13526. (multiFileTopDir): Removed.
  13527. (multiFileEntries): Removed.
  13528. (diskWriter): Removed.
  13529. (diskAdaptor): New variable.
  13530. * src/DefaultDiskWriter.h (totalLength): New variable.
  13531. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13532. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13533. diskWriter.
  13534. * src/TorrentConsoleDownloadEngine.h
  13535. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13536. (partialTotalLength): Renamed as selectedTotalLength.
  13537. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13538. openExistingFile, otherwise call initAndOpenFile.
  13539. (closeFile): fd > 0, not fd != 0.
  13540. * src/DirectDiskAdaptor.h: New class.
  13541. * src/DirectDiskAdaptor.cc: New class.
  13542. * src/MultiDiskAdaptor.h: New class.
  13543. * src/MultiDiskAdaptor.cc: New class.
  13544. * src/CopyDiskAdaptor.h: New class.
  13545. * src/CopyDiskAdaptor.cc: New class.
  13546. * src/DiskAdaptor.h: New class.
  13547. * src/DiskAdaptor.cc: New class.
  13548. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13549. (PREF_SHOW_FILES): New definition.
  13550. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13551. To add the ability to download multi torrent into respective files
  13552. directly:
  13553. * src/DiskWriter.h (openFile): New function.
  13554. (seek): Removed.
  13555. * src/MultiDiskWriter.h: New class.
  13556. * src/MultiDiskWriter.cc: New class.
  13557. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13558. protected.
  13559. (openFile): New function.
  13560. * src/AbstractDiskWriter.cc (openFile): New function.
  13561. * src/prefs.h (V_FALSE): New definition.
  13562. (PREF_DIRECT_FILE_MAPPING): New definition.
  13563. * src/TorrentMan.h (setupDiskWriter): New function.
  13564. (setAllMultiFileRequestedState): New function.
  13565. (onDownloadComplete): New function.
  13566. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13567. (setupDiskWriter): New function.
  13568. (getFilePath): Updated.
  13569. (getTempFilePath): Updated.
  13570. (getSegmentFilePath): Updated.
  13571. (fixFilename): Updated.
  13572. (deleteTempFile): Updated.
  13573. (setAllMultiFileRequestedState): New function.
  13574. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13575. (finishPartialDownloadingMode): Reset requested flags.
  13576. (onDownloadComplete): New function.
  13577. * src/main.cc: Added --direct-file-mapping option.
  13578. Use TorrentMan::setupDiskWriter().
  13579. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13580. onDownloadComplete().
  13581. To fix ETA bug:
  13582. * src/Util.h (difftvsec): New function.
  13583. * src/Util.cc (difftvsec): New function.
  13584. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13585. type of "elapsed" instead of long long int.
  13586. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13587. The updates of statistics takes place every 1 seconds.
  13588. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13589. (calculateSpeed): Changed its argument signature.
  13590. * src/PeerMessage.cc (toString): Fixed message.
  13591. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13592. To print ETA:
  13593. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13594. completion handling when dealing with
  13595. TorrentMan::isPartialDownloadingMode() == true.
  13596. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13597. New function.
  13598. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13599. (sessionDownloadLength): New variable.
  13600. (avgSpeed): New variable.
  13601. (eta): New variable.
  13602. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13603. new variables: eta, avgSpeed, startup.
  13604. (calculateSpeed): Calculate average speed and ETA.
  13605. (printStatistics): Added ETA.
  13606. * src/Util.h (secfmt): New function.
  13607. * src/Util.cc (secfmt): New function.
  13608. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13609. To detect "keep alive" flooding:
  13610. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13611. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13612. variable: keepAliveCount.
  13613. (detectMessageFlooding): Added "keep alive" flooding detection.
  13614. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13615. received.
  13616. To add the ability to download only specified files in multi-file
  13617. torrent:
  13618. * src/BitfieldMan.h (filterBitfield): New variable.
  13619. (filterEnabled): New variable.
  13620. (setFilterBit): New function.
  13621. (enableFilter): New function.
  13622. (disableFilter): New function.
  13623. (isFilterEnabled): New function.
  13624. (getFilteredTotalLength): New function.
  13625. (getCompletedLength): New function.
  13626. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13627. filterBitfield, filterEnabled.
  13628. (CopyConstructor): Added filterBitfield and filterEnabled.
  13629. (operator==): Added filterBitfield and filterEnabled.
  13630. (Destructor): Added filterBitfield.
  13631. (getMissingIndex): Use filterBitfield.
  13632. (getMissingUnusedIndex): Use filterBitfield.
  13633. (getFirstMissingUnusedIndex): Use filterBitfield.
  13634. (getFirstMissingUnusedIndex): Use filterBitfield.
  13635. (getAllMissingIndexes): Use filterBitfield.
  13636. (countMissingBlock): Use filterBitfield.
  13637. (countBlock): Use filterBitfield.
  13638. (setBitInternal): Added new argument on.
  13639. (setUseBit): Use setBitInternal.
  13640. (unsetUseBit): Use setBitInternal.
  13641. (setBit): Use setBitInternal.
  13642. (unsetBit): Use setBitInternal.
  13643. (isAllBitSet): Use filterBitfield.
  13644. (setFilterBit): New function.
  13645. (addFilter): New function.
  13646. (enableFilter): New function.
  13647. (disableFilter): New function.
  13648. (clearFilter): New function.
  13649. (isFilterEnabled): New function.
  13650. (getFilteredTotalLength): New function.
  13651. (getCompletedLength): New function.
  13652. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13653. Initalized newly added variables.
  13654. [FileEntry](offset): New variable.
  13655. [FileEntry](extracted): New variable.
  13656. [FileEntry](requested): New variable.
  13657. (readFileEntry): New function.
  13658. (option): New variable.
  13659. (splitMultiFile): Removed const qualifier.
  13660. (fixFilename): Removed const qualifier.
  13661. (readFileEntryFromMetaInfoFile): New function.
  13662. (finishPartialDownloadingMode): New function.
  13663. (isPartialDownloadingMode): New function.
  13664. (setFileEntriesToDownload): New function.
  13665. (getCompletedLength): New function.
  13666. (getPartialTotalLength): New function.
  13667. * src/TorrentMan.cc (readFileEntry): New function.
  13668. (setup): Use readFileEntry. If no-preallocation option is specified,
  13669. use DefaultDiskWriter.
  13670. (readFileEntryFromMetaInfoFile): New function.
  13671. (fixFilename): Removed const qualifier.
  13672. (splitMultiFile): Removed const qualifier.
  13673. (setFileEntriesToDownload): New function.
  13674. (isPartialDownloadingMode): New function.
  13675. (finishPartialDownloadingMode): New function.
  13676. (getCompletedLength): New function.
  13677. (getPartialTotalLength): New function.
  13678. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13679. New variable.
  13680. (partialTotalLength): New variable.
  13681. (downloadLength): New variable.
  13682. (totalLength): New variable.
  13683. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13684. Added log.
  13685. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13686. partialTotalLength, downloadLength, totalLength.
  13687. (calculate): Calculate downloadLength and totalLength.
  13688. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13689. * src/main.cc (addCommand): Changed argument signature.
  13690. (main): Added new variable: args. Added new option "torrent-show-files"
  13691. "no-preallocation". Usage is not updated yet.
  13692. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13693. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13694. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13695. Attempt to add the ability to listing file entries in a .torrent file.
  13696. This feature is not yet complete.
  13697. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13698. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13699. (getName): New function.
  13700. * src/TorrentMan.h (getMultiFileEntries): New function.
  13701. (getName): New function.
  13702. * src/main.cc (main): Use above 2 funtion.
  13703. * Release 0.3.2
  13704. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13705. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13706. (detectMessageFlooding): Updated threshold value.
  13707. (checkLongTimePeerChoking): Updated timeout value.
  13708. (getNewPieceAndSendInterest): Added debug log.
  13709. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13710. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13711. (getPeer): Updated.
  13712. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13713. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13714. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13715. is localhost.
  13716. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13717. * src/PendingMessage.cc (processMessage): Not to send piece message
  13718. if peer is not interested in the pieces localhost has.
  13719. * src/Peer.cc (shouldChoke): Updated.
  13720. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13721. * src/Util.cc (isPowerOf): New function.
  13722. * src/Util.h (isPowerOf): New function.
  13723. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13724. whether or not it is power of 2.
  13725. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13726. Added new class SendMessageQueue that includes PendingMessages and
  13727. RequestSlotMan.
  13728. * src/SendMessageQueue.h: New class.
  13729. * src/SendMessageQueue.cc: New class.
  13730. * src/PendingMessage.h: Added new member variable blockIndex and its
  13731. accessors.
  13732. (createRequestMessage): Updated.
  13733. * src/PendingMessage.cc (createRequestMessage): Updated.
  13734. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13735. SendMessageQueue.
  13736. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13737. (receiveMessage): Updated with SendMessageQueue.
  13738. (deletePendingPieceMessage): Removed.
  13739. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13740. (sendInterest): Updated with SendMessageQueue.
  13741. (createRequestPendingMessage): Updated with SendMessageQueue.
  13742. (sendMessages): Updated with SendMessageQueue.
  13743. (onAbort): Updated with SendMessageQueue.
  13744. (keepAlive): Updated with SendMessageQueue.
  13745. (beforeSocketCheck): Updated SendMessageQueue.
  13746. * src/PeerInteractionCommand (sendMessages): Shuffle
  13747. missingBLockIndexes before using it.
  13748. Added its own timeout for peer connection.
  13749. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13750. setter.
  13751. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13752. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13753. Added setTimeout() call.
  13754. (executeInternal): Added setTimeout() call.
  13755. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13756. Added timeout.
  13757. (isTimeoutDetected): Updated.
  13758. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13759. option.
  13760. Added *simple* message flooding checker.
  13761. * src/PeerInteractionCommand.cc (executeInternal):
  13762. Added detectMessageFlooding() call.
  13763. (detectMessageFlooding): New function.
  13764. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13765. (beforeSocketCheck): Added detectMessageFlooding() call.
  13766. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13767. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13768. Removed deletePendingPieceMessage(), getRequestSlot(),
  13769. deleteRequestSlot(), deleteAllRequestSlot().
  13770. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13771. Added checkLongTimePeerChoking() call.
  13772. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13773. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13774. if duplicate == false.
  13775. The parameter "uploaded" and "downloaded" in the tracker request are
  13776. the size since the client sent the "started" event to the tracker.
  13777. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13778. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13779. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13780. getSessionDownloadedSize(), getSessionUploadedSize().
  13781. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13782. getSessionUploadedSize() instead of getDownloadedSize(),
  13783. getUploadedSize().
  13784. * src/PendingMessage.cc (processMessage): Do not send request message
  13785. if the peer is choking the client.
  13786. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13787. less than interval.
  13788. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13789. * configure.in: Added gnutls support. Added several CPP macros.
  13790. * m4/openssl.m4: Added.
  13791. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13792. readData(), peekData(). Added gnutls support.
  13793. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13794. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13795. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13796. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13797. Instead, added a check for whether setup method has executed
  13798. successfully.
  13799. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13800. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13801. * src/Makefile.am: Updated.
  13802. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13803. using whether OpenSSL or gcrypt, depending on the result of configure
  13804. script.
  13805. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13806. messageDigest.h.
  13807. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13808. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13809. Fixed memory leak.
  13810. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13811. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13812. Removed instantiation of TrackerInitCommand. Instead,
  13813. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13814. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13815. ENABLE_SSL.
  13816. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13817. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13818. If a piece is already acquired by another command, delete the request
  13819. slots for the piece.
  13820. * src/TrackerUpdateCommand.cc (execute):
  13821. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13822. Added a check whether peer list is null.
  13823. Fixed the bug that causes sending completed event to the tracker
  13824. several times.
  13825. * src/TrackerInitCommand.cc (execute):
  13826. Fixed the bug that causes sending completed event to the tracker
  13827. several times.
  13828. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13829. by using messageDigest.h.
  13830. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13831. * PeerConnection.cc: Replaced log message "keep-alive" with
  13832. "keep alive".
  13833. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13834. localhost long time.
  13835. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13836. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13837. at most 100 failure entry from the list. If with duplicate = false,
  13838. MAX_PEER_LIST is not checked.
  13839. * PeerListenCommand.cc: Fixed the argument order of log message.
  13840. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13841. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13842. Added warn().
  13843. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13844. Implemented warn().
  13845. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13846. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13847. * Request.h: Added AFTER_COMPLETED event.
  13848. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13849. instead of downloaded size and progress(%) after download completes.
  13850. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13851. message to the peer if it is interested in what localhost has
  13852. downloaded.
  13853. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13854. destination instead of just renaming it.
  13855. * TorrentMan.cc: Added deleteTempFile().
  13856. * PeerAbstractCommand.cc: do not stop execution after download
  13857. completes. This makes localhost a seeder.
  13858. * Util.{h,cc}: Added fileCopy().
  13859. * PeerListenCommand.cc: do not stop execution after download completes.
  13860. This makes localhost a seeder.
  13861. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  13862. Added TorrentMan::deleteTempFile() to torrentHandler.
  13863. Initialized the variable dir as ".".
  13864. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  13865. Deleted renameSingleFile().
  13866. Added copySingleFile(), deleteTempFile().
  13867. * DownloadEngine.h: Added virtual function afterEachIteration().
  13868. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  13869. in onEndOfRun() to afterEachIteration().
  13870. In onEndOfRun(), changed if condition to check whether filenameFixed is
  13871. true.
  13872. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  13873. In rangedFileCopy(), added try-catch block to properly close file
  13874. descriptors.
  13875. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  13876. Added afterEachIteration(), isFilenameFixed().
  13877. * Peer.cc: Changed choking strategy.
  13878. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  13879. * TrackerInitCommand.cc: Send completed event only once.
  13880. * DownloadEngine.cc: Added a call to afterEachIteration().
  13881. * TrackerUpdateCommand.cc: Do not stop execution after download
  13882. completes.
  13883. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  13884. connect the peers at most MAX_PEER_UPDATE when a peer list is
  13885. received from a tracker.
  13886. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  13887. Decreased the number of failure peers to delete to 0(just comment out
  13888. the line).
  13889. * Release 0.3.1
  13890. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13891. * PeerInteractionCommand.cc: added a call to
  13892. TorrentMan::unadvertisePiece in Destructor.
  13893. * PeerInteractionCommand.cc: make have message sent immediately
  13894. if the size of pending message queue is zero.
  13895. * TorrentMan.cc: set the maximum size of peer list to 250.
  13896. * TorrentMan.h: changed the container type of Peers and UsedPieces
  13897. to deque.
  13898. * Util.cc: fixed rangedFileCopy.
  13899. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  13900. to Constructor. Also, moved digest cleanup to Destructor.
  13901. * MetaFileUtil.cc: fixed memory leak
  13902. * replaced std::vector with std::deque.
  13903. * AbstractCommand.cc: casted timeout value to long long int.
  13904. * ChunkedEncoding.cc: fixed memory leak.
  13905. * PeerInteractionCommand.cc: casted timeout value to long long int.
  13906. * SleepCommand.cc: casted timeout value to long long int.
  13907. * Data.cc: fixed memory leak.
  13908. * Data.cc: fixed toLLInt().
  13909. * BitfieldMan.cc: fixed memory leak.
  13910. * TorrentMan.cc: initialized storeDir to ".".
  13911. * TorrentMan.cc: fixed memory leak.
  13912. * TorrentMan.cc: corrected file paths of splitted files.
  13913. * PeerAbstractCommand.cc: casted timeout to long long int.
  13914. * main.cc: added delete(req) and delete(te->diskWriter).
  13915. * RequestSlot.cc: casted timeout value to long long int.
  13916. * Request.cc: fixed memory leak.
  13917. * PendingMessage.cc: make HAVE messages sent only when peer does not
  13918. have the piece.
  13919. * Peer.{h,cc}: added hasPiece(int index).
  13920. * main.cc: corrected addCommand.
  13921. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13922. * BitTorrent protocol support added.
  13923. * Release 0.3.0
  13924. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13925. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  13926. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13927. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  13928. decoding did not work properly.
  13929. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13930. * DownloadEngine.h: included sys/time.h
  13931. * DownloadEngine.cc: remove sys/time.h
  13932. * Makefile.am (SUBDIRS): Add intl.
  13933. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  13934. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13935. * main.cc: correct help message for --http-auth-scheme.
  13936. * main.cc: changed e-mail address for bug reports.
  13937. * ja.po: added japanese translation.
  13938. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13939. * SimpleLogger.cc: flush log file instead of stdout.
  13940. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13941. * main.cc: Fixed command-line option: max-tries
  13942. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  13943. does not equal to seg.sp.
  13944. * DownloadCommand.cc: If EOF is got from the server and the total size
  13945. of file is not zero, then throw DlRetryEx.
  13946. * main.cc: Set the minium value of min-segment-size to 1024.
  13947. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  13948. fails because of a regression since 0.2.0 release.
  13949. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13950. * HttpConnection.cc:
  13951. * common.h: defined the user agent name as macro
  13952. * DownloadEngine.{h, cc}:
  13953. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  13954. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  13955. * main.cc: Download complete/abort message is now generated by main.
  13956. * Makefile.am (SUBDIRS): Add m4.
  13957. (ACLOCAL_AMFLAGS): New variable.
  13958. (EXTRA_DIST): New variable.
  13959. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  13960. * gettext: added gettext functionality
  13961. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13962. * AbstractCommand.cc:
  13963. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  13964. unregister its cuid from SegmentMan.
  13965. * DownloadEngine.cc: .aria2 file was written when a downloading
  13966. failed with errors.
  13967. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  13968. Added "User-Agent" header to CONNECT proxy request.
  13969. Fixed "Proxy-Authorization" header. Now proxy authorization works
  13970. properly.
  13971. * Logger.h:
  13972. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  13973. * ChunkedEncoding.cc: Added #include directive for strings.h
  13974. * Release 0.2.1
  13975. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13976. * Util.{h,cc}: added startsWith().
  13977. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  13978. Util::endsWith().
  13979. * SocketCore.cc: struct addrinfo is now zero-initialized.
  13980. * common.h: added #include directive of limit.h.
  13981. * DownloadEngine.cc: added #include directive of sys/time.h and
  13982. algorithm.
  13983. * Exception.h: added #include directive of stdio.h.
  13984. * AbstractCommand.h: added #include directive of sys/time.h.
  13985. * DownloadCommand.h: added #include directive of sys/time.h.
  13986. * *.h: added #include directive of common.h to all base classes.
  13987. subclasses' one was removed.
  13988. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  13989. does not define these macros.
  13990. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13991. * Release 0.2.0
  13992. * main.cc:
  13993. * HttpInitiateConnectionCommand.{h,cc}:
  13994. * prefs.h:
  13995. * HttpConnection.{h,cc}: added --http-proxy-method option.
  13996. We can now use GET command in http proxy.
  13997. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13998. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  13999. that splits slowest segment of SegmentMan::commands vector.
  14000. This is the default split algorithm of aria2.
  14001. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14002. that splits first segment of SegmentMan::commands vector.
  14003. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14004. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14005. * Segment.h:
  14006. * SegmentMan.cc: Added speed field to Segment.h
  14007. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14008. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14009. * message.h: Change file size related %d to %lld.
  14010. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14011. * FtpInitiateConnectionCommand.{h,cc}:
  14012. * FtpNegotiationCommand.{h,cc}:
  14013. * FtpDownloadCommand.{h,cc}:
  14014. * FtpConnection.{h,cc}: Added FTP support
  14015. * SimpleLogger.cc: Log message now includes time information.
  14016. * main.cc: The value of --http-auth-scheme option is chagned from
  14017. 'BASIC' to 'basic'
  14018. * main.cc: Added --timeout command-line option.
  14019. * main.cc: Added --min-segment-size command-line option.
  14020. * main.cc: Added --max-retries command-line option.
  14021. * prefs.h: option string constants are now defined in prefs.h
  14022. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14023. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14024. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14025. with version 0.1.0's one.
  14026. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14027. * configure.in: Added --enable-ssl option to configure script.
  14028. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14029. cannot permit absoluteURI as Request-URI.
  14030. * HttpConnection.cc: Added Referer support.
  14031. * main.cc: Added referer command-line option.
  14032. * main.cc: Added rety-wait command-line option.
  14033. * Exception.h: Fixed formating bug in Exception::setMsg()
  14034. * SocketCore.{h,cc}:
  14035. * Socket.{h, cc}:
  14036. * Request.cc:
  14037. * InitiateConnectionCommandFactory.cc:
  14038. * HttpRequestCommand.cc: Added HTTPS support.
  14039. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14040. for SocketCore.
  14041. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14042. size is wrong
  14043. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14044. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14045. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14046. * Release 0.1.0