ChangeLog 759 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649
  1. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  2. Renamed member variables. Removed unused member variables.
  3. * src/DefaultBtMessageReceiver.cc
  4. * src/DefaultBtMessageReceiver.h
  5. * src/PeerInteractionCommand.cc
  6. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  7. Renamed member variables
  8. * src/DefaultBtMessageFactory.cc
  9. * src/DefaultBtMessageFactory.h
  10. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  11. Renamed member variables
  12. * src/DefaultBtMessageDispatcher.cc
  13. * src/DefaultBtMessageDispatcher.h
  14. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  15. Renamed member variables. Removed member variable peerConnection.
  16. * src/DefaultBtInteractive.cc
  17. * src/DefaultBtInteractive.h
  18. * src/PeerInteractionCommand.cc
  19. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  20. Renamed member variables
  21. * src/DefaultBtAnnounce.cc
  22. * src/DefaultBtAnnounce.h
  23. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  24. Made protected member variable private. Added accessor funcs.
  25. * src/DHTAbstractNodeLookupTask.cc
  26. * src/DHTAbstractNodeLookupTask.h
  27. * src/DHTAbstractTask.h
  28. * src/DHTBucketRefreshTask.cc
  29. * src/DHTNodeLookupTask.cc
  30. * src/DHTNodeLookupTask.h
  31. * src/DHTPeerLookupTask.cc
  32. * src/DHTPeerLookupTask.h
  33. * src/DHTPingTask.cc
  34. * src/DHTPingTask.h
  35. * src/DHTReplaceNodeTask.cc
  36. * src/DHTReplaceNodeTask.h
  37. 2010-06-12 Tatsuhiro Tsujikawa <[email protected]>
  38. Made protected member variable private. Added accessor funcs.
  39. * src/DHTAbstractMessage.cc
  40. * src/DHTAbstractMessage.h
  41. * src/DHTAnnouncePeerMessage.cc
  42. * src/DHTAnnouncePeerMessage.h
  43. * src/DHTAnnouncePeerReplyMessage.cc
  44. * src/DHTAnnouncePeerReplyMessage.h
  45. * src/DHTFindNodeMessage.cc
  46. * src/DHTFindNodeMessage.h
  47. * src/DHTFindNodeReplyMessage.cc
  48. * src/DHTFindNodeReplyMessage.h
  49. * src/DHTGetPeersMessage.cc
  50. * src/DHTGetPeersMessage.h
  51. * src/DHTGetPeersReplyMessage.cc
  52. * src/DHTGetPeersReplyMessage.h
  53. * src/DHTMessage.h
  54. * src/DHTPingMessage.cc
  55. * src/DHTPingMessage.h
  56. * src/DHTPingReplyMessage.cc
  57. * src/DHTPingReplyMessage.h
  58. * src/DHTQueryMessage.cc
  59. * src/DHTQueryMessage.h
  60. * src/DHTResponseMessage.cc
  61. * src/DHTResponseMessage.h
  62. * src/DHTUnknownMessage.cc
  63. * src/DHTUnknownMessage.h
  64. * test/MockDHTMessage.h
  65. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  66. Removed unused member variable uuid and uuidGen
  67. * src/Command.cc
  68. * src/Command.h
  69. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  70. Renamed member variables
  71. * src/ByteArrayDiskWriter.cc
  72. * src/ByteArrayDiskWriter.h
  73. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  74. Renamed member variables
  75. * src/BtRuntime.h
  76. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  77. Renamed member variables
  78. * src/BtHandshakeMessage.cc
  79. * src/BtHandshakeMessage.h
  80. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  81. Renamed member variables
  82. * src/BtBitfieldMessageValidator.h
  83. * src/BtHandshakeMessageValidator.h
  84. * src/BtPieceMessageValidator.h
  85. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  86. Renamed member variables
  87. * src/BtAbortOutstandingRequestEvent.h
  88. * src/BtCancelSendingPieceEvent.h
  89. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  90. Renamed member variable
  91. * src/BitfieldMan.cc
  92. * src/BitfieldMan.h
  93. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  94. Renamed member variable
  95. * src/AsyncNameResolver.cc
  96. * src/AsyncNameResolver.h
  97. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  98. Renamed member variable
  99. * src/AnnounceList.cc
  100. * src/AnnounceList.h
  101. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  102. Made protected member variable private. Added accessor funcs.
  103. * src/AbstractSingleDiskAdaptor.cc
  104. * src/AbstractSingleDiskAdaptor.h
  105. * src/DirectDiskAdaptor.cc
  106. * src/DirectDiskAdaptor.h
  107. * src/DiskAdaptor.cc
  108. * src/DiskAdaptor.h
  109. * src/MultiDiskAdaptor.cc
  110. * src/MultiDiskAdaptor.h
  111. * src/MultiFileAllocationIterator.cc
  112. * src/MultiFileAllocationIterator.h
  113. * test/BtBitfieldMessageTest.cc
  114. * test/BtHaveAllMessageTest.cc
  115. * test/BtHaveMessageTest.cc
  116. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  117. Made protected member variable private. Added accessor funcs.
  118. * src/AbstractDiskWriter.cc
  119. * src/AbstractDiskWriter.h
  120. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  121. Made protected member variable private. Added accessor funcs.
  122. * src/AbstractAuthResolver.h
  123. * src/DefaultAuthResolver.cc
  124. * src/DefaultAuthResolver.h
  125. * src/NetrcAuthResolver.cc
  126. * src/NetrcAuthResolver.h
  127. 2010-06-11 Tatsuhiro Tsujikawa <[email protected]>
  128. Made protected member variable private. Added accessor funcs.
  129. * src/AbstractBtMessage.cc
  130. * src/AbstractBtMessage.h
  131. * src/BtAllowedFastMessage.cc
  132. * src/BtAllowedFastMessage.h
  133. * src/BtBitfieldMessage.cc
  134. * src/BtBitfieldMessage.h
  135. * src/BtCancelMessage.cc
  136. * src/BtCancelMessage.h
  137. * src/BtChokeMessage.cc
  138. * src/BtChokeMessage.h
  139. * src/BtExtendedMessage.cc
  140. * src/BtHaveAllMessage.cc
  141. * src/BtHaveAllMessage.h
  142. * src/BtHaveMessage.cc
  143. * src/BtHaveMessage.h
  144. * src/BtHaveNoneMessage.cc
  145. * src/BtHaveNoneMessage.h
  146. * src/BtInterestedMessage.cc
  147. * src/BtInterestedMessage.h
  148. * src/BtNotInterestedMessage.cc
  149. * src/BtNotInterestedMessage.h
  150. * src/BtPieceMessage.cc
  151. * src/BtPieceMessage.h
  152. * src/BtPortMessage.cc
  153. * src/BtPortMessage.h
  154. * src/BtRejectMessage.cc
  155. * src/BtRejectMessage.h
  156. * src/BtRequestMessage.cc
  157. * src/BtRequestMessage.h
  158. * src/BtUnchokeMessage.cc
  159. * src/BtUnchokeMessage.h
  160. * src/SimpleBtMessage.cc
  161. * src/SimpleBtMessage.h
  162. 2010-06-10 Tatsuhiro Tsujikawa <[email protected]>
  163. Made protected member variable private. Added accessor funcs.
  164. * src/BtCheckIntegrityEntry.cc
  165. * src/BtFileAllocationEntry.cc
  166. * src/CheckIntegrityEntry.cc
  167. * src/CheckIntegrityEntry.h
  168. * src/ChecksumCheckIntegrityEntry.cc
  169. * src/FileAllocationEntry.cc
  170. * src/PieceHashCheckIntegrityEntry.cc
  171. * src/RequestGroupEntry.h
  172. * src/StreamCheckIntegrityEntry.cc
  173. * src/StreamFileAllocationEntry.cc
  174. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  175. Made protected member variable private. Added accessor funcs.
  176. * src/ActivePeerConnectionCommand.cc
  177. * src/ActivePeerConnectionCommand.h
  178. * src/CheckIntegrityDispatcherCommand.cc
  179. * src/DHTEntryPointNameResolveCommand.h
  180. * src/DHTInteractionCommand.h
  181. * src/FileAllocationDispatcherCommand.cc
  182. * src/LpdReceiveMessageCommand.h
  183. * src/PeerChokeCommand.cc
  184. * src/PeerChokeCommand.h
  185. * src/PeerListenCommand.cc
  186. * src/PeerListenCommand.h
  187. * src/SeedCheckCommand.cc
  188. * src/SeedCheckCommand.h
  189. * src/SequentialDispatcherCommand.h
  190. * src/SleepCommand.cc
  191. * src/SleepCommand.h
  192. * src/TrackerWatcherCommand.cc
  193. * src/TrackerWatcherCommand.h
  194. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  195. Made protected member variable private. Added accessor funcs.
  196. * src/CheckIntegrityCommand.cc
  197. * src/FileAllocationCommand.cc
  198. * src/RealtimeCommand.h
  199. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  200. Made protected member variable private. Added accessor funcs.
  201. * src/AutoSaveCommand.cc
  202. * src/BtStopDownloadCommand.cc
  203. * src/DHTAutoSaveCommand.cc
  204. * src/DHTBucketRefreshCommand.cc
  205. * src/DHTPeerAnnounceCommand.cc
  206. * src/DHTTokenUpdateCommand.cc
  207. * src/HaveEraseCommand.cc
  208. * src/TimeBasedCommand.h
  209. * src/TimedHaltCommand.cc
  210. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  211. Made protected member variable private. Added accessor funcs.
  212. * src/InitiatorMSEHandshakeCommand.cc
  213. * src/PeerAbstractCommand.cc
  214. * src/PeerAbstractCommand.h
  215. * src/PeerInitiateConnectionCommand.cc
  216. * src/PeerInteractionCommand.cc
  217. * src/PeerInteractionCommand.h
  218. * src/PeerReceiveHandshakeCommand.cc
  219. * src/ReceiverMSEHandshakeCommand.cc
  220. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  221. Code cleanup
  222. * src/AbstractCommand.cc
  223. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  224. Made protected member variable private. Added accessor funcs.
  225. * src/AbstractCommand.cc
  226. * src/AbstractCommand.h
  227. * src/AbstractProxyRequestCommand.cc
  228. * src/AbstractProxyRequestCommand.h
  229. * src/AbstractProxyResponseCommand.cc
  230. * src/AbstractProxyResponseCommand.h
  231. * src/CreateRequestCommand.cc
  232. * src/DownloadCommand.cc
  233. * src/DownloadCommand.h
  234. * src/FtpDownloadCommand.cc
  235. * src/FtpDownloadCommand.h
  236. * src/FtpFinishDownloadCommand.cc
  237. * src/FtpInitiateConnectionCommand.cc
  238. * src/FtpNegotiationCommand.cc
  239. * src/FtpNegotiationCommand.h
  240. * src/FtpTunnelRequestCommand.cc
  241. * src/FtpTunnelResponseCommand.cc
  242. * src/HttpDownloadCommand.cc
  243. * src/HttpInitiateConnectionCommand.cc
  244. * src/HttpProxyRequestCommand.cc
  245. * src/HttpProxyResponseCommand.cc
  246. * src/HttpRequestCommand.cc
  247. * src/HttpResponseCommand.cc
  248. * src/HttpResponseCommand.h
  249. * src/HttpSkipResponseCommand.cc
  250. * src/InitiateConnectionCommand.cc
  251. 2010-06-09 Tatsuhiro Tsujikawa <[email protected]>
  252. Made protected member variables of Command private. Added accessor
  253. funcs.
  254. 2010-06-08 Tatsuhiro Tsujikawa <[email protected]>
  255. Made public member variables of DownloadEngine private. Added
  256. accessor funcs.
  257. 2010-06-04 Tatsuhiro Tsujikawa <[email protected]>
  258. Release 1.9.4
  259. 2010-06-04 Tatsuhiro Tsujikawa <[email protected]>
  260. Updated Italian translation. Added Korean translation.
  261. Thanks to all translators.
  262. * LINGUAS
  263. * it.po
  264. * ko.po
  265. 2010-06-04 Tatsuhiro Tsujikawa <[email protected]>
  266. Updated po templates.
  267. * po/aria2.pot
  268. 2010-06-03 Tatsuhiro Tsujikawa <[email protected]>
  269. Fixed the bug that reading Metalink from pipe fails on older
  270. libxml2. It only accepts "-" as a special keyword to read stdin.
  271. * src/XML2SAXMetalinkProcessor.cc
  272. 2010-06-03 Tatsuhiro Tsujikawa <[email protected]>
  273. Added log message when cookies are loaded. Added filename to log
  274. message when serializing session.
  275. * src/MultiUrlRequestInfo.cc
  276. 2010-06-03 Tatsuhiro Tsujikawa <[email protected]>
  277. Treat SIGHUP and SIGTERM signal as emergency shutdown because they
  278. are usually issued by system or other process.
  279. * src/MultiUrlRequestInfo.cc
  280. 2010-06-03 Tatsuhiro Tsujikawa <[email protected]>
  281. Use downloadresultcode::IN_PROGRESS for
  282. RequestGroup::SHUTDOWN_SIGNAL.
  283. * src/RequestGroup.cc
  284. 2010-06-03 Tatsuhiro Tsujikawa <[email protected]>
  285. Call requestForceHalt() instead of _requestGroupMan->forceHalt().
  286. * src/DownloadEngine.cc
  287. 2010-06-02 Tatsuhiro Tsujikawa <[email protected]>
  288. Mentioned RFC 5854 in README and man page.
  289. * README
  290. * doc/aria2c.1.txt
  291. 2010-06-01 Tatsuhiro Tsujikawa <[email protected]>
  292. Bump up version number to 1.9.4
  293. * configure.ac
  294. * doc/aria2c.1.txt
  295. 2010-06-01 Tatsuhiro Tsujikawa <[email protected]>
  296. Don't throw exception when Metalink document is empty(no file
  297. element). It is a valid Metalink document anyway.
  298. * src/MetalinkHelper.cc
  299. * src/download_helper.cc
  300. 2010-06-01 Tatsuhiro Tsujikawa <[email protected]>
  301. Fixed double memory free when Exception raised from
  302. AbstractCommand::prepareForNextAction() called by
  303. HttpResponseCommand::handleDefaultEncoding().
  304. * src/AbstractCommand.cc
  305. * src/HttpResponseCommand.cc
  306. 2010-06-01 Tatsuhiro Tsujikawa <[email protected]>
  307. Added _logger->info() guard
  308. * src/IteratableChunkChecksumValidator.cc
  309. 2010-05-26 Tatsuhiro Tsujikawa <[email protected]>
  310. Fixed the bug that feeding Metalink XML via pipe (-M- option) does
  311. not work when aria2 is built with expat. Fixed the bug that when
  312. Metalink XML is fed via pipe and --save-session is used, entry
  313. "/dev/stdin" is saved in session file.
  314. * src/ExpatMetalinkProcessor.cc
  315. * src/ExpatMetalinkProcessor.h
  316. * src/Metalink2RequestGroup.cc
  317. 2010-05-22 Tatsuhiro Tsujikawa <[email protected]>
  318. Updated doc
  319. * src/aria2c.1.txt
  320. 2010-05-22 Tatsuhiro Tsujikawa <[email protected]>
  321. Added totalLength, completedLength, uploadLength, bitfield,
  322. downloadSpeed, uploadSpeed, infoHash, numSeeders, pieceLength,
  323. numPieces, connections and dir to the response of
  324. aria2.tellStopped XML-RPC method. aria2.tellWaiting now always
  325. returns numSeeders for BitTorrent download.
  326. * src/DownloadResult.h
  327. * src/RequestGroup.cc
  328. * src/RequestGroup.h
  329. * src/XmlRpcMethodImpl.cc
  330. * test/XmlRpcMethodTest.cc
  331. 2010-05-21 Tatsuhiro Tsujikawa <[email protected]>
  332. Fixed the bug that connection pooling does not take into account
  333. proxy. This means that when connection A via proxy X is pooled,
  334. it will be wrongly reused in the download using proxy Y.
  335. * src/DownloadEngine.cc
  336. * src/DownloadEngine.h
  337. * src/FtpFinishDownloadCommand.cc
  338. * src/FtpInitiateConnectionCommand.cc
  339. * src/FtpNegotiationCommand.cc
  340. * src/HttpDownloadCommand.cc
  341. * src/HttpInitiateConnectionCommand.cc
  342. * src/HttpResponseCommand.cc
  343. * src/HttpSkipResponseCommand.cc
  344. 2010-05-21 Tatsuhiro Tsujikawa <[email protected]>
  345. Fixed the bug that FTP download may fail when control connection
  346. is reused. This happens because FTP server can offer different
  347. root directory for different account. If pooled connections has
  348. different root directory, then download will fail.
  349. * src/DownloadEngine.cc
  350. * src/DownloadEngine.h
  351. * src/FtpConnection.cc
  352. * src/FtpConnection.h
  353. * src/FtpFinishDownloadCommand.cc
  354. * src/FtpInitiateConnectionCommand.cc
  355. * src/FtpNegotiationCommand.cc
  356. 2010-05-20 Tatsuhiro Tsujikawa <[email protected]>
  357. Removed DownloadResult's ctor because it has many args.
  358. * src/DownloadResult.h
  359. * src/RequestGroup.cc
  360. * test/XmlRpcMethodTest.cc
  361. 2010-05-19 Tatsuhiro Tsujikawa <[email protected]>
  362. Code cleanup.
  363. * src/RequestGroupMan.cc
  364. * src/UTMetadataPostDownloadHandler.cc
  365. * src/XmlRpcMethodImpl.cc
  366. 2010-05-15 Tatsuhiro Tsujikawa <[email protected]>
  367. Store both whole checksum and piece hash in metalink file.
  368. Dispatch whole checksum verification only when piece hash is not
  369. set.
  370. * src/DownloadCommand.cc
  371. * src/Metalink2RequestGroup.cc
  372. * test/Metalink2RequestGroupTest.cc
  373. 2010-05-14 Tatsuhiro Tsujikawa <[email protected]>
  374. Left only IANA hash function textual name in messageDigest.cc.
  375. Assign only IANA hash function textual name to Checksum and
  376. ChunkChecksum. Fixed the value of MessageDigestContext::MD5.
  377. * src/Checksum.h
  378. * src/MetalinkParserController.cc
  379. * src/messageDigest.cc
  380. * src/messageDigest.h
  381. * test/IteratableChecksumValidatorTest.cc
  382. * test/IteratableChunkChecksumValidatorTest.cc
  383. * test/MessageDigestHelperTest.cc
  384. * test/Metalink2RequestGroupTest.cc
  385. * test/MetalinkProcessorTest.cc
  386. 2010-05-14 Tatsuhiro Tsujikawa <[email protected]>
  387. Fixed typo in log message
  388. * src/AbstractCommand.cc
  389. 2010-05-09 Tatsuhiro Tsujikawa <[email protected]>
  390. Release 1.9.3
  391. 2010-05-08 Tatsuhiro Tsujikawa <[email protected]>
  392. Return const reference.
  393. * src/DefaultPieceStorage.h
  394. * src/DownloadContext.h
  395. * src/FeatureConfig.cc
  396. * src/FeatureConfig.h
  397. * src/OptionParser.cc
  398. * src/OptionParser.h
  399. * src/SimpleRandomizer.cc
  400. * src/SimpleRandomizer.h
  401. 2010-05-07 Tatsuhiro Tsujikawa <[email protected]>
  402. Bump up version number to 1.9.3.
  403. * configure.ac
  404. 2010-05-06 Tatsuhiro Tsujikawa <[email protected]>
  405. Return const reference.
  406. * src/LpdMessageReceiver.h
  407. * src/LpdReceiveMessageCommand.h
  408. 2010-05-06 Tatsuhiro Tsujikawa <[email protected]>
  409. Removed useless pathJoin
  410. * src/MetalinkParserController.cc
  411. 2010-05-06 Tatsuhiro Tsujikawa <[email protected]>
  412. Fixed the bug that name attribute of file element in Metalink file
  413. is not properly sanitized.
  414. * src/Metalink2RequestGroup.cc
  415. * src/MetalinkParserController.cc
  416. * test/Makefile.am
  417. * test/Metalink2RequestGroupTest.cc
  418. * test/metalink4-dosdirtraversal.xml
  419. 2010-05-06 Tatsuhiro Tsujikawa <[email protected]>
  420. Fixed the bug that if filename in Content-Disposition header
  421. includes ';', aria2 cuts filename after ';'.
  422. * src/util.cc
  423. * test/UtilTest.cc
  424. 2010-04-28 Tatsuhiro Tsujikawa <[email protected]>
  425. Release 1.9.2
  426. 2010-04-27 Tatsuhiro Tsujikawa <[email protected]>
  427. Fixed compiler warning on opensolaris.
  428. * src/StringFormat.h
  429. * src/XORCloser.h
  430. 2010-04-27 Tatsuhiro Tsujikawa <[email protected]>
  431. Updated doc
  432. * test/array_funTest.cc
  433. 2010-04-27 Tatsuhiro Tsujikawa <[email protected]>
  434. Fixed segmentation fault when running unit tests on opensolaris.
  435. * src/SocketCore.cc
  436. * src/bittorrent_helper.cc
  437. 2010-04-26 Tatsuhiro Tsujikawa <[email protected]>
  438. Updated Russian translation. Thanks to all translators.
  439. * po/ru.po
  440. 2010-04-26 Tatsuhiro Tsujikawa <[email protected]>
  441. Updated po templates.
  442. * po/aria2.pot
  443. 2010-04-25 Tatsuhiro Tsujikawa <[email protected]>
  444. Print warning when trying to add file descriptor >= FD_SET or < 0
  445. to fd_set for other than MinGW32 build. For MinGW32 build, print
  446. warning when trying to add file descriptor to fd_set when it
  447. already contains FD_SET file descriptors.
  448. * src/SelectEventPoll.cc
  449. * src/SocketCore.cc
  450. 2010-04-25 Tatsuhiro Tsujikawa <[email protected]>
  451. Updated doc for --event-poll option.
  452. * doc/aria2c.1.txt
  453. 2010-04-25 Tatsuhiro Tsujikawa <[email protected]>
  454. Bump up version number to 1.9.2
  455. * configure.ac
  456. * doc/aria2c.1.txt
  457. 2010-04-25 Tatsuhiro Tsujikawa <[email protected]>
  458. Defined FD_SETSIZE 1024 for MinGW32.
  459. * src/a2netcompat.h
  460. 2010-04-25 Tatsuhiro Tsujikawa <[email protected]>
  461. Fixed compile error on the system which lacks poll()
  462. * src/DownloadEngineFactory.cc
  463. 2010-04-24 Tatsuhiro Tsujikawa <[email protected]>
  464. In SocketCore::isReadable()/isWritable(), use poll() if it is
  465. available otherwise use select(). Removed epoll/port from there
  466. because poll() does the good enough job for single socket event
  467. notification.
  468. * src/SocketCore.cc
  469. * src/SocketCore.h
  470. * src/main.cc
  471. 2010-04-24 Tatsuhiro Tsujikawa <[email protected]>
  472. Added kqueue support. We use poll() for
  473. SocketCore::isReadable()/isWritable() when kqueue is used.
  474. * configure.ac
  475. * src/DownloadEngineFactory.cc
  476. * src/KqueueEventPoll.cc
  477. * src/KqueueEventPoll.h
  478. * src/Makefile.am
  479. * src/Makefile.in
  480. * src/OptionHandlerFactory.cc
  481. * src/main.cc
  482. * src/prefs.cc
  483. * src/prefs.h
  484. 2010-04-23 Tatsuhiro Tsujikawa <[email protected]>
  485. Added missing timespec.h to SRCS
  486. * src/Makefile.am
  487. 2010-04-23 Tatsuhiro Tsujikawa <[email protected]>
  488. Fixed the bug that aria2.unpause fails with -s1.
  489. * src/FileEntry.cc
  490. * src/XmlRpcMethodImpl.cc
  491. 2010-04-22 Tatsuhiro Tsujikawa <[email protected]>
  492. Added missing #ifdef HAVE_PORT_ASSOCIATE
  493. * src/DownloadEngineFactory.cc
  494. 2010-04-21 Tatsuhiro Tsujikawa <[email protected]>
  495. Added opensolaris port_associate() support.
  496. * src/DownloadEngineFactory.cc
  497. * src/Makefile.am
  498. * src/OptionHandlerFactory.cc
  499. * src/PortEventPoll.cc
  500. * src/PortEventPoll.h
  501. * src/SocketCore.cc
  502. * src/SocketCore.h
  503. * src/configure.ac
  504. * src/main.cc
  505. * src/prefs.cc
  506. * src/prefs.h
  507. 2010-04-21 Tatsuhiro Tsujikawa <[email protected]>
  508. Fixed the bug that _e is passed where e should be passed.
  509. * src/HttpListenCommand.cc
  510. 2010-04-20 Tatsuhiro Tsujikawa <[email protected]>
  511. Increased _epEvents size if necessary.
  512. * src/EpollEventPoll.cc
  513. * src/EpollEventPoll.h
  514. 2010-04-20 Tatsuhiro Tsujikawa <[email protected]>
  515. Removed EventRType template parameter
  516. * src/EpollEventPoll.cc
  517. * src/EpollEventPoll.h
  518. * src/Event.h
  519. * src/PollEventPoll.cc
  520. * src/PollEventPoll.h
  521. 2010-04-20 Tatsuhiro Tsujikawa <[email protected]>
  522. Use Event in EpollEventPoll
  523. * src/EpollEventPoll.cc
  524. * src/EpollEventPoll.h
  525. 2010-04-20 Tatsuhiro Tsujikawa <[email protected]>
  526. Externalized Event, CommandEvent, ADNSEvent, SocketEntry and
  527. AsyncNameResolverEntry class.
  528. * src/Event.h
  529. * src/Makefile.am
  530. * src/PollEventPoll.cc
  531. * src/PollEventPoll.h
  532. 2010-04-19 Tatsuhiro Tsujikawa <[email protected]>
  533. Supported poll() for socket event notification. --event-poll can
  534. take value "poll". Fixed the bug that timeout for
  535. SocketCore::isReadable()/isWritable() is ignored when epoll is
  536. used.
  537. * src/OptionHandlerFactory.cc
  538. * src/a2io.h
  539. * src/prefs.h
  540. * src/SocketCore.h
  541. * src/Makefile.am
  542. * src/main.cc
  543. * src/PollEventPoll.h
  544. * src/SocketCore.cc
  545. * src/DownloadEngineFactory.cc
  546. * src/PollEventPoll.cc
  547. * src/prefs.cc
  548. * configure.ac
  549. 2010-04-19 Tatsuhiro Tsujikawa <[email protected]>
  550. Reverted previous change to DownloadCommand.cc with additional
  551. commentary.
  552. * src/DownloadCommand.cc
  553. 2010-04-16 Tatsuhiro Tsujikawa <[email protected]>
  554. Fixed compile error with openssl 1.1.0 and mingw32.
  555. * src/AsyncNameResolver.cc
  556. * src/LogFactory.cc
  557. * src/Logger.cc
  558. * src/Logger.h
  559. * src/SocketCore.cc
  560. * src/SocketCore.h
  561. * src/a2netcompat.h
  562. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  563. Release 1.9.1
  564. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  565. Bump up version number to 1.9.0
  566. * doc/aria2c.1.txt
  567. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  568. Updated Ukrainian, Russian, Simplified Chinese, German and Greek
  569. translation. Thanks to all translators.
  570. * po/de.po
  571. * po/el.po
  572. * po/ru.po
  573. * po/uk.po
  574. * po/zh_CN.po
  575. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  576. Added AC_SEARCH_LIBS for inet_aton on opensolaris. opensolaris
  577. needs -lnsl for inet_aton.
  578. * configure.ac
  579. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  580. Updated po templates.
  581. * po/aria2.pot
  582. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  583. Added aria2.pause, aria2.forcePause, aria2.pauseAll,
  584. aria2.forcePauseAll, aria2.unpause, aria2.unpauseAll XML-RPC
  585. method to aria2rpc
  586. * doc/xmlrpc/aria2rpc
  587. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  588. Use elapsed time between two mach_absolute_time() calls.
  589. Fixed compile error in Mac OS X.
  590. * src/clock_gettime_osx.cc
  591. * src/timespec.h
  592. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  593. Implemented clock_gettime() using mach_absolute_time in Mac OS X.
  594. * configure.ac
  595. * src/Makefile.am
  596. * src/a2time.h
  597. * src/clock_gettime_osx.cc
  598. * src/clock_gettime_osx.h
  599. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  600. Implemented clock_gettime() using timeGetTime in mingw.
  601. * configure.ac
  602. * src/Makefile.am
  603. * src/a2time.h
  604. * src/clock_gettime_mingw.cc
  605. * src/clock_gettime_mingw.h
  606. * src/timespec.h
  607. * test/Makefile.am
  608. 2010-04-14 Tatsuhiro Tsujikawa <[email protected]>
  609. Ensure that std::ofstream is destroyed before renaming.
  610. * src/SessionSerializer.cc
  611. * src/util.cc
  612. 2010-04-13 Tatsuhiro Tsujikawa <[email protected]>
  613. Fixed the bug that user specified path is escaped using
  614. util::escapePath() where it should not.
  615. * src/DownloadContext.cc
  616. * src/DownloadContext.h
  617. 2010-04-13 Tatsuhiro Tsujikawa <[email protected]>
  618. Hold reference to PieceStorage when paused in order to provide
  619. progress information via XML-RPC.
  620. * src/RequestGroup.cc
  621. * src/RequestGroup.h
  622. * src/RequestGroupMan.cc
  623. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  624. Defined struct timespec if it is not available.
  625. * src/a2time.h
  626. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  627. Added missing serialize_session.meta4 to EXTRA_DIST
  628. * test/Makefile.am
  629. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  630. Fixed compile error without BitTorrent support.
  631. * src/Metalink2RequestGroup.cc
  632. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  633. Fixed compile error on Mac OS X
  634. * src/TimerA2.h
  635. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  636. Added warning for the system which lacks clock_gettime with
  637. CLOCK_MONOTONIC.
  638. * src/MultiUrlRequestInfo.cc
  639. * src/TimerA2.cc
  640. * src/TimerA2.h
  641. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  642. Removed redundant method call for DownloadEngine.
  643. * src/DownloadCommand.cc
  644. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  645. Fixed the bug that hash check hangs when aria2.pause is issued
  646. while aria2 is checking piece hashes. Fixed the bug that the
  647. download is paused after file allocation completion even if
  648. aria2.pause is issued during file allocation.
  649. * src/CheckIntegrityCommand.cc
  650. * src/FileAllocationCommand.cc
  651. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  652. Added nsl to search-libs for getaddrinfo on opensolaris
  653. * configure.ac
  654. 2010-04-12 Tatsuhiro Tsujikawa <[email protected]>
  655. Fixed compile error on opensolaris
  656. * configure.ac
  657. * src/Logger.h
  658. * src/GZipEncoder.h
  659. 2010-04-11 Tatsuhiro Tsujikawa <[email protected]>
  660. Added aria2.pauseAll, aria2.forcePauseAll and aria2.unpauseAll
  661. XML-RPC method.
  662. * doc/aria2c.1.txt
  663. * src/XmlRpcMethodFactory.cc
  664. * src/XmlRpcMethodImpl.cc
  665. * src/XmlRpcMethodImpl.h
  666. * test/XmlRpcMethodTest.cc
  667. 2010-04-11 Tatsuhiro Tsujikawa <[email protected]>
  668. Added aria2.forcePause XML-RPC command.
  669. * src/XmlRpcMethodFactory.cc
  670. * src/XmlRpcMethodImpl.cc
  671. * src/XmlRpcMethodImpl.h
  672. 2010-04-11 Tatsuhiro Tsujikawa <[email protected]>
  673. Use global::wallclock
  674. * src/DHTBucket.cc
  675. * src/DHTMessageTrackerEntry.cc
  676. * src/DHTMessageTrackerEntry.h
  677. * src/DefaultBtInteractive.cc
  678. * src/Peer.cc
  679. * src/PeerAbstractCommand.cc
  680. * src/PeerStat.h
  681. * src/RequestSlot.h
  682. * src/TimeBasedCommand.cc
  683. 2010-04-11 Tatsuhiro Tsujikawa <[email protected]>
  684. Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and
  685. usable to prevent from aria2 from being affected by system time
  686. change.
  687. 2010-04-09 Tatsuhiro Tsujikawa <[email protected]>
  688. Added aria2.pause and aria2.unpause XML-RPC method. aria2.pause
  689. pauses the download denoted by gid. gid is of type string. The
  690. status of paused download becomes "paused" and the download is
  691. placed on the first position of waiting queue. As long as the
  692. status is "paused", the download is not started. To change status
  693. to "waiting", use aria2.unpause method. This method returns GID of
  694. paused download. aria2.unpause changes the status of the download
  695. denoted by gid from "paused" to "waiting". This makes the download
  696. eligible to restart. gid is of type string. This method returns
  697. GID of unpaused download.
  698. * doc/aria2c.1.txt
  699. * src/DownloadContext.cc
  700. * src/FileEntry.cc
  701. * src/OptionHandlerFactory.cc
  702. * src/RequestGroup.cc
  703. * src/RequestGroup.h
  704. * src/RequestGroupMan.cc
  705. * src/XmlRpcMethodFactory.cc
  706. * src/XmlRpcMethodImpl.cc
  707. * src/XmlRpcMethodImpl.h
  708. * src/prefs.cc
  709. * src/prefs.h
  710. * src/usage_text.h
  711. 2010-04-08 Tatsuhiro Tsujikawa <[email protected]>
  712. Added --save-session=FILE option. This option saves
  713. error/unfinished downloads to FILE on exit. You can pass this
  714. output file to aria2c with -i option on restart. Please note that
  715. downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC
  716. method are not saved.
  717. * src/BtPostDownloadHandler.cc
  718. * src/DownloadResult.h
  719. * src/Makefile.am
  720. * src/MetadataInfo.cc
  721. * src/MetadataInfo.h
  722. * src/Metalink2RequestGroup.cc
  723. * src/MetalinkPostDownloadHandler.cc
  724. * src/MultiUrlRequestInfo.cc
  725. * src/OptionHandlerFactory.cc
  726. * src/RequestGroup.cc
  727. * src/RequestGroup.h
  728. * src/SessionSerializer.cc
  729. * src/SessionSerializer.h
  730. * src/UTMetadataPostDownloadHandler.cc
  731. * src/download_helper.cc
  732. * src/download_helper.h
  733. * src/prefs.cc
  734. * src/prefs.h
  735. * src/usage_text.h
  736. * test/Makefile.am
  737. * test/SessionSerializerTest.cc
  738. * test/XmlRpcMethodTest.cc
  739. * test/serialize_session.meta4
  740. 2010-04-07 Tatsuhiro Tsujikawa <[email protected]>
  741. Fixed the bug that FTP data connection is not established via
  742. proxy when --ftp-proxy is defined and --ftp-pasv=true and
  743. --proxy-method=tunnel.
  744. * src/AbstractCommand.cc
  745. * src/AbstractCommand.h
  746. * src/FtpNegotiationCommand.cc
  747. * src/FtpNegotiationCommand.h
  748. * src/InitiateConnectionCommand.cc
  749. 2010-04-04 Tatsuhiro Tsujikawa <[email protected]>
  750. Updated po templates.
  751. * po/aria2.pot
  752. 2010-04-03 Tatsuhiro Tsujikawa <[email protected]>
  753. Bump up version number to 1.9.1
  754. * configure.ac
  755. 2010-04-03 Tatsuhiro Tsujikawa <[email protected]>
  756. Added shutdown and forceShutdown to aria2rpc
  757. * doc/xmlrpc/aria2rpc
  758. 2010-04-03 Tatsuhiro Tsujikawa <[email protected]>
  759. Changed error message.
  760. * src/XmlRpcMethod.cc
  761. 2010-04-03 Tatsuhiro Tsujikawa <[email protected]>
  762. Added bt-tracker-timeout, bt-tracker-connect-timeout,
  763. always-resume, max-resume-failure-tries and http-accept-gzip to -i
  764. list options.
  765. * doc/aria2c.1.txt
  766. * doc/xmlrpc/aria2rpc
  767. * src/download_helper.cc
  768. 2010-04-03 Tatsuhiro Tsujikawa <[email protected]>
  769. Fixed the bug that web-seed URI is not percent-encoded.
  770. * src/a2functional.h
  771. * src/bittorrent_helper.cc
  772. * test/BittorrentHelperTest.cc
  773. * test/url-list-multiFile.torrent
  774. * test/url-list-singleFileEndsWithSlash.torrent
  775. 2010-04-02 Tatsuhiro Tsujikawa <[email protected]>
  776. Added aria2.shutdown and aria2.forceShutdown XML-RPC method.
  777. These methods, as their name implies, shutdown aria2. These
  778. methods are useful for Windows because it lacks signal mechanism.
  779. * doc/aria2c.1.txt
  780. * src/TimedHaltCommand.cc
  781. * src/XmlRpcMethodFactory.cc
  782. * src/XmlRpcMethodImpl.cc
  783. * src/XmlRpcMethodImpl.h
  784. 2010-04-02 Tatsuhiro Tsujikawa <[email protected]>
  785. Added forceHalt argument to TimedHaltCommand.
  786. Added requestForceHalt() to DownloadEngine.
  787. * src/DownloadEngine.cc
  788. * src/DownloadEngine.h
  789. * src/TimedHaltCommand.cc
  790. * src/TimedHaltCommand.h
  791. 2010-04-02 Tatsuhiro Tsujikawa <[email protected]>
  792. Possible fix for chunked encoding with Content-Length.
  793. * src/HttpResponseCommand.cc
  794. 2010-04-02 Tatsuhiro Tsujikawa <[email protected]>
  795. Don't send "Accept: default, gzip" by default. This is because
  796. some server responds with "Content-Encoding: gzip" for files which
  797. itself is gzipped file and aria2 inflates them. This is a problem
  798. if user don't want to inflate the file. Apparently this is server
  799. configuration error, but I cannot do anything about this. So turn
  800. this off. Added --http-accept-gzip option. If true is given to
  801. this option, aria2 sends 'Accept: deflate, gzip' request header
  802. and inflates response if remote server responds with
  803. 'Content-Encoding: gzip' or 'Content-Encoding: deflate'. This
  804. indicates we removed extension tgz hack in order not to inflate
  805. files with tgz extensions.
  806. * doc/aria2c.1.txt
  807. * src/HttpRequest.cc
  808. * src/HttpRequest.h
  809. * src/HttpRequestCommand.cc
  810. * src/HttpResponseCommand.cc
  811. * src/OptionHandlerFactory.cc
  812. * src/prefs.cc
  813. * src/prefs.h
  814. * src/usage_text.h
  815. * test/HttpRequestTest.cc
  816. 2010-04-02 Tatsuhiro Tsujikawa <[email protected]>
  817. Made aria2 not send
  818. "application/metalink4+xml,application/metalink+xml" in Accept
  819. header for web-seeding URIs and tracker request.
  820. * src/Metalink2RequestGroup.cc
  821. * src/TrackerWatcherCommand.cc
  822. * src/download_helper.cc
  823. * src/util.cc
  824. * src/util.h
  825. 2010-04-01 Tatsuhiro Tsujikawa <[email protected]>
  826. Added download_helper.{cc,h} to SRCS
  827. * src/Makefile.am
  828. * test/Makefile.am
  829. 2010-03-30 Tatsuhiro Tsujikawa <[email protected]>
  830. Added --dht-message-timeout option.
  831. * doc/aria2c.1.txt
  832. * src/DHTConstants.h
  833. * src/DHTMessageDispatcherImpl.cc
  834. * src/DHTMessageDispatcherImpl.h
  835. * src/DHTMessageTracker.cc
  836. * src/DHTMessageTracker.h
  837. * src/DHTReplaceNodeTask.h
  838. * src/DHTSetup.cc
  839. * src/DHTTaskFactoryImpl.cc
  840. * src/DHTTaskFactoryImpl.h
  841. * src/OptionHandlerFactory.cc
  842. * src/prefs.cc
  843. * src/prefs.h
  844. * src/usage_text.h
  845. * test/DHTMessageTrackerTest.cc
  846. 2010-03-30 Tatsuhiro Tsujikawa <[email protected]>
  847. Added --bt-tracker-connect-timeout and --bt-tracker-timeout
  848. option.
  849. * doc/aria2c.1.txt
  850. * src/OptionHandlerFactory.cc
  851. * src/TrackerWatcherCommand.cc
  852. * src/prefs.cc
  853. * src/prefs.h
  854. * src/usage_text.h
  855. 2010-03-30 Tatsuhiro Tsujikawa <[email protected]>
  856. Documented that specifying --seed-time=0 disables seeding after
  857. download completed.
  858. * doc/aria2c.1.txt
  859. 2010-03-30 Tatsuhiro Tsujikawa <[email protected]>
  860. Code cleanup
  861. * src/BtSetup.cc
  862. 2010-03-30 Tatsuhiro Tsujikawa <[email protected]>
  863. Drop connection if same Peer ID has been already seen.
  864. * src/DefaultBtInteractive.cc
  865. 2010-03-29 Tatsuhiro Tsujikawa <[email protected]>
  866. Fixed the bug that waiting download unintentionally starts when
  867. URIs are added to it using aria2.changeUri XML-RPC method. This
  868. also fixes the bug that causes segmentation fault when adding URIs
  869. to waiting download, which is a regression introduced by the
  870. previous change made to src/XmlRpcMethodImpl.cc
  871. * src/XmlRpcMethodImpl.cc
  872. 2010-03-29 Tatsuhiro Tsujikawa <[email protected]>
  873. Fixed compile error with g++-4.4 on FreeBSD.
  874. * src/util.h
  875. 2010-03-28 Tatsuhiro Tsujikawa <[email protected]>
  876. Fixed the bug that added URI using aria2.changeUri XML-RPC method
  877. is not used immediately if there is no URIs remaining before
  878. calling aria2.changeUri and the number of connection is less than
  879. the value in -s(or -C for Metalink downloads).
  880. * src/XmlRpcMethodImpl.cc
  881. 2010-03-28 Tatsuhiro Tsujikawa <[email protected]>
  882. Documented --always-resume and --max-resume-failure-tries option
  883. and exit status 8 in man page. Fixed typo.
  884. * doc/aria2c.1.txt
  885. * src/OptionHandlerFactory.cc
  886. 2010-03-28 Tatsuhiro Tsujikawa <[email protected]>
  887. Added --always-resume and --max-resume-failure-tries option. If
  888. --always-resume=false is given, when all given URIs does not
  889. support resume or aria2 encounters N URIs which does not support
  890. resume
  891. (N is the value specified using --max-resume-failure-tries
  892. option), aria2 download file from scratch. The default behavior
  893. is --always-resume=true, which means if all URIs do not support
  894. resume, download fails. I think this is OK because user normally
  895. don't like to see that partially downloaded file is
  896. overwritten(this is particularly true if file size is big). This
  897. option is useful when aria2 is used as download backend and
  898. graceful falling back to overwritten behavior is preferable.
  899. Added exit status value 8, which means download failed because
  900. server did not support resume.
  901. * src/AbstractCommand.cc
  902. * src/DefaultPieceStorage.cc
  903. * src/DownloadCommand.cc
  904. * src/DownloadResultCode.h
  905. * src/FileEntry.h
  906. * src/FtpNegotiationCommand.cc
  907. * src/HttpResponse.cc
  908. * src/HttpResponseCommand.cc
  909. * src/OptionHandlerFactory.cc
  910. * src/RequestGroup.cc
  911. * src/RequestGroup.h
  912. * src/SegmentMan.cc
  913. * src/SegmentMan.h
  914. * src/prefs.cc
  915. * src/prefs.h
  916. * src/usage_text.h
  917. * test/DefaultPieceStorageTest.cc
  918. * test/SegmentManTest.cc
  919. 2010-03-25 Tatsuhiro Tsujikawa <[email protected]>
  920. Added --remove-control-file option to -i list options.
  921. * doc/aria2c.1.txt
  922. * doc/xmlrpc/aria2rpc
  923. * src/download_helper.cc
  924. 2010-03-25 Tatsuhiro Tsujikawa <[email protected]>
  925. Added --remove-control-file option. This option removes control
  926. file(*.aria2 file) before download. Using with
  927. --allow-overwrite=true, download always starts from scratch. This
  928. will be useful for users behind proxy server which disables
  929. resume. For such proxy user, -C1 is also recommended for Metalink
  930. downloads to avoid establishing unnecessary connections.
  931. * doc/aria2c.1.txt
  932. * src/OptionHandlerFactory.cc
  933. * src/RequestGroup.cc
  934. * src/prefs.cc
  935. * src/prefs.h
  936. * src/usage_text.h
  937. 2010-03-25 Tatsuhiro Tsujikawa <[email protected]>
  938. Removed arrayLength. Defined A2_ARRAY_LEN as macro to calculate
  939. size of array at compile time.
  940. * src/array_fun.h
  941. * test/BitfieldManTest.cc
  942. * test/BtPortMessageTest.cc
  943. * test/DHTRoutingTableDeserializerTest.cc
  944. * test/DHTRoutingTableSerializerTest.cc
  945. * test/DownloadHelperTest.cc
  946. * test/LongestSequencePieceSelectorTest.cc
  947. * test/MultiDiskAdaptorTest.cc
  948. * test/OptionParserTest.cc
  949. * test/PriorityPieceSelectorTest.cc
  950. * test/array_funTest.cc
  951. 2010-03-25 Tatsuhiro Tsujikawa <[email protected]>
  952. Added vbegin() and vend() for fixed sized array.
  953. * src/DownloadHandlerConstants.cc
  954. * src/FeatureConfig.cc
  955. * src/OptionHandlerFactory.cc
  956. * src/ServerStat.cc
  957. * src/TimeA2.cc
  958. * src/XmlRpcMethod.cc
  959. * src/array_fun.h
  960. * src/download_helper.cc
  961. * src/messageDigest.cc
  962. * src/util.cc
  963. * test/BittorrentHelperTest.cc
  964. * test/DHTRoutingTableDeserializerTest.cc
  965. * test/DHTRoutingTableSerializerTest.cc
  966. * test/DefaultBtAnnounceTest.cc
  967. * test/DefaultBtProgressInfoFileTest.cc
  968. * test/DownloadContextTest.cc
  969. * test/DownloadHelperTest.cc
  970. * test/FeatureConfigTest.cc
  971. * test/FeedbackURISelectorTest.cc
  972. * test/HttpRequestTest.cc
  973. * test/InOrderURISelectorTest.cc
  974. * test/MSEHandshakeTest.cc
  975. * test/MultiDiskAdaptorTest.cc
  976. * test/MultiFileAllocationIteratorTest.cc
  977. * test/PriorityPieceSelectorTest.cc
  978. * test/RequestGroupManTest.cc
  979. * test/UtilTest.cc
  980. * test/XmlRpcMethodTest.cc
  981. * test/a2algoTest.cc
  982. * test/array_funTest.cc
  983. 2010-03-24 Tatsuhiro Tsujikawa <[email protected]>
  984. Simplified code using lastByteMask
  985. * src/BitfieldMan.cc
  986. * src/PieceStatMan.cc
  987. 2010-03-24 Tatsuhiro Tsujikawa <[email protected]>
  988. Rewritten lastByteMask
  989. * src/bitfield.h
  990. 2010-03-23 Tatsuhiro Tsujikawa <[email protected]>
  991. Redefined the maximum length of buffer used for HTTP header.
  992. * src/HttpHeaderProcessor.cc
  993. 2010-03-22 Tatsuhiro Tsujikawa <[email protected]>
  994. Code cleanup
  995. * src/SleepCommand.cc
  996. 2010-03-22 Tatsuhiro Tsujikawa <[email protected]>
  997. Do exact match if IP address is specified in --no-proxy.
  998. * src/AbstractCommand.cc
  999. 2010-03-22 Tatsuhiro Tsujikawa <[email protected]>
  1000. Fixed the bug that socket is added to EventPoll object twice. This
  1001. is because derived class FtpFinishDownloadCommand adds socket to
  1002. EventPoll object while base class AbstractCommand does that
  1003. already.
  1004. * src/FtpFinishDownloadCommand.cc
  1005. * src/FtpFinishDownloadCommand.h
  1006. 2010-03-21 Tatsuhiro Tsujikawa <[email protected]>
  1007. Defined gid_t as int64_t.
  1008. * src/BtDependency.cc
  1009. * src/BtStopDownloadCommand.cc
  1010. * src/FtpNegotiationCommand.cc
  1011. * src/HttpResponseCommand.cc
  1012. * src/RequestGroup.cc
  1013. * src/RequestGroup.h
  1014. * src/RequestGroupMan.cc
  1015. * src/TrackerWatcherCommand.cc
  1016. * src/XmlRpcMethodImpl.cc
  1017. * src/message.h
  1018. * test/XmlRpcMethodTest.cc
  1019. 2010-03-21 Tatsuhiro Tsujikawa <[email protected]>
  1020. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  1021. translatable texts because it is used in log and debugging
  1022. purpose.
  1023. * src/AbstractCommand.cc
  1024. * src/ActivePeerConnectionCommand.cc
  1025. * src/BtPieceMessage.cc
  1026. * src/CUIDCounter.h
  1027. * src/CheckIntegrityCommand.cc
  1028. * src/CheckIntegrityDispatcherCommand.cc
  1029. * src/Command.h
  1030. * src/CreateRequestCommand.cc
  1031. * src/DHTEntryPointNameResolveCommand.cc
  1032. * src/DefaultBtInteractive.cc
  1033. * src/DefaultBtMessageDispatcher.cc
  1034. * src/DownloadCommand.cc
  1035. * src/FileAllocationCommand.cc
  1036. * src/FileAllocationDispatcherCommand.cc
  1037. * src/FtpConnection.cc
  1038. * src/FtpInitiateConnectionCommand.cc
  1039. * src/FtpNegotiationCommand.cc
  1040. * src/HttpConnection.cc
  1041. * src/HttpInitiateConnectionCommand.cc
  1042. * src/HttpListenCommand.cc
  1043. * src/HttpResponse.cc
  1044. * src/HttpServerBodyCommand.cc
  1045. * src/HttpServerCommand.cc
  1046. * src/HttpServerResponseCommand.cc
  1047. * src/InitiateConnectionCommand.cc
  1048. * src/InitiatorMSEHandshakeCommand.cc
  1049. * src/MSEHandshake.cc
  1050. * src/PeerAbstractCommand.cc
  1051. * src/PeerConnection.cc
  1052. * src/PeerInitiateConnectionCommand.cc
  1053. * src/PeerInteractionCommand.cc
  1054. * src/PeerListenCommand.cc
  1055. * src/PeerReceiveHandshakeCommand.cc
  1056. * src/SegmentMan.cc
  1057. * src/SimpleBtMessage.cc
  1058. * src/TrackerWatcherCommand.cc
  1059. * src/message.h
  1060. 2010-03-20 Tatsuhiro Tsujikawa <[email protected]>
  1061. Use gid_t type for gid.
  1062. * src/BtRegistry.cc
  1063. * src/BtRegistry.h
  1064. * src/DownloadResult.h
  1065. * src/RequestGroup.cc
  1066. * src/RequestGroup.h
  1067. * src/RequestGroupMan.cc
  1068. * src/RequestGroupMan.h
  1069. * src/XmlRpcMethodImpl.cc
  1070. 2010-03-20 Tatsuhiro Tsujikawa <[email protected]>
  1071. Use cuid_t type for cuid.
  1072. 2010-03-20 Tatsuhiro Tsujikawa <[email protected]>
  1073. Added v key in DHT message. aria2's DHT version is independent of
  1074. the package version and we defined it as 1 at the moment. It is
  1075. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  1076. scheme is "A2"+2bytes DHT version number in network byte order.
  1077. * src/DHTAbstractMessage.cc
  1078. * src/DHTConstants.h
  1079. * src/DHTMessage.cc
  1080. * src/DHTMessage.h
  1081. * src/DHTMessageFactoryImpl.cc
  1082. * src/DHTQueryMessage.cc
  1083. * src/DHTResponseMessage.cc
  1084. * src/util.h
  1085. * test/DHTAnnouncePeerMessageTest.cc
  1086. * test/DHTAnnouncePeerReplyMessageTest.cc
  1087. * test/DHTFindNodeMessageTest.cc
  1088. * test/DHTFindNodeReplyMessageTest.cc
  1089. * test/DHTGetPeersMessageTest.cc
  1090. * test/DHTGetPeersReplyMessageTest.cc
  1091. * test/DHTPingMessageTest.cc
  1092. * test/DHTPingReplyMessageTest.cc
  1093. 2010-03-19 Tatsuhiro Tsujikawa <[email protected]>
  1094. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  1095. method response is integer, while manual says it is string. When
  1096. peer's port is not listening port, set '0' to port in
  1097. aria2.getPeers response.
  1098. * src/XmlRpcMethodImpl.cc
  1099. 2010-03-19 Tatsuhiro Tsujikawa <[email protected]>
  1100. Lines starting "#" in -i list are treated as comments.
  1101. Example:
  1102. # this is comment
  1103. http://example.org/file
  1104. http://example.org/file2
  1105. dir=/tmp
  1106. # another comment
  1107. out=myfile
  1108. * doc/aria2c.1.txt
  1109. * src/UriListParser.cc
  1110. * test/filelist1.txt
  1111. 2010-03-19 Tatsuhiro Tsujikawa <[email protected]>
  1112. Accept IPv4 network address with CIDR block in --no-proxy option
  1113. and no_proxy environment variable. Current implementation does
  1114. not resolve hostname in URI to compare network address. So it is
  1115. only effecive if URI has numeric IP addresses.
  1116. * doc/aria2c.1.txt
  1117. * src/AbstractCommand.cc
  1118. * src/OptionHandlerFactory.cc
  1119. * src/bitfield.h
  1120. * src/usage_text.h
  1121. * src/util.cc
  1122. * src/util.h
  1123. * test/UtilTest.cc
  1124. * test/bitfieldTest.cc
  1125. 2010-03-19 Tatsuhiro Tsujikawa <[email protected]>
  1126. Reduced interval for metadatagetmode to quickly gather metadata.
  1127. * src/BtSetup.cc
  1128. 2010-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1129. Release 1.9.0
  1130. 2010-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1131. Updated po templates.
  1132. * po/aria2.pot
  1133. 2010-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1134. Updated doc.
  1135. * doc/aria2c.1.txt
  1136. 2010-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1137. Documented about Metalink4 and LPD in README
  1138. * RADME
  1139. 2010-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1140. Few adjustment for timeouts in DHT. DHT message timeout is changed
  1141. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  1142. it adds another 5 seconds in each retry.
  1143. * src/DHTConstants.h
  1144. * src/DHTGetPeersCommand.cc
  1145. * src/DHTGetPeersCommand.h
  1146. 2010-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1147. Changed log level from error to info for DHT message send error.
  1148. * src/DHTMessageDispatcherImpl.cc
  1149. 2010-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1150. Inspect all xt in magnet to find urn:btih.
  1151. * src/bittorrent_helper.cc
  1152. * test/BittorrentHelperTest.cc
  1153. 2010-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1154. Use global option for DHTSetup.
  1155. * src/DHTSetup.cc
  1156. * src/DHTSetup.h
  1157. * src/RequestGroup.cc
  1158. 2010-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1159. Added bt-enable-lpt, reuse-uri
  1160. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  1161. options.
  1162. * doc/aria2c.1.txt
  1163. * doc/xmlrpc/aria2rpc
  1164. * src/download_helper.cc
  1165. 2010-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1166. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  1167. * src/BtSetup.cc
  1168. 2010-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1169. Resurrected --http-proxy-user and --http-proxy-passwd option.
  1170. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  1171. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  1172. * doc/aria2c.1.txt
  1173. * src/OptionHandlerFactory.cc
  1174. * src/OptionHandlerImpl.h
  1175. * src/prefs.cc
  1176. * src/prefs.h
  1177. * src/usage_text.h
  1178. * test/OptionHandlerTest.cc
  1179. 2010-03-10 Tatsuhiro Tsujikawa <[email protected]>
  1180. Updated Russian and Simplified Chinese translation. Thanks to all
  1181. translators.
  1182. * po/ru.po
  1183. * po/zh_CN.po
  1184. 2010-03-10 Tatsuhiro Tsujikawa <[email protected]>
  1185. Updated po templates.
  1186. * po/aria2.pot
  1187. 2010-03-09 Tatsuhiro Tsujikawa <[email protected]>
  1188. For LPD sockets, bind IN_ADDRANY because binding multicast address
  1189. fails under Windows.
  1190. * src/LpdMessageReceiver.cc
  1191. * test/LpdMessageDispatcherTest.cc
  1192. 2010-03-09 Tatsuhiro Tsujikawa <[email protected]>
  1193. Fixed the bug that error message is not propagated to Exception.
  1194. * src/SocketCore.cc
  1195. 2010-03-09 Tatsuhiro Tsujikawa <[email protected]>
  1196. Documented --bt-lpd-interface option in man page.
  1197. * doc/aria2c.1.txt
  1198. 2010-03-09 Tatsuhiro Tsujikawa <[email protected]>
  1199. Bump up version number to 1.9.0
  1200. * configure.ac
  1201. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1202. Fixed the bug that FillRequestGroupCommand is not invoked when
  1203. RequestGroupMan::createInitialCommand() creates no Command object.
  1204. * src/FillRequestGroupCommand.cc
  1205. * src/RequestGroupMan.cc
  1206. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1207. Added debug logs.
  1208. * src/FileEntry.cc
  1209. * src/SegmentMan.cc
  1210. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1211. Fixed unit test error with mingw32 build.
  1212. * test/LpdMessageReceiverTest.cc
  1213. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1214. Updated automake-1.11.1
  1215. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1216. Fixed compile error and unit test error without openssl and
  1217. gnutls.
  1218. * src/MetalinkParserController.cc
  1219. * test/MetalinkProcessorTest.cc
  1220. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1221. Fixed unitest fails if openssl doesn't support sha-256.
  1222. * src/MetalinkParserStateV4Impl.cc
  1223. * test/MetalinkProcessorTest.cc
  1224. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1225. Wait until message arrives(again)
  1226. * test/LpdMessageReceiverTest.cc
  1227. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1228. Added missing wallclock.h to SRCS.
  1229. * src/Makefile.am
  1230. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1231. Fixed compile error with --disable-bittorrent
  1232. * test/Metalink2RequestGroupTest.cc
  1233. * test/MetalinkParserControllerTest.cc
  1234. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1235. Added --reuse-uri option. This option has existed quite long, but
  1236. been hidden.
  1237. * doc/aria2c.1.txt
  1238. * src/OptionHandlerFactory.cc
  1239. * src/usage_text.h
  1240. 2010-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1241. Ignore filename parameter if it contains directory traversal
  1242. directives.
  1243. * src/util.cc
  1244. * test/UtilTest.cc
  1245. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1246. urldecode -> percentDecode
  1247. * src/FtpConnection.cc
  1248. * src/FtpNegotiationCommand.cc
  1249. * src/HttpResponse.cc
  1250. * src/Request.cc
  1251. * src/magnet.cc
  1252. * src/util.cc
  1253. * src/util.h
  1254. * test/UtilTest.cc
  1255. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1256. urlencode -> percentEncode,
  1257. torrentUrlencode -> torrentPercentEncode
  1258. * src/BtHandshakeMessage.cc
  1259. * src/BtHandshakeMessageValidator.h
  1260. * src/DHTMessageFactoryImpl.cc
  1261. * src/DefaultBtAnnounce.cc
  1262. * src/HandshakeExtensionMessage.cc
  1263. * src/HttpRequest.cc
  1264. * src/XmlRpcMethodImpl.cc
  1265. * src/bittorrent_helper.cc
  1266. * src/util.cc
  1267. * src/util.h
  1268. * test/DHTAnnouncePeerMessageTest.cc
  1269. * test/DHTGetPeersMessageTest.cc
  1270. * test/DHTGetPeersReplyMessageTest.cc
  1271. * test/UTPexExtensionMessageTest.cc
  1272. * test/UtilTest.cc
  1273. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1274. Fixed the bug that filename is percent encoded where it must be
  1275. percent decoded in sendMdtm().
  1276. * src/FtpConnection.cc
  1277. * test/FtpConnectionTest.cc
  1278. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1279. url -> uri in Request class.
  1280. * src/AbstractCommand.cc
  1281. * src/AdaptiveURISelector.cc
  1282. * src/DefaultBtAnnounce.cc
  1283. * src/FeedbackURISelector.cc
  1284. * src/FileEntry.cc
  1285. * src/FileEntry.h
  1286. * src/HttpRequest.h
  1287. * src/HttpResponse.cc
  1288. * src/InitiateConnectionCommandFactory.cc
  1289. * src/Metalink2RequestGroup.cc
  1290. * src/OptionHandlerImpl.h
  1291. * src/ProtocolDetector.cc
  1292. * src/Request.cc
  1293. * src/Request.h
  1294. * src/XmlRpcMethodImpl.cc
  1295. * test/AuthConfigFactoryTest.cc
  1296. * test/FtpConnectionTest.cc
  1297. * test/HttpRequestTest.cc
  1298. * test/HttpResponseTest.cc
  1299. * test/RequestTest.cc
  1300. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1301. Added getServers XML-RPC method.
  1302. * doc/aria2c.1.txt
  1303. * src/FileEntry.h
  1304. * src/XmlRpcMethodFactory.cc
  1305. * src/XmlRpcMethodImpl.cc
  1306. * src/XmlRpcMethodImpl.h
  1307. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1308. Pool request when download finished.
  1309. * src/DownloadCommand.cc
  1310. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1311. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  1312. 1-based.
  1313. * doc/aria2c.1.txt
  1314. * src/XmlRpcMethodImpl.cc
  1315. * test/XmlRpcMethodTest.cc
  1316. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1317. Call RequestGroupMan::requestQueueCheck() when
  1318. max-concurrent-downloads option is changed or new downloads are
  1319. added/inserted into reserved list.
  1320. * src/RequestGroupMan.cc
  1321. * src/XmlRpcMethodImpl.cc
  1322. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1323. Added aria2.forceRemove XML-RPC method.
  1324. * doc/aria2c.1.txt
  1325. * src/XmlRpcMethodFactory.cc
  1326. * src/XmlRpcMethodImpl.cc
  1327. * src/XmlRpcMethodImpl.h
  1328. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1329. Added debug log.
  1330. * src/AbstractCommand.cc
  1331. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1332. Create CreateRequestCommand to the number of -s/-C when URIs are
  1333. added by XML-RPC.
  1334. * src/RequestGroup.cc
  1335. * src/RequestGroup.h
  1336. * src/XmlRpcMethodImpl.cc
  1337. 2010-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1338. Added 'status' key to the response of getUri XML-RPC method.
  1339. * doc/aria2c.1.txt
  1340. * src/XmlRpcMethodImpl.cc
  1341. 2010-03-06 Tatsuhiro Tsujikawa <[email protected]>
  1342. Replaced Time::reset() call with assigning of global::wallclock.
  1343. * src/BtLeecherStateChoke.cc
  1344. * src/BtSeederStateChoke.cc
  1345. * src/PeerSessionResource.cc
  1346. * src/RequestSlot.cc
  1347. * src/ServerStat.cc
  1348. * src/SpeedCalc.cc
  1349. 2010-03-06 Tatsuhiro Tsujikawa <[email protected]>
  1350. Added changeUri XML-RPC method. This method removes/adds URIs
  1351. dynamically.
  1352. * doc/aria2c.1.txt
  1353. * src/AbstractCommand.cc
  1354. * src/DownloadContext.cc
  1355. * src/DownloadContext.h
  1356. * src/FileEntry.cc
  1357. * src/FileEntry.h
  1358. * src/Request.cc
  1359. * src/Request.h
  1360. * src/RequestGroup.cc
  1361. * src/RequestGroupMan.cc
  1362. * src/XmlRpcMethodFactory.cc
  1363. * src/XmlRpcMethodImpl.cc
  1364. * src/XmlRpcMethodImpl.h
  1365. * test/FileEntryTest.cc
  1366. * test/XmlRpcMethodTest.cc
  1367. 2010-03-06 Tatsuhiro Tsujikawa <[email protected]>
  1368. Rewritten copy ctor of RequestSlot to use initialization list.
  1369. * src/RequestSlot.h
  1370. 2010-03-06 Tatsuhiro Tsujikawa <[email protected]>
  1371. Added Time global::wallclock to cache "current time" to reduce the
  1372. call gettimeofday(). Global variables are now in namespace global.
  1373. * src/AbstractCommand.cc
  1374. * src/ActivePeerConnectionCommand.cc
  1375. * src/AdaptiveURISelector.cc
  1376. * src/BtLeecherStateChoke.cc
  1377. * src/BtLeecherStateChoke.h
  1378. * src/BtSeederStateChoke.cc
  1379. * src/BtSeederStateChoke.h
  1380. * src/BtStopDownloadCommand.cc
  1381. * src/ConsoleStatCalc.cc
  1382. * src/DHTBucket.cc
  1383. * src/DHTGetPeersCommand.cc
  1384. * src/DHTMessageTrackerEntry.cc
  1385. * src/DHTNode.cc
  1386. * src/DHTPeerAnnounceEntry.cc
  1387. * src/DHTPeerAnnounceStorage.cc
  1388. * src/DHTSetup.cc
  1389. * src/DefaultBtAnnounce.cc
  1390. * src/DefaultBtInteractive.cc
  1391. * src/DefaultBtMessageDispatcher.cc
  1392. * src/DefaultPeerStorage.cc
  1393. * src/DefaultPieceStorage.cc
  1394. * src/DownloadCommand.cc
  1395. * src/DownloadEngine.cc
  1396. * src/FileEntry.cc
  1397. * src/HttpServerBodyCommand.cc
  1398. * src/HttpServerCommand.cc
  1399. * src/HttpServerResponseCommand.cc
  1400. * src/LpdMessageDispatcher.cc
  1401. * src/MultiUrlRequestInfo.cc
  1402. * src/Peer.cc
  1403. * src/Peer.h
  1404. * src/PeerAbstractCommand.cc
  1405. * src/PeerStat.h
  1406. * src/RequestSlot.cc
  1407. * src/RequestSlot.h
  1408. * src/SegmentMan.cc
  1409. * src/ServerStatMan.cc
  1410. * src/SleepCommand.cc
  1411. * src/SpeedCalc.cc
  1412. * src/SpeedCalc.h
  1413. * src/TimeA2.cc
  1414. * src/TimeA2.h
  1415. * src/TimeBasedCommand.cc
  1416. * src/TimeSeedCriteria.h
  1417. * src/UTMetadataRequestTracker.h
  1418. * src/UTPexExtensionMessage.cc
  1419. * src/wallclock.h
  1420. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1421. Fixed the bug that util::itos(INT64_MIN) fails.
  1422. * src/util.cc
  1423. * src/util.h
  1424. * test/UtilTest.cc
  1425. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1426. Fixed memory leak in SocketBuffer when _bufq is not empty when
  1427. SocketBuffer is deleted. Added BufEntry constructor and deleted
  1428. static factory functions.
  1429. * src/SocketBuffer.cc
  1430. * src/SocketBuffer.h
  1431. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1432. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  1433. queue maintenance is requested by RequestGroup to avoid to call
  1434. the function unnecessarily.
  1435. * src/FillRequestGroupCommand.cc
  1436. * src/RequestGroup.cc
  1437. * src/RequestGroup.h
  1438. * src/RequestGroupMan.cc
  1439. * src/RequestGroupMan.h
  1440. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1441. Don't use hash for Peer::id. Simple concatenation of ip address
  1442. and port is enough.
  1443. * src/Peer.cc
  1444. * test/PeerTest.cc
  1445. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1446. Enclosed log of DHTMessage::toString() with Logger::info().
  1447. * src/DHTMessageDispatcherImpl.cc
  1448. * src/DHTMessageReceiver.cc
  1449. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1450. Rewritten util::toHex().
  1451. * src/util.cc
  1452. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1453. Removed SocketBuffer::feedAndSend(). Renamed
  1454. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  1455. * src/FtpConnection.cc
  1456. * src/HttpConnection.cc
  1457. * src/HttpServer.cc
  1458. * src/MSEHandshake.cc
  1459. * src/PeerConnection.cc
  1460. * src/SocketBuffer.cc
  1461. * src/SocketBuffer.h
  1462. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1463. Removed unused PeerConnection::sendMessage(). Updated doc.
  1464. * src/PeerConnection.cc
  1465. * src/PeerConnection.h
  1466. 2010-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1467. Reduced copying/std::string instantiation in sending/receiving
  1468. BitTorrent messages.
  1469. * src/BtBitfieldMessage.cc
  1470. * src/BtBitfieldMessage.h
  1471. * src/BtExtendedMessage.cc
  1472. * src/BtExtendedMessage.h
  1473. * src/BtHandshakeMessage.cc
  1474. * src/BtHandshakeMessage.h
  1475. * src/BtKeepAliveMessage.cc
  1476. * src/BtKeepAliveMessage.h
  1477. * src/BtPieceMessage.cc
  1478. * src/BtPieceMessage.h
  1479. * src/BtPortMessage.cc
  1480. * src/BtPortMessage.h
  1481. * src/BtUnchokeMessage.h
  1482. * src/DefaultBtMessageReceiver.cc
  1483. * src/IndexBtMessage.cc
  1484. * src/IndexBtMessage.h
  1485. * src/PeerConnection.cc
  1486. * src/PeerConnection.h
  1487. * src/RangeBtMessage.cc
  1488. * src/RangeBtMessage.h
  1489. * src/SimpleBtMessage.cc
  1490. * src/SimpleBtMessage.h
  1491. * src/SocketBuffer.cc
  1492. * src/SocketBuffer.h
  1493. * src/ZeroBtMessage.cc
  1494. * src/ZeroBtMessage.h
  1495. * test/BtAllowedFastMessageTest.cc
  1496. * test/BtBitfieldMessageTest.cc
  1497. * test/BtCancelMessageTest.cc
  1498. * test/BtChokeMessageTest.cc
  1499. * test/BtExtendedMessageTest.cc
  1500. * test/BtHandshakeMessageTest.cc
  1501. * test/BtHaveAllMessageTest.cc
  1502. * test/BtHaveMessageTest.cc
  1503. * test/BtHaveNoneMessageTest.cc
  1504. * test/BtInterestedMessageTest.cc
  1505. * test/BtKeepAliveMessageTest.cc
  1506. * test/BtNotInterestedMessageTest.cc
  1507. * test/BtPieceMessageTest.cc
  1508. * test/BtPortMessageTest.cc
  1509. * test/BtRejectMessageTest.cc
  1510. * test/BtRequestMessageTest.cc
  1511. * test/BtSuggestPieceMessageTest.cc
  1512. * test/BtUnchokeMessageTest.cc
  1513. 2010-03-03 Tatsuhiro Tsujikawa <[email protected]>
  1514. Rewritten SocketBuffer. Old implementation uses single std::string
  1515. to store data and erase sent data, which is costly. New
  1516. implementation uses deque to hold each data to avoid to mutate
  1517. string.
  1518. * src/SocketBuffer.cc
  1519. * src/SocketBuffer.h
  1520. 2010-03-03 Tatsuhiro Tsujikawa <[email protected]>
  1521. Removed unused FileEntry::extracted
  1522. * src/FileEntry.cc
  1523. * src/FileEntry.h
  1524. 2010-03-03 Tatsuhiro Tsujikawa <[email protected]>
  1525. Wait until data arrives.
  1526. * test/LpdMessageReceiverTest.cc
  1527. 2010-03-03 Tatsuhiro Tsujikawa <[email protected]>
  1528. In Metalink4, if size element contains invalid size, discard whole
  1529. document. Added strict hash value check for metalink3/4.
  1530. * src/MetalinkParserController.cc
  1531. * src/MetalinkParserStateMachine.cc
  1532. * src/MetalinkParserStateMachine.h
  1533. * src/MetalinkParserStateV3Impl.cc
  1534. * src/MetalinkParserStateV4Impl.cc
  1535. * src/util.cc
  1536. * src/util.h
  1537. * test/MetalinkParserControllerTest.cc
  1538. * test/MetalinkProcessorTest.cc
  1539. * test/metalink4.xml
  1540. 2010-03-02 Tatsuhiro Tsujikawa <[email protected]>
  1541. Added strict attribute validation for metalink4. When
  1542. specification violation is found, discard the whole document.
  1543. * src/ExpatMetalinkProcessor.cc
  1544. * src/MetalinkParserStateMachine.cc
  1545. * src/MetalinkParserStateMachine.h
  1546. * src/MetalinkParserStateV4Impl.cc
  1547. * src/XML2SAXMetalinkProcessor.cc
  1548. * test/Makefile.am
  1549. * test/MetalinkProcessorTest.cc
  1550. * test/metalink4-attrs.xml: Removed
  1551. * test/metalink4-dirtraversal.xml: Removed
  1552. 2010-03-02 Tatsuhiro Tsujikawa <[email protected]>
  1553. Added test for Metaurl transaction.
  1554. * src/MetalinkParserController.cc
  1555. * test/MetalinkParserControllerTest.cc
  1556. 2010-03-02 Tatsuhiro Tsujikawa <[email protected]>
  1557. Avoid costly BtMessage::toString() if info level log is not
  1558. required.
  1559. * src/DefaultBtInteractive.cc
  1560. * src/Logger.h
  1561. * src/SimpleBtMessage.cc
  1562. 2010-03-02 Tatsuhiro Tsujikawa <[email protected]>
  1563. Reserved vector elements based on profiler results.
  1564. * src/DefaultBtInteractive.cc
  1565. * src/DefaultBtProgressInfoFile.cc
  1566. 2010-03-01 Tatsuhiro Tsujikawa <[email protected]>
  1567. Avoid to calculate end() iterator in each loop. std::deque is
  1568. particularly slow. Make sure that recalculate end iterator if
  1569. element is erased during loop.
  1570. 2010-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1571. Use vector instead of deque for containers which is used for
  1572. mostly read-only purpose.
  1573. 2010-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1574. Fixed typo
  1575. * test/Makefile.am
  1576. 2010-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1577. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  1578. * test/Makefile.am
  1579. 2010-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1580. Small optimization: In updateTransferStatFor(), don't search peer
  1581. ID twice.
  1582. * src/DefaultPeerStorage.cc
  1583. 2010-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1584. Use vector instead of deque for MetalinkEntry and MetalinkResource
  1585. objects.
  1586. * src/Metalink2RequestGroup.cc
  1587. * src/Metalink2RequestGroup.h
  1588. * src/MetalinkEntry.cc
  1589. * src/MetalinkEntry.h
  1590. * src/MetalinkHelper.cc
  1591. * src/MetalinkHelper.h
  1592. * src/Metalinker.cc
  1593. * src/Metalinker.h
  1594. * src/main.cc
  1595. * test/MetalinkEntryTest.cc
  1596. * test/MetalinkHelperTest.cc
  1597. * test/MetalinkProcessorTest.cc
  1598. * test/MetalinkerTest.cc
  1599. 2010-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1600. Fixed the bug that grouped FileEntry objects are not used but
  1601. instead all FileEntry objects are used for each metaurl group.
  1602. * src/Metalink2RequestGroup.cc
  1603. * test/Metalink2RequestGroupTest.cc
  1604. * test/metalink4-groupbymetaurl.xml
  1605. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1606. Use vector instead of deque for ChunkChecksum.
  1607. * src/ChunkChecksum.h
  1608. * src/MetalinkParserController.cc
  1609. * src/MetalinkParserController.h
  1610. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1611. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  1612. algorithm in Metalink properly
  1613. * src/MetalinkParserController.cc
  1614. * src/MetalinkParserController.h
  1615. * src/messageDigest.cc
  1616. * src/messageDigest.h
  1617. * test/MetalinkProcessorTest.cc
  1618. * test/metalink4.xml
  1619. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1620. Replaced null or control characters in file path with '_'. For
  1621. MinGW32 build, additional characters which is not allowed in
  1622. Windows kernel are also replaced. util::detectDirTraversal() now
  1623. returns true if given string contains null or control characters.
  1624. * src/DownloadContext.cc
  1625. * src/DownloadContext.h
  1626. * src/Metalink2RequestGroup.cc
  1627. * src/MetalinkParserController.cc
  1628. * src/bittorrent_helper.cc
  1629. * src/util.cc
  1630. * src/util.h
  1631. * test/UtilTest.cc
  1632. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1633. Discard metalink:file if its name attribute is empty string.
  1634. Removed FileEntry instantiation in
  1635. MetalinkParserController::setFileLengthOfEntry()
  1636. * src/MetalinkParserController.cc
  1637. * src/MetalinkParserStateV3Impl.cc
  1638. * src/MetalinkParserStateV4Impl.cc
  1639. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1640. Discard torrent file if path data in it contains directory
  1641. traversal directives. Discard metalink:file element in Metalink3
  1642. format if its name attribute contains directory traversal
  1643. directives. Ignore name attribute of metalink:signature element
  1644. in Metalink3 format if it contains directory traversal directives.
  1645. * src/MetalinkParserStateV3Impl.cc
  1646. * src/bittorrent_helper.cc
  1647. * src/message.h
  1648. * test/BittorrentHelperTest.cc
  1649. * test/Makefile.am
  1650. * test/MetalinkProcessorTest.cc
  1651. * test/metalink3-dirtraversal.xml
  1652. * test/test.xml
  1653. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1654. Removed useless comment
  1655. * src/MetalinkParserStateV4Impl.cc
  1656. 2010-02-27 Tatsuhiro Tsujikawa <[email protected]>
  1657. Supported name attribute of metalink::metaurl element and
  1658. multi-file torrent with Metalink4. Files with same metaurl are
  1659. grouped and downloaded in one RequestGroup.
  1660. * src/BtDependency.cc
  1661. * src/FileEntry.h
  1662. * src/Metalink2RequestGroup.cc
  1663. * src/Metalink2RequestGroup.h
  1664. * src/MetalinkEntry.cc
  1665. * src/MetalinkEntry.h
  1666. * src/MetalinkHelper.cc
  1667. * src/MetalinkHelper.h
  1668. * src/MetalinkMetaurl.cc
  1669. * src/MetalinkMetaurl.h
  1670. * src/MetalinkParserController.cc
  1671. * src/RequestGroup.cc
  1672. * src/RequestGroup.h
  1673. * src/bittorrent_helper.cc
  1674. * test/BittorrentHelperTest.cc
  1675. * test/BtDependencyTest.cc
  1676. * test/MetalinkHelperTest.cc
  1677. 2010-02-26 Tatsuhiro Tsujikawa <[email protected]>
  1678. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  1679. * src/MetalinkMetaurl.h
  1680. * src/MetalinkParserController.cc
  1681. * src/MetalinkParserController.h
  1682. * src/MetalinkParserStateMachine.cc
  1683. * src/MetalinkParserStateMachine.h
  1684. * src/MetalinkParserStateV4Impl.cc
  1685. * test/MetalinkProcessorTest.cc
  1686. * test/metalink4-dirtraversal.xml
  1687. 2010-02-26 Tatsuhiro Tsujikawa <[email protected]>
  1688. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  1689. element.
  1690. * src/Makefile.am
  1691. * src/Metalink2RequestGroup.cc
  1692. * src/MetalinkEntry.cc
  1693. * src/MetalinkEntry.h
  1694. * src/MetalinkMetaurl.cc
  1695. * src/MetalinkMetaurl.h
  1696. * src/MetalinkParserController.cc
  1697. * src/MetalinkParserController.h
  1698. * src/MetalinkParserStateMachine.cc
  1699. * src/MetalinkParserStateMachine.h
  1700. * src/MetalinkParserStateV4Impl.cc
  1701. * src/MetalinkParserStateV4Impl.h
  1702. * test/MetalinkProcessorTest.cc
  1703. 2010-02-25 Tatsuhiro Tsujikawa <[email protected]>
  1704. Added Metalink4 support. Currently, name attribute of
  1705. metalink::metaurl is ignored and multi-file torrent cannot be used
  1706. with Metalink4.
  1707. * doc/aria2c.1.txt
  1708. * src/DownloadHandlerConstants.cc
  1709. * src/ExpatMetalinkProcessor.cc
  1710. * src/Makefile.am
  1711. * src/Metalink2RequestGroup.cc
  1712. * src/MetalinkEntry.cc
  1713. * src/MetalinkEntry.h
  1714. * src/MetalinkParserController.cc
  1715. * src/MetalinkParserController.h
  1716. * src/MetalinkParserState.h
  1717. * src/MetalinkParserStateImpl.cc
  1718. * src/MetalinkParserStateImpl.h
  1719. * src/MetalinkParserStateMachine.cc
  1720. * src/MetalinkParserStateMachine.h
  1721. * src/MetalinkParserStateV3Impl.cc
  1722. * src/MetalinkParserStateV3Impl.h
  1723. * src/MetalinkParserStateV4Impl.cc
  1724. * src/MetalinkParserStateV4Impl.h
  1725. * src/MetalinkResource.cc
  1726. * src/MetalinkResource.h
  1727. * src/Metalinker.cc
  1728. * src/RequestGroup.cc
  1729. * src/RequestGroup.h
  1730. * src/XML2SAXMetalinkProcessor.cc
  1731. * src/messageDigest.cc
  1732. * src/util.cc
  1733. * src/util.h
  1734. * test/Makefile.am
  1735. * test/MetalinkEntryTest.cc
  1736. * test/MetalinkParserControllerTest.cc
  1737. * test/MetalinkProcessorTest.cc
  1738. * test/MetalinkerTest.cc
  1739. * test/UtilTest.cc
  1740. * test/metalink4-attrs.xml
  1741. * test/metalink4-dirtraversal.xml
  1742. * test/metalink4.xml
  1743. 2010-02-23 Tatsuhiro Tsujikawa <[email protected]>
  1744. Added aiFlags argument to getInterfaceAddress(). Use
  1745. AI_NUMERICHOST to find interface specified using
  1746. --bt-lpd-interface option to avoid time-consuming address lookup.
  1747. * src/BtSetup.cc
  1748. * src/SocketCore.cc
  1749. * src/SocketCore.h
  1750. 2010-02-23 Tatsuhiro Tsujikawa <[email protected]>
  1751. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  1752. is bad in LpdMessageReceiver.
  1753. * src/LpdMessage.h
  1754. * src/LpdMessageReceiver.cc
  1755. * src/LpdMessageReceiver.h
  1756. * src/LpdReceiveMessageCommand.cc
  1757. * test/LpdMessageReceiverTest.cc
  1758. 2010-02-23 Tatsuhiro Tsujikawa <[email protected]>
  1759. Added --bt-lpd-interface option to specify the interface to use
  1760. for Local Peer Discovery. LpdMessageDispatcher object now has its
  1761. own socket. LpdMessageReceiver's socket is binded to multicast
  1762. address to only receive multicast packets.
  1763. * src/BtSetup.cc
  1764. * src/LpdMessageDispatcher.cc
  1765. * src/LpdMessageDispatcher.h
  1766. * src/LpdMessageReceiver.cc
  1767. * src/LpdMessageReceiver.h
  1768. * src/LpdReceiveMessageCommand.cc
  1769. * src/LpdReceiveMessageCommand.h
  1770. * src/OptionHandlerFactory.cc
  1771. * src/SocketCore.cc
  1772. * src/SocketCore.h
  1773. * src/prefs.cc
  1774. * src/prefs.h
  1775. * src/usage_text.h
  1776. * test/LpdMessageDispatcherTest.cc
  1777. * test/LpdMessageReceiverTest.cc
  1778. 2010-02-22 Tatsuhiro Tsujikawa <[email protected]>
  1779. Put the portion of code to get interface addresses in
  1780. SocketCore::bindAddress() into newly added getInterfaceAddress().
  1781. * src/SocketCore.cc
  1782. * src/SocketCore.h
  1783. 2010-02-22 Tatsuhiro Tsujikawa <[email protected]>
  1784. Rewritten util::parseInt() and parseUInt()
  1785. * src/util.cc
  1786. 2010-02-21 Tatsuhiro Tsujikawa <[email protected]>
  1787. Fixed compile error with mingw32 cross compiler. Defined
  1788. a2_sockopt_t as void* for the target systems other than mingw32.
  1789. * src/SocketCore.cc
  1790. * src/a2netcompat.h
  1791. 2010-02-20 Tatsuhiro Tsujikawa <[email protected]>
  1792. Removed 'always true' condition
  1793. * src/util.cc
  1794. 2010-02-20 Tatsuhiro Tsujikawa <[email protected]>
  1795. Documented --bt-enable-lpd option in man page.
  1796. * doc/aria2c.1.txt
  1797. 2010-02-20 Tatsuhiro Tsujikawa <[email protected]>
  1798. Added Local Peer Discovery. It is disabled by default. Use
  1799. --bt-enable-lpd to enable the function.
  1800. * src/BtConstants.h
  1801. * src/BtSetup.cc
  1802. * src/LpdDispatchMessageCommand.cc
  1803. * src/LpdDispatchMessageCommand.h
  1804. * src/LpdMessage.h
  1805. * src/LpdMessageDispatcher.cc
  1806. * src/LpdMessageDispatcher.h
  1807. * src/LpdMessageReceiver.cc
  1808. * src/LpdMessageReceiver.h
  1809. * src/LpdReceiveMessageCommand.cc
  1810. * src/LpdReceiveMessageCommand.h
  1811. * src/Makefile.am
  1812. * src/OptionHandlerFactory.cc
  1813. * src/Peer.cc
  1814. * src/Peer.h
  1815. * src/PeerInteractionCommand.cc
  1816. * src/SocketCore.cc
  1817. * src/SocketCore.h
  1818. * src/prefs.cc
  1819. * src/prefs.h
  1820. * src/usage_text.h
  1821. * src/util.cc
  1822. * src/util.h
  1823. * test/LpdMessageDispatcherTest.cc
  1824. * test/LpdMessageReceiverTest.cc
  1825. * test/Makefile.am
  1826. 2010-02-20 Tatsuhiro Tsujikawa <[email protected]>
  1827. User-defined custom request headers specified by --header option
  1828. now override builtin headers if they have same name.
  1829. * src/HttpRequest.cc
  1830. * src/HttpRequest.h
  1831. * test/HttpRequestTest.cc
  1832. 2010-02-19 Tatsuhiro Tsujikawa <[email protected]>
  1833. Rewirtten util::isNumber()
  1834. * src/util.cc
  1835. 2010-02-19 Tatsuhiro Tsujikawa <[email protected]>
  1836. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  1837. because without it localized error messages are not printed
  1838. correctly.
  1839. * src/Platform.cc
  1840. 2010-02-19 Tatsuhiro Tsujikawa <[email protected]>
  1841. Added unit tests for util::getContentDispositionFilename() from
  1842. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  1843. tests are passed.
  1844. * src/util.cc
  1845. * test/UtilTest.cc
  1846. 2010-02-18 Tatsuhiro Tsujikawa <[email protected]>
  1847. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  1848. util.cc
  1849. * src/Platform.cc
  1850. 2010-02-18 Tatsuhiro Tsujikawa <[email protected]>
  1851. Support RFC2231 "Parameter Value Character Set and Language
  1852. Information" in Content-Disposition header.
  1853. * src/HttpResponse.cc
  1854. * src/util.cc
  1855. * src/util.h
  1856. * test/UtilTest.cc
  1857. 2010-02-16 Tatsuhiro Tsujikawa <[email protected]>
  1858. Print CXXFLAGS
  1859. * configure.ac
  1860. 2010-02-16 Tatsuhiro Tsujikawa <[email protected]>
  1861. Small optimization for A2_WOULDBLOCK(e)
  1862. * src/SocketCore.cc
  1863. 2010-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1864. Removed test file
  1865. * test/CookieStorageTest.cc
  1866. 2010-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1867. Check both EAGAIN and EWOULDBLOCK
  1868. * src/SocketCore.cc
  1869. 2010-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1870. Removed ret == 0 checking for SSL_read(), SSL_write() and
  1871. SSL_peek() because the checks are done in the caller. In
  1872. SocketBuffer::send(), throw exception if nothing could be written
  1873. and socket error was not EWOULDBLOCK
  1874. * src/SocketBuffer.cc
  1875. * src/SocketCore.cc
  1876. 2010-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1877. Fixed error code handling so that it can handle Winsock2 error
  1878. code.
  1879. * src/SocketCore.cc
  1880. * src/SocketCore.h
  1881. 2010-02-14 Tatsuhiro Tsujikawa <[email protected]>
  1882. Bump up version number to 1.9.0a
  1883. * configure.ac
  1884. * doc/aria2c.1.txt
  1885. 2010-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1886. Fixed the bug that aria2 doesn't handle return value if error
  1887. occurred before download begins.
  1888. * src/MultiUrlRequestInfo.cc
  1889. * src/main.cc
  1890. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1891. Removed SegmentManFactory class.
  1892. * src/AbstractSegmentManFactory.h
  1893. * src/DefaultSegmentManFactory.cc
  1894. * src/DefaultSegmentManFactory.h
  1895. * src/Makefile.am
  1896. * src/RequestGroup.cc
  1897. * src/RequestGroup.h
  1898. * src/SegmentManFactory.h
  1899. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1900. Destroyed digest context after getting calculated hash.
  1901. * src/Piece.cc
  1902. * src/Piece.h
  1903. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1904. Removed BitfieldManFactory class.
  1905. * src/BitfieldManFactory.cc
  1906. * src/BitfieldManFactory.h
  1907. * src/DefaultPieceStorage.cc
  1908. * src/Makefile.am
  1909. * src/PeerSessionResource.cc
  1910. * src/Piece.cc
  1911. * src/main.cc
  1912. * test/DefaultPieceStorageTest.cc
  1913. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1914. Removed unused methods from BitfieldMan class. Moved
  1915. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  1916. class.
  1917. * src/BitfieldMan.cc
  1918. * src/BitfieldMan.h
  1919. * src/BitfieldManFactory.cc
  1920. * src/BitfieldManFactory.h
  1921. * src/bitfield.h
  1922. * src/main.cc
  1923. * test/BitfieldManTest.cc
  1924. * test/DefaultPieceStorageTest.cc
  1925. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1926. Moved getFirstNMissingIndex to bitfield.h and made it return the
  1927. number of appended indexes.
  1928. * src/BitfieldMan.cc
  1929. * src/BitfieldMan.h
  1930. * src/Piece.cc
  1931. * src/Piece.h
  1932. * src/bitfield.h
  1933. * test/BitfieldManTest.cc
  1934. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1935. Added more tests.
  1936. * test/BitfieldManTest.cc
  1937. 2010-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1938. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  1939. unused block indexes at once instead of calling
  1940. getFirstMissingUnusedIndex() multiple times. Made use of it in
  1941. Piece class and DefaultBtRequestFactory class via Piece class.
  1942. * src/BitfieldMan.cc
  1943. * src/BitfieldMan.h
  1944. * src/DefaultBtRequestFactory.cc
  1945. * src/Piece.cc
  1946. * src/Piece.h
  1947. * test/BitfieldManTest.cc
  1948. 2010-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1949. Use std::make_pair(...)
  1950. * src/DHTMessageTracker.cc
  1951. 2010-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1952. Use std::make_pair(...)
  1953. * src/bittorrent_helper.cc
  1954. 2010-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1955. urlencode(removeFragment(...)) in parseUrl(...)
  1956. * src/Request.cc
  1957. 2010-02-09 Tatsuhiro Tsujikawa <[email protected]>
  1958. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  1959. * src/AbstractCommand.cc
  1960. * src/AdaptiveURISelector.cc
  1961. * src/BtPieceMessage.cc
  1962. * src/BtPortMessage.cc
  1963. * src/CreateRequestCommand.cc
  1964. * src/DHTAbstractNodeLookupTask.cc
  1965. * src/DHTBucket.cc
  1966. * src/DHTGetPeersCommand.cc
  1967. * src/DHTMessageDispatcherImpl.cc
  1968. * src/DHTMessageFactoryImpl.cc
  1969. * src/DHTMessageTracker.cc
  1970. * src/DHTPeerAnnounceStorage.cc
  1971. * src/DHTRoutingTable.cc
  1972. * src/DHTSetup.cc
  1973. * src/DefaultBtAnnounce.cc
  1974. * src/DefaultBtInteractive.cc
  1975. * src/DefaultBtMessageDispatcher.cc
  1976. * src/DefaultBtMessageReceiver.cc
  1977. * src/DefaultBtProgressInfoFile.cc
  1978. * src/DefaultBtRequestFactory.cc
  1979. * src/DefaultPeerStorage.cc
  1980. * src/DefaultPieceStorage.cc
  1981. * src/DownloadCommand.cc
  1982. * src/DownloadEngine.cc
  1983. * src/EpollEventPoll.cc
  1984. * src/FileAllocationCommand.cc
  1985. * src/FileEntry.cc
  1986. * src/FtpNegotiationCommand.cc
  1987. * src/HandshakeExtensionMessage.cc
  1988. * src/HttpListenCommand.cc
  1989. * src/HttpServer.cc
  1990. * src/HttpSkipResponseCommand.cc
  1991. * src/IteratableChunkChecksumValidator.cc
  1992. * src/Logger.h
  1993. * src/MSEHandshake.cc
  1994. * src/MetalinkPostDownloadHandler.cc
  1995. * src/MultiDiskAdaptor.cc
  1996. * src/PeerAbstractCommand.cc
  1997. * src/PeerConnection.cc
  1998. * src/PeerListenCommand.cc
  1999. * src/PeerReceiveHandshakeCommand.cc
  2000. * src/RequestGroup.cc
  2001. * src/RequestGroupMan.cc
  2002. * src/SegmentMan.cc
  2003. * src/SelectEventPoll.cc
  2004. * src/ServerStat.cc
  2005. * src/SimpleBtMessage.cc
  2006. * src/SocketCore.cc
  2007. * src/TrackerWatcherCommand.cc
  2008. * src/UTMetadataDataExtensionMessage.cc
  2009. * src/UTMetadataRequestFactory.cc
  2010. * src/UTMetadataRequestTracker.cc
  2011. * src/XmlRpcMethod.cc
  2012. 2010-02-08 Tatsuhiro Tsujikawa <[email protected]>
  2013. Changed log level from debug to info
  2014. * src/BtDependency.cc
  2015. * src/BtPostDownloadHandler.cc
  2016. 2010-02-08 Tatsuhiro Tsujikawa <[email protected]>
  2017. Removed unused PeerSessionResource::_latency.
  2018. * src/BtConstants.h
  2019. * src/BtPieceMessage.cc
  2020. * src/Peer.cc
  2021. * src/Peer.h
  2022. * src/PeerSessionResource.cc
  2023. * src/PeerSessionResource.h
  2024. * test/PeerSessionResourceTest.cc
  2025. 2010-02-07 Tatsuhiro Tsujikawa <[email protected]>
  2026. Fixed the bug that --file-allocation=falloc doesn't work with
  2027. single file download.
  2028. * src/AbstractSingleDiskAdaptor.cc
  2029. 2010-02-03 Tatsuhiro Tsujikawa <[email protected]>
  2030. Release 1.8.2
  2031. 2010-02-03 Tatsuhiro Tsujikawa <[email protected]>
  2032. Added Portuguese translation. Updated Ukrainian and Spanish
  2033. translation. Thanks to all translators.
  2034. * po/LINGUAS
  2035. * po/es.po
  2036. * po/pt.po
  2037. * po/uk.po
  2038. 2010-02-03 Tatsuhiro Tsujikawa <[email protected]>
  2039. Remove fragment from redirected URI.
  2040. * src/Request.cc
  2041. * test/RequestTest.cc
  2042. 2010-02-03 Tatsuhiro Tsujikawa <[email protected]>
  2043. Updated po templates.
  2044. * po/aria2.pot
  2045. 2010-02-02 Tatsuhiro Tsujikawa <[email protected]>
  2046. Drop legacy ifdef for ares support and code cleanup.
  2047. * src/AsyncNameResolver.cc
  2048. * src/AsyncNameResolver.h
  2049. 2010-02-02 Tatsuhiro Tsujikawa <[email protected]>
  2050. Call ares_library_init and ares_library_cleanup if they are
  2051. available. Some code cleanups.
  2052. * src/Platform.cc
  2053. 2010-02-02 Tatsuhiro Tsujikawa <[email protected]>
  2054. Call ares_process_fd() each time after epoll to handle timeout.
  2055. * src/EpollEventPoll.cc
  2056. * src/EpollEventPoll.h
  2057. 2010-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2058. Suppressed type-cast compiler warning
  2059. * src/CookieStorage.cc
  2060. 2010-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2061. Fixed compile error on Mac OS X.
  2062. * src/CookieStorage.h
  2063. 2010-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2064. Removed cookietest.txt from Makefile.am
  2065. * test/Makefile.am
  2066. 2010-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2067. Updated version number in man page.
  2068. * doc/aria2c.1.txt
  2069. 2010-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2070. Rewritten help message for --allow-overwrite option.
  2071. * doc/aria2c.1.txt
  2072. * src/usage_text.h
  2073. 2010-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2074. Added bittorrent key to the response of tellStatus XML-RPC method.
  2075. The associated value of the key is a struct and contains data
  2076. retrieved from .torrent file, such as name, announce-list,
  2077. comment, etc.
  2078. * doc/aria2c.1.txt
  2079. * src/XmlRpcMethodImpl.cc
  2080. * src/XmlRpcMethodImpl.h
  2081. * test/XmlRpcMethodTest.cc
  2082. 2010-01-29 Tatsuhiro Tsujikawa <[email protected]>
  2083. Removed parse(std::istream&) and parse(const std::string&) from
  2084. CookieParser.
  2085. * src/CookieParser.cc
  2086. * src/CookieParser.h
  2087. * test/CookieParserTest.cc
  2088. * test/cookietest.txt: Removed
  2089. 2010-01-29 Tatsuhiro Tsujikawa <[email protected]>
  2090. Fixed the bug that cookie for domain a.b.c is not sent to the host
  2091. a.b.c if no other cookies are stored. Fixed the bug that
  2092. Cookie::markOriginServerOnly() is not called when cookies are
  2093. loaded from file/sqlite3 database.
  2094. * src/Cookie.h
  2095. * src/CookieStorage.cc
  2096. * src/NsCookieParser.cc
  2097. * src/Sqlite3MozCookieParser.cc
  2098. * test/CookieStorageTest.cc
  2099. * test/NsCookieParserTest.cc
  2100. * test/Sqlite3MozCookieParserTest.cc
  2101. * test/cookies.sqlite
  2102. * test/nscookietest.txt
  2103. 2010-01-29 Tatsuhiro Tsujikawa <[email protected]>
  2104. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  2105. both _pieceStorage and _segmentMan are initialized or they are
  2106. not.
  2107. * src/RequestGroup.cc
  2108. * src/RequestGroup.h
  2109. * test/BtDependencyTest.cc
  2110. 2010-01-29 Tatsuhiro Tsujikawa <[email protected]>
  2111. Bump up version number to 1.8.2
  2112. * configure.ac
  2113. 2010-01-28 Tatsuhiro Tsujikawa <[email protected]>
  2114. Replaced "." with A2STR::DOT_C
  2115. * src/AbstractCommand.cc
  2116. * src/Cookie.cc
  2117. * src/DownloadContext.cc
  2118. * src/FtpConnection.cc
  2119. * src/RequestGroup.cc
  2120. * src/util.cc
  2121. 2010-01-28 Tatsuhiro Tsujikawa <[email protected]>
  2122. Replaced isNumberAndDotsNotation() with isNumericHost().
  2123. isNumericHost() can handle IPv6 address.
  2124. * src/Cookie.cc
  2125. * src/CookieStorage.cc
  2126. * src/util.cc
  2127. * src/util.h
  2128. * test/CookieTest.cc
  2129. * test/UtilTest.cc
  2130. 2010-01-28 Tatsuhiro Tsujikawa <[email protected]>
  2131. Included A2STR.h
  2132. * src/CookieStorage.cc
  2133. 2010-01-28 Tatsuhiro Tsujikawa <[email protected]>
  2134. Rewritten Cookie storage.
  2135. * src/Cookie.cc
  2136. * src/Cookie.h
  2137. * src/CookieParser.cc
  2138. * src/CookieStorage.cc
  2139. * src/CookieStorage.h
  2140. * src/a2functional.h
  2141. * test/CookieParserTest.cc
  2142. * test/CookieStorageTest.cc
  2143. * test/CookieTest.cc
  2144. * test/HttpResponseTest.cc
  2145. * test/TestUtil.h
  2146. * test/a2functionalTest.cc
  2147. 2010-01-26 Tatsuhiro Tsujikawa <[email protected]>
  2148. Handle redirected URI which is not properly percent encoded.
  2149. * src/Request.cc
  2150. * test/RequestTest.cc
  2151. 2010-01-25 Tatsuhiro Tsujikawa <[email protected]>
  2152. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  2153. not found' in the N times(N is where --max-file-not-found=N, N>0)
  2154. in a row without single '200 OK' response.
  2155. * src/RequestGroup.cc.
  2156. 2010-01-24 Tatsuhiro Tsujikawa <[email protected]>
  2157. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  2158. readout by 80 characters in mingw32 build. Catch exception in
  2159. DHTMessageReceiver::receiveMessage().
  2160. * src/AbstractDiskWriter.cc
  2161. * src/ConsoleStatCalc.cc
  2162. * src/DHTMessageReceiver.cc
  2163. * src/File.cc
  2164. * src/RequestGroupMan.cc
  2165. * src/a2io.h
  2166. * test/FileTest.cc
  2167. 2010-01-24 Tatsuhiro Tsujikawa <[email protected]>
  2168. Fixed compile error with intel compiler
  2169. * src/XmlRpcMethodImpl.cc
  2170. * src/XmlRpcMethodImpl.h
  2171. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2172. Release 1.8.1
  2173. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2174. Updated Swedish, Russian and Italian translations. Thanks to all
  2175. translators.
  2176. * po/it.po
  2177. * po/ru.po
  2178. * po/sv.po
  2179. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2180. Fixed broken OptionParser::findByName().
  2181. * src/OptionParser.cc
  2182. * test/OptionParserTest.cc
  2183. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2184. Fixed test error without BitTorrent support.
  2185. * test/XmlRpcMethodTest.cc
  2186. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2187. Fixed compile error without GNUTLS/OpenSSL.
  2188. * src/util.cc
  2189. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2190. Changed compression level to Z_DEFAULT_COMPRESSION.
  2191. * src/GZipEncoder.cc
  2192. 2010-01-23 Tatsuhiro Tsujikawa <[email protected]>
  2193. Added missing command line options: --http-no-cache,
  2194. --bt-save-metadata and --bt-metadata-only.
  2195. * doc/xmlrpc/aria2rpc
  2196. 2010-01-22 Tatsuhiro Tsujikawa <[email protected]>
  2197. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  2198. client accepts gzip content encoding.
  2199. * src/A2STR.cc
  2200. * src/A2STR.h
  2201. * src/GZipEncoder.cc
  2202. * src/GZipEncoder.h
  2203. * src/HttpHeader.cc
  2204. * src/HttpHeader.h
  2205. * src/HttpServer.cc
  2206. * src/HttpServer.h
  2207. * src/HttpServerBodyCommand.cc
  2208. * src/HttpServerCommand.cc
  2209. * src/Makefile.am
  2210. * src/XmlRpcResponse.cc
  2211. * src/XmlRpcResponse.h
  2212. * test/GZipEncoderTest.cc
  2213. * test/Makefile.am
  2214. 2010-01-18 Tatsuhiro Tsujikawa <[email protected]>
  2215. Added XML-RPC client sample code in Python.
  2216. * doc/aria2c.1.txt
  2217. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2218. Updated po templates.
  2219. * po/aria2.pot
  2220. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2221. Bump up version number to 1.8.1
  2222. * configure.ac
  2223. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2224. Added version number to man page. Updated copyright year in man
  2225. page.
  2226. * doc/aria2c.1.txt
  2227. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2228. Rewritten toTagString
  2229. * src/NameMatchOptionHandler.cc
  2230. * test/OptionHandlerTest.cc
  2231. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2232. Added dir and files key to the response struct of aria2.tellStatus
  2233. XML-RPC method. The value associated with files key is the list
  2234. of files. Its element is the same struct used in aria2.getFiles
  2235. XML-RPC method. Added uris key to the response struct of
  2236. aria2.getFiles XML-RPC method. The value associated with uris key
  2237. is the list of URIs. Its element is the same struct used in
  2238. aria2.getUris XML-RPC method.
  2239. * doc/aria2c.1.txt
  2240. * src/XmlRpcMethodImpl.cc
  2241. * test/XmlRpcMethodTest.cc
  2242. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2243. Added aria2.getSessionInfo XML-RPC method. This method returns a
  2244. struct containing Session ID, which is generated each time when
  2245. aria2 is invoked.
  2246. * doc/aria2c.1.txt
  2247. * doc/xmlrpc/aria2rpc
  2248. * src/DownloadEngine.cc
  2249. * src/DownloadEngine.h
  2250. * src/XmlRpcMethodFactory.cc
  2251. * src/XmlRpcMethodImpl.cc
  2252. * src/XmlRpcMethodImpl.h
  2253. * test/XmlRpcMethodTest.cc
  2254. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2255. Moved generateRandomKey() from bittorrent_helper to util.
  2256. * src/DHTBucket.cc
  2257. * src/DHTNode.cc
  2258. * src/bittorrent_helper.cc
  2259. * src/bittorrent_helper.h
  2260. * src/util.cc
  2261. * src/util.h
  2262. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2263. Updated doc about GID.
  2264. * doc/aria2c.1.txt
  2265. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2266. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  2267. accepts a negative integer. 'offset' == -1 points last download
  2268. in the waiting queue and 'offset' == -2 points the download before
  2269. the last download, and so on. The downloads in the response are in
  2270. reversed order.
  2271. * doc/aria2c.1.txt
  2272. * src/XmlRpcMethodImpl.cc
  2273. * src/XmlRpcMethodImpl.h
  2274. * test/XmlRpcMethodTest.cc
  2275. 2010-01-17 Tatsuhiro Tsujikawa <[email protected]>
  2276. Added --human-readable option. This option, when true is given,
  2277. prints sizes and speed in human readable format(e.g., 1.2Ki,
  2278. 3.4Mi) in the console readout. The default value is true and it
  2279. looks exactly the same as aria2-1.8.0. So the 'new feature'
  2280. appears when false is given. In this case, sizes and speed are
  2281. printed without in bytes. No Ki, Mi units conversion is used.
  2282. This may be useful for a program to parse the output of aria2.
  2283. * doc/aria2c.1.txt
  2284. * src/ConsoleStatCalc.cc
  2285. * src/ConsoleStatCalc.h
  2286. * src/OptionHandlerFactory.cc
  2287. * src/main.cc
  2288. * src/prefs.cc
  2289. * src/prefs.h
  2290. * src/usage_text.h
  2291. 2010-01-15 Tatsuhiro Tsujikawa <[email protected]>
  2292. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  2293. option accepts empty string "". When "" is given, it erases
  2294. previously defined proxy.
  2295. * doc/aria2c.1.txt
  2296. * src/OptionHandlerImpl.h
  2297. * src/usage_text.h
  2298. * test/OptionHandlerTest.cc
  2299. 2010-01-15 Tatsuhiro Tsujikawa <[email protected]>
  2300. Code cleanup for proxy URI handling.
  2301. * src/AbstractCommand.cc
  2302. 2010-01-12 Tatsuhiro Tsujikawa <[email protected]>
  2303. Added --bt-metadata-only option. If true is given to this option,
  2304. aria2 downloads metadata only. The file(s) described in metadata
  2305. will not be downloaded. This option has effect only when
  2306. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  2307. * doc/aria2c.1.txt
  2308. * src/OptionHandlerFactory.cc
  2309. * src/UTMetadataPostDownloadHandler.cc
  2310. * src/download_helper.cc
  2311. * src/prefs.cc
  2312. * src/prefs.h
  2313. * src/usage_text.h
  2314. 2010-01-12 Tatsuhiro Tsujikawa <[email protected]>
  2315. Fixed memory leak. Commands stored in std::deque<Command*> are not
  2316. deleted when exception is thrown. Make sure that when passing
  2317. std::deque<Command*> to function to store Commands, handle
  2318. exception and delete these Commands.
  2319. * src/AbstractCommand.cc
  2320. * src/CheckIntegrityCommand.cc
  2321. * src/FileAllocationCommand.cc
  2322. * src/RequestGroup.cc
  2323. * src/TrackerWatcherCommand.cc
  2324. 2010-01-11 Tatsuhiro Tsujikawa <[email protected]>
  2325. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  2326. * src/A2STR.cc
  2327. * src/A2STR.h
  2328. * src/FtpNegotiationCommand.cc
  2329. * src/HttpResponseCommand.cc
  2330. * src/util.cc
  2331. * src/util.h
  2332. * test/UtilTest.cc
  2333. 2010-01-11 Tatsuhiro Tsujikawa <[email protected]>
  2334. Treat --dir="" as --dir="."
  2335. * src/FtpNegotiationCommand.cc
  2336. * src/HttpResponseCommand.cc
  2337. * src/Metalink2RequestGroup.cc
  2338. * src/UTMetadataPostDownloadHandler.cc
  2339. * src/bittorrent_helper.cc
  2340. * src/download_helper.cc
  2341. * src/util.cc
  2342. * src/util.h
  2343. * test/UtilTest.cc
  2344. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2345. Code clean up.
  2346. * src/main.cc
  2347. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2348. Reset GID to 1 when they reach maximum value. Rewritten
  2349. CUIDCounter::newID()
  2350. * src/CUIDCounter.h
  2351. * src/RequestGroup.cc
  2352. * src/RequestGroup.h
  2353. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2354. Documented --http-no-cache option in man page.
  2355. * doc/aria2c.1.txt
  2356. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2357. Added --http-no-cache option. When true is given, aria2 sends
  2358. Cache-Control: no-cache and Pragma: no-cache header to avoid
  2359. cached content. If false is given , these headers are not sent
  2360. and you can add Cache-Control header with a directive you like
  2361. using --header option.
  2362. * src/HttpRequest.cc
  2363. * src/HttpRequest.h
  2364. * src/HttpRequestCommand.cc
  2365. * src/OptionHandlerFactory.cc
  2366. * src/download_helper.cc
  2367. * src/prefs.cc
  2368. * src/prefs.h
  2369. * src/usage_text.h
  2370. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2371. Removed Logger from OptionParser. When OptionParser is used to
  2372. parse options at bootstrap, LogFactory is not configured yet
  2373. properly. When LogFactory is used in OptionParser, it initializes
  2374. itself to return a logger which has no ability to write log to the
  2375. disk.
  2376. * src/OptionParser.cc
  2377. * src/OptionParser.h
  2378. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2379. Added following sentance to the help message of --out option:
  2380. --out option is ignored when -Z is used.
  2381. * doc/aria2c.1.txt
  2382. * src/usage_text.h
  2383. 2010-01-10 Tatsuhiro Tsujikawa <[email protected]>
  2384. Added --bt-save-metadata option to -i list options.
  2385. * doc/aria2c.1.txt
  2386. * src/download_helper.cc
  2387. 2010-01-09 Tatsuhiro Tsujikawa <[email protected]>
  2388. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  2389. additional libraries.
  2390. * src/MultiUrlRequestInfo.cc
  2391. * src/NameResolver.cc
  2392. * src/SelectEventPoll.cc
  2393. * src/SelectEventPoll.h
  2394. * src/SocketCore.cc
  2395. * src/SocketCore.h
  2396. * src/a2netcompat.h
  2397. * src/daemon.cc
  2398. * src/main.cc
  2399. 2010-01-09 Tatsuhiro Tsujikawa <[email protected]>
  2400. Fixed typo.
  2401. * src/DHTMessageReceiver.cc
  2402. 2010-01-09 Tatsuhiro Tsujikawa <[email protected]>
  2403. Fixed the bug that causes segmentation fault if unknown option is
  2404. put in aria2.conf file. BUG#2928303
  2405. * src/OptionParser.cc
  2406. * src/OptionParser.h
  2407. * src/option_processing.cc
  2408. * test/OptionParserTest.cc
  2409. 2010-01-07 Tatsuhiro Tsujikawa <[email protected]>
  2410. Ignore port message with port=0.
  2411. * src/BtPortMessage.cc
  2412. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2413. Run autoupdate
  2414. * configure.ac
  2415. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2416. Updated autoconf/automake auxiliary files.
  2417. * INSTALL
  2418. * config.guess
  2419. * config.sub
  2420. * depcomp
  2421. * install-sh
  2422. * m4/intldir.m4
  2423. * missing
  2424. * mkinstalldirs
  2425. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2426. Removed unused function.
  2427. * src/SharedHandle.h
  2428. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2429. Find pooled socket using all cached addresses.
  2430. * src/DNSCache.h
  2431. * src/DownloadEngine.cc
  2432. * src/DownloadEngine.h
  2433. * src/InitiateConnectionCommand.cc
  2434. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2435. Updated copyright year.
  2436. * src/version_usage.cc
  2437. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2438. Pool connection if _contentEncodingDecoder is used and server
  2439. supports persistent connection.
  2440. * src/HttpDownloadCommand.cc
  2441. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2442. Updated doc.
  2443. * src/DownloadCommand.cc
  2444. 2010-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2445. Untabify. Fixed one line in copyright which is longer than 80
  2446. columns.
  2447. * src
  2448. * test
  2449. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2450. Release 1.8.0
  2451. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2452. Updated po templates.
  2453. * po/aria2.pot
  2454. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2455. Documented --bt-save-metadata option in man page.
  2456. * doc/aria2c.1.txt
  2457. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2458. Fixed usage of --bt-save-metadata option.
  2459. * src/usage_text.h
  2460. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2461. Updated po templates.
  2462. * po/aria2.pot
  2463. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2464. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  2465. causes name resolution error when none of network interface has
  2466. IPv4 address.
  2467. * src/main.cc
  2468. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2469. Bump up version number to 1.8.0.
  2470. * configure.ac
  2471. 2009-12-27 Tatsuhiro Tsujikawa <[email protected]>
  2472. Use info hash as a filename when saving BitTorrent metadata.
  2473. * src/UTMetadataPostDownloadHandler.cc
  2474. * test/UTMetadataPostDownloadHandlerTest.cc
  2475. 2009-12-26 Tatsuhiro Tsujikawa <[email protected]>
  2476. Documented system.multicall XML-RPC method in man page.
  2477. * doc/aria2c.1.txt
  2478. 2009-12-26 Tatsuhiro Tsujikawa <[email protected]>
  2479. Added signal handler for SIGHUP to save .aria2 file when terminal
  2480. is closed. The handler is the same one for SIGINT and SIGTERM.
  2481. * src/MultiUrlRequestInfo.cc
  2482. 2009-12-26 Tatsuhiro Tsujikawa <[email protected]>
  2483. Defined method name in XmlRpcMethod subclasses.
  2484. * src/XmlRpcMethodFactory.cc
  2485. * src/XmlRpcMethodImpl.cc
  2486. * src/XmlRpcMethodImpl.h
  2487. * test/XmlRpcMethodTest.cc
  2488. 2009-12-26 Tatsuhiro Tsujikawa <[email protected]>
  2489. Added system.multicall XML-RPC method.
  2490. * src/XmlRpcMethod.cc
  2491. * src/XmlRpcMethod.h
  2492. * src/XmlRpcMethodFactory.cc
  2493. * src/XmlRpcMethodImpl.cc
  2494. * src/XmlRpcMethodImpl.h
  2495. * test/XmlRpcMethodTest.cc
  2496. 2009-12-25 Tatsuhiro Tsujikawa <[email protected]>
  2497. Check structure depth when decoding.
  2498. * src/bencode.cc
  2499. * src/bencode.h
  2500. * test/BencodeTest.cc
  2501. 2009-12-25 Tatsuhiro Tsujikawa <[email protected]>
  2502. Documented tellStopped XML-RPC method in man page.
  2503. * doc/aria2c.1.txt
  2504. 2009-12-25 Tatsuhiro Tsujikawa <[email protected]>
  2505. Added tellStopped XML-RPC method to aria2rpc.
  2506. * doc/xmlrpc/aria2rpc
  2507. 2009-12-25 Tatsuhiro Tsujikawa <[email protected]>
  2508. Added tellStopped XML-RPC method. This method returns stopped
  2509. download in the specified range. It takes same parameters with
  2510. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  2511. * src/XmlRpcMethodFactory.cc
  2512. * src/XmlRpcMethodImpl.cc
  2513. * src/XmlRpcMethodImpl.h
  2514. 2009-12-24 Tatsuhiro Tsujikawa <[email protected]>
  2515. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  2516. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  2517. when conducting unit tests because they fail if networking
  2518. interface is not configured with IPv4 address.
  2519. * src/NameResolver.cc
  2520. * src/SocketCore.cc
  2521. * src/SocketCore.h
  2522. * src/a2netcompat.h
  2523. * test/AllTest.cc
  2524. 2009-12-24 Tatsuhiro Tsujikawa <[email protected]>
  2525. Fixed unit test error
  2526. * test/UTMetadataPostDownloadHandlerTest.cc
  2527. 2009-12-24 Tatsuhiro Tsujikawa <[email protected]>
  2528. Defined static string constants for efficiency.
  2529. * src/XmlRpcMethodImpl.cc
  2530. 2009-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2531. Added --bt-save-metadata option. When true is given, it saves
  2532. metadata as .torrent file. This option has effect only when
  2533. BitTorrent Magnet URI is used. The filename is name in metadata
  2534. with suffix .torrent. The directory to be saved is the same
  2535. directory where download file is saved. If the same file already
  2536. exists, metdata is not saved.
  2537. * src/OptionHandlerFactory.cc
  2538. * src/UTMetadataPostDownloadHandler.cc
  2539. * src/UTMetadataPostDownloadHandler.h
  2540. * src/message.h
  2541. * src/prefs.cc
  2542. * src/prefs.h
  2543. * src/usage_text.h
  2544. * test/UTMetadataDataExtensionMessageTest.cc
  2545. 2009-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2546. Added util::saveAs() function. Use it in Signature::save().
  2547. * src/Signature.cc
  2548. * src/util.cc
  2549. * src/util.h
  2550. 2009-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2551. Upcase info hash in Magnet URI.
  2552. * doc/aria2c.1.txt
  2553. 2009-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2554. Refactored RequestGroupMan::changeReservedGroupPosition()
  2555. * src/RequestGroupMan.cc
  2556. 2009-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2557. Updated the description for aria2.addTorrent XML-RPC method.
  2558. * doc/aria2c.1.txt
  2559. 2009-12-22 Tatsuhiro Tsujikawa <[email protected]>
  2560. Added changePosition to aria2rpc.
  2561. * doc/xmlrpc/aria2rpc
  2562. 2009-12-22 Tatsuhiro Tsujikawa <[email protected]>
  2563. Documented changePosition XML-RPC method in man page.
  2564. * doc/aria2c.1.txt
  2565. 2009-12-22 Tatsuhiro Tsujikawa <[email protected]>
  2566. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  2567. pos and how. This method changes the position of download denoted
  2568. by gid. If how is POS_SET, it moves the download to a position
  2569. relative to the beginning of the queue. If how is POS_CUR, it
  2570. moves the download to a position relative to the current
  2571. position. If how is POS_END, it moves the download to a position
  2572. relative to the end of the queue. If the destination position is
  2573. less than 0 or beyond the end of the queue, it moves the download
  2574. to the beginning or the end of the queue respectively. Returns
  2575. the destination position.
  2576. * src/RequestGroupMan.cc
  2577. * src/RequestGroupMan.h
  2578. * src/XmlRpcMethodFactory.cc
  2579. * src/XmlRpcMethodImpl.cc
  2580. * src/XmlRpcMethodImpl.h
  2581. * test/RequestGroupManTest.cc
  2582. * test/XmlRpcMethodTest.cc
  2583. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2584. Added getOption and getGlobalOption to aria2rpc.
  2585. * doc/xmlrpc/aria2rpc
  2586. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2587. Documented getOption and getGlobalOption XML-RPC method in man
  2588. page
  2589. * doc/aria2c.1.txt
  2590. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2591. Added getOption and getGlobalOption XML-RPC method. getOption
  2592. takes GID as a parameter and returns its options as struct.
  2593. getGlobalOption takes no parameter and returns global
  2594. options. Because global option is used as a template for the
  2595. option of newly added downloads, it includes options returned by
  2596. getOption.
  2597. * src/Option.h
  2598. * src/XmlRpcMethodFactory.cc
  2599. * src/XmlRpcMethodImpl.cc
  2600. * src/XmlRpcMethodImpl.h
  2601. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2602. Sort _optionHandlers in OptionParser by name in ascending order.
  2603. Use vector instead of deque for efficiency.
  2604. * src/OptionHandler.h
  2605. * src/OptionHandlerFactory.h
  2606. * src/OptionParser.cc
  2607. * src/OptionParser.h
  2608. * src/version_usage.cc
  2609. * test/OptionParserTest.cc
  2610. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2611. Code cleanup
  2612. * src/XmlRpcMethod.cc
  2613. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2614. Documented about followedBy and belongsTo in man page.
  2615. * doc/aria2c.1.txt
  2616. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2617. Added following 2 keys, followedBy and belongsTo, to the response
  2618. of tellStatus.
  2619. followedBy: List of GIDs which are generated by the consequence of
  2620. this download. For example, when aria2 downloaded Metalink file,
  2621. it generates downloads described in it(see *--follow-metalink*
  2622. option). This value is useful to track these auto generated
  2623. downloads. If there is no such downloads, this key will not be
  2624. included in the response.
  2625. belongsTo: GID of a parent download. Some downloads are a part of
  2626. another download. For example, if a file in Metalink has
  2627. BitTorrent resource, the download of .torrent is a part of that
  2628. file. If this download has no parent, this key will not be
  2629. included in the response.
  2630. * src/BtPostDownloadHandler.cc
  2631. * src/DownloadResult.h
  2632. * src/Metalink2RequestGroup.cc
  2633. * src/MetalinkPostDownloadHandler.cc
  2634. * src/RequestGroup.cc
  2635. * src/RequestGroup.h
  2636. * src/UTMetadataPostDownloadHandler.cc
  2637. * src/XmlRpcMethodImpl.cc
  2638. * src/XmlRpcMethodImpl.h
  2639. 2009-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2640. Assigned BObject in BDE() to avoid segmentation fault when calling
  2641. methods of BDE::none().
  2642. * src/BDE.cc
  2643. 2009-12-18 Tatsuhiro Tsujikawa <[email protected]>
  2644. Show info hash in Magnet URI in upper case letters in -S output.
  2645. * src/bittorrent_helper.cc
  2646. * test/BittorrentHelperTest.cc
  2647. 2009-12-18 Tatsuhiro Tsujikawa <[email protected]>
  2648. Removed old useless comment
  2649. * src/MultiUrlRequestInfo.cc
  2650. 2009-12-16 Tatsuhiro Tsujikawa <[email protected]>
  2651. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  2652. not properly used in configure script and failed to detect gnutls.
  2653. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  2654. and the initialization of pkg-config is done in first occurrence
  2655. of PKG_CHECK_MODULES which is not executed because it is inside of
  2656. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  2657. * configure.ac
  2658. 2009-12-13 Tatsuhiro Tsujikawa <[email protected]>
  2659. Release 1.7.2
  2660. 2009-12-13 Tatsuhiro Tsujikawa <[email protected]>
  2661. Fixed the bug that RequestGroupMan::downloadFinished() returns
  2662. true even if all downloads haven't finished, especially when
  2663. PostDownloadHandler is involved. Changed the condition so that it
  2664. only returns true if both _requestGroups and _reservedGroups are
  2665. empty.
  2666. * src/RequestGroupMan.cc
  2667. 2009-12-13 Tatsuhiro Tsujikawa <[email protected]>
  2668. Log listening port for BitTorrent/DHT in notice level.
  2669. * src/DHTConnectionImpl.cc
  2670. * src/PeerListenCommand.cc
  2671. 2009-12-12 Tatsuhiro Tsujikawa <[email protected]>
  2672. Updated po templates.
  2673. * po/aria2.pot
  2674. 2009-12-12 Tatsuhiro Tsujikawa <[email protected]>
  2675. Bump up version number to 1.7.2
  2676. * configure.ac
  2677. 2009-12-11 Tatsuhiro Tsujikawa <[email protected]>
  2678. Changed default value of --enable-dht from 'false' to 'true'.
  2679. * doc/aria2c.1.txt
  2680. 2009-12-11 Tatsuhiro Tsujikawa <[email protected]>
  2681. Enabled DHT by default because of Magnet URI support. To disable
  2682. DHT, use --enable-dht=false
  2683. * src/OptionHandlerFactory.cc
  2684. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2685. Print Magnet URI in -S output.
  2686. * src/AnnounceList.cc
  2687. * src/bittorrent_helper.cc
  2688. * src/bittorrent_helper.h
  2689. * test/BittorrentHelperTest.cc
  2690. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2691. Added --bt-prioritize-piece option to aria2rpc.
  2692. * doc/xmlrpc/aria2rpc
  2693. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2694. Refer Magnet URI in --help. Made some cosmetic changes.
  2695. * src/version_usage.cc
  2696. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2697. Updated -T and -M option.
  2698. * doc/aria2c.1.txt
  2699. 2009-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2700. Fixed typo
  2701. * doc/aria2c.1.txt
  2702. 2009-12-09 Tatsuhiro Tsujikawa <[email protected]>
  2703. Fixed the bug that line separator is missing in horizontal bar.
  2704. * doc/xmlrpc/aria2mon
  2705. 2009-12-09 Tatsuhiro Tsujikawa <[email protected]>
  2706. Updated usage text for --metalink-file option.
  2707. * src/usage_text.h
  2708. 2009-12-09 Tatsuhiro Tsujikawa <[email protected]>
  2709. If '-' is given as an argument to --metalink-file option, aria2
  2710. reads Metalink file from stdin.
  2711. * src/OptionHandlerFactory.cc
  2712. * src/OptionHandlerImpl.h
  2713. * src/a2io.h
  2714. 2009-12-08 Tatsuhiro Tsujikawa <[email protected]>
  2715. Fixed the bug that aria2 listens wrong port if --interface option
  2716. is used.
  2717. * src/SocketCore.cc
  2718. 2009-12-07 Tatsuhiro Tsujikawa <[email protected]>
  2719. Fixed the bug that query parameter in magnet URI is not decoded.
  2720. * src/magnet.cc
  2721. * test/MagnetTest.cc
  2722. 2009-12-07 Tatsuhiro Tsujikawa <[email protected]>
  2723. Specified defaultSize as an argument for easy testing.
  2724. * src/util.cc
  2725. * src/util.h
  2726. * test/UtilTest.cc
  2727. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  2728. Release 1.7.1
  2729. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  2730. Bump up version number to 1.7.1
  2731. * configure.ac
  2732. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  2733. Fixed the bug --bt-prioritize-piece=tail is not working.
  2734. * src/util.cc
  2735. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  2736. Release 1.7.0
  2737. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  2738. Updated po templates.
  2739. * po/aria2.pot
  2740. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  2741. Updated help message for --bt-prioritize-piece. Some cosmetic
  2742. changes.
  2743. * doc/aria2c.1.txt
  2744. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  2745. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  2746. * src/usage_text.h
  2747. * src/util.cc
  2748. * test/UtilTest.cc
  2749. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  2750. Updated Russian, Ukrainian, German and French translations.
  2751. Thanks to all translators involved.
  2752. * po/de.po
  2753. * po/fr.po
  2754. * po/ru.po
  2755. * po/uk.po
  2756. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  2757. Mentioned about pkg-config
  2758. * README
  2759. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  2760. Fixed typo. Referred --index-out option in BitTorrent notes.
  2761. * README
  2762. 2009-12-06 Tatsuhiro Tsujikawa <[email protected]>
  2763. Store all addresses found by getifaddrs() and getaddrinfo(). In
  2764. bind, try all addresses until success
  2765. * src/SocketCore.cc
  2766. * src/SocketCore.h
  2767. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  2768. Updated po templates.
  2769. * po/aria2.pot
  2770. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  2771. Bump up version number to 1.7.0
  2772. * configure.ac
  2773. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  2774. Fixed compile error if ENABLE_BITTORRENT is undefined.
  2775. * src/DefaultPieceStorage.cc
  2776. * src/DefaultPieceStorage.h
  2777. * src/PieceStorage.h
  2778. * src/UnknownLengthPieceStorage.cc
  2779. * src/UnknownLengthPieceStorage.h
  2780. * test/MockPieceStorage.h
  2781. * test/ProtocolDetectorTest.cc
  2782. * test/XmlRpcMethodTest.cc
  2783. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  2784. Documented in man page that if getifaddrs() is missing,
  2785. --interface option doesn't accept interface name.
  2786. * doc/aria2c.1.txt
  2787. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  2788. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  2789. * src/DefaultBtAnnounce.cc
  2790. * src/DefaultBtAnnounce.h
  2791. * test/DefaultBtAnnounceTest.cc
  2792. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  2793. Fixed the bug that connection is always dropped if handshake
  2794. message in extension protocol don't have metadata_size.
  2795. src/HandshakeExtensionMessage.cc
  2796. * src/HandshakeExtensionMessage.cc
  2797. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  2798. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  2799. text saying DHT is recommended when Magnet URI is provided.
  2800. * doc/aria2c.1.txt
  2801. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  2802. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  2803. URI is supplied. Notify user that they should consider enabling
  2804. DHT if they use Magnet URI.
  2805. * src/RequestGroup.cc
  2806. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  2807. Added --disable-ipv6 option to disable IPv6.
  2808. * doc/aria2c.1.txt
  2809. * src/InitiateConnectionCommand.cc
  2810. * src/NameResolver.cc
  2811. * src/NameResolver.h
  2812. * src/OptionHandlerFactory.cc
  2813. * src/main.cc
  2814. * src/prefs.cc
  2815. * src/prefs.h
  2816. * src/usage_text.h
  2817. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  2818. Updated usage text for --bt-prioritize-piece option.
  2819. * doc/aria2c.1.txt
  2820. * src/usage_text.h
  2821. 2009-12-05 Tatsuhiro Tsujikawa <[email protected]>
  2822. In configure script, if --with-PACKAGE and --enable-FEATURE are
  2823. given and PACKAGE is missing in the system or FEATURE cannot be
  2824. enabled, print error message and stop the script.
  2825. * configure.ac
  2826. * m4/aria2_arg.m4
  2827. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  2828. Halt metadata download immediately when metadata download is done.
  2829. Don't wait unresponsive tracker.
  2830. * src/ByteArrayDiskWriter.h
  2831. * src/DefaultBtInteractive.cc
  2832. * src/DefaultExtensionMessageFactory.cc
  2833. * src/DefaultExtensionMessageFactory.h
  2834. * src/PeerInteractionCommand.cc
  2835. * src/UTMetadataDataExtensionMessage.cc
  2836. * src/UTMetadataDataExtensionMessage.h
  2837. * src/UTMetadataRequestExtensionMessage.cc
  2838. * test/UTMetadataDataExtensionMessageTest.cc
  2839. * test/UTMetadataRequestExtensionMessageTest.cc
  2840. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  2841. Documented --interface option in man page.
  2842. * doc/aria2c.1.txt
  2843. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  2844. Try resolved address in the order received from the resolver.
  2845. * src/DNSCache.h
  2846. 2009-12-04 Tatsuhiro Tsujikawa <[email protected]>
  2847. Added debug logs.
  2848. * src/SocketCore.cc
  2849. 2009-12-03 Tatsuhiro Tsujikawa <[email protected]>
  2850. Fixed type of tail to uint64_t
  2851. * src/util.cc
  2852. 2009-12-03 Tatsuhiro Tsujikawa <[email protected]>
  2853. Added --interface option. This feature binds sockets to given
  2854. interface. You can specify interface name, IP address and
  2855. hostname.
  2856. * configure.ac
  2857. * src/OptionHandlerFactory.cc
  2858. * src/SocketCore.cc
  2859. * src/SocketCore.h
  2860. * src/main.cc
  2861. * src/message.h
  2862. * src/prefs.cc
  2863. * src/prefs.h
  2864. * src/usage_text.h
  2865. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  2866. Updated man page for bt-prioritize-piece option in -i list.
  2867. * doc/aria2c.1.txt
  2868. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  2869. Added bt-prioritize-piece option to -i list.
  2870. * src/download_helper.cc
  2871. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  2872. Removed --http-auth-scheme option from man page.
  2873. * doc/aria2c.1.txt
  2874. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  2875. Removed --http-auth-scheme option since it doesn't do nothing.
  2876. * src/OptionHandlerFactory.cc
  2877. * src/prefs.cc
  2878. * src/prefs.h
  2879. * src/usage_text.h
  2880. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  2881. Adjusted the number of peer info which get_peers reply message can
  2882. carry.
  2883. * src/DHTGetPeersReplyMessage.cc
  2884. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  2885. Added extension_message_test_helper.h to aria2c_SOURCES.
  2886. * test/Makefile.am
  2887. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  2888. Documented --bt-prioritize-piece option in man page.
  2889. * doc/aria2c.1.txt
  2890. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  2891. Added option --bt-prioritize-piece. This option instruct aria2 to
  2892. try to download first and last pieces of each file first. The
  2893. argument can contain 2 keywords:head and tail. To include both
  2894. keywords, they must be separated by comma. These keywords can take
  2895. one parameter, SIZE. For example , if head=SIZE is specified,
  2896. pieces in the range of first SIZE bytes of each file get higher
  2897. priority. tail=SIZE means the range of last SIZE bytes of each
  2898. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  2899. * src/DefaultPieceStorage.h
  2900. * src/Makefile.am
  2901. * src/OptionHandlerFactory.cc
  2902. * src/OptionHandlerImpl.h
  2903. * src/PriorityPieceSelector.cc
  2904. * src/PriorityPieceSelector.h
  2905. * src/RequestGroup.cc
  2906. * src/prefs.cc
  2907. * src/prefs.h
  2908. * src/usage_text.h
  2909. * src/util.cc
  2910. * src/util.h
  2911. * test/Makefile.am
  2912. * test/MockPieceSelector.h
  2913. * test/PriorityPieceSelectorTest.cc
  2914. * test/UtilTest.cc
  2915. 2009-11-29 Tatsuhiro Tsujikawa <[email protected]>
  2916. Fixed typo
  2917. * src/HttpRequest.h
  2918. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  2919. In Magnet URI with tr parameter, put each announce URI in separate
  2920. tier.
  2921. * src/bittorrent_helper.cc
  2922. * test/BittorrentHelperTest.cc
  2923. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  2924. Renamed ExtensionMessage::getBencodedData() as
  2925. ExtensionMessage::getPayload()
  2926. * src/BtExtendedMessage.cc
  2927. * src/ExtensionMessage.h
  2928. * src/HandshakeExtensionMessage.cc
  2929. * src/HandshakeExtensionMessage.h
  2930. * src/UTMetadataDataExtensionMessage.cc
  2931. * src/UTMetadataDataExtensionMessage.h
  2932. * src/UTMetadataRejectExtensionMessage.cc
  2933. * src/UTMetadataRejectExtensionMessage.h
  2934. * src/UTMetadataRequestExtensionMessage.cc
  2935. * src/UTMetadataRequestExtensionMessage.h
  2936. * src/UTPexExtensionMessage.cc
  2937. * src/UTPexExtensionMessage.h
  2938. * test/HandshakeExtensionMessageTest.cc
  2939. * test/MockExtensionMessage.h
  2940. * test/UTMetadataDataExtensionMessageTest.cc
  2941. * test/UTMetadataRejectExtensionMessageTest.cc
  2942. * test/UTMetadataRequestExtensionMessageTest.cc
  2943. * test/UTPexExtensionMessageTest.cc
  2944. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  2945. Updated man page for BitTorrent Magnet URI.
  2946. * doc/aria2c.1.txt
  2947. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  2948. Call DownloadContext::setOwnerRequestGroup() in
  2949. RequestGroup::setDownloadContext().
  2950. * src/BtDependency.cc
  2951. * src/RequestGroup.cc
  2952. * src/RequestGroup.h
  2953. * src/download_helper.cc
  2954. * test/DefaultBtMessageDispatcherTest.cc
  2955. * test/DefaultExtensionMessageFactoryTest.cc
  2956. * test/HandshakeExtensionMessageTest.cc
  2957. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  2958. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  2959. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  2960. from metadata, use new metadata2Torrent() function.
  2961. * src/BtDependency.cc
  2962. * src/UTMetadataPostDownloadHandler.cc
  2963. * src/bittorrent_helper.cc
  2964. * src/bittorrent_helper.h
  2965. * test/BittorrentHelperTest.cc
  2966. * test/BtDependencyTest.cc
  2967. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  2968. Use createRequestGroupForUri to create the download for torrent
  2969. file.
  2970. * src/Metalink2RequestGroup.cc
  2971. * test/Metalink2RequestGroupTest.cc
  2972. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  2973. Fixed typo
  2974. * src/DownloadContext.h
  2975. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  2976. Use createRequestGroupForBitTorrent()
  2977. * src/BtPostDownloadHandler.cc
  2978. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  2979. Added remove().
  2980. * src/Option.cc
  2981. * src/Option.h
  2982. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  2983. Removed options which is only valid for URIs specified in
  2984. command-line. If they are left, because op is used as a template
  2985. for new RequestGroup(such as created in XML-RPC command,
  2986. BtPostDownloadHandler etc), they causes unintentional effect.
  2987. * src/main.cc
  2988. 2009-11-28 Tatsuhiro Tsujikawa <[email protected]>
  2989. Refer to option value of PREF_OUT only in download_helper.
  2990. * src/FtpNegotiationCommand.cc
  2991. * src/HttpResponseCommand.cc
  2992. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  2993. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  2994. * src/download_helper.cc
  2995. * src/download_helper.h
  2996. * src/XmlRpcMethodImpl.cc
  2997. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  2998. Updated man page for changeOption XML-RPC method.
  2999. * doc/aria2c.1.txt
  3000. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  3001. Added --bt-max-peers option to changeOption XML-RPC method.
  3002. * src/XmlRpcMethod.cc
  3003. * src/XmlRpcMethodImpl.cc
  3004. * test/XmlRpcMethodTest.cc
  3005. 2009-11-27 Tatsuhiro Tsujikawa <[email protected]>
  3006. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  3007. * test/XmlRpcMethodTest.cc
  3008. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  3009. Removed redundant DownloadContext::hasAttribute(...) calls.
  3010. * src/ConsoleStatCalc.cc
  3011. * src/RequestGroup.cc
  3012. * src/XmlRpcMethodImpl.cc
  3013. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  3014. Changed the number of tracker request attempt from 5 to 2.
  3015. * src/TrackerWatcherCommand.cc
  3016. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  3017. Use host and protocol in original URI, because URI selector
  3018. selects URI based on original URI, not redirected one.
  3019. * src/Request.cc
  3020. 2009-11-26 Tatsuhiro Tsujikawa <[email protected]>
  3021. Fixed the bug which causes segmentation fault with tellWaiting
  3022. XML-RPC method when BitTorrent download is waiting. The key of
  3023. BtRegistry is changed from info hash to GID, because it is
  3024. registered per RequestGroup, not info hash.
  3025. * src/BtRegistry.cc
  3026. * src/BtRegistry.h
  3027. * src/BtSetup.cc
  3028. * src/ConsoleStatCalc.cc
  3029. * src/InitiatorMSEHandshakeCommand.cc
  3030. * src/PeerInitiateConnectionCommand.cc
  3031. * src/PeerInteractionCommand.cc
  3032. * src/PeerInteractionCommand.h
  3033. * src/PeerReceiveHandshakeCommand.cc
  3034. * src/RequestGroup.cc
  3035. * src/XmlRpcMethodImpl.cc
  3036. * test/BtRegistryTest.cc
  3037. * test/XmlRpcMethodTest.cc
  3038. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  3039. Updated man page for changeOption XML-RPC method.
  3040. * doc/aria2c.1.txt
  3041. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  3042. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  3043. method.
  3044. * src/XmlRpcMethod.cc
  3045. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  3046. Documented about BitTorrent Magnet URI in man page.
  3047. * doc/aria2c.1.txt
  3048. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  3049. Fixed the bug that trackers in BitTorrent Magnet URI are not
  3050. inherited to generated RequestGroup.
  3051. * src/UTMetadataPostDownloadHandler.cc
  3052. * test/UTMetadataPostDownloadHandlerTest.cc
  3053. 2009-11-25 Tatsuhiro Tsujikawa <[email protected]>
  3054. Prepended "[METADATA]" before dn.
  3055. * src/bittorrent_helper.cc
  3056. * test/BittorrentHelperTest.cc
  3057. 2009-11-24 Tatsuhiro Tsujikawa <[email protected]>
  3058. Rewritten Magnet URI parser.
  3059. * src/Makefile.am
  3060. * src/ProtocolDetector.cc
  3061. * src/bittorrent_helper.cc
  3062. * src/bittorrent_helper.h
  3063. * src/download_helper.cc
  3064. * src/magnet.cc
  3065. * src/magnet.h
  3066. * test/BittorrentHelperTest.cc
  3067. * test/MagnetTest.cc
  3068. * test/Makefile.am
  3069. * test/ProtocolDetectorTest.cc
  3070. 2009-11-24 Tatsuhiro Tsujikawa <[email protected]>
  3071. Use hton64
  3072. * src/base32.cc
  3073. 2009-11-24 Tatsuhiro Tsujikawa <[email protected]>
  3074. Added Base32 encoded BitTorrent Magnet Link support.
  3075. * src/Makefile.am
  3076. * src/base32.cc
  3077. * src/base32.h
  3078. * src/bittorrent_helper.cc
  3079. * test/Base32Test.cc
  3080. * test/BittorrentHelperTest.cc
  3081. * test/Makefile.am
  3082. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  3083. Added BitTorrent Magnet Link support. Base32 encoded link is not
  3084. supported yet. Fixed typo in method name in RequestGroup. In
  3085. metadataGetMode, don't show "Your share ratio was ..." message.
  3086. * src/DefaultBtInteractive.cc
  3087. * src/DefaultBtInteractive.h
  3088. * src/DownloadHandlerFactory.cc
  3089. * src/DownloadHandlerFactory.h
  3090. * src/HandshakeExtensionMessage.cc
  3091. * src/Makefile.am
  3092. * src/Metalink2RequestGroup.cc
  3093. * src/PeerInteractionCommand.cc
  3094. * src/RequestGroup.cc
  3095. * src/RequestGroup.h
  3096. * src/UTMetadataPostDownloadHandler.cc
  3097. * src/UTMetadataPostDownloadHandler.h
  3098. * src/download_helper.cc
  3099. * test/HandshakeExtensionMessageTest.cc
  3100. * test/Makefile.am
  3101. * test/UTMetadataPostDownloadHandlerTest.cc
  3102. * test/UTMetadataRejectExtensionMessageTest.cc
  3103. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  3104. In metadataGetMode, don't show SEEDING.
  3105. * src/ConsoleStatCalc.cc
  3106. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  3107. Fixed ut_metadata data handling. Implemented
  3108. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  3109. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  3110. metadata_size is received.
  3111. * src/DefaultExtensionMessageFactory.cc
  3112. * src/DefaultExtensionMessageFactory.h
  3113. * src/HandshakeExtensionMessage.cc
  3114. * src/HandshakeExtensionMessage.h
  3115. * src/UTMetadataDataExtensionMessage.cc
  3116. * src/UTMetadataDataExtensionMessage.h
  3117. * src/UTMetadataRequestExtensionMessage.cc
  3118. * src/UTMetadataRequestFactory.cc
  3119. * src/UTMetadataRequestFactory.h
  3120. * src/UTMetadataRequestTracker.cc
  3121. * src/UTMetadataRequestTracker.h
  3122. * test/DefaultExtensionMessageFactoryTest.cc
  3123. * test/HandshakeExtensionMessageTest.cc
  3124. * test/MockBtMessage.h
  3125. * test/UTMetadataDataExtensionMessageTest.cc
  3126. * test/UTMetadataRequestExtensionMessageTest.cc
  3127. * test/UTMetadataRequestFactoryTest.cc
  3128. * test/UTMetadataRequestTrackerTest.cc
  3129. * test/extension_message_test_helper.h
  3130. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  3131. Drop connection if ut_metadata reject message is received.
  3132. * src/UTMetadataRejectExtensionMessage.cc
  3133. 2009-11-23 Tatsuhiro Tsujikawa <[email protected]>
  3134. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  3135. get high enough in that mode.
  3136. * src/ActivePeerConnectionCommand.cc
  3137. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3138. Added BitTorrent magnet link support to ProtocolDetector.
  3139. * src/ProtocolDetector.cc
  3140. * src/ProtocolDetector.h
  3141. * test/ProtocolDetectorTest.cc
  3142. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3143. Don't inject validator into BtMessage in metadataGetMode because
  3144. most of the checks depends on the total length of download but it
  3145. is unknown. Delegate metadataGetMode to BtMessage.
  3146. * src/DefaultBtMessageFactory.cc
  3147. * src/DefaultBtMessageFactory.h
  3148. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3149. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  3150. * src/DefaultPieceStorage.h
  3151. * src/PieceStorage.h
  3152. * src/UnknownLengthPieceStorage.h
  3153. * test/MockPieceStorage.h
  3154. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3155. Added markTotalLengthIsKnown().
  3156. * src/DownloadContext.h
  3157. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3158. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  3159. missing. If metadata is missing, always use DHT when it is ready.
  3160. * src/BtSetup.cc
  3161. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3162. Added parseMagnetLink(). Hex encoded info hash is supported.
  3163. Base32 encoded info hash is not supported yet.
  3164. * src/bittorrent_helper.cc
  3165. * src/bittorrent_helper.h
  3166. * test/BittorrentHelperTest.cc
  3167. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3168. Added FromHex()
  3169. * src/util.cc
  3170. * src/util.h
  3171. * test/UtilTest.cc
  3172. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3173. Added _metadataGetMode member variable. It toggles the action when
  3174. messages are received: usually they almost do nothing if
  3175. _metadataGetMode is true.
  3176. * src/AbstractBtMessage.cc
  3177. * src/AbstractBtMessage.h
  3178. * src/BtAllowedFastMessage.cc
  3179. * src/BtBitfieldMessage.cc
  3180. * src/BtCancelMessage.cc
  3181. * src/BtChokeMessage.cc
  3182. * src/BtHaveAllMessage.cc
  3183. * src/BtHaveMessage.cc
  3184. * src/BtInterestedMessage.cc
  3185. * src/BtNotInterestedMessage.cc
  3186. * src/BtPieceMessage.cc
  3187. * src/BtRejectMessage.cc
  3188. * src/BtRequestMessage.cc
  3189. * src/BtUnchokeMessage.cc
  3190. 2009-11-22 Tatsuhiro Tsujikawa <[email protected]>
  3191. Added bencode::decode overload functions. They have extra argument
  3192. 'end', passed by reference. 'end' points to the beyond the last
  3193. position of data used in decoding process.
  3194. * src/bencode.cc
  3195. * src/bencode.h
  3196. * test/BencodeTest.cc
  3197. 2009-11-21 Tatsuhiro Tsujikawa <[email protected]>
  3198. Initial support of Extension for Peers to Send Metadata
  3199. Files(BEP9). Currently aria2 only serves metadata and cannot get
  3200. metadata from swarm.
  3201. * src/BtConstants.h
  3202. * src/DefaultBtInteractive.cc
  3203. * src/DefaultExtensionMessageFactory.cc
  3204. * src/DefaultExtensionMessageFactory.h
  3205. * src/ExtensionMessage.h
  3206. * src/ExtensionMessageRegistry.h
  3207. * src/HandshakeExtensionMessage.cc
  3208. * src/HandshakeExtensionMessage.h
  3209. * src/Makefile.am
  3210. * src/PeerConnection.h
  3211. * src/PeerInteractionCommand.cc
  3212. * src/UTMetadataDataExtensionMessage.cc
  3213. * src/UTMetadataDataExtensionMessage.h
  3214. * src/UTMetadataExtensionMessage.cc
  3215. * src/UTMetadataExtensionMessage.h
  3216. * src/UTMetadataRejectExtensionMessage.cc
  3217. * src/UTMetadataRejectExtensionMessage.h
  3218. * src/UTMetadataRequestExtensionMessage.cc
  3219. * src/UTMetadataRequestExtensionMessage.h
  3220. * src/bittorrent_helper.cc
  3221. * src/bittorrent_helper.h
  3222. * test/BittorrentHelperTest.cc
  3223. * test/DefaultExtensionMessageFactoryTest.cc
  3224. * test/HandshakeExtensionMessageTest.cc
  3225. * test/Makefile.am
  3226. * test/UTMetadataDataExtensionMessageTest.cc
  3227. * test/UTMetadataRejectExtensionMessageTest.cc
  3228. * test/UTMetadataRequestExtensionMessageTest.cc
  3229. 2009-11-21 Tatsuhiro Tsujikawa <[email protected]>
  3230. Cancel segment in prepareForRetry() because there is a chance that
  3231. the command has segments.
  3232. * src/CreateRequestCommand.cc
  3233. 2009-11-20 Tatsuhiro Tsujikawa <[email protected]>
  3234. Fixed the bug that slow server is not knocked down in favor of
  3235. faster one.
  3236. * src/AbstractCommand.cc
  3237. * src/DefaultPieceStorage.cc
  3238. * src/DefaultPieceStorage.h
  3239. * src/PieceStorage.h
  3240. * src/UnknownLengthPieceStorage.cc
  3241. * src/UnknownLengthPieceStorage.h
  3242. * test/MockPieceStorage.h
  3243. 2009-11-20 Tatsuhiro Tsujikawa <[email protected]>
  3244. Fixed the bug that Request object is not added to
  3245. _inFlightRequests in findFasterRequest().
  3246. * src/FileEntry.cc
  3247. 2009-11-18 Tatsuhiro Tsujikawa <[email protected]>
  3248. Changed the strategry of how to increase the number of outstanding
  3249. requests. Now the number is doubled if there are no outstanding
  3250. requests after receiving messages.
  3251. * src/BtConstants.h
  3252. * src/DefaultBtInteractive.cc
  3253. * src/DefaultBtInteractive.h
  3254. 2009-11-18 Tatsuhiro Tsujikawa <[email protected]>
  3255. Check socket for reading if there are outstanding requests.
  3256. * src/PeerInteractionCommand.cc
  3257. 2009-11-17 Tatsuhiro Tsujikawa <[email protected]>
  3258. Moved frequently called methods to header file so they get
  3259. inlined.
  3260. * src/RequestSlot.cc
  3261. * src/RequestSlot.h
  3262. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3263. Copied in_addr instead of just casting from char* which might
  3264. violate strict aliasing rules.
  3265. * src/AsyncNameResolver.cc
  3266. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3267. Use dynamic_pointer_cast
  3268. * test/BtPieceMessageTest.cc
  3269. * test/BtRequestMessageTest.cc
  3270. * test/DefaultBtRequestFactoryTest.cc
  3271. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3272. Added testSetUrl20()
  3273. * test/RequestTest.cc
  3274. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3275. Code cleanup
  3276. * src/bittorrent_helper.cc
  3277. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3278. Use C++ style cast
  3279. * src/AsyncNameResolver.cc
  3280. * src/Base64.h
  3281. * src/BtBitfieldMessage.cc
  3282. * src/BtHandshakeMessage.cc
  3283. * src/DefaultBtMessageFactory.cc
  3284. * src/DefaultBtProgressInfoFile.cc
  3285. * src/EpollEventPoll.cc
  3286. * src/ExpatMetalinkProcessor.cc
  3287. * src/IteratableChecksumValidator.cc
  3288. * src/IteratableChunkChecksumValidator.cc
  3289. * src/MessageDigestHelper.cc
  3290. * src/Platform.cc
  3291. * src/RequestGroupMan.cc
  3292. * src/SingleFileAllocationIterator.cc
  3293. * src/Sqlite3MozCookieParser.cc
  3294. * src/XML2SAXMetalinkProcessor.cc
  3295. * src/Xml2XmlRpcRequestProcessor.cc
  3296. * src/util.cc
  3297. * src/util.h
  3298. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3299. Fixed integer potential alignment problem.
  3300. * src/bitfield.h
  3301. 2009-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3302. Applied a patch from tizianomueller to fix sigbus errors on Linux
  3303. sparc. I modified the patch to eliminate a cast to uint32_t* and
  3304. include file ordering.
  3305. * src/PeerListProcessor.h
  3306. * src/bittorrent_helper.cc
  3307. 2009-11-13 Tatsuhiro Tsujikawa <[email protected]>
  3308. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  3309. * src/Request.cc
  3310. * src/util.cc
  3311. * src/util.h
  3312. * test/RequestTest.cc
  3313. 2009-11-13 Tatsuhiro Tsujikawa <[email protected]>
  3314. Rewritten util::uitos()
  3315. * src/util.h
  3316. 2009-11-13 Tatsuhiro Tsujikawa <[email protected]>
  3317. Code cleanup
  3318. * src/Request.cc
  3319. * src/Request.h
  3320. 2009-11-12 Tatsuhiro Tsujikawa <[email protected]>
  3321. Rewritten Request::parseUrl()
  3322. * src/Request.cc
  3323. * test/RequestTest.cc
  3324. 2009-11-11 Tatsuhiro Tsujikawa <[email protected]>
  3325. Removed unused macro SAFE_CHARS
  3326. * src/Request.cc
  3327. 2009-11-11 Tatsuhiro Tsujikawa <[email protected]>
  3328. Updated doc
  3329. * src/DHTRoutingTableDeserializer.cc
  3330. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3331. Release 1.6.3
  3332. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3333. Removed unused function.
  3334. * test/DHTPeerAnnounceStorageTest.cc
  3335. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3336. Only decrement cols if cols > 0
  3337. * src/ConsoleStatCalc.cc
  3338. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3339. Updated Polish, Catalan, French, Italian, Russian and Japanese
  3340. translations. Thanks to all translators.
  3341. * po/ca.po
  3342. * po/fr.po
  3343. * po/it.po
  3344. * po/ja.po
  3345. * po/pl.po
  3346. * po/ru.po
  3347. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3348. Updated translation template
  3349. * po
  3350. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3351. Fixed compile error without ssl library.
  3352. * src/util.cc
  3353. 2009-11-02 Tatsuhiro Tsujikawa <[email protected]>
  3354. Logged received nodes in get_peers reply message.
  3355. * src/DHTAbstractNodeLookupTask.cc
  3356. * src/DHTAbstractNodeLookupTask.h
  3357. 2009-11-01 Tatsuhiro Tsujikawa <[email protected]>
  3358. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  3359. error occurred in DHTMessageDispatcherImpl::sendMessage().
  3360. * src/DHTMessageDispatcherImpl.cc
  3361. 2009-11-01 Tatsuhiro Tsujikawa <[email protected]>
  3362. Don't reuse URI if Request pool is not empty.
  3363. * src/CreateRequestCommand.cc
  3364. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  3365. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  3366. receive get_peers request for torrent which the client is now
  3367. downloading.
  3368. * src/BtSetup.cc
  3369. * src/DHTPeerAnnounceEntry.cc
  3370. * src/DHTPeerAnnounceEntry.h
  3371. * src/DHTPeerAnnounceStorage.cc
  3372. * src/DHTPeerAnnounceStorage.h
  3373. * src/RequestGroup.cc
  3374. * test/DHTPeerAnnounceEntryTest.cc
  3375. * test/DHTPeerAnnounceStorageTest.cc
  3376. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  3377. Fixed the bug that in Windows environment new blank line is
  3378. inserted when console readout is updated.
  3379. * src/ConsoleStatCalc.cc
  3380. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  3381. Throw exception if binding listening port is failed. Removed
  3382. RequestGroupMan::getInitialCommand(). Use
  3383. fillRequestGroupFromReserver() instead. Delete commands for
  3384. RequestGroup which has errors when it is being added.
  3385. * src/BtSetup.cc
  3386. * src/DownloadEngine.cc
  3387. * src/DownloadEngine.h
  3388. * src/DownloadEngineFactory.cc
  3389. * src/MultiUrlRequestInfo.cc
  3390. * src/RequestGroupMan.cc
  3391. * src/RequestGroupMan.h
  3392. * test/RequestGroupManTest.cc
  3393. 2009-10-31 Tatsuhiro Tsujikawa <[email protected]>
  3394. Fixed the bug that when downloading more than one torrent,
  3395. listening port is not reported properly to tracker for 2nd or
  3396. later torrents.
  3397. * src/BtSetup.cc
  3398. * src/PeerListenCommand.cc
  3399. * src/PeerListenCommand.h
  3400. * src/RequestGroup.cc
  3401. 2009-10-29 Tatsuhiro Tsujikawa <[email protected]>
  3402. Bump up version number to 1.6.3
  3403. * configure.ac
  3404. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  3405. Removed Util.cc from POTFILES.in
  3406. * po/POTFILES.in
  3407. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  3408. Updated man page for previous change.
  3409. * doc/aria2c.1.txt
  3410. 2009-10-27 Tatsuhiro Tsujikawa <[email protected]>
  3411. If user name is embedded but password is missing in URI, first
  3412. resolve password using .netrc. If password is found in .netrc,
  3413. then use it as password. If not, use the password specified in
  3414. --ftp-passwd.
  3415. * src/AuthConfigFactory.cc
  3416. * src/Request.cc
  3417. * src/Request.h
  3418. * test/AuthConfigFactoryTest.cc
  3419. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  3420. Fixed typo
  3421. * doc/aria2c.1.txt
  3422. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  3423. Fixed typo
  3424. * src/usage_text.h
  3425. 2009-10-25 Tatsuhiro Tsujikawa <[email protected]>
  3426. Added missing bitfield.cc
  3427. * src/bitfield.cc
  3428. 2009-10-23 Tatsuhiro Tsujikawa <[email protected]>
  3429. Renamed Util.{cc,h} as util.{cc,h}
  3430. * src/Util.cc
  3431. * src/Util.h
  3432. * src/util.cc
  3433. * src/util.h
  3434. 2009-10-22 Tatsuhiro Tsujikawa <[email protected]>
  3435. Moved static functions in Util class to namespace util.
  3436. * src
  3437. * test
  3438. 2009-10-22 Tatsuhiro Tsujikawa <[email protected]>
  3439. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  3440. Moved generateRandomKey to bittorrent_helper.cc.
  3441. * src/DHTBucket.cc
  3442. * src/DHTGetPeersMessage.cc
  3443. * src/DHTGetPeersReplyMessage.cc
  3444. * src/DHTMessage.cc
  3445. * src/DHTNode.cc
  3446. * src/DHTTokenTracker.cc
  3447. * src/DHTUtil.cc: Removed.
  3448. * src/DHTUtil.h: Removed.
  3449. * src/Makefile.am
  3450. * src/Util.cc
  3451. * src/Util.h
  3452. * src/bitfield.h
  3453. * src/bittorrent_helper.cc
  3454. * src/bittorrent_helper.h
  3455. * test/ARC4Test.cc
  3456. * test/BNodeTest.cc
  3457. * test/DHTAnnouncePeerMessageTest.cc
  3458. * test/DHTAnnouncePeerReplyMessageTest.cc
  3459. * test/DHTFindNodeMessageTest.cc
  3460. * test/DHTFindNodeReplyMessageTest.cc
  3461. * test/DHTGetPeersMessageTest.cc
  3462. * test/DHTGetPeersReplyMessageTest.cc
  3463. * test/DHTPingMessageTest.cc
  3464. * test/DHTPingReplyMessageTest.cc
  3465. * test/DHTTokenTrackerTest.cc
  3466. * test/DHTUtilTest.cc: Removed.
  3467. * test/Makefile.am
  3468. * test/UtilTest.cc
  3469. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  3470. Removed the call to trim() because trim() is called for each
  3471. element in split().
  3472. * src/CookieParser.cc
  3473. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  3474. Replaced Util::slice() with split()
  3475. * src/AbstractCommand.cc
  3476. * src/CookieParser.cc
  3477. * src/File.cc
  3478. * src/HttpHeaderProcessor.cc
  3479. * src/HttpRequest.cc
  3480. * src/Metalink2RequestGroup.cc
  3481. * src/MetalinkParserController.cc
  3482. * src/Netrc.cc
  3483. * src/NsCookieParser.cc
  3484. * src/ParameterizedStringParser.cc
  3485. * src/ServerStatMan.cc
  3486. * src/UriListParser.cc
  3487. * src/Util.cc
  3488. * src/Util.h
  3489. * src/bittorrent_helper.cc
  3490. * test/UtilTest.cc
  3491. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  3492. Use request->getDir() instead of "/" for embedded user/pass in
  3493. URI.
  3494. * src/AuthConfigFactory.cc
  3495. 2009-10-18 Tatsuhiro Tsujikawa <[email protected]>
  3496. Fixed wrong insertion point for BasicCred.
  3497. * src/AuthConfigFactory.cc
  3498. 2009-10-17 Tatsuhiro Tsujikawa <[email protected]>
  3499. Allowed non-regular file in LocalFilePathOptionHandler
  3500. * src/OptionHandlerImpl.h
  3501. * src/message.h
  3502. 2009-10-17 Tatsuhiro Tsujikawa <[email protected]>
  3503. Fixed the bug that Netrc::parse() cannot recognize comment line.
  3504. * src/Netrc.cc
  3505. * src/Util.h
  3506. * test/NetrcTest.cc
  3507. * test/sample.netrc
  3508. 2009-10-13 Tatsuhiro Tsujikawa <[email protected]>
  3509. Fixed typo
  3510. * src/BtDependency.cc
  3511. * src/BtRejectMessage.cc
  3512. * src/FtpConnection.cc
  3513. * src/HttpHeaderProcessor.h
  3514. 2009-10-13 Tatsuhiro Tsujikawa <[email protected]>
  3515. Fixed lintian report in man page
  3516. * doc/aria2c.1.txt
  3517. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3518. Release 1.6.2
  3519. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3520. Updated Ukrainian translation. Thanks to all translators.
  3521. * po/uk.po
  3522. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3523. Updated translation template
  3524. * po
  3525. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3526. Bump up version number to 1.6.2
  3527. * configure.ac
  3528. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3529. Updated licence message in -v output.
  3530. * src/version_usage.cc
  3531. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3532. Replaced aria2 with aria2c in help message.
  3533. * src/version_usage.cc
  3534. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3535. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  3536. * src/version_usage.cc
  3537. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3538. Quoted localedir
  3539. * src/Makefile.am
  3540. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3541. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  3542. utime. Check header for utime.h.
  3543. * configure.ac
  3544. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3545. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  3546. * configure.ac
  3547. * src/daemon.cc
  3548. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3549. Don't set localedir manually. Leave it to autoconf.
  3550. * configure.ac
  3551. * src/Makefile.am
  3552. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3553. Added --install to ACLOCAL_AMFLAGS.
  3554. Removed m4 from SUBDIRS.
  3555. Updated automake 1.11 and autoconf 2.64.
  3556. Replaced some obsolute macros with new one.
  3557. * Makefile.am
  3558. * configure.ac
  3559. * m4/aria2_arg.m4
  3560. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3561. Removed Makefile.am in m4 directory.
  3562. * configure.ac
  3563. * m4/ChangeLog
  3564. * m4/Makefile.am
  3565. * m4/Makefile.in
  3566. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3567. Removed unused m4 macros.
  3568. * m4/intldir.m4
  3569. * m4/inttypes.m4
  3570. * m4/isc-posix.m4
  3571. * m4/libgnutls-extra.m4
  3572. * m4/ulonglong.m4
  3573. 2009-10-10 Tatsuhiro Tsujikawa <[email protected]>
  3574. Fixed the bug that causes segmentation fault if
  3575. req->getCurrentUrl() contains printf formatting characters such as
  3576. %d. The statement that causes this bug is useless and removed.
  3577. * src/AbstractCommand.cc
  3578. 2009-10-07 Tatsuhiro Tsujikawa <[email protected]>
  3579. * Release 1.6.1
  3580. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  3581. Updated Simplified Chinese translation. Thanks to translators.
  3582. * po/zh_CN.po
  3583. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  3584. Updated translation template
  3585. * po
  3586. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  3587. Bump up version number to 1.6.1
  3588. * configure.ac
  3589. 2009-10-06 Tatsuhiro Tsujikawa <[email protected]>
  3590. Changed interval from 120 to 60 for dropping inactive peer.
  3591. * src/DefaultBtInteractive.cc
  3592. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  3593. Updated man page for --user-agent and --peer-id-prefix option.
  3594. * doc/aria2c.1.txt
  3595. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  3596. Code clean up
  3597. * src/BtPostDownloadHandler.cc
  3598. * src/ContentTypeRequestGroupCriteria.cc
  3599. * src/ContentTypeRequestGroupCriteria.h
  3600. * src/DownloadHandlerConstants.cc
  3601. * src/DownloadHandlerConstants.h
  3602. * src/DownloadHandlerFactory.cc
  3603. * src/MetalinkPostDownloadHandler.cc
  3604. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  3605. Don't save control file when aria2 exists while checking piece
  3606. hash(behavior of -V option). If control file doesn't exist when
  3607. aria2 launched, the completed length in saved control file will be
  3608. 0 byte and this confuses user. disableSaveControlFile() is called
  3609. in RequestGroup::processCheckIntegrityEntry().
  3610. enableSaveControlFile() will be called after hash checking is
  3611. done. See CheckIntegrityCommand.
  3612. * src/CheckIntegrityCommand.cc
  3613. * src/RequestGroup.cc
  3614. * src/RequestGroup.h
  3615. * src/RequestGroupMan.cc
  3616. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  3617. Included version number in Peer ID and client version. Peer ID
  3618. now starts with "aria2/VERSION-", where VERSION is
  3619. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  3620. * src/DefaultBtInteractive.cc
  3621. * src/OptionHandlerFactory.cc
  3622. * src/bittorrent_helper.cc
  3623. * src/bittorrent_helper.h
  3624. * src/main.cc
  3625. * src/usage_text.h
  3626. * test/BittorrentHelperTest.cc
  3627. 2009-10-05 Tatsuhiro Tsujikawa <[email protected]>
  3628. Fixed memory leak.
  3629. * src/DownloadCommand.cc
  3630. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  3631. Removed server, port, user and passwd key from options before
  3632. XMLRPC::Client.call since they are not options of aria2.
  3633. * doc/xmlrpc/aria2mon
  3634. * doc/xmlrpc/aria2rpc
  3635. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  3636. Included version number in user-agent string.
  3637. * src/OptionHandlerFactory.cc
  3638. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  3639. Fixed the bug that the option values changed by XML-RPC
  3640. method(changeOption and changeGlobalOption) are overwritten to the
  3641. previous value by the next these request which doesn't contain
  3642. that option value. Supporse max-download-limit is initially 0. You
  3643. changed this value to 100K by changeOption. Then you issue
  3644. changeOption request to change max-upload-limit to 50K. This
  3645. second request doesn't contain xml-download-limit, so it is back
  3646. to initial value, 0. Another improvement is that exception is
  3647. thrown when changeOption and changeGlobalOption request contains
  3648. option name which doesn't allowed in each request.
  3649. * src/DownloadEngine.h
  3650. * src/XmlRpcMethod.cc
  3651. * src/XmlRpcMethod.h
  3652. * src/XmlRpcMethodImpl.cc
  3653. * src/download_helper.cc
  3654. * src/download_helper.h
  3655. * test/XmlRpcMethodTest.cc
  3656. 2009-10-04 Tatsuhiro Tsujikawa <[email protected]>
  3657. Added missing MetalinkParserStateImpl.{cc,h}
  3658. * src/MetalinkParserStateImpl.cc
  3659. * src/MetalinkParserStateImpl.h
  3660. 2009-10-03 Tatsuhiro Tsujikawa <[email protected]>
  3661. Put all MetalinkParserState subclasses into
  3662. MetalinkParserStateImpl.cc. Use stack to track element structure.
  3663. * src/FileMetalinkParserState.cc: Removed
  3664. * src/FileMetalinkParserState.h: Removed
  3665. * src/FilesMetalinkParserState.cc: Removed
  3666. * src/FilesMetalinkParserState.h: Removed
  3667. * src/FinMetalinkParserState.cc: Removed
  3668. * src/FinMetalinkParserState.h: Removed
  3669. * src/HashMetalinkParserState.cc: Removed
  3670. * src/HashMetalinkParserState.h: Removed
  3671. * src/InitialMetalinkParserState.cc: Removed
  3672. * src/InitialMetalinkParserState.h: Removed
  3673. * src/LanguageMetalinkParserState.cc: Removed
  3674. * src/LanguageMetalinkParserState.h: Removed
  3675. * src/Makefile.am
  3676. * src/MetalinkMetalinkParserState.cc: Removed
  3677. * src/MetalinkMetalinkParserState.h: Removed
  3678. * src/MetalinkParserState.h
  3679. * src/MetalinkParserStateMachine.cc
  3680. * src/MetalinkParserStateMachine.h
  3681. * src/OSMetalinkParserState.cc: Removed
  3682. * src/OSMetalinkParserState.h: Removed
  3683. * src/PieceHashMetalinkParserState.cc: Removed
  3684. * src/PieceHashMetalinkParserState.h: Removed
  3685. * src/PiecesMetalinkParserState.cc: Removed
  3686. * src/PiecesMetalinkParserState.h: Removed
  3687. * src/ResourcesMetalinkParserState.cc: Removed
  3688. * src/ResourcesMetalinkParserState.h: Removed
  3689. * src/SignatureMetalinkParserState.cc: Removed
  3690. * src/SignatureMetalinkParserState.h: Removed
  3691. * src/SizeMetalinkParserState.cc: Removed
  3692. * src/SizeMetalinkParserState.h: Removed
  3693. * src/SkipTagMetalinkParserState.cc: Removed
  3694. * src/SkipTagMetalinkParserState.h: Removed
  3695. * src/URLMetalinkParserState.cc: Removed
  3696. * src/URLMetalinkParserState.h: Removed
  3697. * src/VerificationMetalinkParserState.cc: Removed
  3698. * src/VerificationMetalinkParserState.h: Removed
  3699. * src/VersionMetalinkParserState.cc: Removed
  3700. * src/VersionMetalinkParserState.h: Removed
  3701. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  3702. Move all functions in PeerMessageUtil to bittorrent_helper.
  3703. * src/BtBitfieldMessage.cc
  3704. * src/BtBitfieldMessageValidator.h
  3705. * src/BtExtendedMessage.cc
  3706. * src/BtHandshakeMessage.cc
  3707. * src/BtHandshakeMessageValidator.h
  3708. * src/BtPieceMessage.cc
  3709. * src/BtPieceMessageValidator.h
  3710. * src/BtPortMessage.cc
  3711. * src/DHTFindNodeReplyMessage.cc
  3712. * src/DHTGetPeersReplyMessage.cc
  3713. * src/DHTMessageFactoryImpl.cc
  3714. * src/DHTRoutingTableDeserializer.cc
  3715. * src/DHTRoutingTableSerializer.cc
  3716. * src/DHTTokenTracker.cc
  3717. * src/DefaultBtMessageFactory.cc
  3718. * src/IndexBtMessage.cc
  3719. * src/IndexBtMessage.h
  3720. * src/IndexBtMessageValidator.h
  3721. * src/Makefile.am
  3722. * src/PeerMessageUtil.cc: Removed.
  3723. * src/PeerMessageUtil.h: Removed.
  3724. * src/RangeBtMessage.cc
  3725. * src/RangeBtMessage.h
  3726. * src/RangeBtMessageValidator.h
  3727. * src/UTPexExtensionMessage.cc
  3728. * src/ZeroBtMessage.cc
  3729. * src/ZeroBtMessage.h
  3730. * src/bittorrent_helper.cc
  3731. * src/bittorrent_helper.h
  3732. * test/BittorrentHelperTest.cc
  3733. * test/BtAllowedFastMessageTest.cc
  3734. * test/BtBitfieldMessageTest.cc
  3735. * test/BtCancelMessageTest.cc
  3736. * test/BtChokeMessageTest.cc
  3737. * test/BtExtendedMessageTest.cc
  3738. * test/BtHandshakeMessageTest.cc
  3739. * test/BtHaveAllMessageTest.cc
  3740. * test/BtHaveMessageTest.cc
  3741. * test/BtHaveNoneMessageTest.cc
  3742. * test/BtInterestedMessageTest.cc
  3743. * test/BtNotInterestedMessageTest.cc
  3744. * test/BtPieceMessageTest.cc
  3745. * test/BtPortMessageTest.cc
  3746. * test/BtRejectMessageTest.cc
  3747. * test/BtRequestMessageTest.cc
  3748. * test/BtSuggestPieceMessageTest.cc
  3749. * test/BtUnchokeMessageTest.cc
  3750. * test/DHTFindNodeReplyMessageTest.cc
  3751. * test/DHTGetPeersReplyMessageTest.cc
  3752. * test/DHTMessageFactoryImplTest.cc
  3753. * test/DHTRoutingTableDeserializerTest.cc
  3754. * test/DHTRoutingTableSerializerTest.cc
  3755. * test/DefaultBtMessageFactoryTest.cc
  3756. * test/DefaultExtensionMessageFactoryTest.cc
  3757. * test/Makefile.am
  3758. * test/PeerListProcessorTest.cc
  3759. * test/PeerMessageUtilTest.cc: Removed.
  3760. * test/UTPexExtensionMessageTest.cc
  3761. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  3762. Limit the size of values list when sending get_peers reply.
  3763. * src/DHTGetPeersReplyMessage.cc
  3764. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  3765. Updated banner
  3766. * doc/xmlrpc/aria2rpc
  3767. 2009-09-29 Tatsuhiro Tsujikawa <[email protected]>
  3768. Added missing help message for remove command.
  3769. * doc/xmlrpc/aria2rpc
  3770. 2009-09-24 Tatsuhiro Tsujikawa <[email protected]>
  3771. Generated configure and config.h.in
  3772. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  3773. Add check for fork(), which is missing on MinGW
  3774. * src/daemon.cc
  3775. * configure.ac
  3776. 2009-09-23 Tatsuhiro Tsujikawa <[email protected]>
  3777. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  3778. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  3779. Util::httpGMT().
  3780. * src/Util.cc
  3781. * src/Util.h
  3782. * test/UtilTest.cc
  3783. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  3784. * Release 1.6.0
  3785. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  3786. Fixed a path to xmlrpc/README.txt
  3787. * doc/Makefile.am
  3788. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  3789. Added XML-RPC in -v Configuration output.
  3790. * src/FeatureConfig.cc
  3791. * src/FeatureConfig.h
  3792. * test/FeatureConfigTest.cc
  3793. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  3794. Updated Bulgarian, Russian, Slovak and Japanese
  3795. translations. Thanks to all translators.
  3796. * po/bg.po
  3797. * po/ja.po
  3798. * po/ru.po
  3799. * po/sk.po
  3800. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  3801. Removed --retry-wait option from aria2rpc
  3802. * doc/xmlrpc/aria2rpc
  3803. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  3804. Removed --retry-wait option from man page.
  3805. * doc/aria2c.1.txt
  3806. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  3807. Removed --retry-wait option since the current architecture doesn't
  3808. allow sleep for particular URI.
  3809. * src/AbstractCommand.cc
  3810. * src/OptionHandlerFactory.cc
  3811. * src/download_helper.cc
  3812. * src/prefs.cc
  3813. * src/prefs.h
  3814. 2009-09-20 Tatsuhiro Tsujikawa <[email protected]>
  3815. Removed Retry-After header support. Since the current architecture
  3816. doesn't allow sleep for particular URI.
  3817. * src/HttpSkipResponseCommand.cc
  3818. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  3819. Updated the help message for --daemon option.
  3820. * doc/aria2c.1.txt
  3821. * src/usage_text.h
  3822. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  3823. Added our own daemon() function for systems which desn't have
  3824. daemon(3).
  3825. * configure.ac
  3826. * src/Makefile.am
  3827. * src/daemon.cc
  3828. * src/daemon.h
  3829. * src/option_processing.cc
  3830. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  3831. Simplified File::getCurrentDir()
  3832. * src/File.cc
  3833. 2009-09-19 Tatsuhiro Tsujikawa <[email protected]>
  3834. Use exit() instead of _exit
  3835. * src/RequestGroupMan.cc
  3836. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  3837. Replaced "CATEGORY" with "TAGS".
  3838. * src/usage_text.h
  3839. * doc/aria2c.1.txt
  3840. 2009-09-18 Tatsuhiro Tsujikawa <[email protected]>
  3841. Updated the help message for --help option.
  3842. * src/usage_text.h
  3843. * doc/aria2c.1.txt
  3844. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  3845. Updated man page for added help tags.
  3846. * doc/aria2c.1.txt
  3847. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  3848. Added help category #file. Added #file tag to the options related
  3849. to downloaded file.
  3850. * src/OptionHandlerFactory.cc
  3851. * src/help_tags.h
  3852. 2009-09-17 Tatsuhiro Tsujikawa <[email protected]>
  3853. Added help categories: #cookie and #hook. Added #https tag to
  3854. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  3855. * src/OptionHandlerFactory.cc
  3856. * src/help_tags.h
  3857. 2009-09-16 Tatsuhiro Tsujikawa <[email protected]>
  3858. Made MSG_NOT_FILE translatable.
  3859. * src/message.h
  3860. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  3861. Updated man page for --help option.
  3862. * doc/aria2c.1.txt
  3863. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  3864. Updated doc.
  3865. * src/XmlRpcMethod.h
  3866. 2009-09-14 Tatsuhiro Tsujikawa <[email protected]>
  3867. Help category now starts with "#" to distinguish a category from
  3868. keyword search. For example, "http" categroy is now "#http". You
  3869. can type "--help=#http" to get explanation of options related to
  3870. http. If '#' is omitted, then the argument is treated as a keyword
  3871. and aria2 searches options whose name includes the keyword and
  3872. print matched ones. For example, "--help=http" will show options
  3873. whose name includes "http".
  3874. * src/OptionHandlerFactory.cc
  3875. * src/help_tags.h
  3876. * src/usage_text.h
  3877. * src/version_usage.cc
  3878. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  3879. Documented missing experimental tag and newly added xml-rpc tag in
  3880. man page.
  3881. * doc/aria2c.1.txt
  3882. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  3883. Added xml-rpc help tag. Tagged xml-rpc related options with
  3884. xml-rpc tag.
  3885. * src/OptionHandlerFactory.cc
  3886. * src/help_tags.h
  3887. 2009-09-11 Tatsuhiro Tsujikawa <[email protected]>
  3888. Updated message when a path is not a file. Updated common message
  3889. for wrong option.
  3890. * src/OptionHandlerException.cc
  3891. * src/message.h
  3892. 2009-09-10 Tatsuhiro Tsujikawa <[email protected]>
  3893. Use File::isFile() instead of File::exists(). Updated message when
  3894. a path is not a file.
  3895. * src/OptionHandlerImpl.cc
  3896. * src/message.h
  3897. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  3898. Fixed the bug that server performence profile is not updated when
  3899. aria2c was terminated by emergency shutdown.
  3900. * src/TrackerWatcherCommand.cc
  3901. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  3902. Use LocalFilePathOptionHandler for -T and -M option.
  3903. Updated message of MSG_FILE_NOT_EXIST.
  3904. * src/OptionHandlerFactory.cc
  3905. * src/message.h
  3906. 2009-09-09 Tatsuhiro Tsujikawa <[email protected]>
  3907. Added LocalFilePathOptionHandler which check whether the specified
  3908. file path does exist or not.
  3909. * src/OptionHandlerImpl.cc
  3910. * src/message.h
  3911. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  3912. Updated wiki page URI.
  3913. * README
  3914. * doc/aria2c.1.txt
  3915. 2009-09-07 Tatsuhiro Tsujikawa <[email protected]>
  3916. Added README.txt for xmlrpc directory.
  3917. * doc/Makefile.am
  3918. * doc/xmlrpc/README.txt
  3919. 2009-09-06 Tatsuhiro Tsujikawa <[email protected]>
  3920. Bump up version number to 1.6.0.
  3921. * configure.ac
  3922. 2009-09-01 Tatsuhiro Tsujikawa <[email protected]>
  3923. Added XML-RPC client scripts written in ruby.
  3924. * doc/Makefile.am
  3925. * doc/xmlrpc/aria2mon
  3926. * doc/xmlrpc/aria2rpc
  3927. 2009-08-31 Tatsuhiro Tsujikawa <[email protected]>
  3928. Added support for IPv6 literal address in URI. Now aria2 can
  3929. handle URI such as http://[::1]/
  3930. * src/HttpRequest.cc
  3931. * src/HttpRequest.h
  3932. * src/Request.cc
  3933. * src/Request.h
  3934. * test/HttpRequestTest.cc
  3935. * test/OptionHandlerTest.cc
  3936. * test/RequestTest.cc
  3937. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  3938. Fixed the bug that HTTP request header for XML-RPC request is not
  3939. parsed properly.
  3940. * src/HttpHeader.cc
  3941. * src/HttpHeaderProcessor.cc
  3942. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  3943. Fixed the bug that XML-RPC authorization might be done before HTTP
  3944. request header is fully received.
  3945. * src/HttpServerCommand.cc
  3946. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  3947. Documented --xml-rpc-listen-all option in man page.
  3948. * doc/aria2c.1.txt
  3949. 2009-08-30 Tatsuhiro Tsujikawa <[email protected]>
  3950. Added --xml-rpc-listen-all option. If true is given to this
  3951. option, aria2 listens incoming XML-RPC requests on all network
  3952. interfaces. If false is given, listens only on local loopback
  3953. interface. The default value is false.
  3954. * src/HttpListenCommand.cc
  3955. * src/OptionHandlerFactory.cc
  3956. * src/SocketCore.cc
  3957. * src/SocketCore.h
  3958. * src/prefs.cc
  3959. * src/prefs.h
  3960. * src/usage_text.h
  3961. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  3962. * Release 1.5.2
  3963. 2009-08-21 Tatsuhiro Tsujikawa <[email protected]>
  3964. Updated Ukrainian and Russian translations. Thanks to all
  3965. translators.
  3966. * po/ru.po
  3967. * po/uk.po
  3968. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  3969. Bump up version number to 1.5.2
  3970. * configure.ac
  3971. 2009-08-19 Tatsuhiro Tsujikawa <[email protected]>
  3972. Get comment, comment.utf-8, created by and creation date from
  3973. .torrent file and print them in -S output.
  3974. * src/bittorrent_helper.cc
  3975. * src/bittorrent_helper.h
  3976. * test/BittorrentHelperTest.cc
  3977. * test/test.torrent
  3978. * test/utf8.torrent
  3979. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  3980. Show exact file size along in -S option output.
  3981. * src/Util.h
  3982. * src/bittorrent_helper.cc
  3983. * test/UtilTest.cc
  3984. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  3985. Avoided unnecessary memory allocation in
  3986. BitfieldMan::getCompletedLength().
  3987. * src/BitfieldMan.cc
  3988. 2009-08-18 Tatsuhiro Tsujikawa <[email protected]>
  3989. Fixed the bug that download fails if
  3990. SocketCore::establishConnection() throws exception and aria2
  3991. doesn't try another address.
  3992. * src/AbstractCommand.cc
  3993. * src/InitiateConnectionCommand.cc
  3994. * src/message.h
  3995. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  3996. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  3997. detected properly.
  3998. * m4/sqlite3.m4
  3999. 2009-08-09 Tatsuhiro Tsujikawa <[email protected]>
  4000. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  4001. because it causes compile error if PARAMS macro is defined.
  4002. * src/XmlRpcElements.cc
  4003. * src/XmlRpcElements.h
  4004. * src/XmlRpcRequestParserStateImpl.cc
  4005. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  4006. * Release 1.5.1
  4007. 2009-07-26 Tatsuhiro Tsujikawa <[email protected]>
  4008. Bump up version number to 1.5.1
  4009. * configure.ac
  4010. 2009-07-25 Tatsuhiro Tsujikawa <[email protected]>
  4011. Fixed compile error without BitTorrent support
  4012. * src/DefaultBtProgressInfoFile.cc
  4013. * src/DownloadEngine.cc
  4014. * src/DownloadEngine.h
  4015. 2009-07-24 Tatsuhiro Tsujikawa <[email protected]>
  4016. Added missing '=' in Download Results
  4017. * src/RequestGroupMan.cc
  4018. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4019. Fixed compiler warning
  4020. * src/DefaultBtProgressInfoFile.cc
  4021. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4022. Fixed compiler warning on 32bit systems.
  4023. * src/DownloadCommand.cc
  4024. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4025. Call flush from ServerStatMan::save()
  4026. * src/ServerStatMan.cc
  4027. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4028. Check stream status after file is opened.
  4029. * src/CookieStorage.cc
  4030. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4031. Rewritten Signature::save()
  4032. * src/Signature.cc
  4033. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4034. Rewritten RequestGroupMan::saveServerStat()
  4035. * src/RequestGroupMan.cc
  4036. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4037. Rewritten stream error handling
  4038. * src/DHTAutoSaveCommand.cc
  4039. * src/DHTRoutingTableDeserializer.cc
  4040. * src/DHTRoutingTableSerializer.cc
  4041. * src/DHTSetup.cc
  4042. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4043. Check stream status after file is opened.
  4044. * src/DefaultBtProgressInfoFile.cc
  4045. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4046. Rewritten stream error handling
  4047. * src/DefaultBtProgressInfoFile.cc
  4048. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4049. Make sure that stream is closed before renaming file. Unit test
  4050. fails on mingw32 in the previous implementation.
  4051. * src/CookieStorage.cc
  4052. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4053. Fixed the unit test error without sqlite3
  4054. * test/CookieStorageTest.cc
  4055. 2009-07-22 Tatsuhiro Tsujikawa <[email protected]>
  4056. Fixed the undefined reference error
  4057. * test/HttpResponseTest.cc
  4058. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  4059. * Release 1.5.0
  4060. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  4061. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  4062. Ukrainian translations. Thanks to all translators.
  4063. * po/ru.po
  4064. * po/it.po
  4065. * po/da.po
  4066. * po/bg.po
  4067. * po/ja.po
  4068. * po/uk.po
  4069. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  4070. Added missing src/Logger.cc
  4071. * src/Logger.cc
  4072. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  4073. Rewritten Logger to avoiding constly virtual call.
  4074. * src/LogFactory.cc
  4075. * src/LogFactory.h
  4076. * src/Logger.h
  4077. * src/Makefile.am
  4078. * src/Makefile.in
  4079. * src/NullLogger.h: Removed.
  4080. * src/SimpleLogger.cc
  4081. * src/SimpleLogger.h
  4082. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  4083. Updated doc
  4084. * src/main.cc
  4085. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  4086. Updated debug log message
  4087. * src/AbstractCommand.cc
  4088. * src/message.h
  4089. 2009-07-16 Tatsuhiro Tsujikawa <[email protected]>
  4090. Avoid to create zombie process when commands specified in
  4091. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  4092. X and NetBSD.
  4093. * src/main.cc
  4094. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4095. Fixed typo
  4096. * src/usage_text.h
  4097. * doc/aria2c.1.txt
  4098. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4099. Documented 'errorCode' of tellStatus in man page.
  4100. * doc/aria2c.1.txt
  4101. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4102. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  4103. This key is only available for stopped/completed downloads and its
  4104. value is the error code defined in EXIT STATUS in man page.
  4105. * src/XmlRpcMethodImpl.cc
  4106. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4107. Fixed the bug that session download length is not updated when
  4108. PeerStat is not fastest one.
  4109. * src/SegmentMan.cc
  4110. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4111. Updated doc.
  4112. * doc/aria2c.1.txt
  4113. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4114. Updated doc.
  4115. * src/AbstractCommand.cc
  4116. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  4117. Handle the case when DownloadContext has no FileEntry.
  4118. * src/XmlRpcMethodImpl.cc
  4119. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  4120. Handle the situation where struct option.name is char *.
  4121. * configure.ac
  4122. * src/OptionParser.cc
  4123. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  4124. Code cleanup
  4125. * src/AbstractCommand.cc
  4126. * src/DownloadCommand.cc
  4127. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  4128. Use option of each download to create AuthConfig instead of global
  4129. option.
  4130. * src/AuthConfigFactory.cc
  4131. * src/AuthConfigFactory.h
  4132. * src/FtpNegotiationCommand.cc
  4133. * src/HttpRequest.cc
  4134. * src/HttpRequest.h
  4135. * src/HttpRequestCommand.cc
  4136. * src/HttpSkipResponseCommand.cc
  4137. * src/MultiUrlRequestInfo.cc
  4138. * test/AuthConfigFactoryTest.cc
  4139. * test/FtpConnectionTest.cc
  4140. * test/HttpRequestTest.cc
  4141. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  4142. Don't call prepareForRetry(1) if all segments are ignored in
  4143. SegmentMan.
  4144. * src/AbstractCommand.cc
  4145. * src/BitfieldMan.cc
  4146. * src/BitfieldMan.h
  4147. * src/SegmentMan.cc
  4148. * src/SegmentMan.h
  4149. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  4150. Removed FileEntry::getAssociatedUris()
  4151. * src/FileEntry.h
  4152. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  4153. Updated doc: TODO1.5 -> TODO
  4154. * src/FileEntry.cc
  4155. * src/HttpResponseCommand.cc
  4156. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  4157. Added assertion fileEntries.size() == 1 if BitTorrent is not
  4158. involved.
  4159. * src/RequestGroup.cc
  4160. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  4161. Eliminated duplicated filterBitfield initialization code.
  4162. * src/BitfieldMan.cc
  4163. * src/BitfieldMan.h
  4164. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  4165. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  4166. relatively naive approach, though). For DownloadFailureException,
  4167. we handle the case when req is null properly.
  4168. * src/AbstractCommand.cc
  4169. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  4170. Added function returning suffix of control file to
  4171. DefaultBtProgressInfoFile.
  4172. * src/DefaultBtProgressInfoFile.cc
  4173. * src/DefaultBtProgressInfoFile.h
  4174. * src/RequestGroup.cc
  4175. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  4176. Documented getVersion in man page.
  4177. * doc/aria2c.1.txt
  4178. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  4179. Documented type of offset and num for tellWaiting xml-rpc method.
  4180. * doc/aria2c.1.txt
  4181. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  4182. Implemented getVersion xml-rpc method. This method returns struct
  4183. which has 2 key-value pairs: "version" key is associated to the
  4184. version of aria2, such as "1.5.0". "enabledFeatures" key is
  4185. associated to the list of enabled features, such as "Async DNS",
  4186. "BitTorrent".
  4187. * src/FeatureConfig.h
  4188. * src/XmlRpcMethodFactory.cc
  4189. * src/XmlRpcMethodImpl.cc
  4190. * src/XmlRpcMethodImpl.h
  4191. * test/XmlRpcMethodTest.cc
  4192. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  4193. Removed TLS1.1 protocol support when aria2 is built with gnutls
  4194. for compatibility issue.
  4195. * src/SocketCore.cc
  4196. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  4197. Fixed compile error with openSSL
  4198. * src/bittorrent_helper.cc
  4199. * src/messageDigest.h
  4200. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  4201. Removed bad code: setting certificate type priority to key
  4202. exchange priority.
  4203. * src/SocketCore.cc
  4204. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  4205. Disconnect seeder if client is also in seed state.
  4206. * src/BtBitfieldMessage.cc
  4207. * src/BtHaveAllMessage.cc
  4208. * src/BtHaveMessage.cc
  4209. * src/message.h
  4210. * test/BtBitfieldMessageTest.cc
  4211. * test/BtHaveAllMessageTest.cc
  4212. * test/BtHaveMessageTest.cc
  4213. * test/MockPieceStorage.h
  4214. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  4215. Keep CreateRequestCommand in queue when no segment is available so
  4216. that they can pick up pieces which slow BitTorrent peers are
  4217. downloading.
  4218. * src/AbstractCommand.cc
  4219. * src/CreateRequestCommand.cc
  4220. * src/CreateRequestCommand.h
  4221. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  4222. --bt-stop-timeout now only checks download speed.
  4223. * src/BtStopDownloadCommand.cc
  4224. * src/BtStopDownloadCommand.h
  4225. * src/BtSetup.cc
  4226. * src/usage_text.h
  4227. * doc/aria2c.1.txt
  4228. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4229. Fixed compile error regarding BUFSIZE.
  4230. * src/DownloadCommand.cc
  4231. * src/DownloadCommand.h
  4232. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4233. Documented tellWaiting xml-rpc method in man page.
  4234. * doc/aria2c.1.txt
  4235. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4236. Bump up version number to 1.5.0
  4237. * configure.ac
  4238. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4239. Removed resolved TODO1.5
  4240. * src/AbstractCommand.cc
  4241. * src/DownloadCommand.cc
  4242. * src/RequestGroup.cc
  4243. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4244. Release pooled and in-flight Request objectsand URIResult objects
  4245. in FileEntry after download completed.
  4246. * src/DownloadContext.cc
  4247. * src/DownloadContext.h
  4248. * src/FileEntry.cc
  4249. * src/FileEntry.h
  4250. * src/RequestGroup.cc
  4251. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4252. Set manual and source attribute in aria2c.1.txt
  4253. * doc/aria2c.1.txt
  4254. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4255. Documented that the default value of --use-head is 'false' in man
  4256. page.
  4257. * doc/aria2c.1.txt
  4258. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4259. Added bt-stop-timeout option to -i list.
  4260. * doc/aria2c.1.txt
  4261. * src/download_helper.cc
  4262. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4263. Fixed typo
  4264. * doc/aria2c.1.txt
  4265. * src/usage_text.h
  4266. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4267. Removed peer-id-prefix option from -i list.
  4268. * doc/aria2c.1.txt
  4269. * src/download_helper.cc
  4270. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4271. Fixed typo
  4272. * doc/aria2c.1.txt
  4273. * src/usage_text.h
  4274. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4275. Documented --bt-stop-timeout option in man page.
  4276. * doc/aria2c.1.txt
  4277. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4278. Updated README regarding multi-file torrent web-seeding.
  4279. * doc/README.txt
  4280. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4281. Updated man page regarding multi-file torrent web-seeding.
  4282. * doc/aria2c.1.txt
  4283. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4284. Updated doc
  4285. * src/version_usage.cc
  4286. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4287. Winsock select() doesn't work if no socket is in FD_SET. To
  4288. overcome this problem, a dummy socket is added to FD_SET and it is
  4289. given to select().
  4290. * src/SelectEventPoll.cc
  4291. * src/SelectEventPoll.h
  4292. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4293. Disabled --use-head option by default because --use-head=true
  4294. causes problems on some web sites.
  4295. * src/OptionHandlerFactory.cc
  4296. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4297. Print URL List in -S option for torrent.
  4298. * src/bittorrent_helper.cc
  4299. * src/bittorrent_helper.h
  4300. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4301. Allocate buffer in ctor of DownloadCommand.
  4302. * src/DownloadCommand.cc
  4303. * src/DownloadCommand.h
  4304. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4305. Removed DiskAdaptor::onDownloadComplete()
  4306. * src/DirectDiskAdaptor.cc
  4307. * src/DirectDiskAdaptor.h
  4308. * src/DiskAdaptor.h
  4309. * src/MultiDiskAdaptor.cc
  4310. * src/MultiDiskAdaptor.h
  4311. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4312. Committed missing BtStopDownloadCommand.{cc,h}
  4313. * src/BtStopDownloadCommand.cc
  4314. * src/BtStopDownloadCommand.h
  4315. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4316. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  4317. download if the download speed is 0 and the number of seeder is 0
  4318. in consecutive SEC seconds. By default, this function is disabled.
  4319. * src/BtSetup.cc
  4320. * src/Makefile.am
  4321. * src/OptionHandlerFactory.cc
  4322. * src/prefs.cc
  4323. * src/prefs.h
  4324. * src/usage_text.h
  4325. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4326. Removed the call to DiskAdaptor::onDownloadComplete() from
  4327. BtCheckIntegrityEntry and DefaultPieceStorage.
  4328. * src/BtCheckIntegrityEntry.cc
  4329. * src/DefaultPieceStorage.cc
  4330. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4331. Commented out throw statements when number of piece is 0 to
  4332. download 0 length torrent.
  4333. * src/bittorrent_helper.cc
  4334. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4335. Call RequestGroup::createNextCommandWithAdj() from
  4336. BtFileAllocationEntry if at least one FileEntry has URI. The
  4337. static function hasAssociatedUri in RequestGroup.cc is renamed as
  4338. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  4339. * src/BtFileAllocationEntry.cc
  4340. * src/FileEntry.h
  4341. * src/RequestGroup.cc
  4342. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  4343. Generate peer ID after SimpleRandomizer is initialized.
  4344. * src/main.cc
  4345. * src/option_processing.cc
  4346. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4347. Removed unused method argument.
  4348. * src/CreateRequestCommand.cc
  4349. * src/RequestGroup.cc
  4350. * src/RequestGroup.h
  4351. * src/RequestGroupMan.cc
  4352. * src/TrackerWatcherCommand.cc
  4353. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4354. Made URI reusing function work.
  4355. * src/CreateRequestCommand.cc
  4356. * src/FileEntry.cc
  4357. * src/FileEntry.h
  4358. * test/FileEntryTest.cc
  4359. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4360. Add formerly fastest PeerStat's sessionDownloadLength to new
  4361. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  4362. bytes in a session.
  4363. * src/PeerStat.cc
  4364. * src/SegmentMan.cc
  4365. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4366. If pipelining is enabled, we can always pool socket.
  4367. * src/HttpDownloadCommand.cc
  4368. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4369. In a single file download, file size becomes known just after
  4370. downloading, set total length to FileEntry object when download
  4371. completed.
  4372. * src/DownloadCommand.cc
  4373. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4374. Use std::vector::reserve() for fileEntries and pieceHashes in
  4375. bittorrent_helper
  4376. * src/bittorrent_helper.cc
  4377. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  4378. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  4379. Removed hidden option PREF_RESET_URI.
  4380. * src/AbstractCommand.cc
  4381. * src/OptionHandlerFactory.cc
  4382. * src/prefs.cc
  4383. * src/prefs.h
  4384. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  4385. Removed unused variable/function.
  4386. * src/PeerStat.h
  4387. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  4388. Show first URL in Download Results if file path is not available.
  4389. * src/FileEntry.h
  4390. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  4391. Throw exception if file path doesn't exist in FTP URL.
  4392. * src/InitiateConnectionCommandFactory.cc
  4393. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  4394. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  4395. * src/BitfieldMan.cc
  4396. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  4397. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  4398. of PeerStat in SegmentMan. peerStats is used for calculating
  4399. download speed. Therefore all active PeerStats should be in
  4400. there. Another one is _fastestPeerStats and it only contains
  4401. fastest PeerStat for each hostname/protocol pair. They are used
  4402. for updating ServerStat.
  4403. * src/DownloadCommand.cc
  4404. * src/Request.h
  4405. * src/RequestGroupMan.cc
  4406. * src/SegmentMan.cc
  4407. * src/SegmentMan.h
  4408. * test/SegmentManTest.cc
  4409. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  4410. Try all available addresses returned by DNS until it gets
  4411. connected in HTTP(S)/FTP download
  4412. * src/AbstractCommand.cc
  4413. * src/AbstractCommand.h
  4414. * src/AbstractProxyRequestCommand.cc
  4415. * src/AbstractProxyRequestCommand.h
  4416. * src/DNSCache.h
  4417. * src/DownloadEngine.cc
  4418. * src/DownloadEngine.h
  4419. * src/FtpInitiateConnectionCommand.cc
  4420. * src/FtpInitiateConnectionCommand.h
  4421. * src/FtpNegotiationCommand.cc
  4422. * src/FtpNegotiationCommand.h
  4423. * src/HttpInitiateConnectionCommand.cc
  4424. * src/HttpInitiateConnectionCommand.h
  4425. * src/HttpRequestCommand.cc
  4426. * src/HttpRequestCommand.h
  4427. * src/InitiateConnectionCommand.cc
  4428. * src/InitiateConnectionCommand.h
  4429. * test/DNSCacheTest.cc
  4430. * test/Makefile.am
  4431. * test/SimpleDNSCacheTest.cc
  4432. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4433. Updated doc
  4434. * src/download_helper.cc
  4435. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4436. Refactored fieldMan ctor.
  4437. * src/BitfieldMan.cc
  4438. * src/BitfieldMan.h
  4439. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4440. Don't print "No files to download." message if -S is given.
  4441. * src/main.cc
  4442. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4443. Set referer and method to newly created Request object.
  4444. * src/CreateRequestCommand.cc
  4445. * src/FileEntry.cc
  4446. * src/FileEntry.h
  4447. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4448. Removed ctor of AbstractCommand which doesn't take FileEntry.
  4449. * src/AbstractCommand.cc
  4450. * src/AbstractCommand.h
  4451. * src/CreateRequestCommand.cc
  4452. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4453. Get proxy download working
  4454. * src/AbstractProxyRequestCommand.cc
  4455. * src/AbstractProxyRequestCommand.h
  4456. * src/AbstractProxyResponseCommand.cc
  4457. * src/AbstractProxyResponseCommand.h
  4458. * src/FtpInitiateConnectionCommand.cc
  4459. * src/FtpTunnelRequestCommand.cc
  4460. * src/FtpTunnelRequestCommand.h
  4461. * src/FtpTunnelResponseCommand.cc
  4462. * src/FtpTunnelResponseCommand.h
  4463. * src/HttpInitiateConnectionCommand.cc
  4464. * src/HttpProxyRequestCommand.cc
  4465. * src/HttpProxyRequestCommand.h
  4466. * src/HttpProxyResponseCommand.cc
  4467. * src/HttpProxyResponseCommand.h
  4468. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4469. Use SegmentMan::getSegment(cuid) for single file download.
  4470. * src/AbstractCommand.cc
  4471. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4472. Fixed bufSize calculation
  4473. * src/DownloadCommand.cc
  4474. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4475. Don't append "/" if base URI ends with "/".
  4476. * src/bittorrent_helper.cc
  4477. * test/url-list-multiFile.torrent
  4478. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  4479. HTTP pipelining is now working. Fixed Segmention fault in
  4480. BitfieldMan's copy ctor.
  4481. * src/AbstractCommand.cc
  4482. * src/BitfieldMan.cc
  4483. * src/BitfieldMan.h
  4484. * src/DownloadCommand.cc
  4485. * src/HttpDownloadCommand.cc
  4486. * src/HttpRequest.cc
  4487. * src/SegmentMan.cc
  4488. * src/SegmentMan.h
  4489. * test/BitfieldManTest.cc
  4490. * test/SegmentManTest.cc
  4491. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  4492. Removed ServerHost. Same functionality is implemented using
  4493. FileEntry's in-flight Request objects.
  4494. * src/AbstractCommand.cc
  4495. * src/BtDependency.cc
  4496. * src/CreateRequestCommand.cc
  4497. * src/FileEntry.cc
  4498. * src/FileEntry.h
  4499. * src/FtpNegotiationCommand.cc
  4500. * src/HttpResponseCommand.cc
  4501. * src/Makefile.am
  4502. * src/Metalink2RequestGroup.cc
  4503. * src/RequestGroup.cc
  4504. * src/RequestGroup.h
  4505. * src/ServerHost.cc: Removed
  4506. * src/ServerHost.h: Removed
  4507. * test/BtDependencyTest.cc
  4508. * test/FileEntryTest.cc
  4509. * test/RequestGroupTest.cc
  4510. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  4511. Rewritten PeerStat handling. In the previous implementation,
  4512. faster command tries to find slower command. In this new
  4513. implementation, slower command tries to find faster command.
  4514. PeerStat is now created in each HTTP/FTP request to get download
  4515. rate correctly. If the download range is small, the download rate
  4516. tends to small and this will occur at the later stage of download.
  4517. * src/AbstractCommand.cc
  4518. * src/DownloadCommand.cc
  4519. * src/FileEntry.cc
  4520. * src/FileEntry.h
  4521. * src/Request.cc
  4522. * src/Request.h
  4523. * src/RequestGroup.h
  4524. * src/RequestGroupMan.cc
  4525. * src/SegmentMan.cc
  4526. * src/SegmentMan.h
  4527. * test/SegmentManTest.cc
  4528. 2009-06-29 Tatsuhiro Tsujikawa <[email protected]>
  4529. Removed _uris from RequestGroup. All functions that refer to _uris
  4530. were moved to FileEntry. Exit status code are now defined in
  4531. DownloadResultCode.h.
  4532. * src/AbstractCommand.cc
  4533. * src/AdaptiveURISelector.cc
  4534. * src/AdaptiveURISelector.h
  4535. * src/AutoSaveCommand.cc
  4536. * src/BtPostDownloadHandler.cc
  4537. * src/CheckIntegrityDispatcherCommand.cc
  4538. * src/CookieStorage.cc
  4539. * src/DHTAutoSaveCommand.cc
  4540. * src/DHTBucketRefreshCommand.cc
  4541. * src/DHTEntryPointNameResolveCommand.cc
  4542. * src/DHTInteractionCommand.cc
  4543. * src/DHTPeerAnnounceCommand.cc
  4544. * src/DHTTokenUpdateCommand.cc
  4545. * src/DlAbortEx.h
  4546. * src/DlRetryEx.h
  4547. * src/DownloadCommand.cc
  4548. * src/DownloadContext.h
  4549. * src/DownloadFailureException.h
  4550. * src/DownloadResult.h
  4551. * src/DownloadResultCode.h
  4552. * src/FeedbackURISelector.cc
  4553. * src/FeedbackURISelector.h
  4554. * src/FileEntry.cc
  4555. * src/FileEntry.h
  4556. * src/FtpNegotiationCommand.cc
  4557. * src/HttpListenCommand.cc
  4558. * src/HttpResponseCommand.cc
  4559. * src/HttpServerResponseCommand.cc
  4560. * src/HttpSkipResponseCommand.cc
  4561. * src/InOrderURISelector.cc
  4562. * src/InOrderURISelector.h
  4563. * src/Makefile.am
  4564. * src/Makefile.in
  4565. * src/Metalink2RequestGroup.cc
  4566. * src/MultiUrlRequestInfo.cc
  4567. * src/MultiUrlRequestInfo.h
  4568. * src/OptionHandlerFactory.cc
  4569. * src/PeerListenCommand.cc
  4570. * src/RecoverableException.h
  4571. * src/RequestGroup.cc
  4572. * src/RequestGroup.h
  4573. * src/RequestGroupMan.cc
  4574. * src/RequestGroupMan.h
  4575. * src/TimedHaltCommand.cc
  4576. * src/TrackerWatcherCommand.cc
  4577. * src/URIResult.cc
  4578. * src/URIResult.h
  4579. * src/URISelector.h
  4580. * src/XmlRpcMethodImpl.cc
  4581. * src/bittorrent_helper.cc
  4582. * src/bittorrent_helper.h
  4583. * src/download_helper.cc
  4584. * src/main.cc
  4585. * src/option_processing.cc
  4586. * test/BtDependencyTest.cc
  4587. * test/BtPostDownloadHandlerTest.cc
  4588. * test/CookieStorageTest.cc
  4589. * test/DefaultBtMessageDispatcherTest.cc
  4590. * test/DownloadHandlerFactoryTest.cc
  4591. * test/DownloadHelperTest.cc
  4592. * test/FeedbackURISelectorTest.cc
  4593. * test/FileEntryTest.cc
  4594. * test/InOrderURISelectorTest.cc
  4595. * test/Metalink2RequestGroupTest.cc
  4596. * test/MetalinkPostDownloadHandlerTest.cc
  4597. * test/RequestGroupManTest.cc
  4598. * test/RequestGroupTest.cc
  4599. * test/XmlRpcMethodTest.cc
  4600. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  4601. Removed MockBtContext.h
  4602. * test/Makefile.am
  4603. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  4604. Removed _currentRequest from StreamCheckIntegrityEntry and
  4605. StreamFileAllocationEntry.
  4606. * src/AbstractCommand.cc
  4607. * src/HttpResponseCommand.cc
  4608. * src/RequestGroup.cc
  4609. * src/StreamCheckIntegrityEntry.cc
  4610. * src/StreamCheckIntegrityEntry.h
  4611. * src/StreamFileAllocationEntry.cc
  4612. * src/StreamFileAllocationEntry.h
  4613. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  4614. Rewritten DownloadContext and removed SingleFileDownloadContext
  4615. and BtContext and its derived classes. BitTorrent specific
  4616. attributes are now set by DownloadContext::setAttribute() with key
  4617. bittorrent::BITTORRENT.
  4618. * src/AbstractBtMessage.cc
  4619. * src/AbstractBtMessage.h
  4620. * src/AbstractCommand.cc
  4621. * src/AbstractCommand.h
  4622. * src/AbstractProxyRequestCommand.cc
  4623. * src/AbstractProxyResponseCommand.cc
  4624. * src/ActivePeerConnectionCommand.cc
  4625. * src/ActivePeerConnectionCommand.h
  4626. * src/AnnounceList.cc
  4627. * src/BtCheckIntegrityEntry.cc
  4628. * src/BtConstants.h
  4629. * src/BtContext.h: Removed
  4630. * src/BtDependency.cc
  4631. * src/BtExtendedMessage.cc
  4632. * src/BtPieceMessage.cc
  4633. * src/BtPieceMessage.h
  4634. * src/BtPostDownloadHandler.cc
  4635. * src/BtRegistry.cc
  4636. * src/BtRegistry.h
  4637. * src/BtSetup.cc
  4638. * src/CheckIntegrityCommand.cc
  4639. * src/CheckIntegrityEntry.cc
  4640. * src/ChecksumCheckIntegrityEntry.cc
  4641. * src/ConsoleStatCalc.cc
  4642. * src/ContentTypeRequestGroupCriteria.cc
  4643. * src/DHTGetPeersCommand.cc
  4644. * src/DHTGetPeersCommand.h
  4645. * src/DHTPeerLookupTask.cc
  4646. * src/DHTPeerLookupTask.h
  4647. * src/DHTTaskFactory.h
  4648. * src/DHTTaskFactoryImpl.cc
  4649. * src/DHTTaskFactoryImpl.h
  4650. * src/DefaultBtAnnounce.cc
  4651. * src/DefaultBtAnnounce.h
  4652. * src/DefaultBtContext.cc: Removed
  4653. * src/DefaultBtContext.h: Removed
  4654. * src/DefaultBtInteractive.cc
  4655. * src/DefaultBtInteractive.h
  4656. * src/DefaultBtMessageDispatcher.cc
  4657. * src/DefaultBtMessageDispatcher.h
  4658. * src/DefaultBtMessageFactory.cc
  4659. * src/DefaultBtMessageFactory.h
  4660. * src/DefaultBtMessageReceiver.cc
  4661. * src/DefaultBtMessageReceiver.h
  4662. * src/DefaultBtProgressInfoFile.cc
  4663. * src/DefaultBtRequestFactory.cc
  4664. * src/DefaultBtRequestFactory.h
  4665. * src/DefaultExtensionMessageFactory.cc
  4666. * src/DefaultExtensionMessageFactory.h
  4667. * src/DefaultPeerStorage.cc
  4668. * src/DefaultPeerStorage.h
  4669. * src/DefaultPieceStorage.cc
  4670. * src/DefaultSegmentManFactory.cc
  4671. * src/DiskAdaptor.cc
  4672. * src/DiskAdaptor.h
  4673. * src/DownloadContext.cc
  4674. * src/DownloadContext.h
  4675. * src/DownloadEngine.cc
  4676. * src/DownloadEngineFactory.cc
  4677. * src/DownloadHandler.cc
  4678. * src/DownloadResult.h
  4679. * src/FileAllocationCommand.cc
  4680. * src/FileAllocationDispatcherCommand.cc
  4681. * src/FileAllocationEntry.cc
  4682. * src/FileEntry.h
  4683. * src/FillRequestGroupCommand.cc
  4684. * src/FtpDownloadCommand.cc
  4685. * src/FtpFinishDownloadCommand.cc
  4686. * src/FtpInitiateConnectionCommand.cc
  4687. * src/FtpNegotiationCommand.cc
  4688. * src/FtpTunnelRequestCommand.cc
  4689. * src/FtpTunnelResponseCommand.cc
  4690. * src/HandshakeExtensionMessage.cc
  4691. * src/HandshakeExtensionMessage.h
  4692. * src/HaveEraseCommand.cc
  4693. * src/HttpDownloadCommand.cc
  4694. * src/HttpInitiateConnectionCommand.cc
  4695. * src/HttpProxyRequestCommand.cc
  4696. * src/HttpProxyResponseCommand.cc
  4697. * src/HttpRequest.cc
  4698. * src/HttpRequest.h
  4699. * src/HttpRequestCommand.cc
  4700. * src/HttpResponseCommand.cc
  4701. * src/HttpServerBodyCommand.cc
  4702. * src/HttpServerCommand.cc
  4703. * src/HttpSkipResponseCommand.cc
  4704. * src/InitiateConnectionCommandFactory.cc
  4705. * src/InitiatorMSEHandshakeCommand.cc
  4706. * src/InitiatorMSEHandshakeCommand.h
  4707. * src/IteratableChecksumValidator.cc
  4708. * src/IteratableChecksumValidator.h
  4709. * src/IteratableChunkChecksumValidator.cc
  4710. * src/MSEHandshake.cc
  4711. * src/MSEHandshake.h
  4712. * src/Makefile.am
  4713. * src/Makefile.in
  4714. * src/Metalink2RequestGroup.cc
  4715. * src/MetalinkPostDownloadHandler.cc
  4716. * src/MultiDiskAdaptor.cc
  4717. * src/MultiDiskAdaptor.h
  4718. * src/MultiFileAllocationIterator.cc
  4719. * src/MultiUrlRequestInfo.cc
  4720. * src/PeerChokeCommand.cc
  4721. * src/PeerChokeCommand.h
  4722. * src/PeerInitiateConnectionCommand.cc
  4723. * src/PeerInitiateConnectionCommand.h
  4724. * src/PeerInteractionCommand.cc
  4725. * src/PeerInteractionCommand.h
  4726. * src/PeerReceiveHandshakeCommand.cc
  4727. * src/PieceHashCheckIntegrityEntry.cc
  4728. * src/RealtimeCommand.cc
  4729. * src/ReceiverMSEHandshakeCommand.cc
  4730. * src/RequestGroup.cc
  4731. * src/RequestGroup.h
  4732. * src/RequestGroupEntry.cc
  4733. * src/RequestGroupMan.cc
  4734. * src/SeedCheckCommand.cc
  4735. * src/SeedCheckCommand.h
  4736. * src/SegmentMan.cc
  4737. * src/ShareRatioSeedCriteria.h
  4738. * src/SingleFileDownloadContext.cc: Removed
  4739. * src/SingleFileDownloadContext.h: Removed
  4740. * src/SleepCommand.cc
  4741. * src/StreamCheckIntegrityEntry.cc
  4742. * src/TrackerWatcherCommand.cc
  4743. * src/TrackerWatcherCommand.h
  4744. * src/UnknownLengthPieceStorage.cc
  4745. * src/Util.cc
  4746. * src/Util.h
  4747. * src/XmlRpcMethodImpl.cc
  4748. * src/bittorrent_helper.cc
  4749. * src/bittorrent_helper.h
  4750. * src/download_helper.cc
  4751. * src/main.cc
  4752. * src/option_processing.cc
  4753. * test/BitfieldManTest.cc
  4754. * test/BittorrentHelperTest.cc
  4755. * test/BtCancelMessageTest.cc
  4756. * test/BtChokeMessageTest.cc
  4757. * test/BtDependencyTest.cc
  4758. * test/BtPieceMessageTest.cc
  4759. * test/BtPostDownloadHandlerTest.cc
  4760. * test/BtRegistryTest.cc
  4761. * test/BtRejectMessageTest.cc
  4762. * test/BtRequestMessageTest.cc
  4763. * test/DHTPeerAnnounceStorageTest.cc
  4764. * test/DefaultBtAnnounceTest.cc
  4765. * test/DefaultBtContextTest.cc: Removed
  4766. * test/DefaultBtMessageDispatcherTest.cc
  4767. * test/DefaultBtMessageFactoryTest.cc
  4768. * test/DefaultBtProgressInfoFileTest.cc
  4769. * test/DefaultBtRequestFactoryTest.cc
  4770. * test/DefaultExtensionMessageFactoryTest.cc
  4771. * test/DefaultPeerStorageTest.cc
  4772. * test/DefaultPieceStorageTest.cc
  4773. * test/DirectDiskAdaptorTest.cc
  4774. * test/DownloadContextTest.cc
  4775. * test/DownloadHandlerFactoryTest.cc
  4776. * test/DownloadHelperTest.cc
  4777. * test/HandshakeExtensionMessageTest.cc
  4778. * test/HttpRequestTest.cc
  4779. * test/HttpResponseTest.cc
  4780. * test/IteratableChecksumValidatorTest.cc
  4781. * test/IteratableChunkChecksumValidatorTest.cc
  4782. * test/MSEHandshakeTest.cc
  4783. * test/Makefile.am
  4784. * test/Makefile.in
  4785. * test/Metalink2RequestGroupTest.cc
  4786. * test/MetalinkPostDownloadHandlerTest.cc
  4787. * test/MockBtContext.h: Removed
  4788. * test/MockDHTTaskFactory.h
  4789. * test/MockDownloadContext.h: Removed
  4790. * test/MockPieceStorage.h
  4791. * test/MultiDiskAdaptorTest.cc
  4792. * test/MultiFileAllocationIteratorTest.cc
  4793. * test/RequestGroupManTest.cc
  4794. * test/RequestGroupTest.cc
  4795. * test/SegmentManTest.cc
  4796. * test/ShareRatioSeedCriteriaTest.cc
  4797. * test/SingleFileDownloadContextTest.cc: Removed
  4798. * test/UtilTest.cc
  4799. * test/XmlRpcMethodTest.cc
  4800. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  4801. Added experimental support of WEB-Seeding for multi-file torrent.
  4802. Due to fundamental changes in file handling in HTTP/FTP code, many
  4803. functions are not working: PeerStat, ServerHost, proxy..etc
  4804. * src/AbstractCommand.cc
  4805. * src/AbstractCommand.h
  4806. * src/BitfieldMan.cc
  4807. * src/BitfieldMan.h
  4808. * src/CreateRequestCommand.cc
  4809. * src/CreateRequestCommand.h
  4810. * src/DefaultPieceStorage.cc
  4811. * src/DefaultPieceStorage.h
  4812. * src/DownloadCommand.cc
  4813. * src/DownloadCommand.h
  4814. * src/DownloadContext.cc
  4815. * src/DownloadContext.h
  4816. * src/FileEntry.cc
  4817. * src/FileEntry.h
  4818. * src/FtpDownloadCommand.cc
  4819. * src/FtpDownloadCommand.h
  4820. * src/FtpFinishDownloadCommand.cc
  4821. * src/FtpFinishDownloadCommand.h
  4822. * src/FtpInitiateConnectionCommand.cc
  4823. * src/FtpInitiateConnectionCommand.h
  4824. * src/FtpNegotiationCommand.cc
  4825. * src/FtpNegotiationCommand.h
  4826. * src/FtpTunnelResponseCommand.cc
  4827. * src/HttpDownloadCommand.cc
  4828. * src/HttpDownloadCommand.h
  4829. * src/HttpInitiateConnectionCommand.cc
  4830. * src/HttpInitiateConnectionCommand.h
  4831. * src/HttpProxyResponseCommand.cc
  4832. * src/HttpRequest.cc
  4833. * src/HttpRequest.h
  4834. * src/HttpRequestCommand.cc
  4835. * src/HttpRequestCommand.h
  4836. * src/HttpResponseCommand.cc
  4837. * src/HttpResponseCommand.h
  4838. * src/HttpSkipResponseCommand.cc
  4839. * src/HttpSkipResponseCommand.h
  4840. * src/InitiateConnectionCommand.cc
  4841. * src/InitiateConnectionCommand.h
  4842. * src/InitiateConnectionCommandFactory.cc
  4843. * src/InitiateConnectionCommandFactory.h
  4844. * src/Makefile.am
  4845. * src/PieceStorage.h
  4846. * src/RequestGroup.cc
  4847. * src/RequestGroup.h
  4848. * src/RequestGroupMan.cc
  4849. * src/SegmentMan.cc
  4850. * src/SegmentMan.h
  4851. * src/SingleFileDownloadContext.h
  4852. * src/StreamFileAllocationEntry.cc
  4853. * src/TrackerWatcherCommand.cc
  4854. * src/UnknownLengthPieceStorage.cc
  4855. * src/UnknownLengthPieceStorage.h
  4856. * src/array_fun.h
  4857. * src/bitfield.h
  4858. * src/download_helper.cc
  4859. * test/DownloadContextTest.cc
  4860. * test/Makefile.am
  4861. * test/MockDownloadContext.h
  4862. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  4863. Added tellWaiting XML-RPC method.
  4864. * src/SingleFileDownloadContext.cc
  4865. * src/XmlRpcMethodFactory.cc
  4866. * src/XmlRpcMethodImpl.cc
  4867. * src/XmlRpcMethodImpl.h
  4868. * test/XmlRpcMethodTest.cc
  4869. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  4870. Updated CookieStorageTest
  4871. * test/CookieStorageTest.cc
  4872. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  4873. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  4874. handle excepion inside these functions.
  4875. * src/LibgnutlsTLSContext.cc
  4876. * src/LibgnutlsTLSContext.h
  4877. * src/LibsslTLSContext.cc
  4878. * src/LibsslTLSContext.h
  4879. * src/MultiUrlRequestInfo.cc
  4880. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  4881. Added comment
  4882. * src/RequestGroup.cc
  4883. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  4884. In CookieStorage::load() and saveNsFormat(), handle exception
  4885. inside the functions. When saving Cookies, first write temporary
  4886. file and after successful writes, then renames it to final
  4887. destination.
  4888. * src/CookieStorage.cc
  4889. * src/CookieStorage.h
  4890. * src/MultiUrlRequestInfo.cc
  4891. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  4892. The default value of --dir option is the absolute path to the
  4893. current directory. If getcwd() is failed, then it is ".", which is
  4894. the same value with old implementation. This change is necessary
  4895. because after daemon() call, the current working directory is
  4896. changed to /.
  4897. * src/File.cc
  4898. * src/File.h
  4899. * src/OptionHandlerFactory.cc
  4900. * src/option_processing.cc
  4901. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  4902. Call daemon() with arguments(0,0), which means daemon() changes
  4903. current working directory to / and redirects stdin, stdout and
  4904. stderr to /dev/null.
  4905. * src/option_processing.cc
  4906. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  4907. Small performance optimizations.
  4908. * src/RequestGroupMan.cc
  4909. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  4910. Added _xmlRpc member variable to RequestGroupMan to reduce the
  4911. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  4912. * src/RequestGroupMan.cc
  4913. * src/RequestGroupMan.h
  4914. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  4915. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  4916. setNoWiat(true) if newly created command calls
  4917. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  4918. * src/HttpListenCommand.cc
  4919. * src/HttpServerBodyCommand.cc
  4920. * src/HttpServerCommand.cc
  4921. * src/HttpServerResponseCommand.cc
  4922. * src/InitiateConnectionCommand.cc
  4923. * src/RequestGroup.cc
  4924. * src/StreamFileAllocationEntry.cc
  4925. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  4926. Removed include vector
  4927. * src/BtRegistry.h
  4928. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  4929. Rewritten BtRegistry
  4930. * src/BtRegistry.cc
  4931. * src/BtRegistry.h
  4932. * src/BtSetup.cc
  4933. * src/ConsoleStatCalc.cc
  4934. * src/PeerInteractionCommand.cc
  4935. * src/PeerReceiveHandshakeCommand.cc
  4936. * src/ReceiverMSEHandshakeCommand.cc
  4937. * src/RequestGroup.cc
  4938. * src/XmlRpcMethodImpl.cc
  4939. * test/BtRegistryTest.cc
  4940. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  4941. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  4942. * src/DefaultBtProgressInfoFile.cc
  4943. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  4944. Throw an exception if position is less than 0.
  4945. * src/XmlRpcMethodImpl.cc
  4946. * test/XmlRpcMethodTest.cc
  4947. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  4948. Use writeFilePath() in ConsoleStatCalc.cc
  4949. * src/ConsoleStatCalc.cc
  4950. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  4951. Receive the return value as const reference from
  4952. DownloadContext::getFileEntries().
  4953. * src/DefaultPieceStorage.cc
  4954. * src/RequestGroupMan.cc
  4955. * src/XmlRpcMethodImpl.cc
  4956. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  4957. DownloadContext now has _fileEntries so that
  4958. DownloadContext::getFileEntries() can returns its const reference.
  4959. * src/DefaultBtContext.cc
  4960. * src/DefaultBtContext.h
  4961. * src/DownloadContext.cc
  4962. * src/DownloadContext.h
  4963. * src/SingleFileDownloadContext.cc
  4964. * src/SingleFileDownloadContext.h
  4965. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  4966. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  4967. writeFilePath() function template from RequestGroupMan.cc to
  4968. FileEntry.h
  4969. * src/FileEntry.h
  4970. * src/RequestGroupMan.cc
  4971. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  4972. Documented 'position' parameter is starting from 0 in man page.
  4973. * doc/aria2c.1.txt
  4974. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  4975. Updated doc.
  4976. * src/MSEHandshake.cc
  4977. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  4978. Removed _acceptFeatures and its accessor functions from
  4979. RequestGroup since they are not used practically.
  4980. * src/HttpRequestCommand.cc
  4981. * src/RequestGroup.cc
  4982. * src/RequestGroup.h
  4983. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  4984. Removed member _maxTries from RequestGroup class to avoid
  4985. duplicate option value. Those classes who refer this variable
  4986. should use option value of PREF_MAX_TRIES directly.
  4987. * src/AbstractCommand.cc
  4988. * src/RequestGroup.cc
  4989. * src/RequestGroup.h
  4990. * src/TrackerWatcherCommand.cc
  4991. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  4992. * Release 1.4.1
  4993. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  4994. Fixed compiler warnings on netbsd
  4995. * src/DHTConnectionImpl.cc
  4996. * src/PeerListenCommand.cc
  4997. * src/PeerSessionResource.cc
  4998. * src/SegmentMan.cc
  4999. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5000. Updated Ukrainian translation. Thanks to all translators.
  5001. * po/uk.po
  5002. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5003. Bump up version number to 1.4.1.
  5004. * configure.ac
  5005. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5006. Added unit tests for strjoin, strconcat and strappend.
  5007. * test/a2functionalTest.cc
  5008. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5009. Rewritten strconcat and strappend using operator+ instead of
  5010. append().
  5011. * src/a2functional.h
  5012. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5013. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  5014. is enabled.
  5015. * src/Makefile.am
  5016. * test/Makefile.am
  5017. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  5018. Added countSeeder() function which counts seeder in the given
  5019. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  5020. * src/ConsoleStatCalc.cc
  5021. * src/Peer.h
  5022. * src/XmlRpcMethodImpl.cc
  5023. * test/PeerTest.cc
  5024. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  5025. Documented missing seeder in getPeers xml-rpc method.
  5026. Documented uploadLength and numSeeders.
  5027. * doc/aria2c.1.txt
  5028. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  5029. Added uploadLength and numSeeders to the response of tellStatus
  5030. xml-rpc method. Assert that PeerStorage instance is not null
  5031. instead of checking if statement. It should be non-null in this
  5032. context.
  5033. * src/XmlRpcMethodImpl.cc
  5034. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  5035. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  5036. * src/XmlRpcResponse.cc
  5037. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  5038. Avoid intermediate object during string concatenation.
  5039. * src/HttpRequest.cc
  5040. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  5041. Added strjoin function template. Use it in pathJoin()
  5042. * src/Util.h
  5043. * src/a2functional.h
  5044. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  5045. Avoid intermediate object during string concatenation. Replaced
  5046. post-increment unary operator with pre-increment one in for loop.
  5047. * src/AdaptiveURISelector.cc
  5048. * src/AnnounceList.cc
  5049. * src/AuthConfig.h
  5050. * src/BtBitfieldMessage.cc
  5051. * src/BtExtendedMessage.cc
  5052. * src/BtHandshakeMessage.cc
  5053. * src/BtPieceMessage.cc
  5054. * src/BtPortMessage.cc
  5055. * src/Cookie.cc
  5056. * src/DHTAnnouncePeerMessage.cc
  5057. * src/DHTAutoSaveCommand.cc
  5058. * src/DHTGetPeersReplyMessage.cc
  5059. * src/DHTNode.cc
  5060. * src/DHTQueryMessage.cc
  5061. * src/DHTResponseMessage.cc
  5062. * src/DHTUnknownMessage.cc
  5063. * src/DefaultBtAnnounce.cc
  5064. * src/DefaultBtContext.cc
  5065. * src/DefaultBtInteractive.cc
  5066. * src/DefaultBtProgressInfoFile.cc
  5067. * src/DefaultPeerStorage.cc
  5068. * src/DownloadEngine.cc
  5069. * src/FeatureConfig.cc
  5070. * src/File.cc
  5071. * src/FtpConnection.cc
  5072. * src/FtpNegotiationCommand.cc
  5073. * src/HandshakeExtensionMessage.cc
  5074. * src/HttpConnection.cc
  5075. * src/HttpRequest.cc
  5076. * src/HttpResponseCommand.cc
  5077. * src/HttpServer.cc
  5078. * src/IndexBtMessage.cc
  5079. * src/Metalink2RequestGroup.cc
  5080. * src/OptionHandlerImpl.h
  5081. * src/PStringBuildVisitor.cc
  5082. * src/Peer.cc
  5083. * src/PeerListenCommand.cc
  5084. * src/Piece.cc
  5085. * src/RangeBtMessage.cc
  5086. * src/Request.cc
  5087. * src/Request.h
  5088. * src/RequestGroup.cc
  5089. * src/RequestGroupMan.cc
  5090. * src/ServerStat.cc
  5091. * src/ServerStatMan.cc
  5092. * src/UTPexExtensionMessage.cc
  5093. * src/Util.cc
  5094. * src/a2functional.h
  5095. * src/download_helper.cc
  5096. * src/messageDigest.cc
  5097. 2009-06-04 Tatsuhiro Tsujikawa <[email protected]>
  5098. Unchoke a peer randomly at first and second choke round in seed
  5099. state.
  5100. * src/BtSeederStateChoke.cc
  5101. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  5102. Added (sock_t) to quiet compiler warnings in MinGW
  5103. * src/SocketCore.cc
  5104. * src/SocketCore.h
  5105. 2009-06-02 Tatsuhiro Tsujikawa <[email protected]>
  5106. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  5107. * src/EpollEventPoll.h
  5108. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  5109. Added fork() emulation using CreateProcess() in MinGW
  5110. * src/RequestGroupMan.cc
  5111. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  5112. * Release 1.4.0
  5113. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  5114. Added utf8.torrent to EXTRA_DIST
  5115. * test/Makefile.am
  5116. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  5117. Fixed docs of aria2.addMetalink xml-rpc method.
  5118. * doc/aria2c.1.txt
  5119. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  5120. Added Slovak translation. Updated Ukrainian and Brazilian
  5121. Portuguese translation. Thanks to all translators.
  5122. * po/sk.po
  5123. * po/uk.po
  5124. * po/pt_BR.po
  5125. * po/LINGUAS
  5126. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  5127. Added test case for XmlRpcProcessor to fail to parse malformed
  5128. document.
  5129. * test/XmlRpcRequestProcessorTest.cc
  5130. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  5131. Removed *.gmo files in po because they are generated on 'make
  5132. dist'
  5133. * po/*.gmo
  5134. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  5135. Documented max-concurrent-downloads of changeGlobalOption method
  5136. in man page.
  5137. * doc/aria2c.1.txt
  5138. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  5139. Added max-concurrent-downloads option to changeGlobalOption
  5140. xml-rpc method. Rewritten loop conditional in
  5141. RequestGroupMan::fillRequestGroupFromReserver().
  5142. * src/RequestGroupMan.cc
  5143. * src/RequestGroupMan.h
  5144. * src/XmlRpcMethod.cc
  5145. * src/XmlRpcMethodImpl.cc
  5146. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  5147. Documented position parameter in man page.
  5148. * doc/aria2c.1.txt
  5149. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  5150. Added 'position' parameter to addUri, addTorrent and addMetalink
  5151. xml-rpc method.
  5152. * src/RequestGroupMan.cc
  5153. * src/RequestGroupMan.h
  5154. * src/XmlRpcMethodImpl.cc
  5155. * test/XmlRpcMethodTest.cc
  5156. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  5157. Removed Peer.cc from compile source list when --disable-bittorrent
  5158. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  5159. takes Peer.
  5160. * src/DefaultPieceStorage.cc
  5161. * src/DefaultPieceStorage.h
  5162. * src/Makefile.am
  5163. * src/PieceStorage.h
  5164. * src/UnknownLengthPieceStorage.cc
  5165. * src/UnknownLengthPieceStorage.h
  5166. * test/MockPieceStorage.h
  5167. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  5168. Implemented getter methods in header files to give them more
  5169. chance of optimization.
  5170. Return const reference for SharadHandle if possible.
  5171. * src/AbstractAuthResolver.cc
  5172. * src/AbstractAuthResolver.h
  5173. * src/AbstractBtMessage.cc
  5174. * src/AbstractBtMessage.h
  5175. * src/AbstractSingleDiskAdaptor.cc
  5176. * src/AbstractSingleDiskAdaptor.h
  5177. * src/AsyncNameResolver.cc
  5178. * src/AsyncNameResolver.h
  5179. * src/BNode.cc
  5180. * src/BNode.h
  5181. * src/BitfieldMan.cc
  5182. * src/BitfieldMan.h
  5183. * src/BtAbortOutstandingRequestEvent.h
  5184. * src/BtExtendedMessage.cc
  5185. * src/BtExtendedMessage.h
  5186. * src/BtSeederStateChoke.cc
  5187. * src/BtSeederStateChoke.h
  5188. * src/Cookie.cc
  5189. * src/Cookie.h
  5190. * src/DHTBucket.cc
  5191. * src/DHTBucket.h
  5192. * src/DHTConnectionImpl.cc
  5193. * src/DHTConnectionImpl.h
  5194. * src/DHTFindNodeReplyMessage.cc
  5195. * src/DHTFindNodeReplyMessage.h
  5196. * src/DHTGetPeersReplyMessage.cc
  5197. * src/DHTGetPeersReplyMessage.h
  5198. * src/DHTInteractionCommand.cc
  5199. * src/DHTMessage.cc
  5200. * src/DHTMessage.h
  5201. * src/DHTMessageDispatcherImpl.cc
  5202. * src/DHTMessageEntry.cc
  5203. * src/DHTMessageReceiver.cc
  5204. * src/DHTMessageReceiver.h
  5205. * src/DHTMessageTrackerEntry.cc
  5206. * src/DHTMessageTrackerEntry.h
  5207. * src/DHTPeerAnnounceEntry.cc
  5208. * src/DHTPeerAnnounceEntry.h
  5209. * src/DHTPeerLookupTask.cc
  5210. * src/DHTPeerLookupTask.h
  5211. * src/DHTRoutingTableDeserializer.cc
  5212. * src/DHTRoutingTableDeserializer.h
  5213. * src/DefaultBtAnnounce.cc
  5214. * src/DefaultBtAnnounce.h
  5215. * src/DefaultBtMessageDispatcher.cc
  5216. * src/DefaultBtMessageDispatcher.h
  5217. * src/DefaultBtRequestFactory.cc
  5218. * src/DefaultBtRequestFactory.h
  5219. * src/DiskAdaptor.cc
  5220. * src/DiskAdaptor.h
  5221. * src/DownloadContext.cc
  5222. * src/DownloadContext.h
  5223. * src/DownloadEngine.cc
  5224. * src/DownloadEngine.h
  5225. * src/EpollEventPoll.cc
  5226. * src/EpollEventPoll.h
  5227. * src/FtpConnection.cc
  5228. * src/FtpConnection.h
  5229. * src/HttpConnection.cc
  5230. * src/HttpConnection.h
  5231. * src/HttpHeader.cc
  5232. * src/HttpHeader.h
  5233. * src/HttpRequest.cc
  5234. * src/HttpRequest.h
  5235. * src/HttpResponse.cc
  5236. * src/HttpResponse.h
  5237. * src/LibsslTLSContext.cc
  5238. * src/LibsslTLSContext.h
  5239. * src/MSEHandshake.cc
  5240. * src/MSEHandshake.h
  5241. * src/MetalinkEntry.cc
  5242. * src/MetalinkEntry.h
  5243. * src/MetalinkParserController.cc
  5244. * src/MetalinkParserController.h
  5245. * src/MetalinkParserStateMachine.cc
  5246. * src/MetalinkParserStateMachine.h
  5247. * src/MultiDiskAdaptor.cc
  5248. * src/MultiDiskAdaptor.h
  5249. * src/NetrcAuthResolver.cc
  5250. * src/NetrcAuthResolver.h
  5251. * src/Peer.cc
  5252. * src/Peer.h
  5253. * src/PeerSessionResource.cc
  5254. * src/PeerSessionResource.h
  5255. * src/Piece.cc
  5256. * src/Piece.h
  5257. * src/PieceStatMan.cc
  5258. * src/PieceStatMan.h
  5259. * src/Request.cc
  5260. * src/Request.h
  5261. * src/RequestGroup.cc
  5262. * src/RequestGroup.h
  5263. * src/RequestGroupMan.cc
  5264. * src/RequestGroupMan.h
  5265. * src/RequestSlot.cc
  5266. * src/RequestSlot.h
  5267. * src/SegmentMan.cc
  5268. * src/SegmentMan.h
  5269. * src/SelectEventPoll.cc
  5270. * src/SelectEventPoll.h
  5271. * src/ServerStat.cc
  5272. * src/ServerStat.h
  5273. * src/Signature.cc
  5274. * src/Signature.h
  5275. * src/URIResult.cc
  5276. * src/URIResult.h
  5277. * src/UTPexExtensionMessage.cc
  5278. * src/UTPexExtensionMessage.h
  5279. 2009-05-28 Tatsuhiro Tsujikawa <[email protected]>
  5280. Fixed compile error without BitTorrent and Metalink support.
  5281. * src/XmlRpcMethod.cc
  5282. * src/XmlRpcMethodFactory.cc
  5283. * src/XmlRpcMethodImpl.cc
  5284. * src/XmlRpcMethodImpl.h
  5285. * test/XmlRpcMethodTest.cc
  5286. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  5287. Rewritten the help message for --allow-overwrite option.
  5288. * doc/aria2c.1.txt
  5289. * src/usage_text.h
  5290. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  5291. Fixed typo
  5292. * doc/aria2c.1.txt
  5293. * src/usage_text.h
  5294. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  5295. Updated README for 1.4.0 release. Use new table syntax of
  5296. asciidoc.
  5297. * README
  5298. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  5299. Documented --xml-rpc-max-request-size option in man page.
  5300. * doc/aria2c.1.txt
  5301. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  5302. Moved C_* constants from BtContext to DefaultBtContext.
  5303. * src/BtContext.cc: Removed.
  5304. * src/BtContext.h
  5305. * src/DefaultBtContext.cc
  5306. * src/DefaultBtContext.h
  5307. * src/Makefile.am
  5308. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  5309. Use name.utf-8 and path.utf-8 key in higher priority than name and
  5310. path key respectively when persing .torrent file.
  5311. * src/BtContext.cc
  5312. * src/BtContext.h
  5313. * src/DefaultBtContext.cc
  5314. * test/DefaultBtContextTest.cc
  5315. * test/utf8.torrent
  5316. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  5317. Added --xml-rpc-max-request-size option to limit the size of
  5318. XML-RPC request.
  5319. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  5320. Documented XML-RPC API in man page.
  5321. * doc/aria2c.1.txt
  5322. 2009-05-24 Tatsuhiro Tsujikawa <[email protected]>
  5323. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  5324. will break strict-aliasing rules
  5325. * src/PeerConnection.cc
  5326. * test/DHTRoutingTableSerializerTest.cc
  5327. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  5328. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  5329. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  5330. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  5331. PKG_CHECK_MODULES macro uses latter name.
  5332. * m4/sqlite3.m4
  5333. * src/Makefile.am
  5334. * test/Makefile.am
  5335. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  5336. Fixed typo
  5337. * configure.ac
  5338. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  5339. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  5340. presence of libgnutls using pkg-config first. If it fails, fall
  5341. back to old macro libgnutls.m4.
  5342. * configure.ac
  5343. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  5344. Use s itself instead of !s.bad()
  5345. * src/CookieStorage.cc
  5346. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  5347. Documented --on-download-* option and --save-cookies option in man
  5348. page.
  5349. * doc/aria2c.1.txt
  5350. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  5351. Set possible values for --load-cookie option to "/path/to/file".
  5352. * src/OptionHandlerFactory.cc
  5353. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  5354. Added --save-cookies option.
  5355. * src/Cookie.cc
  5356. * src/Cookie.h
  5357. * src/CookieStorage.cc
  5358. * src/CookieStorage.h
  5359. * src/MultiUrlRequestInfo.cc
  5360. * src/OptionHandlerFactory.cc
  5361. * src/prefs.cc
  5362. * src/prefs.h
  5363. * src/usage_text.h
  5364. * test/CookieStorageTest.cc
  5365. * test/CookieTest.cc
  5366. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  5367. Removed tellAll XML-RPC command because its reponse tends to be
  5368. big if stopped/waiting downloads pile up.
  5369. * src/XmlRpcMethodFactory.cc
  5370. * src/XmlRpcMethodImpl.cc
  5371. * src/XmlRpcMethodImpl.h
  5372. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  5373. Added the ability to execute command when download starts and
  5374. stops. You can also specify command for particular cases such as
  5375. complete/error download. Added --on-download-start,
  5376. --on-download-stop, --on-download-complete and --on-download-error
  5377. option.
  5378. * src/OptionHandlerFactory.cc
  5379. * src/RequestGroupMan.cc
  5380. * src/prefs.cc
  5381. * src/prefs.h
  5382. * src/usage_text.h
  5383. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  5384. Fixed test error
  5385. * test/BencodeTest.cc
  5386. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  5387. Added unit tests.
  5388. * test/XmlRpcMethodTest.cc
  5389. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  5390. Made exception message more verbose.
  5391. * src/bencode.cc
  5392. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  5393. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  5394. space in console readout. Also they are now shown in MiB/s if
  5395. speed > 1024KiB/s.
  5396. * src/ConsoleStatCalc.cc
  5397. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  5398. Added SEED to console output, which represents the number of
  5399. seeders currently the client is connecting to.
  5400. * src/ConsoleStatCalc.cc
  5401. * src/ConsoleStatCalc.h
  5402. * src/DownloadEngine.cc
  5403. * src/NullStatCalc.h
  5404. * src/StatCalc.h
  5405. 2009-05-18 Tatsuhiro Tsujikawa <[email protected]>
  5406. Added source filename(__FILE__) and line number(__LINE__) to
  5407. exception message.
  5408. * src/AbstractCommand.cc
  5409. * src/AbstractDiskWriter.cc
  5410. * src/AbstractProxyResponseCommand.cc
  5411. * src/BDE.h
  5412. * src/BtAllowedFastMessage.cc
  5413. * src/BtHandshakeMessageValidator.h
  5414. * src/BtHaveAllMessage.cc
  5415. * src/BtHaveNoneMessage.cc
  5416. * src/BtPieceMessage.cc
  5417. * src/BtRejectMessage.cc
  5418. * src/ChunkedDecoder.cc
  5419. * src/CookieStorage.cc
  5420. * src/DHTAnnouncePeerMessage.cc
  5421. * src/DHTEntryPointNameResolveCommand.cc
  5422. * src/DHTMessageFactoryImpl.cc
  5423. * src/DHTMessageTracker.cc
  5424. * src/DHTRoutingTableDeserializer.cc
  5425. * src/DHTRoutingTableSerializer.cc
  5426. * src/DHTSetup.cc
  5427. * src/DHTTokenTracker.cc
  5428. * src/DefaultBtAnnounce.cc
  5429. * src/DefaultBtContext.cc
  5430. * src/DefaultBtInteractive.cc
  5431. * src/DefaultBtMessageFactory.cc
  5432. * src/DefaultBtProgressInfoFile.cc
  5433. * src/DefaultExtensionMessageFactory.cc
  5434. * src/DlAbortEx.h
  5435. * src/DlRetryEx.h
  5436. * src/DownloadCommand.cc
  5437. * src/DownloadEngineFactory.cc
  5438. * src/DownloadFailureException.h
  5439. * src/Exception.cc
  5440. * src/Exception.h
  5441. * src/ExpatMetalinkProcessor.cc
  5442. * src/ExpatXmlRpcRequestProcessor.cc
  5443. * src/FallocFileAllocationIterator.cc
  5444. * src/FatalException.h
  5445. * src/FtpConnection.cc
  5446. * src/FtpFinishDownloadCommand.cc
  5447. * src/FtpInitiateConnectionCommand.cc
  5448. * src/FtpNegotiationCommand.cc
  5449. * src/GZipDecoder.cc
  5450. * src/HandshakeExtensionMessage.cc
  5451. * src/HttpConnection.cc
  5452. * src/HttpHeaderProcessor.cc
  5453. * src/HttpInitiateConnectionCommand.cc
  5454. * src/HttpResponse.cc
  5455. * src/HttpResponseCommand.cc
  5456. * src/HttpServer.cc
  5457. * src/HttpSkipResponseCommand.cc
  5458. * src/InitiateConnectionCommandFactory.cc
  5459. * src/IteratableChunkChecksumValidator.cc
  5460. * src/LibgcryptARC4Context.h
  5461. * src/LibgcryptARC4Decryptor.h
  5462. * src/LibgcryptARC4Encryptor.h
  5463. * src/LibgcryptDHKeyExchange.h
  5464. * src/LibgnutlsTLSContext.cc
  5465. * src/LibsslARC4Context.h
  5466. * src/LibsslARC4Decryptor.h
  5467. * src/LibsslARC4Encryptor.h
  5468. * src/LibsslDHKeyExchange.h
  5469. * src/LibsslTLSContext.cc
  5470. * src/MSEHandshake.cc
  5471. * src/MessageDigestHelper.cc
  5472. * src/MetalinkHelper.cc
  5473. * src/MultiDiskAdaptor.cc
  5474. * src/NameMatchOptionHandler.h
  5475. * src/NameResolver.cc
  5476. * src/Netrc.cc
  5477. * src/NsCookieParser.cc
  5478. * src/OptionHandlerException.cc
  5479. * src/OptionHandlerException.h
  5480. * src/OptionHandlerImpl.h
  5481. * src/OptionParser.cc
  5482. * src/ParameterizedStringParser.cc
  5483. * src/PeerAbstractCommand.cc
  5484. * src/PeerConnection.cc
  5485. * src/PeerMessageUtil.cc
  5486. * src/PeerReceiveHandshakeCommand.cc
  5487. * src/Platform.cc
  5488. * src/ReceiverMSEHandshakeCommand.cc
  5489. * src/RecoverableException.h
  5490. * src/RequestGroup.cc
  5491. * src/SimpleLogger.cc
  5492. * src/SocketCore.cc
  5493. * src/Sqlite3MozCookieParser.cc
  5494. * src/UTPexExtensionMessage.cc
  5495. * src/Util.cc
  5496. * src/XML2SAXMetalinkProcessor.cc
  5497. * src/Xml2XmlRpcRequestProcessor.cc
  5498. * src/XmlRpcMethodImpl.cc
  5499. * src/bencode.cc
  5500. * src/download_helper.cc
  5501. * src/messageDigest.h
  5502. * test/ExceptionTest.cc
  5503. * test/TestUtil.cc
  5504. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  5505. Bump up version number to 1.4.0
  5506. * configure.ac
  5507. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  5508. Added 2files.metalink to EXTRA_DIST
  5509. * test/Makefile.am
  5510. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5511. Added missing 2files.metalink
  5512. * test/2files.metalink
  5513. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5514. Show "[MEMORY]" prefix before filename in download summary if it
  5515. is downloaded into memory.
  5516. * src/DownloadResult.h
  5517. * src/RequestGroup.cc
  5518. * src/RequestGroupMan.cc
  5519. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5520. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  5521. * src/ExpatXmlRpcRequestProcessor.cc
  5522. * src/Xml2XmlRpcRequestProcessor.cc
  5523. * src/message.h
  5524. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5525. Defined const BDEs to avoid duplicate instantiation.
  5526. Defined MSG_GID_NOT_PROVIDED.
  5527. * src/XmlRpcMethodImpl.cc
  5528. * src/message.h
  5529. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5530. Code cleanup
  5531. * src/Xml2XmlRpcRequestProcessor.cc
  5532. * src/Xml2XmlRpcRequestProcessor.h
  5533. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5534. Defined ENABLE_XML_RPC
  5535. * configure.ac
  5536. * configure
  5537. * config.h.in
  5538. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5539. Added ExpatXmlRpcRequestProcessor
  5540. * src/ExpatXmlRpcRequestProcessor.cc
  5541. * src/ExpatXmlRpcRequestProcessor.h
  5542. * src/Makefile.am
  5543. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5544. Added tests for addTorrent and addMetalink command.
  5545. * test/TestUtil.cc
  5546. * test/TestUtil.h
  5547. * test/XmlRpcMethodTest.cc
  5548. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5549. Corrected the description of --file-allocation option.
  5550. * doc/aria2c.1.txt
  5551. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5552. Added tellAll command.
  5553. * src/XmlRpcMethodFactory.cc
  5554. * src/XmlRpcMethodImpl.cc
  5555. * src/XmlRpcMethodImpl.h
  5556. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5557. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  5558. * src/XmlRpcMethodImpl.cc
  5559. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5560. Added changeGlobalOption command. Currently,
  5561. max-overall-download-limit and max-overall-upload-limit option are
  5562. available.
  5563. * src/RequestGroupMan.h
  5564. * src/XmlRpcMethod.cc
  5565. * src/XmlRpcMethod.h
  5566. * src/XmlRpcMethodFactory.cc
  5567. * src/XmlRpcMethodImpl.cc
  5568. * src/XmlRpcMethodImpl.h
  5569. * test/XmlRpcMethodTest.cc
  5570. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  5571. Added changeOption command. Currently, max-download-limit,
  5572. max-upload-limit option are available in this command.
  5573. * src/RequestGroup.h
  5574. * src/XmlRpcMethod.cc
  5575. * src/XmlRpcMethod.h
  5576. * src/XmlRpcMethodFactory.cc
  5577. * src/XmlRpcMethodImpl.cc
  5578. * src/XmlRpcMethodImpl.h
  5579. * test/XmlRpcMethodTest.cc
  5580. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  5581. Added purgeDownloadResult command.
  5582. * src/RequestGroupMan.cc
  5583. * src/RequestGroupMan.h
  5584. * src/XmlRpcMethodFactory.cc
  5585. * src/XmlRpcMethodImpl.cc
  5586. * src/XmlRpcMethodImpl.h
  5587. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  5588. Refactored.
  5589. * src/XmlRpcMethod.cc
  5590. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  5591. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  5592. XmlRpcResponse.
  5593. * src/HttpServerBodyCommand.cc
  5594. * src/Makefile.am
  5595. * src/XmlRpcMethod.cc
  5596. * src/XmlRpcMethod.h
  5597. * src/XmlRpcMethodImpl.cc
  5598. * src/XmlRpcResponse.cc
  5599. * src/XmlRpcResponse.h
  5600. * test/XmlRpcMethodTest.cc
  5601. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  5602. In XML-RPC option struct, header and index-out option can take
  5603. array as value.
  5604. * src/XmlRpcMethod.cc
  5605. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5606. Removed unused option member from PeerConnection.
  5607. * src/InitiatorMSEHandshakeCommand.cc
  5608. * src/PeerConnection.cc
  5609. * src/PeerConnection.h
  5610. * src/PeerInteractionCommand.cc
  5611. * src/PeerReceiveHandshakeCommand.cc
  5612. * src/ReceiverMSEHandshakeCommand.cc
  5613. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5614. Added "seeder" key to getPeers response.
  5615. * src/XmlRpcMethodImpl.cc
  5616. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5617. Added addMetalink XML-RPC command.
  5618. * src/XmlRpcMethodFactory.cc
  5619. * src/XmlRpcMethodImpl.cc
  5620. * src/XmlRpcMethodImpl.h
  5621. * src/download_helper.cc
  5622. * src/download_helper.h
  5623. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5624. Fixed the bug that POU peers are never choked in seeding.
  5625. * src/BtSeederStateChoke.cc
  5626. * src/BtSeederStateChoke.h
  5627. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5628. Added web-seeding URI handling in addTorrent command.
  5629. * src/XmlRpcMethodImpl.cc
  5630. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5631. Added "length" key to getFiles response.
  5632. * src/XmlRpcMethodImpl.cc
  5633. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5634. Moved --no-netrc option from ftp option section to http/ftp option
  5635. section.
  5636. * doc/aria2c.1.txt
  5637. * src/OptionHandlerFactory.cc
  5638. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5639. Removed garbage "\" character before '
  5640. * doc/aria2c.1.txt
  5641. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5642. Removed garbage "\" character before http.
  5643. * doc/aria2c.1.txt
  5644. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5645. Documented additional options that can be specified in -i list.
  5646. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  5647. and --xml-rpc-passwd. Removed --enable-http-server and
  5648. --http-server-listen-port.
  5649. * doc/aria2c.1.txt
  5650. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5651. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  5652. * src/DefaultPeerStorage.cc
  5653. * src/DefaultPeerStorage.h
  5654. * src/PeerStorage.h
  5655. * src/XmlRpcMethodImpl.cc
  5656. * test/MockPeerStorage.h
  5657. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  5658. Put a call to Socket::isReadable() in try block.
  5659. * src/HttpServerBodyCommand.cc
  5660. * src/HttpServerCommand.cc
  5661. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5662. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  5663. exception , so it is now in try block.
  5664. * src/HttpServerResponseCommand.cc
  5665. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5666. Added "amChoking" and "peerChoking" key in getPeers response.
  5667. * src/XmlRpcMethodImpl.cc
  5668. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5669. Added test case for zero-length filter.
  5670. * test/BitfieldManTest.cc
  5671. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5672. getFiles command now returns file data for finished/stopped
  5673. downloads.
  5674. * src/XmlRpcMethodImpl.cc
  5675. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5676. DownloadResult now has the list of FileEntry. The download
  5677. summary displays the path of first selected file and the number of
  5678. remaining files for multi-file torrent.
  5679. * src/DownloadResult.h
  5680. * src/RequestGroup.cc
  5681. * src/RequestGroupMan.cc
  5682. * test/RequestGroupTest.cc
  5683. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5684. Fixed segmentation fault error when no file is selected in
  5685. multi-file torrent.
  5686. * src/BitfieldMan.cc
  5687. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5688. Escaped <,>,& character in XML-RPC response.
  5689. * src/XmlRpcMethod.cc
  5690. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5691. Throw DlAbortEx instead of FatalException during parsing options
  5692. because we don't want for aria2 to quit when bad option is passed
  5693. via XML-RPC.
  5694. * src/OptionHandlerException.cc
  5695. * src/OptionHandlerException.h
  5696. * src/OptionHandlerImpl.h
  5697. * src/OptionParser.cc
  5698. * src/OptionParser.h
  5699. * src/PStringSegment.cc
  5700. * src/ParameterizedStringParser.cc
  5701. * src/download_helper.cc
  5702. * test/ParameterizedStringParserTest.cc
  5703. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  5704. Selecting files are now done in
  5705. DefaultBtContext::setFileFileter().
  5706. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  5707. functions are removed because they are no longer used. Creating
  5708. filter in BitfieldMan is done in new funtion
  5709. PieceStorage::setupFileFilter()
  5710. * src/BtContext.cc
  5711. * src/BtContext.h
  5712. * src/DefaultBtContext.cc
  5713. * src/DefaultBtContext.h
  5714. * src/DefaultPieceStorage.cc
  5715. * src/DefaultPieceStorage.h
  5716. * src/DiskAdaptor.cc
  5717. * src/DiskAdaptor.h
  5718. * src/PieceStorage.h
  5719. * src/RequestGroup.cc
  5720. * src/UnknownLengthPieceStorage.h
  5721. * src/XmlRpcMethodImpl.cc
  5722. * test/DefaultBtContextTest.cc
  5723. * test/MockBtContext.h
  5724. * test/MockPieceStorage.h
  5725. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  5726. Fixed compile error on Mac OS X
  5727. * src/HttpServer.cc
  5728. * src/XmlRpcMethod.h
  5729. * src/XmlRpcMethodImpl.cc
  5730. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  5731. Use std::binary_search instead of std::find
  5732. * src/DefaultPieceStorage.cc
  5733. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  5734. Removed unnecessary BDE() call; leave them to implicit conversion.
  5735. * src/XmlRpcMethodImpl.cc
  5736. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  5737. Return connections and gid in string
  5738. * src/XmlRpcMethodImpl.cc
  5739. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  5740. Renamed addURI as addUri
  5741. * src/XmlRpcMethodFactory.cc
  5742. * src/XmlRpcMethodImpl.cc
  5743. * src/XmlRpcMethodImpl.h
  5744. * test/XmlRpcMethodTest.cc
  5745. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  5746. Renamed addTorrentFile as addTorrent
  5747. * src/XmlRpcMethodFactory.cc
  5748. * src/XmlRpcMethodImpl.cc
  5749. * src/XmlRpcMethodImpl.h
  5750. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  5751. The information for files, URIs, peers are removed from the
  5752. reponse of TellaActive, TellStatus command because they tend to be
  5753. large. Instead they can be retrieved by the dedicated commands:
  5754. getFiles, getUris and getPeers respectively.
  5755. * src/XmlRpcMethodFactory.cc
  5756. * src/XmlRpcMethodImpl.cc
  5757. * src/XmlRpcMethodImpl.h
  5758. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  5759. Removed --max-overall-upload-limit and
  5760. --max-overall-download-limit option from listRequestOptions.
  5761. * src/download_helper.cc
  5762. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  5763. Log incoming host in HttpListenCommand.
  5764. * src/HttpListenCommand.cc
  5765. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  5766. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  5767. --xml-rpc-passwd option.
  5768. * src/HttpServer.cc
  5769. * src/HttpServer.h
  5770. * src/HttpServerCommand.cc
  5771. * src/OptionHandlerFactory.cc
  5772. * src/prefs.cc
  5773. * src/prefs.h
  5774. * src/usage_text.h
  5775. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  5776. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  5777. processing 0 length request.
  5778. * src/HttpServerBodyCommand.cc
  5779. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  5780. Removed --enable-http-server and --http-server-listen-port
  5781. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  5782. instead. The original feature for --enable-http-server that
  5783. reports download progress in HTML was officially removed. Persist
  5784. XML-RPC connection if client supports keep-alive.
  5785. * src/DownloadEngineFactory.cc
  5786. * src/HttpServerCommand.cc
  5787. * src/HttpServerResponseCommand.cc
  5788. * src/Makefile.am
  5789. * src/Makefile.in
  5790. * src/OptionHandlerFactory.cc
  5791. * src/RequestGroupMan.cc
  5792. * src/main.cc
  5793. * src/option_processing.cc
  5794. * src/prefs.cc
  5795. * src/prefs.h
  5796. * src/usage_text.h
  5797. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  5798. Added "uris" key to the response of tellStatus command. Added
  5799. "connections" key to the response of tellStatus and tellActive
  5800. command.
  5801. * src/XmlRpcMethodImpl.cc
  5802. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  5803. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  5804. Added TellStatusXmlRpcMethod. Remove command can now remove
  5805. waiting RequestGroup.
  5806. * src/RequestGroupMan.cc
  5807. * src/RequestGroupMan.h
  5808. * src/XmlRpcMethodFactory.cc
  5809. * src/XmlRpcMethodImpl.cc
  5810. * src/XmlRpcMethodImpl.h
  5811. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  5812. Initialized _peerId
  5813. * src/Peer.cc
  5814. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  5815. Return fault structure for error. FailXmlRpcMethod is renamed as
  5816. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  5817. in non-torrent download. Return single param value.
  5818. * src/XmlRpcMethod.cc
  5819. * src/XmlRpcMethodFactory.cc
  5820. * src/XmlRpcMethodImpl.cc
  5821. * src/XmlRpcMethodImpl.h
  5822. * test/XmlRpcMethodTest.cc
  5823. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  5824. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  5825. command.
  5826. * src/RequestGroup.cc
  5827. * src/RequestGroup.h
  5828. * src/RequestGroupMan.cc
  5829. * src/XmlRpcMethodImpl.cc
  5830. * test/RequestGroupTest.cc
  5831. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  5832. Added more options that can be specified in -i list and xml-rpc
  5833. add* command.
  5834. * src/download_helper.h
  5835. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  5836. The available options in -i list should be listed in
  5837. listRequestOptions().
  5838. * src/download_helper.cc
  5839. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  5840. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  5841. command.
  5842. * src/XmlRpcMethodImpl.cc
  5843. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  5844. Now RequestGroup has its own copy of Option object. This will help
  5845. to give custom option for each RequestGroup.
  5846. addTorrentFile command now takes options.
  5847. * src/AbstractCommand.cc
  5848. * src/AbstractCommand.h
  5849. * src/AbstractProxyRequestCommand.cc
  5850. * src/ActivePeerConnectionCommand.cc
  5851. * src/ActivePeerConnectionCommand.h
  5852. * src/AdaptiveURISelector.cc
  5853. * src/BtCheckIntegrityEntry.cc
  5854. * src/BtDependency.cc
  5855. * src/BtDependency.h
  5856. * src/BtFileAllocationEntry.cc
  5857. * src/BtPostDownloadHandler.cc
  5858. * src/CheckIntegrityEntry.cc
  5859. * src/DownloadCommand.cc
  5860. * src/FtpDownloadCommand.cc
  5861. * src/FtpFinishDownloadCommand.cc
  5862. * src/FtpInitiateConnectionCommand.cc
  5863. * src/FtpNegotiationCommand.cc
  5864. * src/HttpInitiateConnectionCommand.cc
  5865. * src/HttpRequestCommand.cc
  5866. * src/HttpResponseCommand.cc
  5867. * src/HttpSkipResponseCommand.cc
  5868. * src/InitiateConnectionCommand.cc
  5869. * src/InitiateConnectionCommandFactory.cc
  5870. * src/InitiatorMSEHandshakeCommand.cc
  5871. * src/InitiatorMSEHandshakeCommand.h
  5872. * src/Metalink2RequestGroup.cc
  5873. * src/Metalink2RequestGroup.h
  5874. * src/MetalinkPostDownloadHandler.cc
  5875. * src/MultiUrlRequestInfo.cc
  5876. * src/MultiUrlRequestInfo.h
  5877. * src/PeerAbstractCommand.cc
  5878. * src/PeerInteractionCommand.cc
  5879. * src/PeerInteractionCommand.h
  5880. * src/PeerReceiveHandshakeCommand.cc
  5881. * src/PeerReceiveHandshakeCommand.h
  5882. * src/RequestGroup.cc
  5883. * src/RequestGroup.h
  5884. * src/TrackerWatcherCommand.cc
  5885. * src/TrackerWatcherCommand.h
  5886. * src/XmlRpcMethod.cc
  5887. * src/XmlRpcMethod.h
  5888. * src/XmlRpcMethodImpl.cc
  5889. * src/download_helper.cc
  5890. * src/download_helper.h
  5891. * src/main.cc
  5892. * test/BtDependencyTest.cc
  5893. * test/BtPostDownloadHandlerTest.cc
  5894. * test/DefaultBtMessageDispatcherTest.cc
  5895. * test/DownloadHandlerFactoryTest.cc
  5896. * test/DownloadHelperTest.cc
  5897. * test/Metalink2RequestGroupTest.cc
  5898. * test/MetalinkPostDownloadHandlerTest.cc
  5899. * test/RequestGroupManTest.cc
  5900. * test/RequestGroupTest.cc
  5901. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  5902. Added tellActiveStatus xml-rpc command which reports download
  5903. status of active downloads.
  5904. * src/XmlRpcMethodFactory.cc
  5905. * src/XmlRpcMethodImpl.cc
  5906. * src/XmlRpcMethodImpl.h
  5907. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  5908. Added addTorrentFile xml-rpc command which receives uploaded
  5909. torrent file and add download for it.
  5910. * src/RequestGroupMan.cc
  5911. * src/XmlRpcMethodFactory.cc
  5912. * src/XmlRpcMethodImpl.cc
  5913. * src/XmlRpcMethodImpl.h
  5914. * src/download_helper.cc
  5915. * src/download_helper.h
  5916. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  5917. Added remove xml-rpc command which removes specified download.
  5918. There is a known issue: the removed unfinished downloads are
  5919. reported ERR when aria2 exits. They should be reported as INPR.
  5920. * src/RequestGroupMan.cc
  5921. * src/RequestGroupMan.h
  5922. * src/XmlRpcMethodFactory.cc
  5923. * src/XmlRpcMethodImpl.cc
  5924. * src/XmlRpcMethodImpl.h
  5925. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  5926. If --enable-http-server is enabled, don't stop aria2 when all
  5927. download finished and don't quit when no files to download at
  5928. start up.
  5929. * src/RequestGroupMan.cc
  5930. * src/main.cc
  5931. * src/option_processing.cc
  5932. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  5933. Added missing AM_CONDITIONAL
  5934. * configure.ac
  5935. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  5936. Added xml-rpc functionality. Currently only addURI commad is
  5937. supported. To enable xml-rpc, run aria2 with
  5938. --enable-http-server. This option name is temporal and will be
  5939. changed. The feature that reports download progress in html format
  5940. is temporarily disabled.
  5941. * src/HttpServer.cc
  5942. * src/HttpServer.h
  5943. * src/HttpServerBodyCommand.cc
  5944. * src/HttpServerBodyCommand.h
  5945. * src/HttpServerCommand.cc
  5946. * src/HttpServerResponseCommand.cc
  5947. * src/Makefile.am
  5948. * src/OptionParser.cc
  5949. * src/OptionParser.h
  5950. * src/RequestGroupMan.cc
  5951. * src/RequestGroupMan.h
  5952. * src/XmlRpcMethod.cc
  5953. * src/XmlRpcMethod.h
  5954. * src/XmlRpcMethodFactory.cc
  5955. * src/XmlRpcMethodFactory.h
  5956. * src/XmlRpcMethodImpl.cc
  5957. * src/XmlRpcMethodImpl.h
  5958. * src/download_helper.cc
  5959. * src/download_helper.h
  5960. * test/Makefile.am
  5961. * test/XmlRpcMethodTest.cc
  5962. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  5963. Added xml-rpc request parser. The supported value types are:
  5964. i4/int, string, double, struct, array, base64. Currently only
  5965. libxml2 version is provided.
  5966. * src/Xml2XmlRpcRequestProcessor.cc
  5967. * src/Xml2XmlRpcRequestProcessor.h
  5968. * src/XmlRpcElements.cc
  5969. * src/XmlRpcElements.h
  5970. * src/XmlRpcRequest.h
  5971. * src/XmlRpcRequestParserController.cc
  5972. * src/XmlRpcRequestParserController.h
  5973. * src/XmlRpcRequestParserState.h
  5974. * src/XmlRpcRequestParserStateImpl.cc
  5975. * src/XmlRpcRequestParserStateImpl.h
  5976. * src/XmlRpcRequestParserStateMachine.cc
  5977. * src/XmlRpcRequestParserStateMachine.h
  5978. * src/XmlRpcRequestProcessor.h
  5979. * test/XmlRpcRequestParserControllerTest.cc
  5980. * test/XmlRpcRequestProcessorTest.cc
  5981. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  5982. * Release 1.3.3
  5983. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  5984. Fixed compile error since r1202.
  5985. * src/ExpatMetalinkProcessor.cc
  5986. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  5987. Updated Ukrainian, Russian and Simplified Chinese
  5988. translations. Thanks to all translators.
  5989. * po/ru.po
  5990. * po/uk.po
  5991. * po/zh_CN.po
  5992. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  5993. Pass reference of Option object instead of pointer.
  5994. * src/download_helper.cc
  5995. * src/download_helper.h
  5996. * src/main.cc
  5997. * test/DownloadHelperTest.cc
  5998. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  5999. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  6000. from option directly. Instead, get them from RequestGroup.
  6001. * src/ActivePeerConnectionCommand.cc
  6002. * src/ActivePeerConnectionCommand.h
  6003. * src/PeerReceiveHandshakeCommand.cc
  6004. * src/RequestGroup.h
  6005. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  6006. Removed unused uploadLimitCheck and uploadLimit from
  6007. PeerAbstractCommand. Removed unused maxDownloadLimit from
  6008. PeerInteractionCommand.
  6009. * src/PeerAbstractCommand.cc
  6010. * src/PeerAbstractCommand.h
  6011. * src/PeerInteractionCommand.cc
  6012. * src/PeerInteractionCommand.h
  6013. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  6014. Fixed broken file renaming feature since r1202.
  6015. * src/FtpNegotiationCommand.cc
  6016. * src/FtpNegotiationCommand.h
  6017. * src/HttpResponseCommand.cc
  6018. * src/RequestGroup.cc
  6019. * src/RequestGroup.h
  6020. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  6021. Removed unused debug log
  6022. * src/SocketCore.cc
  6023. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  6024. Generated configure and Makefile.in using autoconf 2.63 and
  6025. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  6026. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  6027. * configure.ac
  6028. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  6029. Moved piece statistics stuff to new PieceStatMan class.
  6030. Refactored PieceSelector interface.
  6031. * src/DefaultPieceStorage.cc
  6032. * src/DefaultPieceStorage.h
  6033. * src/LongestSequencePieceSelector.cc
  6034. * src/LongestSequencePieceSelector.h
  6035. * src/Makefile.am
  6036. * src/PieceSelector.h
  6037. * src/PieceStatMan.cc
  6038. * src/PieceStatMan.h
  6039. * src/RarestPieceSelector.cc
  6040. * src/RarestPieceSelector.h
  6041. * src/RequestGroup.cc
  6042. * test/DefaultPieceStorageTest.cc
  6043. * test/InOrderPieceSelector.h
  6044. * test/Makefile.am
  6045. * test/PieceStatManTest.cc
  6046. * test/RarestPieceSelectorTest.cc
  6047. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  6048. Added static member _protocolFamily to SocketCore. By default,
  6049. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  6050. address. Sometime SocketCore::bind() and
  6051. SocketCore::establishConnection() use difference protocl family
  6052. and latter cannot connect to former. To avoid this situation, we
  6053. limit protocol family to AF_INET for unit tests.
  6054. * src/SocketCore.cc
  6055. * src/SocketCore.h
  6056. * test/AllTest.cc
  6057. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  6058. Avoid std::bad_alloc for negative bencode string length.
  6059. * src/bencode.cc
  6060. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  6061. Supported segmented downloading with chunked transfer encoding and
  6062. content-length.
  6063. * src/DownloadCommand.cc
  6064. * src/HttpResponseCommand.cc
  6065. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  6066. Bump up version number to 1.3.3
  6067. * configure.ac
  6068. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  6069. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  6070. from 4096 to 65536 (for insanely large ftp login banners)
  6071. * src/FtpConnection.h
  6072. * test/FtpConnectionTest.cc
  6073. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  6074. In DefaultBtContext::getActualBasePath(), return first
  6075. FileEntry::getPath() for single file torrent.
  6076. * src/DefaultBtContext.cc
  6077. * test/DefaultBtContextTest.cc
  6078. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  6079. Removed directIOAllowed() from BinaryStream, DiskWriter,
  6080. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  6081. Removed _directIOAllowed member from DiskWriter.
  6082. * src/AbstractDiskWriter.cc
  6083. * src/AbstractDiskWriter.h
  6084. * src/AbstractSingleDiskAdaptor.cc
  6085. * src/AbstractSingleDiskAdaptor.h
  6086. * src/BinaryStream.h
  6087. * src/ByteArrayDiskWriter.h
  6088. * src/DefaultPieceStorage.cc
  6089. * src/DiskWriter.h
  6090. * src/MultiDiskAdaptor.cc
  6091. * src/MultiDiskAdaptor.h
  6092. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  6093. Now the constructor of AbstractDiskWriter takes filename as an
  6094. argument and filename argument is removed from openFile(),
  6095. initAndOpenFile(), openExistingFile() interface. storeDir member
  6096. and its accessor functions are removed from DiskAdaptor because it
  6097. is not used anymore. size() member function of DefaultDiskWriter,
  6098. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  6099. opening file.
  6100. * src/AbstractDiskWriter.cc
  6101. * src/AbstractDiskWriter.h
  6102. * src/AbstractSingleDiskAdaptor.cc
  6103. * src/AbstractSingleDiskAdaptor.h
  6104. * src/ByteArrayDiskWriter.cc
  6105. * src/ByteArrayDiskWriter.h
  6106. * src/ByteArrayDiskWriterFactory.cc
  6107. * src/ByteArrayDiskWriterFactory.h
  6108. * src/DefaultDiskWriter.cc
  6109. * src/DefaultDiskWriter.h
  6110. * src/DefaultDiskWriterFactory.cc
  6111. * src/DefaultDiskWriterFactory.h
  6112. * src/DefaultPieceStorage.cc
  6113. * src/DirectDiskAdaptor.cc
  6114. * src/DirectDiskAdaptor.h
  6115. * src/DiskAdaptor.h
  6116. * src/DiskWriter.h
  6117. * src/DiskWriterFactory.h
  6118. * src/MessageDigestHelper.cc
  6119. * src/MultiDiskAdaptor.cc
  6120. * src/RequestGroup.cc
  6121. * src/UnknownLengthPieceStorage.cc
  6122. * src/Util.cc
  6123. * test/DefaultDiskWriterTest.cc
  6124. * test/DirectDiskAdaptorTest.cc
  6125. * test/FallocFileAllocationIteratorTest.cc
  6126. * test/MessageDigestHelperTest.cc
  6127. * test/MetalinkProcessorTest.cc
  6128. * test/MultiDiskAdaptorTest.cc
  6129. * test/MultiFileAllocationIteratorTest.cc
  6130. * test/SingleFileAllocationIteratorTest.cc
  6131. * test/UtilTest.cc
  6132. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  6133. Fixed the bug that aria2 aborts when --select-file is used. This
  6134. bug was introduced in r1199.
  6135. * src/MultiDiskAdaptor.cc
  6136. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  6137. Code cleanup
  6138. * test/MockPieceStorage.cc
  6139. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  6140. Fixed the bug that read-only file with wrong file size will cause
  6141. error because it cannot be truncated to the correct size. Now if
  6142. file size is different than the expected one, re-open file in
  6143. writable mode.
  6144. * src/AbstractSingleDiskAdaptor.cc
  6145. * src/AbstractSingleDiskAdaptor.h
  6146. * src/BtCheckIntegrityEntry.cc
  6147. * src/DiskAdaptor.h
  6148. * src/MultiDiskAdaptor.h
  6149. * src/RequestGroup.cc
  6150. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  6151. Fixed the bug that with --check-integrity option aria2 reports
  6152. downloaded file size is 0 even if some parts of file is correctly
  6153. downloaded. This bug is reproducible for the download that a file
  6154. includes last piece is missing. This bug doesn't reveal for
  6155. single-torrent with file allocation on.
  6156. * src/IteratableChecksumValidator.cc
  6157. * test/IteratableChecksumValidatorTest.cc
  6158. 2009-05-01 Tatsuhiro Tsujikawa <[email protected]>
  6159. Avoid circular reference between RequestGroup and AdaptiveURISelector
  6160. * src/RequestGroupMan.cc
  6161. * src/AdaptiveURISelector.cc
  6162. * src/AdaptiveURISelector.h
  6163. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  6164. * Release 1.3.2
  6165. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  6166. Updated README
  6167. * README
  6168. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  6169. Updated Ukrainian translations. Thanks to Alexander10.
  6170. * po/uk.po
  6171. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  6172. Code cleanup
  6173. * src/MetalinkParserStateMachine.cc
  6174. * src/MetalinkParserStateMachine.h
  6175. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  6176. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  6177. and expat simultaneously, MetalinkProcessor is now not base class
  6178. and it is directly implemented in XML2SAXMetalinkProcessor and
  6179. ExpatMetalinkProcessor.
  6180. * src/ExpatMetalinkProcessor.cc
  6181. * src/ExpatMetalinkProcessor.h
  6182. * src/Makefile.am
  6183. * src/MetalinkHelper.cc
  6184. * src/MetalinkProcessor.h
  6185. * src/MetalinkProcessorFactory.cc: Removed.
  6186. * src/MetalinkProcessorFactory.h: Removed
  6187. * src/XML2SAXMetalinkProcessor.cc
  6188. * src/XML2SAXMetalinkProcessor.h
  6189. * test/MetalinkProcessorTest.cc
  6190. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  6191. Bump up version number to 1.3.2
  6192. * configure.ac
  6193. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  6194. Added missing file.
  6195. * test/Makefile.am
  6196. * test/url-list-singleFileEndsWithSlash.torrent
  6197. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  6198. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  6199. request.
  6200. * src/AnnounceList.cc
  6201. * src/AnnounceList.h
  6202. * src/BDE.cc: Added
  6203. * src/BDE.h: Added
  6204. * src/DHTAbstractMessage.cc
  6205. * src/DHTAbstractMessage.h
  6206. * src/DHTAnnouncePeerMessage.cc
  6207. * src/DHTAnnouncePeerMessage.h
  6208. * src/DHTAnnouncePeerReplyMessage.cc
  6209. * src/DHTAnnouncePeerReplyMessage.h
  6210. * src/DHTFindNodeMessage.cc
  6211. * src/DHTFindNodeMessage.h
  6212. * src/DHTFindNodeReplyMessage.cc
  6213. * src/DHTFindNodeReplyMessage.h
  6214. * src/DHTGetPeersMessage.cc
  6215. * src/DHTGetPeersMessage.h
  6216. * src/DHTGetPeersReplyMessage.cc
  6217. * src/DHTGetPeersReplyMessage.h
  6218. * src/DHTMessageFactory.h
  6219. * src/DHTMessageFactoryImpl.cc
  6220. * src/DHTMessageFactoryImpl.h
  6221. * src/DHTMessageReceiver.cc
  6222. * src/DHTMessageTracker.cc
  6223. * src/DHTMessageTracker.h
  6224. * src/DHTPingMessage.cc
  6225. * src/DHTPingMessage.h
  6226. * src/DHTPingReplyMessage.cc
  6227. * src/DHTPingReplyMessage.h
  6228. * src/DHTQueryMessage.cc
  6229. * src/DHTQueryMessage.h
  6230. * src/DHTResponseMessage.cc
  6231. * src/DHTResponseMessage.h
  6232. * src/DefaultBtAnnounce.cc
  6233. * src/DefaultBtContext.cc
  6234. * src/DefaultBtContext.h
  6235. * src/HandshakeExtensionMessage.cc
  6236. * src/Makefile.am
  6237. * src/PeerListProcessor.h
  6238. * src/UTPexExtensionMessage.cc
  6239. * src/bencode.cc
  6240. * src/bencode.h
  6241. * test/AnnounceListTest.cc
  6242. * test/BDETest.cc: Added
  6243. * test/BencodeTest.cc
  6244. * test/DHTAnnouncePeerMessageTest.cc
  6245. * test/DHTAnnouncePeerReplyMessageTest.cc
  6246. * test/DHTFindNodeMessageTest.cc
  6247. * test/DHTFindNodeReplyMessageTest.cc
  6248. * test/DHTGetPeersMessageTest.cc
  6249. * test/DHTGetPeersReplyMessageTest.cc
  6250. * test/DHTMessageFactoryImplTest.cc
  6251. * test/DHTMessageTrackerTest.cc
  6252. * test/DHTPingMessageTest.cc
  6253. * test/DHTPingReplyMessageTest.cc
  6254. * test/Makefile.am
  6255. * test/MockDHTMessageFactory.h
  6256. * test/PeerListProcessorTest.cc
  6257. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  6258. Use url-list (web-seeding) only for single-file torrent. This is
  6259. basically the same behavior with Metalink file with torrent and
  6260. URIs.
  6261. * src/RequestGroup.cc
  6262. * src/DefaultBtContext.cc
  6263. * test/DefaultBtContextTest.cc
  6264. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  6265. Rewritten expr
  6266. * src/array_fun.h
  6267. * test/array_funTest.cc
  6268. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  6269. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  6270. * src/DefaultBtMessageDispatcher.cc
  6271. * src/a2algo.h
  6272. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  6273. Removed ExtendedMessagingAware. Instead of using inheritance,
  6274. added ExtensionMessageRegistry and it is passed to
  6275. DefaultExtensionMessageFactory.
  6276. * src/DefaultBtInteractive.cc
  6277. * src/DefaultBtInteractive.h
  6278. * src/DefaultExtensionMessageFactory.cc
  6279. * src/DefaultExtensionMessageFactory.h
  6280. * src/ExtendedMessagingAware.h: Removed.
  6281. * src/ExtensionMessageFactory.h
  6282. * src/ExtensionMessageRegistry.h: Added.
  6283. * src/Makefile.am
  6284. * src/PeerInteractionCommand.cc
  6285. * test/DefaultExtensionMessageFactoryTest.cc
  6286. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  6287. Fixed typo in log messages
  6288. * src/MSEHandshake.cc
  6289. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  6290. Fixed the bug that prevents torrent download from finishing. The
  6291. bug doesn't reveal for all torrents. The torrents affected this
  6292. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  6293. of pieces.
  6294. * src/bitfield.h
  6295. * test/bitfieldTest.cc
  6296. 2009-04-24 Tatsuhiro Tsujikawa <[email protected]>
  6297. Code cleanup
  6298. * src/PeerListProcessor.h
  6299. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  6300. Removed RequestGroupAware
  6301. * src/AbstractCommand.cc
  6302. * src/AbstractCommand.h
  6303. * src/ActivePeerConnectionCommand.cc
  6304. * src/ActivePeerConnectionCommand.h
  6305. * src/DHTGetPeersCommand.cc
  6306. * src/DHTGetPeersCommand.h
  6307. * src/InitiatorMSEHandshakeCommand.cc
  6308. * src/InitiatorMSEHandshakeCommand.h
  6309. * src/Makefile.am
  6310. * src/PeerInitiateConnectionCommand.cc
  6311. * src/PeerInitiateConnectionCommand.h
  6312. * src/PeerInteractionCommand.cc
  6313. * src/PeerInteractionCommand.h
  6314. * src/RealtimeCommand.cc
  6315. * src/RealtimeCommand.h
  6316. * src/RequestGroupAware.cc: Removed
  6317. * src/RequestGroupAware.h: Removed
  6318. * src/SeedCheckCommand.cc
  6319. * src/SeedCheckCommand.h
  6320. * src/SleepCommand.cc
  6321. * src/TrackerWatcherCommand.cc
  6322. * src/TrackerWatcherCommand.h
  6323. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  6324. Rewritten PeerListProcessor
  6325. * src/PeerListProcessor.h
  6326. * src/CompactPeerListProcessor.h: Removed
  6327. * src/CompactPeerListProcessor.cc: Removed
  6328. * src/DelegatingPeerListProcessor.cc: Removed.
  6329. * src/DefaultBtAnnounce.cc
  6330. * src/Makefile.am
  6331. * src/UTPexExtensionMessage.cc
  6332. * src/DefaultPeerListProcessor.h: Removed.
  6333. * src/DefaultPeerListProcessor.cc: Removed.
  6334. * src/DelegatingPeerListProcessor.h: Removed.
  6335. * test/Makefile.am
  6336. * test/PeerListProcessorTest.cc
  6337. * test/DefaultPeerListProcessorTest.cc: Removed.
  6338. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  6339. Rewritten RequestGroupMan::calculateStat()
  6340. * src/RequestGroupMan.cc
  6341. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  6342. Removed unnecessary virtual destructor for Request class.
  6343. * src/Request.cc
  6344. * src/Request.h
  6345. 2009-04-22 Tatsuhiro Tsujikawa <[email protected]>
  6346. Avoid dynamic_pointer_cast.
  6347. * src/DHTGetPeersCommand.cc
  6348. * src/DHTGetPeersCommand.h
  6349. 2009-04-21 Tatsuhiro Tsujikawa <[email protected]>
  6350. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  6351. BtEvent.
  6352. * src/AbstractBtEventListener.h: Removed.
  6353. * src/AbstractBtMessage.cc
  6354. * src/AbstractBtMessage.h
  6355. * src/BtAbortOutstandingRequestEvent.h
  6356. * src/BtCancelSendingPieceEvent.h
  6357. * src/BtChokedEvent.h: Removed.
  6358. * src/BtChokingEvent.h
  6359. * src/BtEvent.h: Removed
  6360. * src/BtEventListener.h: Removed.
  6361. * src/BtMessage.h
  6362. * src/BtPieceMessage.cc
  6363. * src/BtPieceMessage.h
  6364. * src/BtRequestMessage.cc
  6365. * src/BtRequestMessage.h
  6366. * src/DefaultBtMessageDispatcher.cc
  6367. * src/Makefile.am
  6368. * src/a2functional.h
  6369. * test/BtPieceMessageTest.cc
  6370. * test/BtRequestMessageTest.cc
  6371. * test/DefaultBtMessageDispatcherTest.cc
  6372. * test/MockBtMessage.h
  6373. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  6374. Code cleanup
  6375. * src/RequestGroupMan.cc
  6376. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  6377. Code cleanup
  6378. * src/DownloadCommand.cc
  6379. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  6380. Fixed segmentation fault when GZipDecoder::decode() returns 0
  6381. byte.
  6382. * src/DownloadCommand.cc
  6383. * src/bitfield.h
  6384. * test/bitfieldTest.cc
  6385. Fixed the bug that causes infinite loop if broken web server
  6386. returns chunked response without last "0" chunk-size marker and
  6387. closes connection.
  6388. * src/DownloadCommand.cc
  6389. Instantiate properly configured HttpDownloadCommand for
  6390. non-resumable downlaods.
  6391. * src/HttpResponseCommand.cc
  6392. 2009-04-16 Tatsuhiro Tsujikawa <[email protected]>
  6393. Rewritten array operation functions.
  6394. * src/BitfieldMan.cc
  6395. * src/array_fun.h
  6396. * test/array_funTest.cc
  6397. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  6398. Removed unused variable 'query'
  6399. * src/Request.cc
  6400. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  6401. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  6402. accidentally set to false in r1162.
  6403. * configure.ac
  6404. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  6405. Code cleanup
  6406. * src/BNode.cc
  6407. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  6408. Increase prefixLength for the bucket which doesn't own local node
  6409. ID when splitting bucket.
  6410. * src/DHTBucket.cc
  6411. * test/DHTBucketTest.cc
  6412. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  6413. * Release 1.3.1
  6414. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  6415. Bump up version number to 1.3.1
  6416. * configure.ac
  6417. 2009-04-08 Tatsuhiro Tsujikawa <[email protected]>
  6418. Removed unused variable checkPoint. Also removed include directive
  6419. for TimeA2.h.
  6420. * src/SeedCheckCommand.h
  6421. 2009-04-07 Tatsuhiro Tsujikawa <[email protected]>
  6422. Fixed the bug that upload limit exceeds the value specified in
  6423. --seed-ratio option depending on the timing of the execution of
  6424. SeedCheckCommand.
  6425. * src/SeedCheckCommand.cc
  6426. 2009-04-05 Tatsuhiro Tsujikawa <[email protected]>
  6427. Fixed the bug that removed peer's session upload/download length
  6428. are counted twice in _cachedTransferStat before it is
  6429. re-calculated. This affected the calculation of shara ratio,
  6430. resulting aria2 wrongly determines that specified share ratio is
  6431. reached. Also fixed the typo in calculateStatFor function name.
  6432. * src/BtSetup.cc
  6433. * src/DefaultPeerStorage.cc
  6434. * src/ShareRatioSeedCriteria.h
  6435. * test/ShareRatioSeedCriteriaTest.cc
  6436. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  6437. * Release 1.3.0
  6438. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  6439. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  6440. Nynorsk translations. Thanks to all translators.
  6441. * po/es.po
  6442. * po/ja.po
  6443. * po/nn.po
  6444. * po/ru.po
  6445. * po/uk.po
  6446. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  6447. Rewritten isInRange()
  6448. * src/DHTBucket.cc
  6449. * test/DHTBucketTest.cc
  6450. 2009-03-30 Tatsuhiro Tsujikawa <[email protected]>
  6451. Fixed typo
  6452. * doc/aria2c.1.txt
  6453. 2009-03-29 Tatsuhiro Tsujikawa <[email protected]>
  6454. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  6455. malloc/realloc is not used.
  6456. * src/configure.ac
  6457. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  6458. BitfieldMan::getMissingIndexes family functions now takes unsigned
  6459. char* bitfield instead of stl container for efficiency.
  6460. PieceSelector::select now takes this
  6461. bitfield. RarestPieceSelector::select now also performs
  6462. efficiently for this change. bitfield namespace is introduced and
  6463. it has several helper functions to handle basic bitfield
  6464. operations such as test, count set bits, etc.
  6465. * src/BitfieldMan.cc
  6466. * src/BitfieldMan.h
  6467. * src/DefaultBtRequestFactory.cc
  6468. * src/DefaultPieceStorage.cc
  6469. * src/DefaultPieceStorage.h
  6470. * src/LongestSequencePieceSelector.cc
  6471. * src/LongestSequencePieceSelector.h
  6472. * src/Makefile.am
  6473. * src/Piece.cc
  6474. * src/Piece.h
  6475. * src/PieceSelector.h
  6476. * src/RarestPieceSelector.cc
  6477. * src/RarestPieceSelector.h
  6478. * src/Util.cc
  6479. * src/Util.h
  6480. * src/bitfield.h
  6481. * test/BitfieldManTest.cc
  6482. * test/LongestSequencePieceSelectorTest.cc
  6483. * test/Makefile.am
  6484. * test/RarestPieceSelectorTest.cc
  6485. * test/UtilTest.cc
  6486. * test/bitfieldTest.cc
  6487. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  6488. Made accepted socket non-block.
  6489. * src/FtpNegotiationCommand.cc
  6490. * src/HttpListenCommand.cc
  6491. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  6492. Guarded #ifdef HAVE_POSIX_FALLOCATE
  6493. * src/AbstractSingleDiskAdaptor.cc
  6494. * src/DefaultPieceStorage.cc
  6495. * src/DiskAdaptor.h
  6496. * src/DiskAdaptor.h
  6497. * src/MultiFileAllocationIterator.cc
  6498. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  6499. Run
  6500. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  6501. in every 1 sec. The timeout of RequestSlot is 60s by default and
  6502. it doesn't need to be called every time when
  6503. DefaultBtInteractive::doInteractionProcessing() is called.
  6504. * src/DefaultBtInteractive.cc
  6505. * src/DefaultBtInteractive.h
  6506. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  6507. Documented 'falloc' in man page.
  6508. * doc/aria2c.1.txt
  6509. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  6510. Updated doc
  6511. * src/usage_text.h
  6512. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  6513. Added 'falloc' parameter for --file-allocation option. 'falloc'
  6514. allocation mode uses posix_fallocate() system call to allocate
  6515. file on disk. If you are using newer file systems such as ext4
  6516. (with extents support), btrfs or xfs, 'falloc' is your best
  6517. choice. It allocates large(few GiB) files almost instantly. Don't
  6518. use 'falloc' with legacy file systems such as ext3 because it
  6519. takes almost same time as 'prealloc' and it blocks aria2 entirely
  6520. until allocation finishes. 'falloc' may not be available if your
  6521. system doesn't have posix_fallocate() system call.
  6522. * configure.ac
  6523. * src/AbstractDiskWriter.cc
  6524. * src/AbstractDiskWriter.h
  6525. * src/AbstractSingleDiskAdaptor.cc
  6526. * src/BinaryStream.h
  6527. * src/BtCheckIntegrityEntry.cc
  6528. * src/ByteArrayDiskWriter.h
  6529. * src/CheckIntegrityEntry.cc
  6530. * src/CheckIntegrityEntry.h
  6531. * src/DefaultPieceStorage.cc
  6532. * src/DiskAdaptor.cc
  6533. * src/DiskAdaptor.h
  6534. * src/DiskWriter.h
  6535. * src/FallocFileAllocationIterator.cc
  6536. * src/FallocFileAllocationIterator.h
  6537. * src/FileAllocationEntry.cc
  6538. * src/FileAllocationEntry.h
  6539. * src/Makefile.am
  6540. * src/MultiFileAllocationIterator.cc
  6541. * src/MultiFileAllocationIterator.h
  6542. * src/OptionHandlerFactory.cc
  6543. * src/RequestGroup.cc
  6544. * src/StreamCheckIntegrityEntry.cc
  6545. * src/prefs.cc
  6546. * src/prefs.h
  6547. * src/usage_text.h
  6548. * test/FallocFileAllocationIteratorTest.cc
  6549. * test/Makefile.am
  6550. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  6551. Removed duplicate enableDirectIO() call.
  6552. * src/MultiFileAllocationIterator.cc
  6553. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  6554. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  6555. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  6556. cost of std::rotate().
  6557. * src/RarestPieceSelector.cc
  6558. * src/RarestPieceSelector.h
  6559. * test/RarestPieceSelectorTest.cc
  6560. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  6561. Updated usage doc for --bt-tracker-interval option.
  6562. * src/usage_text.h
  6563. * doc/aria2c.1.txt
  6564. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  6565. Documented --bt-tracker-interval option in man page.
  6566. * doc/aria2c.1.txt
  6567. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  6568. Added an option to specify the interval between tracker requests.
  6569. If non-zero value is specified, aria2 uses it and ignores the
  6570. interval value in the response of tracker. If zero is specified,
  6571. aria2 determines the inteval value based on the tarcker response
  6572. and download progress.
  6573. * src/DefaultBtAnnounce.cc
  6574. * src/DefaultBtAnnounce.h
  6575. * src/OptionHandlerFactory.cc
  6576. * src/RequestGroup.cc
  6577. * src/prefs.cc
  6578. * src/prefs.h
  6579. * src/usage_text.h
  6580. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  6581. Added operator+=, operator-=, operator-
  6582. * src/TransferStat.cc
  6583. * src/TransferStat.h
  6584. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  6585. Refactored RarestPieceSelector to reduce CPU load, especially for
  6586. addPieceStats.
  6587. * src/RarestPieceSelector.cc
  6588. * src/RarestPieceSelector.h
  6589. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  6590. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  6591. getAllMissingBlockIndexes to reduce a call to
  6592. array_function_base::operator[].
  6593. * src/BitfieldMan.cc
  6594. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  6595. Cached TransferStat/download speed to avoid to sum them up in each
  6596. call.
  6597. * src/DefaultPeerStorage.cc
  6598. * src/DefaultPeerStorage.h
  6599. * src/SegmentMan.cc
  6600. * src/SegmentMan.h
  6601. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  6602. Typedefed cuid_t as int32_t in Command.h
  6603. * src/CUIDCounter.h
  6604. * src/Command.cc
  6605. * src/Command.h
  6606. * src/DownloadEngine.cc
  6607. * src/DownloadEngine.h
  6608. * src/PeerStat.h
  6609. * src/SegmentMan.cc
  6610. * src/SegmentMan.h
  6611. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  6612. Reduced the number of calls to PeerStorage::calculateStat() and
  6613. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  6614. transfer rate.
  6615. * src/DefaultBtInteractive.cc
  6616. * src/DefaultBtMessageDispatcher.cc
  6617. * src/DefaultPeerStorage.cc
  6618. * src/DefaultPeerStorage.h
  6619. * src/DownloadCommand.cc
  6620. * src/DownloadEngine.cc
  6621. * src/PeerStorage.h
  6622. * src/SegmentMan.cc
  6623. * src/SegmentMan.h
  6624. * test/MockPeerStorage.h
  6625. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6626. Prepended _dir+"/" after joining path elements in torrent file.
  6627. * src/DefaultBtContext.cc
  6628. * test/DefaultBtContextTest.cc
  6629. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6630. Added missing IndexBtMessageValidator.h
  6631. * src/Makefile.am
  6632. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6633. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  6634. Chinese translations. Thank you for contributing our project.
  6635. * po/id.po
  6636. * po/it.po
  6637. * po/ru.po
  6638. * po/uk.po
  6639. * po/zh_CN.po
  6640. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6641. Updated README
  6642. * README
  6643. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6644. Bump up version number to 1.3.0
  6645. * configure.ac
  6646. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6647. Updated doc
  6648. * src/DefaultBtContext.h
  6649. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6650. Slice/joinPath for name of single torrent.
  6651. * src/DefaultBtContext.cc
  6652. * test/DefaultBtContextTest.cc
  6653. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6654. Updated man page: Documented --dry-run and --index-out
  6655. options. Changed the default value of --uri-selector and
  6656. --http-auth-challenge options. Removed --direct-file-mapping
  6657. option. Added example for --index-out
  6658. * doc/aria2c.1.txt
  6659. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6660. Updated TEXT_DRY_RUN
  6661. * src/usage_text.h
  6662. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6663. Changed the default value of --uri-selector option from 'inorder'
  6664. to 'feedback'
  6665. * src/OptionHandlerFactory.cc
  6666. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6667. Included current URI in exception message.
  6668. * src/AbstractCommand.cc
  6669. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6670. Renamed ServerStatURISelector as FeedbackURISelector.
  6671. * src/FeedbackURISelector.cc
  6672. * src/FeedbackURISelector.h
  6673. * src/Makefile.am
  6674. * src/RequestGroupMan.cc
  6675. * src/ServerStatURISelector.cc
  6676. * src/ServerStatURISelector.h
  6677. * test/FeedbackURISelectorTest.cc
  6678. * test/Makefile.am
  6679. * test/ServerStatURISelectorTest.cc
  6680. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6681. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  6682. all URIs are tested and their timeout is not reached.
  6683. * src/AdaptiveURISelector.cc
  6684. * src/AdaptiveURISelector.h
  6685. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6686. Changed the default value of --http-auth-challenge option to false.
  6687. * src/OptionHandlerFactory.cc
  6688. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6689. Reuse URIs when all unused URIs run out.
  6690. * src/OptionHandlerFactory.cc
  6691. * src/RequestGroup.cc
  6692. * src/prefs.cc
  6693. * src/prefs.h
  6694. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  6695. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  6696. and BtRejectMessage are derived from RangeBtMessage class.
  6697. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  6698. derived from IndexBtMessage class. BtChokeMessage,
  6699. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  6700. BtNotInterestedMessage and BtUnchokeMessage are derived from
  6701. ZeroBtMessage class.
  6702. * src/AbstractBtMessage.cc
  6703. * src/AbstractBtMessage.h
  6704. * src/BtAllowedFastMessage.cc
  6705. * src/BtAllowedFastMessage.h
  6706. * src/BtAllowedFastMessageValidator.h: Removed
  6707. * src/BtBitfieldMessage.cc
  6708. * src/BtBitfieldMessage.h
  6709. * src/BtCancelMessage.cc
  6710. * src/BtCancelMessage.h
  6711. * src/BtCancelMessageValidator.h: Removed
  6712. * src/BtChokeMessage.cc
  6713. * src/BtChokeMessage.h
  6714. * src/BtExtendedMessage.cc
  6715. * src/BtExtendedMessage.h
  6716. * src/BtHandshakeMessage.cc
  6717. * src/BtHandshakeMessage.h
  6718. * src/BtHaveAllMessage.cc
  6719. * src/BtHaveAllMessage.h
  6720. * src/BtHaveMessage.cc
  6721. * src/BtHaveMessage.h
  6722. * src/BtHaveMessageValidator.h: Removed
  6723. * src/BtHaveNoneMessage.cc
  6724. * src/BtHaveNoneMessage.h
  6725. * src/BtInterestedMessage.cc
  6726. * src/BtInterestedMessage.h
  6727. * src/BtKeepAliveMessage.cc
  6728. * src/BtKeepAliveMessage.h
  6729. * src/BtNotInterestedMessage.cc
  6730. * src/BtNotInterestedMessage.h
  6731. * src/BtPieceMessage.cc
  6732. * src/BtPieceMessage.h
  6733. * src/BtPortMessage.cc
  6734. * src/BtPortMessage.h
  6735. * src/BtRejectMessage.cc
  6736. * src/BtRejectMessage.h
  6737. * src/BtRejectMessageValidator.h: Removed
  6738. * src/BtRequestMessage.cc
  6739. * src/BtRequestMessage.h
  6740. * src/BtRequestMessageValidator.h: Removed
  6741. * src/BtSuggestPieceMessage.cc
  6742. * src/BtSuggestPieceMessage.h
  6743. * src/BtSuggestPieceMessageValidator.h: Removed
  6744. * src/BtUnchokeMessage.cc
  6745. * src/BtUnchokeMessage.h
  6746. * src/DefaultBtMessageFactory.cc
  6747. * src/IndexBtMessage.cc
  6748. * src/IndexBtMessage.h
  6749. * src/IndexBtMessageValidator.h
  6750. * src/Makefile.am
  6751. * src/PeerMessageUtil.cc
  6752. * src/PeerMessageUtil.h
  6753. * src/RangeBtMessage.cc
  6754. * src/RangeBtMessage.h
  6755. * src/RangeBtMessageValidator.h
  6756. * src/SimpleBtMessage.cc
  6757. * src/SimpleBtMessage.h
  6758. * src/ZeroBtMessage.cc
  6759. * src/ZeroBtMessage.h
  6760. * test/BtRequestMessageTest.cc
  6761. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  6762. Reverted usage_text.h to r1093 to avoid to lose translated
  6763. messages.
  6764. * src/usage_text.h
  6765. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  6766. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  6767. declared as non-const previously is now const and defined in class
  6768. definition.
  6769. * src/AbstractBtMessage.cc
  6770. * src/AbstractBtMessage.h
  6771. * src/BtAllowedFastMessage.cc
  6772. * src/BtAllowedFastMessage.h
  6773. * src/BtBitfieldMessage.h
  6774. * src/BtCancelMessage.cc
  6775. * src/BtCancelMessage.h
  6776. * src/BtChokeMessage.cc
  6777. * src/BtChokeMessage.h
  6778. * src/BtExtendedMessage.cc
  6779. * src/BtExtendedMessage.h
  6780. * src/BtHandshakeMessage.cc
  6781. * src/BtHandshakeMessage.h
  6782. * src/BtHaveAllMessage.cc
  6783. * src/BtHaveAllMessage.h
  6784. * src/BtHaveMessage.cc
  6785. * src/BtHaveMessage.h
  6786. * src/BtHaveNoneMessage.cc
  6787. * src/BtHaveNoneMessage.h
  6788. * src/BtInterestedMessage.cc
  6789. * src/BtInterestedMessage.h
  6790. * src/BtKeepAliveMessage.cc
  6791. * src/BtKeepAliveMessage.h
  6792. * src/BtMessage.h
  6793. * src/BtNotInterestedMessage.cc
  6794. * src/BtNotInterestedMessage.h
  6795. * src/BtPieceMessage.h
  6796. * src/BtPortMessage.cc
  6797. * src/BtPortMessage.h
  6798. * src/BtRejectMessage.cc
  6799. * src/BtRejectMessage.h
  6800. * src/BtRequestMessage.cc
  6801. * src/BtRequestMessage.h
  6802. * src/BtSuggestPieceMessage.cc
  6803. * src/BtSuggestPieceMessage.h
  6804. * src/BtUnchokeMessage.cc
  6805. * src/BtUnchokeMessage.h
  6806. * src/SimpleBtMessage.cc
  6807. * src/SimpleBtMessage.h
  6808. * test/MockBtMessage.h
  6809. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  6810. Use FileEntry::exists()
  6811. * src/MultiDiskAdaptor.cc
  6812. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  6813. Added exists()
  6814. * src/FileEntry.cc
  6815. * src/FileEntry.h
  6816. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  6817. Added missing prefix dir.
  6818. * src/download_helper.cc
  6819. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  6820. Removed --direct-file-mapping option and CopyDiskAdaptor.
  6821. * src/CopyDiskAdaptor.cc: Removed
  6822. * src/CopyDiskAdaptor.h: Removed
  6823. * src/DefaultPieceStorage.cc
  6824. * src/Makefile.am
  6825. * src/OptionHandlerFactory.cc
  6826. * src/prefs.cc
  6827. * src/prefs.h
  6828. * src/usage_text.h
  6829. * test/CopyDiskAdaptorTest.cc: Removed
  6830. * test/Makefile.am
  6831. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  6832. Rewritten isSameFileBeingDownloaded()
  6833. * src/RequestGroupMan.cc
  6834. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  6835. Removed getName() from DownloadContext. getName() is declared in
  6836. BtContext.
  6837. * src/BtContext.h
  6838. * src/DownloadContext.h
  6839. * src/SingleFileDownloadContext.cc
  6840. * src/SingleFileDownloadContext.h
  6841. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  6842. in AbstractSingleDiskAdaptor.
  6843. * src/AbstractSingleDiskAdaptor.h
  6844. * src/DiskAdaptor.h
  6845. * src/MultiDiskAdaptor.h
  6846. * src/RequestGroup.cc
  6847. Removed setTopDir() and getTopDir() and getTopDirPath() from
  6848. MultiDiskAdaptor.
  6849. * src/DefaultPieceStorage.cc
  6850. * src/MultiDiskAdaptor.cc
  6851. * src/MultiDiskAdaptor.h
  6852. * test/MultiDiskAdaptorTest.cc
  6853. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  6854. FileEntry::getPath() contains store(top level) directory to
  6855. simplify path handling operation. In the previous implementation,
  6856. store directory is concatenated to FileEntry::getPath() in
  6857. DownloadContext.
  6858. * src/BtDependency.cc
  6859. * src/BtPostDownloadHandler.cc
  6860. * src/CopyDiskAdaptor.cc
  6861. * src/DefaultBtContext.cc
  6862. * src/DirectDiskAdaptor.cc
  6863. * src/FileEntry.cc
  6864. * src/FileEntry.h
  6865. * src/FtpNegotiationCommand.cc
  6866. * src/HttpResponse.cc
  6867. * src/HttpResponseCommand.cc
  6868. * src/Metalink2RequestGroup.cc
  6869. * src/MultiDiskAdaptor.cc
  6870. * src/MultiDiskAdaptor.h
  6871. * src/MultiFileAllocationIterator.cc
  6872. * src/RequestGroup.cc
  6873. * src/SingleFileDownloadContext.cc
  6874. * src/SingleFileDownloadContext.h
  6875. * src/download_helper.cc
  6876. * test/BtDependencyTest.cc
  6877. * test/CopyDiskAdaptorTest.cc
  6878. * test/DefaultBtContextTest.cc
  6879. * test/DefaultBtProgressInfoFileTest.cc
  6880. * test/DirectDiskAdaptorTest.cc
  6881. * test/DownloadHelperTest.cc
  6882. * test/FileEntryTest.cc
  6883. * test/MultiDiskAdaptorTest.cc
  6884. * test/MultiFileAllocationIteratorTest.cc
  6885. * test/RequestGroupTest.cc
  6886. * test/SingleFileDownloadContextTest.cc
  6887. 2009-03-09 Tatsuhiro Tsujikawa <[email protected]>
  6888. Fixed compiler warning
  6889. * src/download_helper.cc
  6890. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  6891. Throw exception if same infohash torrent is now downloading.
  6892. * src/RequestGroup.cc
  6893. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  6894. Added --dry-run option. In this mode, aria2 just checks whether
  6895. the remote file is available and doesn't download data. This
  6896. option has effect on HTTP/FTP downloads and BitTorrent downloads
  6897. are canceled in this mode.
  6898. * src/FtpNegotiationCommand.cc
  6899. * src/HttpResponseCommand.cc
  6900. * src/HttpResponseCommand.h
  6901. * src/OptionHandlerFactory.cc
  6902. * src/RequestGroup.cc
  6903. * src/RequestGroupMan.cc
  6904. * src/prefs.cc
  6905. * src/prefs.h
  6906. * src/usage_text.h
  6907. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  6908. Fixed compiler waring
  6909. * test/UriListParserTest.cc
  6910. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  6911. Parse options in -i list using OptionParser.
  6912. * src/UriListParser.cc
  6913. * src/UriListParser.h
  6914. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  6915. Don't reset URI in retry to avoid additional round trips because
  6916. of redirects.
  6917. * src/AbstractCommand.cc
  6918. * src/OptionHandlerFactory.cc
  6919. * src/prefs.cc
  6920. * src/prefs.h
  6921. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  6922. Declared hide() in OptionHandler.
  6923. * src/NameMatchOptionHandler.h
  6924. * src/OptionHandler.h
  6925. * src/OptionHandlerImpl.h
  6926. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  6927. Updated doc
  6928. * src/Peer.h
  6929. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  6930. Added log message in setStatusInternal()
  6931. * src/ServerStat.cc
  6932. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  6933. Call ServerStat::setError() in AbstractCommand::onAbort() to
  6934. effectively exclude failed server.
  6935. * src/AbstractCommand.cc
  6936. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  6937. Added --index-out option to specify each file path for torrent.
  6938. Here index shown in --show-files option is used to specify which
  6939. file path should be altered. For example, to change the file path
  6940. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  6941. option multiple times: --index-out=1=aria2.tar.bz2
  6942. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  6943. available. This option can be specified in -i list.
  6944. * src/DefaultBtContext.cc
  6945. * src/DefaultBtContext.h
  6946. * src/MultiDiskAdaptor.cc
  6947. * src/MultiDiskAdaptor.h
  6948. * src/MultiFileAllocationIterator.cc
  6949. * src/OptionHandlerFactory.cc
  6950. * src/OptionHandlerImpl.h
  6951. * src/Util.cc
  6952. * src/Util.h
  6953. * src/download_helper.cc
  6954. * src/prefs.cc
  6955. * src/prefs.h
  6956. * src/usage_text.h
  6957. * test/DefaultBtContextTest.cc
  6958. * test/MultiDiskAdaptorTest.cc
  6959. * test/MultiFileAllocationIteratorTest.cc
  6960. * test/UtilTest.cc
  6961. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  6962. Use Util::pathJoin()
  6963. * src/MetalinkParserController.cc
  6964. * test/test.xml
  6965. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  6966. Use Util::pathJoin()
  6967. * src/DefaultBtContext.cc
  6968. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  6969. Added Util::pathJoin()
  6970. * src/Util.h
  6971. * test/UtilTest.cc
  6972. 2009-03-04 Tatsuhiro Tsujikawa <[email protected]>
  6973. Applied basename function to remove directory element in
  6974. content-disposition value.
  6975. Return empty string if content-disposition value is ".." or ".".
  6976. * src/Util.cc
  6977. * test/UtilTest.cc
  6978. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  6979. Added --max-overall-download-limit in man page.
  6980. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  6981. * doc/aria2c.1.txt
  6982. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  6983. Added --max-overall-download-limit option. Now --max-upload-limit
  6984. option is not ignored when --max-overall-upload-limit option has
  6985. non-zero value. aria2 checks download(upload) speed in the order:
  6986. first checks overall speed limit and if it is not exceeded, then
  6987. checks speed limit per download. Thus you can specify both
  6988. value. For example, set --max-overall-download-limit=1M and
  6989. --max-download-limit=500K to prevent from one download from eating
  6990. all overall speed limit.
  6991. * src/DefaultBtInteractive.cc
  6992. * src/DefaultBtInteractive.h
  6993. * src/DefaultBtMessageDispatcher.cc
  6994. * src/DefaultBtMessageDispatcher.h
  6995. * src/DownloadCommand.cc
  6996. * src/DownloadCommand.h
  6997. * src/FtpNegotiationCommand.cc
  6998. * src/HttpResponseCommand.cc
  6999. * src/OptionHandlerFactory.cc
  7000. * src/PeerInteractionCommand.cc
  7001. * src/RequestGroup.cc
  7002. * src/RequestGroup.h
  7003. * src/RequestGroupMan.cc
  7004. * src/RequestGroupMan.h
  7005. * src/prefs.cc
  7006. * src/prefs.h
  7007. * src/usage_text.h
  7008. * test/DefaultBtMessageDispatcherTest.cc
  7009. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  7010. Documented select-file option in Input File section.
  7011. Documented --http-auth-challenge option.
  7012. * doc/aria2c.1.txt
  7013. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  7014. Now select-file can be specified in the uri list(-i list).
  7015. * src/BtContext.cc
  7016. * src/BtContext.h
  7017. * src/RequestGroup.cc
  7018. * src/Sequence.h
  7019. * src/download_helper.cc
  7020. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  7021. Made the upper value of --max-concurrent-downloads options unlimited.
  7022. * src/OptionHandlerFactory.cc
  7023. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  7024. Fixed the bug that disk writer is not created even if it shares
  7025. same piece with the preceding file if the length of previous file
  7026. is 0.
  7027. * src/MultiDiskAdaptor.cc
  7028. * test/MultiDiskAdaptorTest.cc
  7029. 2009-02-23 Tatsuhiro Tsujikawa <[email protected]>
  7030. In BitTorrent, Open files in read-only mode for hash check. After
  7031. that, re-open file in read/write mode only when the download is
  7032. not finished.
  7033. * src/AbstractDiskWriter.cc
  7034. * src/AbstractDiskWriter.h
  7035. * src/AbstractSingleDiskAdaptor.cc
  7036. * src/AbstractSingleDiskAdaptor.h
  7037. * src/BtCheckIntegrityEntry.cc
  7038. * src/DiskAdaptor.h
  7039. * src/DiskWriter.h
  7040. * src/MultiDiskAdaptor.cc
  7041. * src/MultiDiskAdaptor.h
  7042. * src/RequestGroup.cc
  7043. 2009-02-19 Tatsuhiro Tsujikawa <[email protected]>
  7044. Added --http-auth-challenge option. If it is set to true(by
  7045. default), aria2 sends HTTP authorization header only when it is
  7046. requested by the server. If false is set, then authorization
  7047. header is always sent to the server. This is useful for servers
  7048. that don't respond 401 code when authentication is required.
  7049. There is an exception: if username and password are embedded in
  7050. URI, authorization header is always sent to the server regardless
  7051. of this option.
  7052. * src/AuthConfigFactory.cc
  7053. * src/HttpSkipResponseCommand.cc
  7054. * src/OptionHandlerFactory.cc
  7055. * src/prefs.cc
  7056. * src/prefs.h
  7057. * src/usage_text.h
  7058. * test/AuthConfigFactoryTest.cc
  7059. * test/HttpRequestTest.cc
  7060. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7061. * Release 1.2.0
  7062. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7063. Updated Spanish, Ukrainian, Russian and Japanese translations.
  7064. Thanks to all translators.
  7065. * po/es.po
  7066. * po/ja.po
  7067. * po/ru.po
  7068. * po/uk.po
  7069. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7070. Call deleteSocketForReadCheck() before socket is closed.
  7071. * src/HttpListenCommand.cc
  7072. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7073. Defined virtual destructor for BObject.
  7074. * src/bencode.h
  7075. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7076. Rewritten BDE to make it efficient.
  7077. * src/bencode.cc
  7078. * src/bencode.h
  7079. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7080. Removed function throw list.
  7081. * src/bencode.cc
  7082. * src/bencode.h
  7083. * test/BencodeTest.cc
  7084. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7085. Enclosed all URLs in double quotes in command-line examples.
  7086. * doc/aria2c.1.txt
  7087. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  7088. Updated reference/see also section.
  7089. * README
  7090. * doc/aria2c.1.txt
  7091. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  7092. Reorganized man page based on man man-pages.
  7093. * doc/aria2c.1.txt
  7094. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  7095. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  7096. because same documents are available in man page. Added
  7097. References section.
  7098. * README
  7099. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  7100. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  7101. PERFORMANCE PROFILE section.
  7102. * doc/aria2c.1.txt
  7103. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  7104. Rewritten the section for configuration file.
  7105. * README
  7106. * doc/aria2c.1.txt
  7107. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  7108. Fixed the segmentation fault during execution of choking algorithm
  7109. in leecher state because of broken compare operator
  7110. implementation.
  7111. * src/BtLeecherStateChoke.cc
  7112. * src/BtLeecherStateChoke.h
  7113. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  7114. Open file in binary mode.
  7115. * src/CookieStorage.cc
  7116. * src/DHTSetup.cc
  7117. * src/DHTUtil.cc
  7118. * src/Netrc.cc
  7119. * src/NsCookieParser.cc
  7120. * src/ProtocolDetector.cc
  7121. * src/RequestGroupMan.cc
  7122. * src/Signature.cc
  7123. * src/bencode.cc
  7124. * src/download_helper.cc
  7125. * src/option_processing.cc
  7126. * test/CookieParserTest.cc
  7127. * test/DefaultBtProgressInfoFileTest.cc
  7128. * test/FileTest.cc
  7129. * test/GZipDecoderTest.cc
  7130. * test/RequestGroupManTest.cc
  7131. * test/SignatureTest.cc
  7132. * test/SingleFileAllocationIteratorTest.cc
  7133. * test/UriListParserTest.cc
  7134. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  7135. Removed operator[] because it is ambiguous with built-in []
  7136. operator.
  7137. * src/array_fun.h
  7138. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  7139. Fixed compile error
  7140. * src/OptionParser.cc
  7141. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  7142. Added missing call to arrayWrapperConst
  7143. * test/array_funTest.cc
  7144. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7145. Use array_wrapper instead of array_ptr.
  7146. * src/DHTRoutingTableDeserializer.cc
  7147. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7148. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  7149. * src/array_fun.h
  7150. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7151. Added array_wrapper template.
  7152. * src/array_fun.h
  7153. * test/array_funTest.cc
  7154. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7155. Use operator T* of array_ptr.
  7156. * src/OptionParser.cc
  7157. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7158. Use localhost instead of 127.0.0.1
  7159. * test/FtpConnectionTest.cc
  7160. * test/MSEHandshakeTest.cc
  7161. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7162. Added operator T*
  7163. * src/array_fun.h
  7164. * test/array_funTest.cc
  7165. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7166. Use dynamically allocated char array to detect memory access
  7167. violation.
  7168. * src/DHTRoutingTableDeserializer.cc
  7169. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7170. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  7171. defined.
  7172. * src/PeerMessageUtil.cc
  7173. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7174. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  7175. * configure.ac
  7176. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7177. Added a check to see struct sockaddr_in has sin_len member.
  7178. * configure.ac
  7179. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7180. Fixed buffer overrun.
  7181. * src/DHTRoutingTableDeserializer.cc
  7182. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7183. Added LL for long long int constant.
  7184. * test/FtpConnectionTest.cc
  7185. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7186. Casted to unsigned int to suppress compiler warning on netbsd.
  7187. * src/BtRuntime.h
  7188. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  7189. Assign the value of tv.tv_sec to time_t timesec instead of giving
  7190. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  7191. type time_t.
  7192. * src/SimpleLogger.cc
  7193. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7194. Added test for FtpConnection::receiveSizeResponse().
  7195. * test/FtpConnectionTest.cc
  7196. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7197. Fix epoll error on the old kernel 2.6.8 or ealier.
  7198. * src/EpollEventPoll.cc
  7199. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7200. Use Util::parseLLInt instead of sscanf for portability. The
  7201. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  7202. * src/FtpConnection.cc
  7203. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7204. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  7205. block. It should not filter anything.
  7206. * src/BitfieldMan.cc
  7207. * src/ConsoleStatCalc.cc
  7208. * test/BitfieldManTest.cc
  7209. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7210. Fixed the bug that the boolean options that don't take arguments
  7211. don't work.
  7212. * src/OptionHandlerImpl.h
  7213. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7214. Fixed broken selected file BitTorrent download.
  7215. * src/MultiDiskAdaptor.cc
  7216. * test/MultiDiskAdaptorTest.cc
  7217. * test/MultiFileAllocationIteratorTest.cc
  7218. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  7219. Fixed #define guard for EpollEventPoll
  7220. * src/EpollEventPoll.h
  7221. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7222. Wait 2 seconds. 1 second is sometimes not enough.
  7223. * test/TimeSeedCriteriaTest.cc
  7224. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7225. Use localhost instead of 127.0.0.1.
  7226. * test/DHTConnectionImplTest.cc
  7227. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7228. Suppressed compiler warning.
  7229. * src/AdaptiveURISelector.cc
  7230. * src/DefaultPieceStorage.cc
  7231. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7232. Defined virtual destructor.
  7233. * src/MetalinkParserState.h
  7234. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7235. Give NULL for second argument of getaddrinfo instead of "0".
  7236. * src/NameResolver.cc
  7237. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7238. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  7239. included strptime doesn't parse data for this format.
  7240. * src/FtpConnection.cc
  7241. * test/FtpConnectionTest.cc
  7242. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7243. Removed tests giving -1 for unsigned argument.
  7244. * test/SingleFileDownloadContextTest.cc
  7245. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7246. Don't use sha256 in tests because it might not be supported by the
  7247. SSL library.
  7248. * test/MetalinkProcessorTest.cc
  7249. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7250. Removed tests giving -1 for unsigned argument.
  7251. * test/AlphaNumberDecoratorTest
  7252. * test/BitfieldManTest.cc
  7253. * test/DefaultBtContextTest.cc
  7254. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  7255. Fixed compile error without libcares when epoll is available.
  7256. * src/EpollEventPoll.cc
  7257. 2009-02-09 Tatsuhiro Tsujikawa <[email protected]>
  7258. Included fstream instead of iostream.
  7259. * test/SignatureTest.cc
  7260. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  7261. Removed #include <algorithm>
  7262. * test/RequestGroupTest.cc
  7263. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  7264. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  7265. using RequestGroup::extractURIResult().
  7266. * src/AdaptiveURISelector.cc
  7267. * src/RequestGroup.cc
  7268. * src/RequestGroup.h
  7269. * test/RequestGroupTest.cc
  7270. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  7271. Added tests for array_ptr.
  7272. * test/array_funTest.cc
  7273. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  7274. Don't send ip parameter to a tracker if ip parameter is empty
  7275. string.
  7276. * src/DefaultBtAnnounce.cc
  7277. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7278. Adjusted line feed.
  7279. * src/version_usage.cc
  7280. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7281. Print tags, possible values when OptionHandlerException is caught.
  7282. * src/option_processing.cc
  7283. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7284. Changed the message for FatalException.
  7285. * src/OptionParser.cc
  7286. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7287. Documented --bt-external-ip option in man page. Updated man pages
  7288. for --proxy-method option.
  7289. * doc/aria2c.1.txt
  7290. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7291. Use GET method for FTP via HTTP proxy.
  7292. * src/FtpInitiateConnectionCommand.cc
  7293. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7294. Changed the default value of --proxy-method option from 'tunnel'
  7295. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  7296. option.
  7297. * src/AbstractCommand.cc
  7298. * src/AbstractCommand.h
  7299. * src/FtpInitiateConnectionCommand.cc
  7300. * src/HttpDownloadCommand.cc
  7301. * src/HttpInitiateConnectionCommand.cc
  7302. * src/HttpInitiateConnectionCommand.h
  7303. * src/OptionHandlerFactory.cc
  7304. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7305. Initialized _logger
  7306. * src/SelectEventPoll.cc
  7307. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7308. Defined a copy constructor for the same type.
  7309. * src/SharedHandle.h
  7310. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7311. Added OptionParser::parseArg() which internally uses getopt_long
  7312. to parse command-line options. All command-line options are now
  7313. configured by OptionHandler. No manual editing of struct option*
  7314. is required any more.
  7315. * src/NameMatchOptionHandler.h
  7316. * src/OptionHandler.h
  7317. * src/OptionHandlerFactory.cc
  7318. * src/OptionHandlerImpl.h
  7319. * src/OptionParser.cc
  7320. * src/OptionParser.h
  7321. * src/array_fun.h
  7322. * src/main.cc
  7323. * src/option_processing.cc
  7324. * test/OptionHandlerTest.cc
  7325. * test/OptionParserTest.cc
  7326. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7327. Fixed configure error with --disable-epoll
  7328. * configure.ac
  7329. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  7330. Fixed compile error when HAVE_EPOLL is not defined.
  7331. Fixed linker error on bigendian systems.
  7332. * src/SocketCore.cc
  7333. * src/SocketCore.h
  7334. * test/DefaultBtProgressInfoFileTest.cc
  7335. 2009-02-04 Tatsuhiro Tsujikawa <[email protected]>
  7336. Added --bt-external-ip option. You can specify the external IP
  7337. address to report to a BitTorrent tracker. Although this function
  7338. is named 'external', it can accept any kind of IP addresses.
  7339. * src/DefaultBtAnnounce.cc
  7340. * src/OptionHandlerFactory.cc
  7341. * src/option_processing.cc
  7342. * src/prefs.cc
  7343. * src/prefs.h
  7344. * src/usage_text.h
  7345. * test/DefaultBtAnnounceTest.cc
  7346. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  7347. Extracted the algorithm to find the longest incremental sequence
  7348. as max_sequence template.
  7349. * src/LongestSequencePieceSelector.cc
  7350. * src/a2algo.h
  7351. * test/Makefile.am
  7352. * test/a2algoTest.cc
  7353. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  7354. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  7355. * src/usage_text.h
  7356. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  7357. Updated doc for --uri-selector, --http-server-listen-port and
  7358. --enable-http-server option. Documented --event-poll option.
  7359. * doc/aria2c.1.txt
  7360. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  7361. Updated doc for --enable-http-server.
  7362. * src/usage_text.h
  7363. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  7364. Documented --http-server-listen-port and --enable-http-server in
  7365. man page.
  7366. * doc/aria2c.1.txt
  7367. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7368. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  7369. translations. Thanks to all translators.
  7370. * po/es.po
  7371. * po/id.po
  7372. * po/it.po
  7373. * po/ru.po
  7374. * po/uk.po
  7375. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7376. Bump up version number to 1.2.0
  7377. * configure.ac
  7378. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7379. BtContext::getAnnounceTiers() now returns const reference.
  7380. * src/BtContext.h
  7381. * src/DefaultBtContext.cc
  7382. * src/DefaultBtContext.h
  7383. * test/MockBtContext.h
  7384. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7385. Change the number of retries for tracker request based on the
  7386. number of available tracker in a torrent file.
  7387. * src/TrackerWatcherCommand.cc
  7388. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7389. Added _maxTries property to RequestGroup and assign the option
  7390. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  7391. RequestGroup::getMaxTries() instead of
  7392. Option::getAsInt(PREF_MAX_TRIES).
  7393. * src/AbstractCommand.cc
  7394. * src/RequestGroup.cc
  7395. * src/RequestGroup.h
  7396. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7397. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  7398. Mandriva. I modified the patch: make RequestGroup have the
  7399. timeout value and AdaptiveURISelector directly modifies that
  7400. value.
  7401. * src/AbstractCommand.cc
  7402. * src/AdaptiveURISelector.cc
  7403. * src/AdaptiveURISelector.h
  7404. * src/FtpNegotiationCommand.cc
  7405. * src/RequestGroup.cc
  7406. * src/RequestGroup.h
  7407. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  7408. Fixed compiler warning
  7409. * test/IteratableChecksumValidatorTest.cc
  7410. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  7411. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  7412. integrated downloads. This PieceSelector subclass finds the
  7413. longest continuous sequence in the available missing pieces and
  7414. selects the last index of such sequence. This makes HTTP/FTP
  7415. connections less interrupted by the pieces obtained by BitTorrent
  7416. peers.
  7417. * src/DefaultPieceStorage.cc
  7418. * src/DefaultPieceStorage.h
  7419. * src/LongestSequencePieceSelector.cc
  7420. * src/LongestSequencePieceSelector.h
  7421. * src/Makefile.am
  7422. * src/PieceSelector.h
  7423. * src/RarestPieceSelector.h
  7424. * src/RequestGroup.cc
  7425. * test/BtDependencyTest.cc
  7426. * test/DefaultPieceStorageTest.cc
  7427. * test/IteratableChecksumValidatorTest.cc
  7428. * test/LongestSequencePieceSelectorTest.cc
  7429. * test/Makefile.am
  7430. * test/SegmentManTest.cc
  7431. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  7432. Fixed the bug that the average speed is wrong in
  7433. http/ftp/BitTorrent integrated download. Only the download bytes
  7434. in BitTorrent were considered.
  7435. * src/RequestGroup.cc
  7436. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  7437. Choose port for BitTorrent/DHT randomly from the specified range.
  7438. * src/DHTConnectionImpl.cc
  7439. * src/PeerListenCommand.cc
  7440. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  7441. Send HTTP Authorization header only if it is requested by the
  7442. server(response 401). There are some exceptions. The authorization
  7443. header for proxy is always sent if it is available without request
  7444. by the server. If username/password is specified in the URI, it
  7445. is immediately sent to the server without request by the server.
  7446. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  7447. SharedHandle<AuthConfig>().
  7448. NetrcAuthResolver::resolveAuthConfig() returns
  7449. SharedHandle<AuthConfig>() if no AuthConfig is available.
  7450. * src/AbstractAuthResolver.cc
  7451. * src/AbstractProxyRequestCommand.cc
  7452. * src/AuthConfigFactory.cc
  7453. * src/AuthConfigFactory.h
  7454. * src/HttpConnection.cc
  7455. * src/HttpRequest.cc
  7456. * src/HttpRequest.h
  7457. * src/HttpResponse.cc
  7458. * src/HttpResponseCommand.cc
  7459. * src/HttpSkipResponseCommand.cc
  7460. * test/AuthConfigFactoryTest.cc
  7461. * test/HttpRequestTest.cc
  7462. * test/HttpResponseTest.cc
  7463. 2009-01-27 Tatsuhiro Tsujikawa <[email protected]>
  7464. Remove leading "--" from help keyword and a substring after "="
  7465. from help keyword, so that one can query options by '-h--max-' or
  7466. '-hmax-peers=10'.
  7467. * src/option_processing.cc
  7468. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  7469. Rewritten PStringVisitor and its implementation.
  7470. * src/PStringBuildVisitor.cc
  7471. * src/PStringBuildVisitor.h
  7472. * src/PStringDatum.h
  7473. * src/PStringNumLoop.h
  7474. * src/PStringSegment.cc
  7475. * src/PStringSegment.h
  7476. * src/PStringSelect.h
  7477. * src/PStringVisitor.h
  7478. * src/download_helper.cc
  7479. * test/PStringBuildVisitorTest.cc
  7480. * test/ParameterizedStringParserTest.cc
  7481. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  7482. Persist connection between the built-in HTTP server and a client
  7483. if a client supports keep-alive. Fixed the bug that aria2 exits
  7484. when the HTTP server receives EOF from a client.
  7485. * src/HttpServer.cc
  7486. * src/HttpServer.h
  7487. * src/HttpServerCommand.cc
  7488. * src/HttpServerCommand.h
  7489. * src/HttpServerResponseCommand.cc
  7490. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  7491. Added experimental built-in HTTP server. Currently, when a client
  7492. accesses to the server, it responds with the current download
  7493. progress. By default, it is disabled. To enable the server, give
  7494. --enable-http-server option. To change the default port number
  7495. for the server to listen to, use --http-server-listen-port option.
  7496. The response HTML is very simple and refreshes it self each 1
  7497. second. Because of this refresh, you see flicker in normal web
  7498. browser such as Firefox. I recommend to use console-based browser
  7499. such as elinks, w3m. To connect to the server, run 'elinks
  7500. http://localhost:6800/' while running aria2. Please replace port
  7501. number '6800'(which is default) with your preference.
  7502. * src/DownloadEngineFactory.cc
  7503. * src/HttpHeader.cc
  7504. * src/HttpHeader.h
  7505. * src/HttpHeaderProcessor.cc
  7506. * src/HttpHeaderProcessor.h
  7507. * src/HttpListenCommand.cc
  7508. * src/HttpListenCommand.h
  7509. * src/HttpServer.cc
  7510. * src/HttpServer.h
  7511. * src/HttpServerCommand.cc
  7512. * src/HttpServerCommand.h
  7513. * src/HttpServerResponseCommand.cc
  7514. * src/HttpServerResponseCommand.h
  7515. * src/Makefile.am
  7516. * src/OptionHandlerFactory.cc
  7517. * src/Util.cc
  7518. * src/Util.h
  7519. * src/help_tags.h
  7520. * src/option_processing.cc
  7521. * src/prefs.cc
  7522. * src/prefs.h
  7523. * src/usage_text.h
  7524. * test/HttpHeaderProcessorTest.cc
  7525. * test/UtilTest.cc
  7526. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  7527. Removed.
  7528. * src/CheckIntegrityMan.cc
  7529. * src/FileAllocationMan.cc
  7530. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  7531. Made (piece) hash check sequential for each RequestGroup because
  7532. simultaneous hash check is slower than sequential execution.
  7533. * src/CheckIntegrityCommand.cc
  7534. * src/CheckIntegrityDispatcherCommand.cc
  7535. * src/CheckIntegrityDispatcherCommand.h
  7536. * src/CheckIntegrityMan.h
  7537. * src/ConsoleStatCalc.cc
  7538. * src/DownloadCommand.cc
  7539. * src/DownloadEngine.cc
  7540. * src/DownloadEngine.h
  7541. * src/DownloadEngineFactory.cc
  7542. * src/Makefile.am
  7543. * src/Makefile.in
  7544. * src/RequestGroup.cc
  7545. * src/StatCalc.h
  7546. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  7547. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  7548. SequentialDispatcherCommand.
  7549. * src/FileAllocationDispatcherCommand.cc
  7550. * src/SequentialDispatcherCommand.h
  7551. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  7552. Rewritten FileAllocationDispatcherCommand using brand new
  7553. SequentialDispatcherCommand.
  7554. * src/DownloadEngineFactory.cc
  7555. * src/FileAllocationCommand.cc
  7556. * src/FileAllocationDispatcherCommand.cc
  7557. * src/FileAllocationDispatcherCommand.h
  7558. * src/Makefile.am
  7559. * src/SequentialDispatcherCommand.h
  7560. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  7561. Replaced FileAllocationMan with
  7562. SequentialPicker<FileAllocationEntry>.
  7563. * src/BtCheckIntegrityEntry.cc
  7564. * src/ConsoleStatCalc.cc
  7565. * src/DownloadEngine.cc
  7566. * src/DownloadEngine.h
  7567. * src/DownloadEngineFactory.cc
  7568. * src/FileAllocationCommand.cc
  7569. * src/FileAllocationDispatcherCommand.cc
  7570. * src/FileAllocationMan.h
  7571. * src/Makefile.am
  7572. * src/SequentialPicker.h
  7573. * src/StatCalc.h
  7574. * src/StreamCheckIntegrityEntry.cc
  7575. * test/Makefile.am
  7576. * test/SequentialPickerTest.cc
  7577. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  7578. Added doc for adaptive URI selector.
  7579. * doc/aria2c.1.txt
  7580. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  7581. Added doc for adaptive URI selector.
  7582. * src/usage_text.h
  7583. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  7584. Added doc for --bt-max-peers option.
  7585. * doc/aria2c.1.txt
  7586. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  7587. Added doc for --bt-hash-check-seed option.
  7588. * doc/aria2c.1.txt
  7589. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  7590. Documented exit codes.
  7591. * doc/aria2c.1.txt
  7592. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  7593. Added --bt-max-peers option to specify the maximum number of peers
  7594. per torrent. 0 means unlimited number of peers.
  7595. * src/ActivePeerConnectionCommand.cc
  7596. * src/BtRuntime.h
  7597. * src/DefaultPeerStorage.cc
  7598. * src/DefaultPeerStorage.h
  7599. * src/OptionHandlerFactory.cc
  7600. * src/RequestGroup.cc
  7601. * src/option_processing.cc
  7602. * src/prefs.cc
  7603. * src/prefs.h
  7604. * src/usage_text.h
  7605. * test/DefaultPeerStorageTest.cc
  7606. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  7607. Added --bt-hash-check-seed option. If true is given to this
  7608. option, after hash check using --check-integrity option and file
  7609. is complete, continue to seed file. If you want to check file and
  7610. download it only when it is damaged or incomplete, set this option
  7611. to false. This option has effect only on BitTorrent download.
  7612. The default value is true(This is the same behavior with the
  7613. previous release).
  7614. * src/BtCheckIntegrityEntry.cc
  7615. * src/OptionHandlerFactory.cc
  7616. * src/option_processing.cc
  7617. * src/prefs.cc
  7618. * src/prefs.h
  7619. * src/usage_text.h
  7620. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  7621. Updated copyright year.
  7622. * src/version_usage.cc
  7623. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  7624. Rewritten the usage text for --bt-request-peer-speed-limit option.
  7625. * doc/aria2c.1.txt
  7626. * src/usage_text.h
  7627. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  7628. Made the max value of split option unlimited.
  7629. * doc/aria2c.1.txt
  7630. * src/OptionHandlerFactory.cc
  7631. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  7632. Fixed compile warning/error.
  7633. * src/DownloadResult.h
  7634. * src/HttpDownloadCommand.cc
  7635. * src/ServerStat.cc
  7636. * test/RequestGroupTest.cc
  7637. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  7638. Added --event-poll option to select the method for polling events.
  7639. The available methods are "select" and "epoll". "epoll" is
  7640. available on Linux only. The earlier release has the compile
  7641. option to choose from these methods.
  7642. * configure.ac
  7643. * src/RequestGroupMan.cc
  7644. * src/OptionHandlerFactory.cc
  7645. * src/EpollEventPoll.h
  7646. * src/StreamFileAllocationEntry.cc
  7647. * src/a2io.h
  7648. * src/SelectEventPoll.h
  7649. * src/option_processing.cc
  7650. * src/prefs.h
  7651. * src/EpollEventPoll.cc
  7652. * src/EventPoll.h
  7653. * src/SocketCore.h
  7654. * src/Makefile.am
  7655. * src/main.cc
  7656. * src/DownloadEngine.h
  7657. * src/SelectEventPoll.cc
  7658. * src/DownloadEngine.cc
  7659. * src/SocketCore.cc
  7660. * src/DownloadEngineFactory.cc
  7661. * src/Makefile.in
  7662. * src/prefs.cc
  7663. * src/usage_text.h
  7664. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  7665. Included RecoverableException.h from main.cc
  7666. * src/main.cc
  7667. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  7668. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  7669. now returns last error encountered in the HTTP/FTP downloads as a
  7670. exit status value. If all downloads finished successfully, aria2
  7671. returns 0. The error code is defined in src/DownloadResult.h.
  7672. The error occurred in the download currently in progress is not
  7673. reported as a last error. If no error has encountered but there
  7674. are in progress or waiting downloads, aria2 returns 7.
  7675. * src/AbstractCommand.cc
  7676. * src/DlAbortEx.h
  7677. * src/DlRetryEx.h
  7678. * src/DownloadCommand.cc
  7679. * src/DownloadFailureException.h
  7680. * src/DownloadResult.h
  7681. * src/FtpNegotiationCommand.cc
  7682. * src/HttpSkipResponseCommand.cc
  7683. * src/Makefile.am
  7684. * src/MultiUrlRequestInfo.cc
  7685. * src/MultiUrlRequestInfo.h
  7686. * src/RecoverableException.h
  7687. * src/RequestGroup.cc
  7688. * src/RequestGroup.h
  7689. * src/RequestGroupMan.cc
  7690. * src/RequestGroupMan.h
  7691. * src/URIResult.cc
  7692. * src/URIResult.h
  7693. * src/main.cc
  7694. * src/option_processing.cc
  7695. * test/RequestGroupTest.cc
  7696. 2009-01-06 Tatsuhiro Tsujikawa <[email protected]>
  7697. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  7698. patch adds AdaptiveURISelector, which selects one of the bests
  7699. mirrors for first and reserved connections. For supplementary
  7700. ones, it returns mirrors which has not been tested yet, and if
  7701. each of them already tested, returns mirrors which has to be
  7702. tested again. Otherwise, it doesn't return anymore mirrors.
  7703. * src/AdaptiveURISelector.cc
  7704. * src/AdaptiveURISelector.h
  7705. * src/FtpNegotiationCommand.cc
  7706. * src/HttpResponseCommand.cc
  7707. * src/Makefile.am
  7708. * src/Makefile.in
  7709. * src/OptionHandlerFactory.cc
  7710. * src/RequestGroup.cc
  7711. * src/RequestGroup.h
  7712. * src/RequestGroupMan.cc
  7713. * src/ServerStat.cc
  7714. * src/ServerStat.h
  7715. * src/ServerStatMan.cc
  7716. * src/SpeedCalc.cc
  7717. * src/URISelector.h
  7718. * src/prefs.cc
  7719. * src/prefs.h
  7720. * test/RequestGroupManTest.cc
  7721. * test/ServerStatManTest.cc
  7722. * test/ServerStatTest.cc
  7723. 2009-01-04 Tatsuhiro Tsujikawa <[email protected]>
  7724. Fixed unit test error.
  7725. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  7726. 2008-12-30 Tatsuhiro Tsujikawa <[email protected]>
  7727. * Release 1.1.2
  7728. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  7729. Updated Russian translation. Thanks to the translators.
  7730. * po/ru.po
  7731. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  7732. Added the description of --use-head option to man page.
  7733. * doc/aria2c.1.txt
  7734. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  7735. Bump up version number to 1.1.2
  7736. * configure.ac
  7737. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  7738. Added --use-head option to toggle whether HEAD method should be
  7739. used in the first HTTP request. By default aria2 uses HEAD method
  7740. as the first request. When the server doesn't recognize HEAD, then
  7741. give aria2 --use-head=false to force aria2 to use GET method
  7742. instead.
  7743. * src/OptionHandlerFactory.cc
  7744. * src/RequestGroupMan.cc
  7745. * src/option_processing.cc
  7746. * src/prefs.cc
  7747. * src/prefs.h
  7748. * src/usage_text.h
  7749. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  7750. Fixed the bug that BitTorrent download doesn't finish when REJECT
  7751. message is received before CHOKE message. The old implementation
  7752. doen't clear the use-bit of the piece when recieved REJECT
  7753. message.
  7754. * src/DefaultBtMessageDispatcher.cc
  7755. * test/DefaultBtMessageDispatcherTest.cc
  7756. 2008-12-25 Tatsuhiro Tsujikawa <[email protected]>
  7757. * Release 1.1.1
  7758. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  7759. Bump up version number to 1.1.1.
  7760. * configure.ac
  7761. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  7762. Fixed the bug that --summary-interval=0 doesn't work. The summary
  7763. is printed repeatedly.
  7764. * src/ConsoleStatCalc.cc
  7765. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  7766. * Release 1.1.0
  7767. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  7768. Added ifdef clause for conditional compilation.
  7769. * src/main.cc
  7770. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  7771. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  7772. translations. Thanks to all translators.
  7773. * po/ja.po
  7774. * po/ru.po
  7775. * po/uk.po
  7776. * po/zh_CN.po
  7777. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  7778. Added the preceding ">>> " before the message "Printing the
  7779. contents of file..." to make the output more readable.
  7780. * src/main.cc
  7781. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  7782. Added try-catch block in the loop in showFiles() to continue the
  7783. operation even if the exception occurred in one file.
  7784. * src/main.cc (showFiles)
  7785. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  7786. Made messages in showFiles() translatable.
  7787. * po/aria2.pot
  7788. * src/main.cc
  7789. * src/message.h
  7790. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  7791. Print the contents of Torrent/Metalink files are printed without
  7792. -T/-M options.
  7793. * src/main.cc
  7794. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  7795. Escaped '--' with '\--'
  7796. * README
  7797. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  7798. Updated "How to build" section in README. Mentioned about
  7799. --with-ca-bundle compile option.
  7800. * README
  7801. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  7802. Bump up version number to 1.1.0.
  7803. * configure.ac
  7804. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  7805. Added a note for --dht-listen-port option.
  7806. * doc/aria2c.1.txt
  7807. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  7808. Update doc for --realtime-chunk-checksum option.
  7809. * doc/aria2c.1.txt
  7810. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  7811. Update doc for --realtime-chunk-checksum option.
  7812. * src/usage_text.h
  7813. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  7814. Updated French, Japanese, Russian and Ukrainian translations.
  7815. Thanks to all translators.
  7816. * po/fr.po
  7817. * po/ja.po
  7818. * po/ru.po
  7819. * po/uk.po
  7820. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  7821. Renamed aria2c.pot to aria2.pot
  7822. * po/aria2.pot
  7823. * po/aria2c.pot: Removed.
  7824. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  7825. Removed MetaEntry.h
  7826. * src/Makefile.am
  7827. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  7828. Rename file by appending digits if a local file exists and its
  7829. file size is larger than that of remote file with --continue
  7830. option. The old implementation just throws exception in such case.
  7831. * src/RequestGroup.cc
  7832. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  7833. Fixed the bug that download progress summary is not printed in the
  7834. interval specified by the option.
  7835. * src/ConsoleStatCalc.cc
  7836. * src/ConsoleStatCalc.h
  7837. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  7838. Fixed compiler warning
  7839. * src/Cookie.cc
  7840. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  7841. Fixed the cookie implementation based on RFC2965.
  7842. Now if a value in domain field is not started with dot, then
  7843. prepend dot. That means a cookie with domain=sf.net is sent to
  7844. wiki.sf.net.
  7845. * src/Cookie.cc
  7846. * test/CookieParserTest.cc
  7847. * test/CookieStorageTest.cc
  7848. * test/CookieTest.cc
  7849. * test/NsCookieParserTest.cc
  7850. * test/Sqlite3MozCookieParserTest.cc
  7851. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  7852. Fixed the bug that causes corrupted downloads if HTTP pipelining
  7853. is enabled and the server doesn't support keep-alive.
  7854. * src/AbstractCommand.cc
  7855. * src/DownloadCommand.cc
  7856. * src/HttpDownloadCommand.cc
  7857. * src/HttpDownloadCommand.h
  7858. * src/HttpResponseCommand.cc
  7859. * src/Request.cc
  7860. * src/Request.h
  7861. * test/RequestTest.cc
  7862. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  7863. Removed Dictionary/List/Data and its related classes.
  7864. * src/BencodeVisitor.cc: Removed.
  7865. * src/BencodeVisitor.h: Removed.
  7866. * src/Data.cc: Removed.
  7867. * src/Data.h: Removed.
  7868. * src/Dictionary.cc: Removed.
  7869. * src/Dictionary.h: Removed.
  7870. * src/List.cc: Removed.
  7871. * src/List.h: Removed.
  7872. * src/Makefile.am
  7873. * src/MetaEntry.h: Removed.
  7874. * src/MetaEntryVisitor.h: Removed.
  7875. * src/MetaFileUtil.cc: Removed.
  7876. * src/MetaFileUtil.h: Removed.
  7877. * test/BencodeVisitorTest.cc: Removed.
  7878. * test/DataTest.cc: Removed.
  7879. * test/DictionaryTest.cc: Removed.
  7880. * test/ListTest.cc: Removed.
  7881. * test/Makefile.am
  7882. * test/MetaFileUtilTest.cc: Removed.
  7883. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  7884. Removed include of MetaEntry.h
  7885. * test/DHTMessageTrackerEntryTest.cc
  7886. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  7887. Use BDE instead of Dictionary/List/Data.
  7888. * src/AnnounceList.cc
  7889. * src/AnnounceList.h
  7890. * test/AnnounceListTest.cc
  7891. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  7892. Use BDE instead of Dictionary/List/Data.
  7893. * src/DHTAbstractMessage.cc
  7894. * src/DHTAbstractMessage.h
  7895. * src/DHTAnnouncePeerMessage.cc
  7896. * src/DHTAnnouncePeerMessage.h
  7897. * src/DHTAnnouncePeerReplyMessage.cc
  7898. * src/DHTAnnouncePeerReplyMessage.h
  7899. * src/DHTFindNodeMessage.cc
  7900. * src/DHTFindNodeMessage.h
  7901. * src/DHTFindNodeReplyMessage.cc
  7902. * src/DHTFindNodeReplyMessage.h
  7903. * src/DHTGetPeersMessage.cc
  7904. * src/DHTGetPeersMessage.h
  7905. * src/DHTGetPeersReplyMessage.cc
  7906. * src/DHTGetPeersReplyMessage.h
  7907. * src/DHTMessageFactory.h
  7908. * src/DHTMessageFactoryImpl.cc
  7909. * src/DHTMessageFactoryImpl.h
  7910. * src/DHTMessageReceiver.cc
  7911. * src/DHTMessageTracker.cc
  7912. * src/DHTMessageTracker.h
  7913. * src/DHTPingMessage.cc
  7914. * src/DHTPingMessage.h
  7915. * src/DHTPingReplyMessage.cc
  7916. * src/DHTPingReplyMessage.h
  7917. * src/DHTQueryMessage.cc
  7918. * src/DHTQueryMessage.h
  7919. * src/DHTResponseMessage.cc
  7920. * src/DHTResponseMessage.h
  7921. * test/DHTAnnouncePeerMessageTest.cc
  7922. * test/DHTAnnouncePeerReplyMessageTest.cc
  7923. * test/DHTFindNodeMessageTest.cc
  7924. * test/DHTFindNodeReplyMessageTest.cc
  7925. * test/DHTGetPeersMessageTest.cc
  7926. * test/DHTGetPeersReplyMessageTest.cc
  7927. * test/DHTMessageFactoryImplTest.cc
  7928. * test/DHTMessageTrackerTest.cc
  7929. * test/DHTPingMessageTest.cc
  7930. * test/DHTPingReplyMessageTest.cc
  7931. * test/MockDHTMessageFactory.h
  7932. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  7933. Added tests the case where length < 0 is specified.
  7934. * test/BencodeTest.cc
  7935. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  7936. Fixed memory leak in decoderawstring()
  7937. * src/bencode.cc
  7938. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  7939. Added missing #ifdef guard. Added uc() function for String and
  7940. removeKey() for Dict.
  7941. * src/bencode.cc
  7942. * src/bencode.h
  7943. * test/BencodeTest.cc
  7944. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  7945. Use BDE instead of Dictionary/List/Data.
  7946. * src/HandshakeExtensionMessage.cc
  7947. * src/HandshakeExtensionMessage.h
  7948. * test/HandshakeExtensionMessageTest.cc
  7949. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  7950. Added --max-overall-upload-limit option. This option limits the
  7951. overall upload speed. Stated in help message that the existing
  7952. --max-upload-limit option limits the upload speed per each
  7953. torrent. Man page is also updated.
  7954. * doc/aria2c.1.txt
  7955. * src/DefaultBtMessageDispatcher.cc
  7956. * src/DefaultBtMessageDispatcher.h
  7957. * src/OptionHandlerFactory.cc
  7958. * src/PeerInteractionCommand.cc
  7959. * src/option_processing.cc
  7960. * src/prefs.cc
  7961. * src/prefs.h
  7962. * src/usage_text.h
  7963. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  7964. Use BDE instead of Dictionary/List/Data classes.
  7965. * src/CompactPeerListProcessor.cc
  7966. * src/CompactPeerListProcessor.h
  7967. * src/DefaultBtAnnounce.cc
  7968. * src/DefaultBtContext.cc
  7969. * src/DefaultBtContext.h
  7970. * src/DefaultPeerListProcessor.cc
  7971. * src/DefaultPeerListProcessor.h
  7972. * src/DelegatingPeerListProcessor.cc
  7973. * src/DelegatingPeerListProcessor.h
  7974. * src/PeerListProcessor.h
  7975. * src/UTPexExtensionMessage.cc
  7976. * src/Util.h
  7977. * src/message.h
  7978. * test/DefaultBtContextTest.cc
  7979. * test/DefaultPeerListProcessorTest.cc
  7980. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  7981. Added bencode helper functions and BDE class.
  7982. They will replace MetaFileUtil and Dictionary/List/Data classes.
  7983. * src/Makefile.am
  7984. * src/bencode.cc
  7985. * src/bencode.h
  7986. * test/BencodeTest.cc
  7987. * test/Makefile.am
  7988. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  7989. Fixed the bug that bad URI is sent to the tracker when the announe
  7990. URI in torrent file includes query.
  7991. * src/DefaultBtAnnounce.cc
  7992. * test/DefaultBtAnnounceTest.cc
  7993. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  7994. Added Option::blank().
  7995. Use !Option::blank(name) instead of Option::defined(name) for
  7996. the options that take filename.
  7997. * src/MultiUrlRequestInfo.cc
  7998. * src/Option.cc
  7999. * src/Option.h
  8000. * src/main.cc
  8001. * src/option_processing.cc
  8002. * test/OptionTest.cc
  8003. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  8004. Documented the default value of --check-certificate option in man
  8005. page.
  8006. * doc/aria2c.1.txt
  8007. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  8008. Enabled --check-certificate by default. Added compile
  8009. time(configure) option --with-ca-bundle to specify CA bundle.
  8010. Warn if --check-certificate=true and --ca-certificate is not
  8011. specified or loading CA certificate is failed.
  8012. * configure.ac
  8013. * src/MultiUrlRequestInfo.cc
  8014. * src/OptionHandlerFactory.cc
  8015. * src/message.h
  8016. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  8017. Mentioned https tag in help option.
  8018. * doc/aria2c.1.txt
  8019. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  8020. Added `https' tag to help option category. Added https tag to
  8021. --ca-certificate, --certificate, --check-certificate and
  8022. --private-key option.
  8023. * src/OptionHandlerFactory.cc
  8024. * src/help_tags.h
  8025. * src/option_processing.cc
  8026. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  8027. Changed the package name from `aria2c' to `aria2' in order to fix
  8028. the packaging issue in Debian and Fedora. The name of the
  8029. executable is not changed.
  8030. * configure.ac
  8031. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  8032. Fixed typos
  8033. * src/usage_text.h
  8034. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  8035. Fixed typos and updated doc.
  8036. * README
  8037. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  8038. Fixed typos
  8039. * doc/aria2c.1.txt
  8040. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  8041. Fixed typos
  8042. * src/usage_text.h
  8043. 2008-11-30 Tatsuhiro Tsujikawa <[email protected]>
  8044. Print a message when no files to download.
  8045. * src/download_helper.cc
  8046. * src/main.cc
  8047. * src/message.h
  8048. 2008-11-28 Tatsuhiro Tsujikawa <[email protected]>
  8049. RFC3986 complied Percent-Encoding(urlencode).
  8050. Use uppercase hexadecimal digits for encoded text instead of lowercase
  8051. ones.
  8052. * src/Request.cc
  8053. * src/Util.cc
  8054. * src/Util.h
  8055. * test/BtHandshakeMessageTest.cc
  8056. * test/DefaultBtAnnounceTest.cc
  8057. * test/DefaultBtContextTest.cc
  8058. * test/RequestTest.cc
  8059. * test/UtilTest.cc
  8060. 2008-11-27 Tatsuhiro Tsujikawa <[email protected]>
  8061. Fixed the bug that prevents aria2 from downloading 0-length files
  8062. via HTTP/FTP.
  8063. * src/DefaultBtContext.cc
  8064. * src/DefaultBtContext.h
  8065. * src/DownloadContext.h
  8066. * src/FtpNegotiationCommand.cc
  8067. * src/HttpResponseCommand.cc
  8068. * src/HttpResponseCommand.h
  8069. * src/RequestGroup.cc
  8070. * src/SingleFileDownloadContext.cc
  8071. * src/SingleFileDownloadContext.h
  8072. * test/BtPostDownloadHandlerTest.cc
  8073. * test/MetalinkPostDownloadHandlerTest.cc
  8074. * test/MockBtContext.h
  8075. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  8076. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  8077. * src/option_processing.cc
  8078. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  8079. Applied aria2-1.0.1-mingw.patch.
  8080. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  8081. mingw.
  8082. Collected 4th and 5th argument types for getsockopt and setsockopt.
  8083. * src/SocketCore.cc
  8084. * src/a2netcompat.h
  8085. * test/SocketCoreTest.cc
  8086. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  8087. * Release 1.0.1
  8088. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  8089. Updated Ukrainian and Norwegian Nynorsk translations.
  8090. Thanks to all translators.
  8091. * po/nn.po
  8092. * po/uk.po
  8093. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  8094. Don't show download result when -S option is used.
  8095. * src/main.cc
  8096. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  8097. Bump up version number to 1.0.1
  8098. * configure.ac
  8099. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  8100. Closed files after the test cases in MultiDiskWriterTest::
  8101. testResetDiskWriterEntries(). This will fix the unit test error
  8102. in mingw32 build.
  8103. * test/MultiDiskWriterTest.cc
  8104. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  8105. Use HEAD method to get file size from HTTP server for segmented
  8106. downloading.
  8107. The request to the BitTorrent Tracker always uses GET method because
  8108. the response of the tracker is small and it doesn't need segmented
  8109. download.
  8110. * src/FtpNegotiationCommand.cc
  8111. * src/HttpRequest.cc
  8112. * src/HttpResponseCommand.cc
  8113. * src/HttpSkipResponseCommand.cc
  8114. * src/RequestGroup.cc
  8115. * src/RequestGroup.h
  8116. * src/TrackerWatcherCommand.cc
  8117. * test/HttpRequestTest.cc
  8118. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  8119. Fixed the bug that causes floating exception when -T option is used and
  8120. no URIs are given.
  8121. * src/download_helper.cc
  8122. * test/DownloadHelperTest.cc
  8123. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  8124. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  8125. errors in MinGW:
  8126. Closed file after saving server stats (RequestGroupMan.cc)
  8127. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  8128. Ignored case & handled 2-digit years (strptime.c)
  8129. Added missing suseconds_t definition (a2time.h)
  8130. Fixed socket CLOSE() define (SocketCore.cc)
  8131. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  8132. Changed utime() test values from x000 to x00000 as MinGW failed on
  8133. values less than timezone offset from Unix epoch
  8134. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  8135. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  8136. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  8137. handle negative dates (CookieParserTest.cc)
  8138. * src/a2time.h
  8139. * src/FtpConnection.cc
  8140. * src/RequestGroupMan.cc
  8141. * src/SocketCore.cc
  8142. * src/strptime.c
  8143. * test/CookieParserTest.cc
  8144. * test/CopyDiskAdaptorTest.cc
  8145. * test/FileTest.cc
  8146. * test/FtpConnectionTest.cc
  8147. * test/MultiDiskAdaptorTest.cc
  8148. 2008-11-20 Tatsuhiro Tsujikawa <[email protected]>
  8149. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  8150. * doc/aria2c.1.txt
  8151. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  8152. * Release 1.0.0
  8153. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  8154. Added '~' to reserved characters.
  8155. * src/Util.cc
  8156. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  8157. Do not urlencode Request::url in setUrl() because we want unmodified
  8158. URL using Request::getUrl()
  8159. * src/Request.cc
  8160. * src/Request.h
  8161. * test/RequestTest.cc
  8162. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  8163. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  8164. Thanks to all translators.
  8165. * po/bg.po
  8166. * po/fr.po
  8167. * po/ja.po
  8168. * po/ru.po
  8169. * po/uk.po
  8170. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  8171. Bump up version number to 1.0.0
  8172. * configure.ac
  8173. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  8174. Added nosqlite3 build to build_test.sh.
  8175. Renamed noxml as expat.
  8176. * build_test.sh
  8177. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  8178. Updated INPUT FILE section.
  8179. * doc/aria2c.1.txt
  8180. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  8181. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  8182. on big endian systems because test .aria2 files are made for little
  8183. endian systems.
  8184. * test/DefaultBtProgressInfoFileTest.cc
  8185. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  8186. Dropped ares support.
  8187. * README
  8188. * configure.ac
  8189. * m4/libares.m4: Removed.
  8190. * src/AsyncNameResolver.cc
  8191. * src/Makefile.am
  8192. * test/Makefile.am
  8193. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  8194. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  8195. Removed const qualifier from DiskWriter::size().
  8196. * src/AbstractDiskWriter.cc
  8197. * src/AbstractDiskWriter.h
  8198. * src/ByteArrayDiskWriter.cc
  8199. * src/ByteArrayDiskWriter.h
  8200. * src/DiskWriter.h
  8201. * test/ByteArrayDiskWriterTest.cc
  8202. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  8203. Fixed the bug that causes segmentation fault/bus error during executing
  8204. choking algorithm while seeding. This is caused by improper
  8205. implementation of compare function which returns inconsistent results
  8206. depending on the timing of last unchoke.
  8207. * src/BtSeederStateChoke.cc
  8208. * src/BtSeederStateChoke.h
  8209. * src/DefaultPeerStorage.cc
  8210. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  8211. Removed TODO
  8212. * TODO
  8213. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  8214. Added a section that explains how to pass argument to options that
  8215. takes optional arguments with its short form.
  8216. * doc/aria2c.1.txt
  8217. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  8218. Added -u for the short form of --max-upload-limit option.
  8219. * doc/aria2c.1.txt
  8220. * src/option_processing.cc
  8221. * src/usage_text.h
  8222. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  8223. Added -V for the short form of --check-integrity option.
  8224. Now the argument of --check-integrity option is optional:
  8225. if it is omitted, it is evaluated as true.
  8226. * doc/aria2c.1.txt
  8227. * src/option_processing.cc
  8228. * src/usage_text.h
  8229. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  8230. Made the default value of --ftp-pasv option set to true and it can take
  8231. true/false values.
  8232. * src/OptionHandlerFactory.cc
  8233. * src/option_processing.cc
  8234. * src/usage_text.h
  8235. * doc/aria2c.1.txt
  8236. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  8237. Given custom random number generator to std::random_shuffle.
  8238. * src/AnnounceList.cc
  8239. * src/BtLeecherStateChoke.cc
  8240. * src/BtSeederStateChoke.cc
  8241. * src/DefaultBtRequestFactory.cc
  8242. * src/MetalinkEntry.cc
  8243. * src/RarestPieceSelector.cc
  8244. * src/SimpleRandomizer.cc
  8245. * src/SimpleRandomizer.h
  8246. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  8247. Now the default value of --enable-direct-io is true.
  8248. * src/OptionHandlerFactory.cc
  8249. * doc/aria2c.1.txt
  8250. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  8251. Erase peer before executing onReturningPeer and onErasingPeer
  8252. because choking algorithm called from onReturningPeer doesn't
  8253. like erasing peer in the active peer list.
  8254. * src/DefaultPeerStorage.cc
  8255. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8256. Instead of creating special filename in createDownloadResult() if
  8257. inMemoryDownload() is true, now it is done in getFilePath().
  8258. * src/RequestGroup.cc
  8259. * test/RequestGroupTest.cc
  8260. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8261. Print "[MEMORY]" and filename if a file is not saved in disk and just
  8262. processed in memory. This is the fix for previous comment out.
  8263. * src/MemoryBufferPreDownloadHandler.cc
  8264. * src/RequestGroup.cc
  8265. * src/RequestGroup.h
  8266. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8267. Commented out the code which sets virtual directory path "[MEMORY]"
  8268. propagate directory to store to following RequestGroup.
  8269. * src/MemoryBufferPreDownloadHandler.cc
  8270. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8271. Bump up version number to 1.0.0b
  8272. * configure.ac
  8273. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8274. Added input_uris.txt to EXTRA_DIST
  8275. * test/Makefile.am
  8276. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8277. Removed PeerObject.h from Makefile.am
  8278. * src/Makefile.am
  8279. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8280. Avoid slow seeding
  8281. * src/PeerInteractionCommand.cc
  8282. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8283. Updated usage for -i option.
  8284. * src/usage_text.h (TEXT_INPUT_FILE)
  8285. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8286. Added INPUT FILE section to man page.
  8287. Escaped fake URLs.
  8288. * doc/aria2c.1.txt
  8289. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8290. Fixed wrong note position for -o option.
  8291. * doc/aria2c.1.txt
  8292. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  8293. Fixed compile error without SSL/XML library.
  8294. * src/DefaultBtProgressInfoFile.cc
  8295. * src/DefaultBtProgressInfoFile.h
  8296. * src/FileMetalinkParserState.cc
  8297. * src/RequestGroup.h
  8298. * src/SocketCore.cc
  8299. * src/SocketCore.h
  8300. * src/VerificationMetalinkParserState.cc
  8301. * src/download_helper.h
  8302. * src/main.cc
  8303. * test/DefaultBtProgressInfoFileTest.cc
  8304. * test/DownloadHelperTest.cc
  8305. 2008-11-13 Tatsuhiro Tsujikawa <[email protected]>
  8306. Rewritten URI handling functions. They are now provided as a testable
  8307. functions.
  8308. * src/Makefile.am
  8309. * src/RequestGroup.cc
  8310. * src/RequestGroup.h
  8311. * src/download_helper.cc
  8312. * src/download_helper.h
  8313. * src/main.cc
  8314. * test/DownloadHelperTest.cc
  8315. * test/Makefile.am
  8316. * test/input_uris.txt
  8317. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  8318. Quickly terminate commands when ctrl-c is pressed.
  8319. * src/DownloadEngine.cc
  8320. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  8321. Quickly terminate idle commands when download finished.
  8322. * src/AbstractCommand.cc
  8323. * src/DownloadCommand.cc
  8324. * src/DownloadEngine.cc
  8325. * src/DownloadEngine.h
  8326. * src/SleepCommand.cc
  8327. * src/SleepCommand.h
  8328. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8329. Added the ability to specify output filename and directory in input
  8330. file.
  8331. Additional parameters are added in the following line of URIs
  8332. with proceeding white space(s), 1 parameter in 1 line.
  8333. The parameter names are the same with the command-line option name
  8334. without proceeding "--". Not all the options are available here:
  8335. at the moment, 'dir' and 'out' options are avialable.
  8336. Please note that out option has no effect against Metalink or BitTorrent
  8337. downloads.
  8338. Example input file:
  8339. http://host/foo-1.1.tar.bz2
  8340. out=foo.tar.bz2
  8341. dir=/tmp/downloads
  8342. http://host/thundermonkey-2.0.tar.bz2
  8343. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  8344. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  8345. thundermonkey-2.0.tar.bz2 is saved as
  8346. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  8347. * src/BtPostDownloadHandler.cc
  8348. * src/Metalink2RequestGroup.cc
  8349. * src/Metalink2RequestGroup.h
  8350. * src/MetalinkPostDownloadHandler.cc
  8351. * src/UriListParser.cc
  8352. * src/UriListParser.h
  8353. * src/main.cc
  8354. * test/Metalink2RequestGroupTest.cc
  8355. * test/UriListParserTest.cc
  8356. * test/filelist1.txt
  8357. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8358. Fixed error when SSL library is not found.
  8359. * configure.ac
  8360. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8361. Cross referenced among -s, -C and -j options.
  8362. Updated usage of -C and -s options.
  8363. * src/usage_text.h
  8364. * doc/aria2c.1.txt
  8365. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8366. Fixed bad cast in 32bit platforms.
  8367. * test/DefaultPieceStorageTest.cc
  8368. (DefaultPieceStorageTest::testGetCompletedLength)
  8369. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8370. Fixed unit test fails on 32bit platforms.
  8371. * test/CookieParserTest.cc
  8372. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8373. Show an average download speed in Download results.
  8374. * src/BtFileAllocationEntry.cc
  8375. * src/DefaultPieceStorage.cc
  8376. * src/DownloadContext.cc
  8377. * src/DownloadContext.h
  8378. * src/DownloadResult.h
  8379. * src/RequestGroup.cc
  8380. * src/RequestGroupMan.cc
  8381. * src/StreamFileAllocationEntry.cc
  8382. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  8383. Fixed the bug that metalink file is not processed if Content-Type
  8384. field has a paramter.
  8385. * src/HttpResponse.cc
  8386. * src/HttpResponse.h
  8387. * test/HttpResponseTest.cc
  8388. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  8389. Removed unused code.
  8390. * src/DefaultBtAnnounce.cc
  8391. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  8392. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  8393. the value larger than DefaultPieceStorage::getTotalLength() when
  8394. in flight pieces are involved.
  8395. * src/DefaultPieceStorage.cc
  8396. * test/DefaultPieceStorageTest.cc
  8397. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8398. Bump up version number to 1.0.0a.
  8399. * configure.ac
  8400. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8401. Updated configure.ac
  8402. * configure.ac
  8403. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8404. Added usege for proxy.
  8405. * doc/aria2c.1.txt
  8406. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8407. Added usage for --ca-certificate, --certificate, --private-key and
  8408. --check-certificate options.
  8409. * doc/aria2c.1.txt
  8410. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8411. Updated man page
  8412. * doc/aria2c.1.txt
  8413. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8414. Added --no-proxy option. It receives comman separated hostname or
  8415. domains to which proxy should not be used.
  8416. aria2 honors the environment variable no_proxy to override no-proxy
  8417. value in configuration file. The user can override the environment
  8418. variable no_proxy with --no-proxy command-line option.
  8419. * src/AbstractCommand.cc
  8420. * src/OptionHandlerFactory.cc
  8421. * src/option_processing.cc
  8422. * src/prefs.cc
  8423. * src/prefs.h
  8424. * src/usage_text.h
  8425. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  8426. Added the ability to verify peer in SSL/TLS using given CA certificates.
  8427. The CA certificates are specified in --ca-certificate option.
  8428. By default, the verification is disabled. Use --check-certificate
  8429. option to enable it.
  8430. * src/HttpRequestCommand.cc
  8431. * src/LibgnutlsTLSContext.cc
  8432. * src/LibgnutlsTLSContext.h
  8433. * src/LibsslTLSContext.cc
  8434. * src/LibsslTLSContext.h
  8435. * src/MultiUrlRequestInfo.cc
  8436. * src/OptionHandlerFactory.cc
  8437. * src/SocketCore.cc
  8438. * src/SocketCore.h
  8439. * src/a2functional.h
  8440. * src/message.h
  8441. * src/option_processing.cc
  8442. * src/prefs.cc
  8443. * src/prefs.h
  8444. * src/usage_text.h
  8445. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  8446. Added client certificate authentication for SSL/TLS.
  8447. Currently a private key must be decrypted for use with aria2.
  8448. If a user accidentally gives encrypted file to aria2 then following
  8449. thing happens:
  8450. If encrypted private key is given to aria2, it behaves differently
  8451. depending on the ssl library it uses. If aria2 built with openssl then
  8452. openssl prompts the user for password. If aria2 build with gnutls then
  8453. aria2 exists with error at start up.
  8454. * src/DownloadEngineFactory.cc
  8455. * src/MultiUrlRequestInfo.cc
  8456. * src/OptionHandlerFactory.cc
  8457. * src/option_processing.cc
  8458. * src/prefs.cc
  8459. * src/prefs.h
  8460. * src/usage_text.h
  8461. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  8462. Introduced TLSContext that holds TLS related data that can be shared
  8463. with multiple SSL connections.
  8464. * src/DownloadEngineFactory.cc
  8465. * src/LibgnutlsTLSContext.cc
  8466. * src/LibgnutlsTLSContext.h
  8467. * src/LibsslTLSContext.cc
  8468. * src/LibsslTLSContext.h
  8469. * src/Makefile.am
  8470. * src/SocketCore.cc
  8471. * src/SocketCore.h
  8472. * src/TLSContext.h
  8473. * src/message.h
  8474. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  8475. Fixed the bug that the DiskWriter of the first FileEntry whose
  8476. `needsFileAllocation' property is false is not created
  8477. even if it shares a piece with next FileEntry which `requested' property
  8478. is true.
  8479. Fixed the bug that zero-length file is not created if pre file
  8480. allocation is not done.
  8481. * src/MultiDiskAdaptor.cc
  8482. * src/MultiDiskAdaptor.h
  8483. * test/MultiDiskAdaptorTest.cc
  8484. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. Added the ability to pool proxy connection.
  8486. The conneciton in FTP with proxy-method=GET is not pooled.
  8487. Proxy-Connection header will not be sent when sending CONNECT method.
  8488. * src/DownloadEngine.cc
  8489. * src/DownloadEngine.h
  8490. * src/FtpFinishDownloadCommand.cc
  8491. * src/FtpInitiateConnectionCommand.cc
  8492. * src/FtpNegotiationCommand.cc
  8493. * src/HttpDownloadCommand.cc
  8494. * src/HttpInitiateConnectionCommand.cc
  8495. * src/HttpRequest.cc
  8496. * src/HttpRequest.h
  8497. * src/HttpResponse.cc
  8498. * src/HttpSkipResponseCommand.cc
  8499. * test/HttpRequestTest.cc
  8500. * test/HttpResponseTest.cc
  8501. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Handle date before epoch.
  8503. To create *bad* Time object, call Time::null().
  8504. * src/CookieParser.cc
  8505. * src/FtpConnection.cc
  8506. * src/FtpConnection.h
  8507. * src/FtpNegotiationCommand.cc
  8508. * src/RequestGroup.cc
  8509. * src/TimeA2.cc
  8510. * src/TimeA2.h
  8511. * test/CookieParserTest.cc
  8512. * test/FtpConnectionTest.cc
  8513. * test/TimeTest.cc
  8514. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Added support for following envrionment variables: http_proxy,
  8516. https_proxy, ftp_proxy and all_proxy.
  8517. Each variable is equivalent to the aria2 option whose name is the
  8518. variable name with '_' replaced with '-'.
  8519. They overrides options specified in aria2.conf file.
  8520. The envrionment variables can be overrode using command-line option.
  8521. * src/option_processing.cc
  8522. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8523. Renamed --http-proxy-method as --proxy-method.
  8524. * src/AbstractCommand.cc
  8525. * src/FtpInitiateConnectionCommand.cc
  8526. * src/HttpInitiateConnectionCommand.cc
  8527. * src/OptionHandlerFactory.cc
  8528. * src/option_processing.cc
  8529. * src/prefs.cc
  8530. * src/prefs.h
  8531. * src/usage_text.h
  8532. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8533. Deprecated --http-proxy-user and --http-proxy-passwd options.
  8534. Added --https-proxy, --ftp-proxy and --all-proxy options.
  8535. Above 3 options and --http-proxy option can handle proxy in URL format
  8536. like: http://user:passwd@host:port.
  8537. If a proxy requires user/password, they must be specified in a URL.
  8538. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  8539. instead.
  8540. * src/AbstractCommand.cc
  8541. * src/AbstractCommand.h
  8542. * src/AbstractProxyRequestCommand.cc
  8543. * src/AbstractProxyRequestCommand.h
  8544. * src/AuthConfigFactory.cc
  8545. * src/AuthConfigFactory.h
  8546. * src/FtpFinishDownloadCommand.cc
  8547. * src/FtpInitiateConnectionCommand.cc
  8548. * src/FtpInitiateConnectionCommand.h
  8549. * src/FtpNegotiationCommand.cc
  8550. * src/FtpTunnelRequestCommand.cc
  8551. * src/FtpTunnelRequestCommand.h
  8552. * src/HttpDownloadCommand.cc
  8553. * src/HttpInitiateConnectionCommand.cc
  8554. * src/HttpInitiateConnectionCommand.h
  8555. * src/HttpProxyRequestCommand.cc
  8556. * src/HttpProxyRequestCommand.h
  8557. * src/HttpRequest.cc
  8558. * src/HttpRequest.h
  8559. * src/HttpRequestCommand.cc
  8560. * src/HttpRequestCommand.h
  8561. * src/HttpSkipResponseCommand.cc
  8562. * src/InitiateConnectionCommand.cc
  8563. * src/InitiateConnectionCommand.h
  8564. * src/OptionHandlerFactory.cc
  8565. * src/OptionHandlerImpl.h
  8566. * src/Request.cc
  8567. * src/option_processing.cc
  8568. * src/prefs.cc
  8569. * src/prefs.h
  8570. * src/usage_text.h
  8571. * test/AuthConfigFactoryTest.cc
  8572. * test/HttpRequestTest.cc
  8573. * test/OptionHandlerTest.cc
  8574. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8575. Execute choking algorithm when unchoked and interested peer is
  8576. disconected.
  8577. * src/DefaultPeerStorage.cc
  8578. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. Added testcase for BtNotInterestedMessage from unchoked peer.
  8580. * test/BtNotInterestedMessageTest.cc
  8581. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8582. Execute choking algorithm when BtInterestedMessage arrives from
  8583. unchoked peer.
  8584. * src/BtInterestedMessage.cc
  8585. * src/BtInterestedMessage.h
  8586. * src/DefaultBtMessageFactory.cc
  8587. * test/BtInterestedMessageTest.cc
  8588. * test/MockPeerStorage.h
  8589. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. AuthConfigFactory is now part of DownloadEngine.
  8591. * src/AbstractProxyRequestCommand.cc
  8592. * src/AuthConfigFactory.h
  8593. * src/DownloadEngine.cc
  8594. * src/DownloadEngine.h
  8595. * src/FtpConnection.cc
  8596. * src/FtpConnection.h
  8597. * src/FtpNegotiationCommand.cc
  8598. * src/HttpConnection.cc
  8599. * src/HttpRequest.cc
  8600. * src/HttpRequest.h
  8601. * src/HttpRequestCommand.cc
  8602. * src/HttpResponse.cc
  8603. * src/HttpResponseCommand.cc
  8604. * src/HttpSkipResponseCommand.cc
  8605. * src/MultiUrlRequestInfo.cc
  8606. * src/main.cc
  8607. * test/FtpConnectionTest.cc
  8608. * test/HttpRequestTest.cc
  8609. * test/HttpResponseTest.cc
  8610. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Corrected catched exception type.
  8612. * src/ServerStatMan.cc
  8613. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8614. DNSCache is now part of DownloadEngine.
  8615. * src/DNSCache.h
  8616. * src/DownloadEngine.cc
  8617. * src/DownloadEngine.h
  8618. * src/InitiateConnectionCommand.cc
  8619. * src/MultiUrlRequestInfo.cc
  8620. * test/Makefile.am
  8621. * test/Makefile.in
  8622. * test/SimpleDNSCacheTest.cc
  8623. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8624. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  8625. DownloadEngine.
  8626. * src/ActivePeerConnectionCommand.cc
  8627. * src/BtSetup.cc
  8628. * src/CUIDCounter.h
  8629. * src/DHTSetup.cc
  8630. * src/DownloadCommand.cc
  8631. * src/DownloadEngine.cc
  8632. * src/DownloadEngine.h
  8633. * src/DownloadEngineFactory.cc
  8634. * src/FileAllocationDispatcherCommand.cc
  8635. * src/InitiatorMSEHandshakeCommand.cc
  8636. * src/PeerInitiateConnectionCommand.cc
  8637. * src/PeerInteractionCommand.cc
  8638. * src/PeerListenCommand.cc
  8639. * src/RequestGroup.cc
  8640. * src/StreamFileAllocationEntry.cc
  8641. * src/TrackerWatcherCommand.cc
  8642. * src/main.cc
  8643. * test/RequestGroupManTest.cc
  8644. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. Implemented commented code in BtSeederStateChoke
  8646. * src/BtSeederStateChoke.cc
  8647. * src/Peer.cc
  8648. * src/Peer.h
  8649. * src/PeerInteractionCommand.cc
  8650. * src/PeerSessionResource.cc
  8651. * src/PeerSessionResource.h
  8652. * test/MockBtMessageDispatcher.h
  8653. * test/PeerSessionResourceTest.cc
  8654. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  8656. its object.
  8657. * src/AbstractBtMessage.cc
  8658. * src/ActivePeerConnectionCommand.cc
  8659. * src/ActivePeerConnectionCommand.h
  8660. * src/BtContextAwareCommand.cc
  8661. * src/BtContextAwareCommand.h
  8662. * src/BtExtendedMessage.cc
  8663. * src/BtExtendedMessage.h
  8664. * src/BtInterestedMessage.cc
  8665. * src/BtInterestedMessage.h
  8666. * src/BtNotInterestedMessage.cc
  8667. * src/BtNotInterestedMessage.h
  8668. * src/BtRegistry.cc
  8669. * src/BtRegistry.h
  8670. * src/BtSeederStateChoke.cc
  8671. * src/BtSetup.cc
  8672. * src/DHTGetPeersCommand.cc
  8673. * src/DHTGetPeersCommand.h
  8674. * src/DHTPeerAnnounceEntry.cc
  8675. * src/DHTPeerAnnounceEntry.h
  8676. * src/DHTPeerAnnounceStorage.cc
  8677. * src/DHTPeerAnnounceStorage.h
  8678. * src/DHTPeerLookupTask.cc
  8679. * src/DHTPeerLookupTask.h
  8680. * src/DHTSetup.cc
  8681. * src/DHTSetup.h
  8682. * src/DHTTaskFactory.h
  8683. * src/DHTTaskFactoryImpl.cc
  8684. * src/DHTTaskFactoryImpl.h
  8685. * src/DefaultBtAnnounce.cc
  8686. * src/DefaultBtInteractive.cc
  8687. * src/DefaultBtInteractive.h
  8688. * src/DefaultBtMessageDispatcher.cc
  8689. * src/DefaultBtMessageDispatcher.h
  8690. * src/DefaultBtMessageFactory.cc
  8691. * src/DefaultBtMessageFactory.h
  8692. * src/DefaultBtMessageReceiver.cc
  8693. * src/DefaultBtProgressInfoFile.cc
  8694. * src/DefaultBtProgressInfoFile.h
  8695. * src/DefaultBtRequestFactory.cc
  8696. * src/DefaultBtRequestFactory.h
  8697. * src/DefaultExtensionMessageFactory.cc
  8698. * src/DefaultExtensionMessageFactory.h
  8699. * src/DefaultPeerStorage.cc
  8700. * src/DefaultPeerStorage.h
  8701. * src/DownloadEngine.cc
  8702. * src/DownloadEngine.h
  8703. * src/InitiatorMSEHandshakeCommand.cc
  8704. * src/InitiatorMSEHandshakeCommand.h
  8705. * src/MSEHandshake.cc
  8706. * src/MSEHandshake.h
  8707. * src/Makefile.am
  8708. * src/Makefile.in
  8709. * src/PeerChokeCommand.cc
  8710. * src/PeerChokeCommand.h
  8711. * src/PeerInitiateConnectionCommand.cc
  8712. * src/PeerInitiateConnectionCommand.h
  8713. * src/PeerInteractionCommand.cc
  8714. * src/PeerInteractionCommand.h
  8715. * src/PeerObject.h
  8716. * src/PeerReceiveHandshakeCommand.cc
  8717. * src/PeerReceiveHandshakeCommand.h
  8718. * src/ReceiverMSEHandshakeCommand.cc
  8719. * src/RequestGroup.cc
  8720. * src/RequestGroup.h
  8721. * src/RequestGroupMan.cc
  8722. * src/RequestGroupMan.h
  8723. * src/SeedCheckCommand.cc
  8724. * src/SeedCheckCommand.h
  8725. * src/ShareRatioSeedCriteria.h
  8726. * src/SimpleBtMessage.cc
  8727. * src/TrackerWatcherCommand.cc
  8728. * src/TrackerWatcherCommand.h
  8729. * src/UTPexExtensionMessage.cc
  8730. * src/UTPexExtensionMessage.h
  8731. * test/BtCancelMessageTest.cc
  8732. * test/BtChokeMessageTest.cc
  8733. * test/BtExtendedMessageTest.cc
  8734. * test/BtInterestedMessageTest.cc
  8735. * test/BtNotInterestedMessageTest.cc
  8736. * test/BtPieceMessageTest.cc
  8737. * test/BtPortMessageTest.cc
  8738. * test/BtRegistryTest.cc
  8739. * test/BtRejectMessageTest.cc
  8740. * test/BtRequestMessageTest.cc
  8741. * test/DHTPeerAnnounceEntryTest.cc
  8742. * test/DHTPeerAnnounceStorageTest.cc
  8743. * test/DefaultBtMessageDispatcherTest.cc
  8744. * test/DefaultBtMessageFactoryTest.cc
  8745. * test/DefaultBtProgressInfoFileTest.cc
  8746. * test/DefaultBtRequestFactoryTest.cc
  8747. * test/DefaultExtensionMessageFactoryTest.cc
  8748. * test/MSEHandshakeTest.cc
  8749. * test/MockDHTTaskFactory.h
  8750. * test/ShareRatioSeedCriteriaTest.cc
  8751. * test/UTPexExtensionMessageTest.cc
  8752. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. Fixed compiler warning.
  8754. * test/UtilTest.cc
  8755. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8756. Treat Cookie object as session cookie if expiry = 0 is given.
  8757. With this change, you can specify session scoped cookies in an external
  8758. file setting expiry value to 0.
  8759. * src/Cookie.cc
  8760. * src/Cookie.h
  8761. * test/CookieParserTest.cc
  8762. * test/CookieStorageTest.cc
  8763. * test/CookieTest.cc
  8764. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8765. Changed signature of DHTMessageFactory::createResponseMessage().
  8766. Removed unused validateIDMatch.
  8767. * src/DHTMessageFactory.h
  8768. * src/DHTMessageFactoryImpl.cc
  8769. * src/DHTMessageFactoryImpl.h
  8770. * src/DHTMessageTracker.cc
  8771. * test/DHTMessageFactoryImplTest.cc
  8772. * test/MockDHTMessageFactory.h
  8773. Dropped DHT message coming from same ID of localhost.
  8774. * src/DHTMessageReceiver.cc
  8775. Rejected adding node whose ID is the same as localhost's.
  8776. * src/DHTRoutingTable.cc
  8777. * test/BtPortMessageTest.cc
  8778. * test/DHTRoutingTableTest.cc
  8779. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8780. Pool connection when redirection occurs with Content-Length = 0.
  8781. * src/HttpSkipResponseCommand.cc
  8782. * src/HttpSkipResponseCommand.h
  8783. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8784. Fixed the bug that causes time out when redirection occurs with
  8785. content-length 0.
  8786. * src/HttpResponseCommand.cc
  8787. * src/HttpSkipResponseCommand.cc
  8788. * src/HttpSkipResponseCommand.h
  8789. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8790. Now each status legends is shown only when it appears in Download
  8791. Result. If Download Result has no item, then status legend will not
  8792. be printed.
  8793. * src/RequestGroupMan.cc
  8794. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. Removed duplicate creation of OptionHandlers.
  8796. * src/option_processing.cc
  8797. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8798. Fixed the bug that causes segmentation fault when accessing files which
  8799. don't exist or are not included in --select-file option while
  8800. validating chunk checksum.
  8801. * src/MultiDiskAdaptor.cc
  8802. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. Fixed compiler warning.
  8804. * test/UtilTest.cc
  8805. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8806. Included cstdlib. This fixed the compile error with g++-4.3.2.
  8807. * src/IteratableChecksumValidator.cc
  8808. * src/IteratableChunkChecksumValidator.cc
  8809. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8810. * Release 0.16.2
  8811. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8812. Added Serbian translation. Updated Ukrainian translation.
  8813. Thanks to all translators.
  8814. * po/sr.po
  8815. * po/uk.po
  8816. * po/LINGUAS
  8817. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8818. Bump up version number to 0.16.2
  8819. * configure.ac
  8820. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8821. Added length equality test to operator== to drop a piece message
  8822. whose length does not match to the requested one.
  8823. * src/RequestSlot.cc
  8824. * test/DefaultBtMessageDispatcherTest.cc
  8825. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8826. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  8827. recieved.
  8828. In this fix, if a request larger than 16KiB length is received, aria2
  8829. disconnects the peer.
  8830. * src/BtConstants.h
  8831. * src/PeerMessageUtil.cc
  8832. * src/PeerMessageUtil.h
  8833. * test/BtRequestMessageTest.cc
  8834. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. * Release 0.16.1
  8836. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8837. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  8838. * doc/aria2c.1.txt
  8839. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8840. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  8841. Updated French, Simplified Chinese and Japanese translations.
  8842. Thanks to all translators.
  8843. en@quot and en@boldquot are also added.
  8844. * po/LINGUAS
  8845. * po/fr.po
  8846. * po/ja.po
  8847. * po/uk.po
  8848. * po/vi.po
  8849. * po/zh_CN.po
  8850. * po/zh_TW.po
  8851. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8852. Bump up version number to 0.16.1.
  8853. * configure.ac
  8854. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8855. Updated README.
  8856. * README
  8857. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  8859. not to replace '--' with em dash character.
  8860. * doc/aria2c.1.txt
  8861. * doc/makeman
  8862. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  8864. every SEC seconds.
  8865. * src/DownloadEngineFactory.cc
  8866. * src/OptionHandlerFactory.cc
  8867. * src/option_processing.cc
  8868. * src/usage_text.h
  8869. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. Fixed compile warning on linux-amd64
  8871. * src/FtpConnection.cc
  8872. * src/IteratableChunkChecksumValidator.cc
  8873. * src/MultiDiskAdaptor.cc
  8874. Fixed the bug that unit test fails on linux-amd64
  8875. * test/UtilTest.cc
  8876. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8877. Added --dht-file-path option to change the path to dht.dat, which is a
  8878. serialized DHT routing table.
  8879. * src/OptionHandlerFactory.cc
  8880. * src/option_processing.cc
  8881. * src/usage_text.h
  8882. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. Fixed possible underflow.
  8884. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  8885. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8886. Fixed the bug that last character in URI is not encoded.
  8887. * src/Request.cc
  8888. * test/RequestTest.cc
  8889. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8890. Fixed the bug that referer header field contains fragment.
  8891. Now Request class removes fragment part of URI and encodes it
  8892. in Request::setUri() and setReferer().
  8893. * src/Request.h
  8894. * src/Request.cc
  8895. * test/RequestTest.cc
  8896. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. Added missing m4 macros.
  8898. * m4/cppunit.m4
  8899. * m4/libgcrypt.m4
  8900. * m4/libgnutls-extra.m4
  8901. * m4/libgnutls.m4
  8902. * m4/libxml2.m4
  8903. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Fixed compile error with gcc-4.4(snapshot)
  8905. * src/File.cc
  8906. * src/FtpConnection.cc
  8907. * src/OptionHandlerImpl.h
  8908. * src/Util.cc
  8909. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8910. Removed assert()
  8911. * src/SocketBuffer.cc (SocketBuffer::send)
  8912. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Changed the type of _numNewConnection to unsigned int.
  8914. * src/ActivePeerConnectionCommand.cc
  8915. * src/ActivePeerConnectionCommand.h
  8916. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8917. * Release 0.16.0
  8918. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. Updated doc
  8920. * README
  8921. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8922. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  8923. translations. Thanks to all translators.
  8924. * po/bg.po
  8925. * po/de.po
  8926. * po/fr.po
  8927. * po/ja.po
  8928. * po/zh_CN.po
  8929. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8930. Bump up version number to 0.16.0.
  8931. * configure.ac
  8932. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8933. Casted entry->maxConnections to int32_t for std::min<T> with T =
  8934. int32_t.
  8935. Changed the type of count to int32_t.
  8936. * src/Metalink2RequestGroup.cc
  8937. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8938. Added test for Time::elapsed(time_t).
  8939. * test/TimeTest.cc
  8940. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8941. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  8942. Util::difftv() should be used instead.
  8943. * src/TimeA2.cc
  8944. * src/TimeA2.h
  8945. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Made socket for dht connections non-blocking
  8947. * src/DHTAbstractMessage.cc
  8948. * src/DHTAbstractMessage.h
  8949. * src/DHTConnection.h
  8950. * src/DHTConnectionImpl.cc
  8951. * src/DHTConnectionImpl.h
  8952. * src/DHTMessage.h
  8953. * src/DHTMessageDispatcherImpl.cc
  8954. * src/DHTMessageDispatcherImpl.h
  8955. * src/DHTUnknownMessage.cc
  8956. * src/DHTUnknownMessage.h
  8957. * src/SocketCore.cc
  8958. * src/SocketCore.h
  8959. * test/MockDHTMessage.h
  8960. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8961. Changed the type of offset to int.
  8962. * src/ParameterizedStringParser.cc
  8963. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8964. Made getAsInt() return int32_t
  8965. * src/Option.h
  8966. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8967. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  8968. build.
  8969. * configure.ac
  8970. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8971. Use sqlite3_open if sqlite3_open_v2 is not available.
  8972. * src/Sqlite3MozCookieParser.cc
  8973. * src/Sqlite3MozCookieParser.h
  8974. * m4/sqlite3.m4
  8975. * test/Sqlite3MozCookieParserTest.cc
  8976. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  8978. * src/BtPieceMessage.cc
  8979. * src/DHTPeerAnnounceStorage.cc
  8980. * src/DefaultPieceStorage.cc
  8981. * src/DownloadCommand.cc
  8982. * src/DownloadEngine.cc
  8983. * src/FtpConnection.cc
  8984. * src/PeerConnection.cc
  8985. * src/PeerMessageUtil.cc
  8986. * src/RequestGroup.cc
  8987. * src/RequestGroupMan.cc
  8988. * src/SimpleBtMessage.cc
  8989. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8990. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  8991. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  8992. * src/AbstractDiskWriter.cc
  8993. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8994. Don't set Request::supportsPersistentConnection() in HttpConnection
  8995. since this code is also used in AbstractProxyResponseCommand.
  8996. Moved those code to HttpResponse.
  8997. * src/HttpResponse.cc
  8998. * src/HttpResponse.h
  8999. * src/HttpConnection.cc
  9000. * src/HttpConnection.h
  9001. * src/HttpResponseCommand.cc
  9002. * test/HttpResponseTest.cc
  9003. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  9005. The configuration is minimum: no torrent, no metalink, so there may be
  9006. other compile error on their code.
  9007. * src/a2netcompat.h
  9008. * src/File.cc
  9009. * src/File.h
  9010. * src/SocketCore.cc
  9011. * src/SocketCore.h
  9012. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9013. Made a socket of incoming peer non-blocking.
  9014. * src/PeerListenCommand.cc
  9015. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9016. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  9017. whole message data is not sent in one send() call.
  9018. * src/BtPieceMessage.cc
  9019. * src/BtPieceMessage.h
  9020. * src/PeerConnection.cc
  9021. * src/PeerConnection.h
  9022. * src/SimpleBtMessage.cc
  9023. * src/SimpleBtMessage.h
  9024. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9025. Fixed the bug that aria2 downloads faster than max-download-limit when
  9026. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  9027. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  9028. , instead of sum of them.
  9029. * src/ActivePeerConnectionCommand.cc
  9030. * src/DefaultBtInteractive.cc
  9031. * src/DownloadCommand.cc
  9032. * src/PeerInteractionCommand.cc
  9033. * src/PeerReceiveHandshakeCommand.cc
  9034. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. Fixed the bug that HTTPS download fails.
  9036. * src/AbstractCommand.cc
  9037. * src/AbstractCommand.h
  9038. * src/DownloadCommand.cc
  9039. * src/FtpConnection.cc
  9040. * src/HttpConnection.cc
  9041. * src/HttpRequestCommand.cc
  9042. * src/HttpResponseCommand.cc
  9043. * src/HttpSkipResponseCommand.cc
  9044. * src/MSEHandshake.cc
  9045. * src/PeerConnection.cc
  9046. * src/SocketCore.cc
  9047. * src/SocketCore.h
  9048. Fixed the bug that aria2 doesn't download whole content body and cannot
  9049. reuse connection if chunked transfer encoding and gzip content encoding
  9050. are set.
  9051. * src/DownloadCommand.cc
  9052. * src/HttpSkipResponseCommand.cc
  9053. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9054. Updated man page.
  9055. * doc/aria2c.1.txt
  9056. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9057. When error occurred while aria2 was parsing an .aria2.conf file, print
  9058. the usage of the option that caused error.
  9059. * src/option_processing.cc
  9060. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9061. Fixed compile error on OptionHandlerException
  9062. * src/Makefile.am
  9063. * src/OptionHandlerException.cc
  9064. * src/OptionHandlerException.h
  9065. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9066. Moved message of the error to OptionHandlerException.h
  9067. * src/NameMatchOptionHandler.h
  9068. * src/OptionHandlerException.h
  9069. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9070. When error occurs while aria2 is parsing an command-line option, print
  9071. the usage of the option.
  9072. * src/Makefile.am
  9073. * src/NameMatchOptionHandler.h
  9074. * src/OptionHandlerException.h
  9075. * src/option_processing.cc
  9076. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9077. Reverted previous change.
  9078. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  9079. username is not in URI.
  9080. * src/HttpRequest.cc
  9081. * src/Request.cc
  9082. * test/HttpRequestTest.cc
  9083. * test/RequestTest.cc
  9084. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9085. Now colon is required for username and password in FTP URL, like:
  9086. ftp://username:password@host.
  9087. If colon is not there, aria2 don't parse it as a username. For example,
  9088. aria2 don't retrieve username from ftp://username@host.
  9089. This fix was made in order to login FTP server via non-transparent ftp
  9090. proxy.
  9091. * src/Request.cc
  9092. * test/RequestTest.cc
  9093. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9094. Use netrc for HTTP.
  9095. Now FTP user/password is sent in Authorization header when
  9096. --ftp-via-http-proxy=get is given.
  9097. * src/AuthConfigFactory.cc
  9098. * src/HttpRequest.cc
  9099. * src/HttpRequest.h
  9100. * src/NetrcAuthResolver.cc
  9101. * src/NetrcAuthResolver.h
  9102. * src/OptionHandlerFactory.cc
  9103. * src/option_processing.cc
  9104. * src/prefs.cc
  9105. * src/prefs.h
  9106. * test/AuthConfigFactoryTest.cc
  9107. * test/HttpRequestTest.cc
  9108. * test/NetrcAuthResolverTest.cc
  9109. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. Issue PWD command first and get working directory and use it as a prefix
  9111. for CWD command.
  9112. * src/DownloadEngine.cc
  9113. * src/DownloadEngine.h
  9114. * src/FtpConnection.cc
  9115. * src/FtpConnection.h
  9116. * src/FtpFinishDownloadCommand.cc
  9117. * src/FtpInitiateConnectionCommand.cc
  9118. * src/FtpNegotiationCommand.cc
  9119. * src/FtpNegotiationCommand.h
  9120. * test/FtpConnectionTest.cc
  9121. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9122. Removed default user/pass for FTP user/pass, since it should not have
  9123. precedence over netrc configuration by default.
  9124. * src/OptionHandlerFactory.cc
  9125. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9126. Added debug log for socket event.
  9127. * src/AbstractCommand.cc
  9128. * src/PeerAbstractCommand.cc
  9129. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9130. Log microseconds.
  9131. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9132. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. Replaced HelpItem.cc with OptionHandler.cc.
  9134. * po/POTFILES.in
  9135. Updated po files with 'make update-po'
  9136. * po/aria2c.pot
  9137. * po/*.po
  9138. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9139. Removed possible values from the text.
  9140. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  9141. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9142. Removed unused preferences:
  9143. PREF_NO_PREALLOCATION
  9144. PREF_STDOUT_LOG
  9145. PREF_TRACKER_MAX_TRIES
  9146. PREF_DIRECT_DOWNLOAD_TIMEOUT
  9147. PREF_MIN_SEGMENT_SIZE
  9148. * src/option_processing.cc
  9149. * src/prefs.cc
  9150. * src/prefs.h
  9151. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9152. Integrated HelpItem into OptionParser to ease the workload for adding
  9153. new options. Removed default value from usage text.
  9154. * src/HelpItem.cc: Removed.
  9155. * src/HelpItem.h: Removed.
  9156. * src/HelpItemFactory.cc: Removed.
  9157. * src/HelpItemFactory.h: Removed.
  9158. * src/Makefile.am
  9159. * src/Makefile.in
  9160. * src/NameMatchOptionHandler.h
  9161. * src/OptionHandler.cc
  9162. * src/OptionHandler.h
  9163. * src/OptionHandlerFactory.cc
  9164. * src/OptionHandlerImpl.h
  9165. * src/OptionParser.cc
  9166. * src/OptionParser.h
  9167. * src/TagContainer.cc: Removed.
  9168. * src/TagContainer.h: Removed.
  9169. * src/TaggedItem.cc: Removed.
  9170. * src/TaggedItem.h: Removed.
  9171. * src/main.cc
  9172. * src/option_processing.cc
  9173. * src/usage_text.h
  9174. * src/version_usage.cc
  9175. * test/HelpItemTest.cc: Removed.
  9176. * test/Makefile.am
  9177. * test/Makefile.in
  9178. * test/OptionHandlerTest.cc
  9179. * test/OptionParserTest.cc
  9180. * test/TagContainerTest.cc: Removed.
  9181. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9182. Moved `TransferStat stat = ...' to inside the `if' clause.
  9183. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  9184. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9185. Fixed the bug that a block in a piece is requested when same block is
  9186. already requested to the same peer in end game mode.
  9187. * src/BtRequestFactory.h
  9188. * src/DefaultBtInteractive.cc
  9189. * src/DefaultBtRequestFactory.cc
  9190. * src/DefaultBtRequestFactory.h
  9191. * src/DefaultPieceStorage.cc
  9192. * src/DefaultPieceStorage.h
  9193. * src/PieceStorage.h
  9194. * src/UnknownLengthPieceStorage.cc
  9195. * src/UnknownLengthPieceStorage.h
  9196. * test/DefaultBtRequestFactoryTest.cc
  9197. * test/DefaultPieceStorageTest.cc
  9198. * test/MockBtRequestFactory.h
  9199. * test/MockPieceStorage.h
  9200. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9201. Removed _uploadLength and _downloadLength from PeerSessionResource
  9202. and use PeerStat::_sessionUploadLength and
  9203. PeerStat::_sessionDownloadLength.
  9204. * src/PeerSessionResource.cc
  9205. * src/PeerSessionResource.h
  9206. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9207. Fixed the bug that prefixLength of split bucket which doesn't include
  9208. local node ID is incremented.
  9209. * src/DHTBucket.cc
  9210. * src/DHTBucket.h
  9211. * test/DHTBucketTest.cc
  9212. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9213. Added cookies.sqlite to EXTRA_DIST
  9214. * test/Makefile.am
  9215. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9216. Added Turkish translation. Updated French, German, Russian and
  9217. Simplified Chinese translations. Thanks to all translators.
  9218. * po/LINGUAS
  9219. * po/de.po
  9220. * po/fr.po
  9221. * po/ru.po
  9222. * po/tr.po
  9223. * po/zh_CN.po
  9224. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9225. Added deliminating text to the beginning of the log so that one can find
  9226. where the log starts easily.
  9227. * src/main.cc
  9228. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9229. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  9230. to fix compile error when async DNS is not enabled by configuration.
  9231. * src/AbstractCommand.cc
  9232. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9233. If establishing conneciton to a server is failed, then mark error on
  9234. its ServerStat.
  9235. Added the cause of error to log when error event occurred.
  9236. Moved message string to message.h for translation.
  9237. * src/AbstractCommand.cc
  9238. * src/AbstractCommand.h
  9239. * src/FtpNegotiationCommand.cc
  9240. * src/HttpRequestCommand.cc
  9241. * src/PeerAbstractCommand.cc
  9242. * src/message.h
  9243. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9244. Added the function to get error message from socket.
  9245. * src/SocketCore.cc
  9246. * src/SocketCore.h
  9247. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9248. Added convenient method RequestGroupMan::getOrCreateServerStat()
  9249. * src/RequestGroupMan.cc
  9250. * src/RequestGroupMan.h
  9251. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9252. If error event is received in epoll, then abort download immediately.
  9253. * src/AbstractCommand.cc
  9254. * src/Command.cc
  9255. * src/Command.h
  9256. * src/DownloadEngine.cc
  9257. * src/PeerAbstractCommand.cc
  9258. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9259. Added usage message for --uri-selector, --server-stat-of,
  9260. --server-stat-in, --server-stat-timeout options.
  9261. * src/HelpItemFactory.cc
  9262. * src/usage_text.h
  9263. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9264. Added upper limit of FTP response buffer. The current implementation
  9265. uses 4096bytes as a limit.
  9266. * src/FtpConnection.cc
  9267. * src/FtpConnection.h
  9268. * test/FtpConnectionTest.cc
  9269. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9270. Use non-blocking socket for TCP communication to avoid possible
  9271. blocking due to buffer full.
  9272. * src/AbstractProxyRequestCommand.cc
  9273. * src/FtpConnection.cc
  9274. * src/FtpConnection.h
  9275. * src/FtpNegotiationCommand.cc
  9276. * src/FtpNegotiationCommand.h
  9277. * src/HttpConnection.cc
  9278. * src/HttpConnection.h
  9279. * src/HttpRequestCommand.cc
  9280. * src/InitiatorMSEHandshakeCommand.cc
  9281. * src/InitiatorMSEHandshakeCommand.h
  9282. * src/MSEHandshake.cc
  9283. * src/MSEHandshake.h
  9284. * src/Makefile.am
  9285. * src/PeerConnection.cc
  9286. * src/PeerConnection.h
  9287. * src/PeerInteractionCommand.cc
  9288. * src/PeerListenCommand.cc
  9289. * src/ReceiverMSEHandshakeCommand.cc
  9290. * src/ReceiverMSEHandshakeCommand.h
  9291. * src/SocketBuffer.cc
  9292. * src/SocketBuffer.h
  9293. * src/SocketCore.cc
  9294. * src/SocketCore.h
  9295. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Call setStatusRealtime() in constructor.
  9297. * src/RealtimeCommand.cc
  9298. * src/RealtimeCommand.h
  9299. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9300. Call Download::setNoWait(true) to execute newly created command without
  9301. a pause.
  9302. * src/AbstractCommand.cc
  9303. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Added --max-file-not-found=NUM option. If aria2 receives `file not
  9305. found' error from HTTP/FTP server NUM times without getting single
  9306. bytes of data, then force the download to fail.
  9307. Basically aria2 tris all URIs available. So if long list of URIs are
  9308. specified in Metalink, then aria2 will take a long time to fail
  9309. eventually if all URIs are outdated. This option eases this situation
  9310. to limit the number of servers to try.
  9311. * src/FtpNegotiationCommand.cc
  9312. * src/HelpItemFactory.cc
  9313. * src/HttpResponseCommand.cc
  9314. * src/OptionHandlerFactory.cc
  9315. * src/PeerStat.h
  9316. * src/RequestGroup.cc
  9317. * src/RequestGroup.h
  9318. * src/SegmentMan.cc
  9319. * src/SegmentMan.h
  9320. * src/option_processing.cc
  9321. * src/prefs.cc
  9322. * src/prefs.h
  9323. * src/usage_text.h
  9324. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9325. Fixed the bug that bulkReceiveResponse() reads all received data as a
  9326. response even if more than one response is in it.
  9327. * src/FtpConnection.cc
  9328. * src/FtpConnection.h
  9329. * test/FtpConnectionTest.cc
  9330. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9331. Merged from stable-0.15
  9332. * m4/libcares.m4
  9333. Use pkg-config
  9334. * m4/sqlite3.m4
  9335. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9336. Removed unnecessary if statement.
  9337. * src/DefaultPieceStorage.cc (initPieceStorage)
  9338. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Added --connect-timeout option to specify connect timeout in seconds.
  9340. This option is in effect for HTTP/FTP/proxy server. The timeout for
  9341. connecting to BitTorrent peer is not controlled by this option.
  9342. * src/AbstractProxyRequestCommand.cc
  9343. * src/FtpNegotiationCommand.cc
  9344. * src/HelpItemFactory.cc
  9345. * src/HttpRequestCommand.cc
  9346. * src/OptionHandlerFactory.cc
  9347. * src/option_processing.cc
  9348. * src/prefs.cc
  9349. * src/prefs.h
  9350. * src/usage_text.h
  9351. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9352. Added help message for -R option.
  9353. * src/HelpItemFactory.cc
  9354. * src/usage_text.h
  9355. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9356. Added the message that the time is in local time zone.
  9357. * src/RequestGroup.cc
  9358. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9359. Implemented the ability to get timestamp from remote FTP server using
  9360. MDTM command described in RFC3659.
  9361. * src/FtpConnection.cc
  9362. * src/FtpConnection.h
  9363. * src/FtpNegotiationCommand.cc
  9364. * src/FtpNegotiationCommand.h
  9365. * test/FtpConnectionTest.cc
  9366. * test/Makefile.am
  9367. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9368. Implemented the ability to get timestamp from remote HTTP server and
  9369. apply it to local file. To enable this feature, --remote-time option
  9370. is added. No usage text has been written yet.
  9371. If several servers returns difference timestamp, then aria2 uses latest
  9372. one.
  9373. * src/CopyDiskAdaptor.cc
  9374. * src/CopyDiskAdaptor.h
  9375. * src/DirectDiskAdaptor.cc
  9376. * src/DirectDiskAdaptor.h
  9377. * src/DiskAdaptor.h
  9378. * src/File.cc
  9379. * src/File.h
  9380. * src/HttpHeader.cc
  9381. * src/HttpHeader.h
  9382. * src/HttpResponse.cc
  9383. * src/HttpResponse.h
  9384. * src/HttpResponseCommand.cc
  9385. * src/HttpResponseCommand.h
  9386. * src/MultiDiskAdaptor.cc
  9387. * src/MultiDiskAdaptor.h
  9388. * src/OptionHandlerFactory.cc
  9389. * src/RequestGroup.cc
  9390. * src/RequestGroup.h
  9391. * src/RequestGroupMan.cc
  9392. * src/option_processing.cc
  9393. * src/prefs.cc
  9394. * src/prefs.h
  9395. * test/CopyDiskAdaptorTest.cc
  9396. * test/FileTest.cc
  9397. * test/Makefile.am
  9398. * test/Makefile.in
  9399. * test/MultiDiskAdaptorTest.cc
  9400. * test/TestUtil.cc
  9401. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9402. Fixed the bug that DiskWriterEntry is not created when its
  9403. FileEntry.isRequested() is false and it doesn't share a piece with
  9404. other FileEntries that are requested. This bug causes segmentation fault
  9405. in the end.
  9406. * src/MultiDiskAdaptor.cc
  9407. * src/MultiDiskAdaptor.h
  9408. * src/MultiFileAllocationIterator.cc
  9409. * test/MultiDiskAdaptorTest.cc
  9410. * test/MultiFileAllocationIteratorTest.cc
  9411. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9412. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  9413. called if the number of file entries are greater than max open files.
  9414. * src/AbstractSingleDiskAdaptor.cc
  9415. * src/AbstractSingleDiskAdaptor.h
  9416. * src/DiskAdaptor.h
  9417. * src/MultiDiskAdaptor.cc
  9418. * src/MultiDiskAdaptor.h
  9419. * test/MultiDiskAdaptorTest.cc
  9420. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9421. Added a constuctor that receives struct timeval.
  9422. Added operator<.
  9423. * src/TimeA2.cc
  9424. * src/TimeA2.h
  9425. * test/TimeTest.cc
  9426. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9427. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  9428. * src/CookieParser.cc
  9429. * test/CookieParserTest.cc
  9430. * test/HttpResponseTest.cc
  9431. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9432. Implmented the functions to parse date.
  9433. * src/TimeA2.cc
  9434. * src/TimeA2.h
  9435. * test/TimeTest.cc
  9436. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9437. Added "Firefox3 Cookie" feature to FeatureConfig
  9438. * src/FeatureConfig.cc
  9439. * src/FeatureConfig.h
  9440. * test/FeatureConfigTest.cc
  9441. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9442. Bump up version number to 0.16.0b
  9443. * configure.ac
  9444. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9445. Use pkg-config if is is available.
  9446. * m4/openssl.m4
  9447. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9448. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  9449. * src/BtAnnounce.h
  9450. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9451. If an error occurred with a URI, remove identical URI from remaining
  9452. URI list because it is likely that same error occurred in the end and it
  9453. is waste of time.
  9454. * src/AbstractCommand.cc
  9455. * src/RequestGroup.cc
  9456. * src/RequestGroup.h
  9457. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9458. Removed wrong comment.
  9459. * src/DefaultPeerStorage.cc
  9460. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9461. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  9462. Added return value of getpid() to argument of srand() to achieve more
  9463. randomized value.
  9464. * src/SimpleRandomizer.cc
  9465. * src/SimpleRandomizer.h
  9466. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. Contact tracker frequently when the number of connections are 0 and
  9468. download is not finished yet.
  9469. * src/ActivePeerConnectionCommand.cc
  9470. * src/BtAnnounce.h
  9471. * src/DefaultBtAnnounce.cc
  9472. * src/DefaultBtAnnounce.h
  9473. * test/MockBtAnnounce.h
  9474. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9475. Moved threshold values to UTPexExtensionMessage.
  9476. * src/DefaultBtInteractive.cc
  9477. * src/Peer.cc
  9478. * src/Peer.h
  9479. * src/UTPexExtensionMessage.cc
  9480. * src/UTPexExtensionMessage.h
  9481. * test/UTPexExtensionMessageTest.cc
  9482. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9483. Added _incoming member to Peer class and made it true if the peer
  9484. initiated connection. Don't add those peer to UTPex message.
  9485. If extended handshake is received, assign _incoming to false.
  9486. * src/DefaultBtInteractive.cc
  9487. * src/HandshakeExtensionMessage.cc
  9488. * src/Peer.cc
  9489. * src/Peer.h
  9490. * src/PeerListenCommand.cc
  9491. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9492. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  9493. Encoding Decoder. Removed size threshold for turning off on the fly
  9494. inflation because resulting file may or may not be inflated depending
  9495. on the file size and I think it is not expected by users.
  9496. This change fixes segmentation fault when Metalink file contains gzipped
  9497. file and its filesize is provided.
  9498. * src/HttpResponseCommand.cc
  9499. * src/HttpResponseCommand.h
  9500. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. Made Cookie immutable.
  9502. * src/Cookie.cc
  9503. * src/Cookie.h
  9504. * src/CookieParser.cc
  9505. * src/CookieParser.h
  9506. * src/CookieStorage.cc
  9507. * test/CookieParserTest.cc
  9508. * test/CookieStorageTest.cc
  9509. * test/NsCookieParserTest.cc
  9510. * test/Sqlite3MozCookieParserTest.cc
  9511. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Removed CookieBox, CookieBoxFactory.
  9513. * src/CookieBox.cc
  9514. * src/CookieBox.h
  9515. * src/CookieBoxFactory.cc
  9516. * src/CookieBoxFactory.h
  9517. * src/Makefile.am
  9518. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9519. Use CookieStorage class instead of CookieBox class.
  9520. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  9521. * src/AbstractProxyRequestCommand.cc
  9522. * src/CookieStorage.cc
  9523. * src/DownloadEngine.cc
  9524. * src/DownloadEngine.h
  9525. * src/HttpConnection.cc
  9526. * src/HttpConnection.h
  9527. * src/HttpRequest.cc
  9528. * src/HttpRequest.h
  9529. * src/HttpRequestCommand.cc
  9530. * src/HttpResponse.cc
  9531. * src/HttpResponseCommand.cc
  9532. * src/HttpSkipResponseCommand.cc
  9533. * src/Makefile.am
  9534. * src/MultiUrlRequestInfo.cc
  9535. * src/Request.cc
  9536. * src/Request.h
  9537. * src/main.cc
  9538. * test/AllTest.cc
  9539. * test/CookieStorageTest.cc
  9540. * test/CookieTest.cc
  9541. * test/HttpRequestTest.cc
  9542. * test/HttpResponseTest.cc
  9543. * test/Makefile.am
  9544. * test/NsCookieParserTest.cc
  9545. * test/Sqlite3MozCookieParserTest.cc
  9546. * test/nscookietest.txt
  9547. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9548. Updated
  9549. * test/Cookies.sqlite
  9550. * test/nscookietest.txt
  9551. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Added tests for CookieStorage::load()
  9553. * test/CookieStorageTest.cc
  9554. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9555. Added CookieStorage class which is based on RFC2109 and manages cookies
  9556. more strictly than CookieBox and CookieBoxFactory class.
  9557. * src/CookieStorage.cc
  9558. * src/CookieStorage.h
  9559. * src/Cookie.cc
  9560. * src/Cookie.h
  9561. * test/CookieStorageTest.cc
  9562. * test/CookieTest.cc
  9563. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9564. Fixed the bug that commands are created more than the number of pieces.
  9565. * src/RequestGroup.cc
  9566. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9567. Fixed infinite loop bug in FTP when SIZE command failed.
  9568. * src/FtpNegotiationCommand.cc
  9569. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9570. Removed DirectDiskAdaptorTest.h
  9571. * test/Makefile.am
  9572. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9573. Fixed chunk checksum validation cannot detect trailing garbage data.
  9574. BUG#2074141
  9575. * src/AbstractSingleDiskAdaptor.cc
  9576. * src/AbstractSingleDiskAdaptor.h
  9577. * src/CheckIntegrityEntry.cc
  9578. * src/CheckIntegrityEntry.h
  9579. * src/DiskAdaptor.h
  9580. * src/MultiDiskAdaptor.cc
  9581. * src/MultiDiskAdaptor.h
  9582. * src/RequestGroup.cc
  9583. * test/DirectDiskAdaptorTest.cc
  9584. * test/MultiDiskAdaptorTest.cc
  9585. * test/TestUtil.cc
  9586. * test/TestUtil.h
  9587. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9588. Bump up version number of dht.dat file to 3. In version 3 format, time
  9589. is stored in 64bit, network byte order.
  9590. New build can load old format(version 2) but it saves the file in new
  9591. format. It means once you used new build, your dht.dat becomes
  9592. incompatible with older build.
  9593. * src/DHTRoutingTableDeserializer.cc
  9594. * src/DHTRoutingTableSerializer.cc
  9595. * test/DHTRoutingTableSerializerTest.cc
  9596. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9597. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  9598. * test/Makefile.am
  9599. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9600. Bump up version number of .aria2 control file to 0001.
  9601. New aria2 can still load version 0000 file but it saves the file in
  9602. version 0001 format. It means that new aria2 can resume download
  9603. started by old aria2 but the opposite is not true.
  9604. * src/DefaultBtProgressInfoFile.cc
  9605. * src/DefaultBtProgressInfoFile.h
  9606. * test/DefaultBtProgressInfoFileTest.cc
  9607. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Added ntoh64 and hton64 as inline functions.
  9609. * src/Util.cc
  9610. * test/UtilTest.cc
  9611. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9612. Added sqlite3 depenency and Firefox3 cookie support.
  9613. * README
  9614. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. State that firefox3 cookie is supported explicitly in the usage.
  9616. * src/usage_text.h
  9617. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9618. Externalized message.
  9619. * src/RequestGroupMan.cc
  9620. * src/message.h
  9621. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9622. Save temporary file first and rename to the destination on success.
  9623. Added test cases.
  9624. * src/RequestGroupMan.cc
  9625. * test/RequestGroupManTest.cc
  9626. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9627. Fixed the bug that the number of connected peer is exceeding the limit
  9628. (55 by default) in seeding mode.
  9629. Multiplied 0.8 to _maxUploadSpeedLimit.
  9630. * src/ActivePeerConnectionCommand.cc
  9631. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. Clear table item.
  9633. * src/Dictionary.cc
  9634. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9635. Fixed error handling of lseek.
  9636. * src/AbstractDiskWriter.cc
  9637. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  9639. style cookie file.
  9640. * src/usage_text.h
  9641. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9642. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  9643. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  9644. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  9645. * src/Util.cc
  9646. * src/Util.h
  9647. * src/CookieParser.cc
  9648. * test/UtilTest.cc
  9649. * test/CookieParserTest.cc
  9650. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9651. Separate the implementation to load old mozilla format of cookie to
  9652. NsCookieParser class.
  9653. * src/CookieBoxFactory.cc
  9654. * src/CookieBoxFactory.h
  9655. * src/NsCookieParser.cc
  9656. * src/NsCookieParser.h
  9657. * test/NsCookieParserTest.cc
  9658. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9659. Made parse() const
  9660. * src/Sqlite3MozCookieParser.cc
  9661. * src/Sqlite3MozCookieParser.h
  9662. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9663. Added firefox3 cookie support based on the patch submitted by
  9664. tizianomueller.
  9665. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  9666. this functionality.
  9667. * configure.ac
  9668. * m4/sqlite3.m4
  9669. * src/CookieBoxFactory.cc
  9670. * src/CookieBoxFactory.h
  9671. * src/Makefile.am
  9672. * src/Makefile.in
  9673. * src/Sqlite3MozCookieParser.cc
  9674. * src/Sqlite3MozCookieParser.h
  9675. * src/main.cc
  9676. * test/CookieBoxFactoryTest.cc
  9677. * test/Makefile.am
  9678. * test/Makefile.in
  9679. * test/Sqlite3MozCookieParserTest.cc
  9680. * test/badcookies.sqlite
  9681. * test/cookies.sqlite
  9682. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9683. Added Danish and Greek translations.
  9684. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  9685. Great thanks to all translators.
  9686. * po/LINGUAS
  9687. * po/el.po
  9688. * po/da.po
  9689. * po/es.po
  9690. * po/ca.po
  9691. * po/nn.po
  9692. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9693. Fixed man page: --follow-bittorrent should be --follow-torrent
  9694. * doc/aria2c.1.txt
  9695. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9696. Fixed: numCommand is less than the value specified in -C option.
  9697. * src/RequestGroup.cc
  9698. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. Fixed occasional assertion failure in PieceSegment.
  9700. Calling PieceStorage::getMissingPiece(size_t) was missing after
  9701. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  9702. creation of duplicate segments and one of the segment was finished then
  9703. assertion failure was caused.
  9704. * src/SegmentMan.cc
  9705. * test/SegmentManTest.cc
  9706. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9707. Added options to load/save the server's performance/status to a file
  9708. and the timeout to drop their data.
  9709. --server-stat-of=FILE specifies the file to which performance data
  9710. is saved.
  9711. --server-stat-if=FILE specifies the file to read previously saved
  9712. by --server-stat-of option. Might be used with --uri-selector=feedback.
  9713. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  9714. TIMEOUT is specified in seconds and the default value is 24hours.
  9715. * src/MultiUrlRequestInfo.cc
  9716. * src/OptionHandlerFactory.cc
  9717. * src/RequestGroupMan.cc
  9718. * src/RequestGroupMan.h
  9719. * src/ServerStatMan.cc
  9720. * src/ServerStatMan.h
  9721. * src/option_processing.cc
  9722. * src/prefs.cc
  9723. * src/prefs.h
  9724. * test/ServerStatManTest.cc
  9725. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  9727. * src/ServerStatMan.cc
  9728. * src/ServerStatMan.h
  9729. * test/ServerStatManTest.cc
  9730. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9731. Implemented ServerStatMan::load(...) function and its test case.
  9732. * src/ServerStat.cc
  9733. * src/ServerStat.h
  9734. * src/ServerStatMan.cc
  9735. * test/ServerStatManTest.cc
  9736. * test/ServerStatTest.cc
  9737. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9738. Use time_t instead of int32_t. Use int64_t where milli second is
  9739. expected.
  9740. * src/TimeA2.cc
  9741. * src/TimeA2.h
  9742. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9743. Implemented ServerStatMan::save(...) function and its test case.
  9744. * src/ServerStat.cc
  9745. * src/ServerStat.h
  9746. * src/ServerStatMan.cc
  9747. * src/ServerStatMan.h
  9748. * test/ServerStatManTest.cc
  9749. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9750. Now aria2 uses name attribute in Metalink as local filename in
  9751. BitTorrent downloads. BUG#2033999
  9752. * src/BtContext.h
  9753. * src/BtDependency.cc
  9754. * src/DefaultBtContext.cc
  9755. * src/DefaultBtContext.h
  9756. * src/SingleFileDownloadContext.cc
  9757. * src/SingleFileDownloadContext.h
  9758. * test/BtDependencyTest.cc
  9759. * test/DefaultBtContextTest.cc
  9760. * test/MockBtContext.h
  9761. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9762. Added AC_C_BIGENDIAN
  9763. * src/configure.ac
  9764. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. Limited numCommand less than or equal to the number of piece.
  9766. * src/RequestGroup.cc
  9767. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9768. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  9769. directive.
  9770. * test/DefaultPieceStorageTest.cc
  9771. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9772. Fixed memory leak in test code
  9773. * test/AnnounceListTest.cc
  9774. * test/DefaultPeerListProcessorTest.cc
  9775. * test/DefaultPeerStorageTest.cc
  9776. * test/MetaFileUtilTest.cc
  9777. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9778. Fixed wrong argument passing to BitfieldMan::isBitSet()
  9779. * src/DefaultPieceStorage.cc
  9780. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9781. Initialized _directIOAllowed
  9782. * src/MultiDiskAdaptor.cc
  9783. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9784. Fixed memory leak
  9785. * src/GZipDecoder.cc
  9786. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9787. Fixed memory leak
  9788. * src/MetalinkParserStateMachine.cc
  9789. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. Fixed memory leak
  9791. * src/Dictionary.cc
  9792. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9793. Fixed memory leak
  9794. * src/IteratableChunkChecksumValidator.h
  9795. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9796. Fixed unmatched malloc/free.
  9797. * src/IteratableChunkChecksumValidator.cc
  9798. * src/IteratableChecksumValidator.cc
  9799. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9800. Removed max chunk size check. This change fixes BUG#2040169
  9801. * src/ChunkedDecoder.cc
  9802. * src/ChunkedDecoder.h
  9803. * test/ChunkedDecoderTest.cc
  9804. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Implemented download speed based URI selection algorithm.
  9806. Introduced new option --uri-selector.
  9807. If --uri-selector=feedback is given, aria2 uses download speed observed
  9808. in the previous downloads and chooses fastest server in the URI list.
  9809. Currently at most 10 URIs are considered to introduce randomeness for
  9810. finding better servers. The speed is average download speed in the
  9811. downloads.
  9812. On the other hand, if --uri-selector=inorder is given, which is default,
  9813. URI is tried in order in URI list.
  9814. The usage text for the new option has not been written yet.
  9815. * src/AbstractCommand.cc
  9816. * src/DownloadCommand.cc
  9817. * src/DownloadEngine.cc
  9818. * src/DownloadEngineFactory.cc
  9819. * src/InOrderURISelector.cc
  9820. * src/InOrderURISelector.h
  9821. * src/OptionHandlerFactory.cc
  9822. * src/PeerStat.h
  9823. * src/RequestGroup.cc
  9824. * src/RequestGroup.h
  9825. * src/RequestGroupMan.cc
  9826. * src/RequestGroupMan.h
  9827. * src/SegmentMan.cc
  9828. * src/SegmentMan.h
  9829. * src/ServerStat.cc
  9830. * src/ServerStat.h
  9831. * src/ServerStatMan.cc
  9832. * src/ServerStatMan.h
  9833. * src/ServerStatURISelector.cc
  9834. * src/ServerStatURISelector.h
  9835. * src/URISelector.h
  9836. * src/option_processing.cc
  9837. * src/prefs.cc
  9838. * src/prefs.h
  9839. * test/InOrderURISelectorTest.cc
  9840. * test/RequestGroupManTest.cc
  9841. * test/ServerStatManTest.cc
  9842. * test/ServerStatURISelectorTest.cc
  9843. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9844. * Release 0.15.1+2
  9845. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9846. Bump up version number to 0.15.1+2
  9847. * configure.ac
  9848. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9849. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  9850. * m4/aria2_arg.m4
  9851. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9852. * Release 0.15.1+1
  9853. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9854. Bump up version number to 0.15.1+1
  9855. * configure.ac
  9856. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9857. Fixed the bug that causes segmentaion fault when resuming download
  9858. using metalink without size tag. Reproducible only using HTTP URI.
  9859. * src/HttpResponseCommand.cc
  9860. * src/FtpNegotiationCommand.cc
  9861. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9862. * Release 0.15.1
  9863. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9864. Updated Bulgarian and French translations, thanks to all translators.
  9865. * po/bg.po
  9866. * po/fr.po
  9867. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9868. Bump up version number to 0.15.1
  9869. * configure.ac
  9870. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9871. Avoid repeated call of gettimeofday() when calculating speed.
  9872. * src/SpeedCalc.cc
  9873. * src/SpeedCalc.h
  9874. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9875. Removed writable check when socket's send buffer is full in BitTorrent
  9876. downloads to lower CPU usage.
  9877. * src/PeerInteractionCommand.cc
  9878. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9879. Fixed broken gzip inflation.
  9880. Turn off segmented downloading if gzip content is smaller than or equal
  9881. to 1MiB and inflate the data on the fly, because HTTP response header
  9882. doesn't contain the length of inflated file we can't determin where
  9883. the chunk of data should be written.
  9884. On the other hand, if gzip content is larger than 1MB, then turn off
  9885. on the fly inflation, because some servers returns "content-type: gzip"
  9886. for *.tgz, *.gz files.
  9887. * src/DownloadCommand.cc
  9888. * src/HttpResponseCommand.cc
  9889. * src/HttpResponseCommand.h
  9890. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9891. Applied tizianomueller's patch to fix compile error.
  9892. * test/BitfieldManTest.cc
  9893. * test/BtRequestMessageTest.cc
  9894. * test/DefaultBtContextTest.cc
  9895. * test/DefaultDiskWriterTest.cc
  9896. * test/DefaultPieceStorageTest.cc
  9897. * test/HttpHeaderProcessorTest.cc
  9898. * test/HttpResponseTest.cc
  9899. * test/Metalink2RequestGroupTest.cc
  9900. * test/MetalinkParserControllerTest.cc
  9901. * test/MetalinkProcessorTest.cc
  9902. * test/PeerSessionResourceTest.cc
  9903. * test/UtilTest.cc
  9904. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9905. * Release 0.15.0
  9906. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9907. Reordered src files in POTFILES.in so that usage text appears first.
  9908. * po/POTFILES.in
  9909. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9910. Bump up version number to 0.15.0
  9911. * configure.ac
  9912. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9913. Added Bulgarian translation.
  9914. Updated Catalan, Spanish, French and Japanese translations.
  9915. Thanks to all translators.
  9916. * po/LINGUAS
  9917. * po/bg.po
  9918. * po/ca.po
  9919. * po/es.po
  9920. * po/fr.po
  9921. * po/ja.po
  9922. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9923. Updated feature list. Added libz for dependency section.
  9924. Added a description about unit testing using CppUnit.
  9925. * README
  9926. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. Added a test for libz. Quoted where it is necessary.
  9928. * build_test.sh
  9929. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9930. Added GZip to `Enabled Features' list.
  9931. * src/FeatureConfig.cc
  9932. * src/FeatureConfig.h
  9933. * test/FeatureConfigTest.cc
  9934. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9935. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  9936. the transfer has not yet started.
  9937. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  9938. * src/SegmentMan.cc
  9939. * src/SegmentMan.h
  9940. * test/SegmentManTest.cc
  9941. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9942. Cache last calculated average download/upload speed.
  9943. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  9944. cached value.
  9945. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  9946. * src/PeerStat.h
  9947. * src/SpeedCalc.cc
  9948. * src/SpeedCalc.h
  9949. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9950. Call parseUrl directly.
  9951. * src/Request.cc (resetUrl)
  9952. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9953. Supported absolute/relative path in Location header field.
  9954. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  9955. * src/HttpHeader.cc
  9956. * src/HttpHeader.h
  9957. * src/HttpResponse.cc
  9958. * src/HttpSkipResponseCommand.cc
  9959. * src/Request.cc
  9960. * test/HttpHeaderTest.cc
  9961. * test/HttpResponseTest.cc
  9962. * test/RequestTest.cc
  9963. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9964. Changed help text for --load-cookie option.
  9965. * doc/aria2c.1.txt
  9966. * src/usage_text.h
  9967. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9968. Regenerated test/Makefile.in to remove stale ChangeLog.
  9969. * test/Makefile.in
  9970. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9971. Updated po files.
  9972. * po/aria2c.pot
  9973. * po/*.po
  9974. * po/*.gmo
  9975. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9976. Bump up version number to 0.15.0b
  9977. * configure.ac
  9978. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9979. Externalize messages.
  9980. * src/RequestGroupMan.cc
  9981. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  9982. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9983. Use File::exists() instead of File::isFile() to allow non-regular file
  9984. such as block special files.
  9985. * src/AbstractDiskWriter.cc
  9986. * src/MultiDiskWriter.cc
  9987. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9988. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  9989. * src/gai_strerror.h
  9990. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9991. Fixed compile error. Thanks gknauf for the patch.
  9992. * src/asctime_r.c
  9993. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9994. Included asctime_r.h from a2time.h.
  9995. * src/a2time.h
  9996. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9997. Added a message "aria2 doesn't verify signature" to log message when
  9998. signature file is saved.
  9999. * src/RequestGroupMan.cc
  10000. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10001. Added the ability to save signature when download is completed if
  10002. signature is available. The filename of signature file is the path to
  10003. download file followed by ".sig". If it already exists, then signature
  10004. will not be saved.
  10005. * src/RequestGroupMan.cc
  10006. * src/Signature.cc
  10007. * test/SignatureTest.cc
  10008. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10009. Updated the descriptions for --bt-seed-unverified.
  10010. * doc/aria2c.1
  10011. * doc/aria2c.1.html
  10012. * doc/aria2c.1.txt
  10013. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  10015. that this is not going to verify files using piece hashes.
  10016. * src/HelpItemFactory.cc
  10017. * src/OptionHandlerFactory.cc
  10018. * src/RequestGroup.cc
  10019. * src/option_processing.cc
  10020. * src/prefs.cc
  10021. * src/prefs.h
  10022. * src/usage_text.h
  10023. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10024. Added the ability to retrieve signature from Metalink file.
  10025. A retrieved signature is stored in Signature class and it is held by
  10026. DownloadContext class. Note that aria2 doesn't verify signature.
  10027. * src/DownloadContext.cc
  10028. * src/DownloadContext.h
  10029. * src/Makefile.am
  10030. * src/Makefile.in
  10031. * src/Metalink2RequestGroup.cc
  10032. * src/MetalinkEntry.cc
  10033. * src/MetalinkEntry.h
  10034. * src/MetalinkParserController.cc
  10035. * src/MetalinkParserController.h
  10036. * src/MetalinkParserStateMachine.cc
  10037. * src/MetalinkParserStateMachine.h
  10038. * src/Signature.cc
  10039. * src/Signature.h
  10040. * src/SignatureMetalinkParserState.cc
  10041. * src/SignatureMetalinkParserState.h
  10042. * src/VerificationMetalinkParserState.cc
  10043. * src/VerificationMetalinkParserState.h
  10044. * test/Metalink2RequestGroupTest.cc
  10045. * test/MetalinkParserControllerTest.cc
  10046. * test/MetalinkProcessorTest.cc
  10047. * test/test.xml
  10048. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10049. Close DiskAdaptor after renaming file.
  10050. * src/RequestGroup.cc
  10051. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10052. Corrected indentation
  10053. * src/DefaultBtProgressInfoFile.cc
  10054. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10055. Moved the calls of std::ios::exceptions() inside of try-catch block
  10056. because if an error occurred in constructor of std::fstream, then
  10057. exception is thrown immediately when std::ios::exceptions() is called
  10058. which results unhandled exception and aria2c aborts.
  10059. * src/DefaultBtProgressInfoFile.cc
  10060. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10061. Added the test for the previous change in DefaultBtContext.cc
  10062. * test/DefaultBtContextTest.cc
  10063. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. Fixed the bug that causes infinite loop when the number of pieces are
  10065. fewer than allowed fast set size which is 10 by default.
  10066. * src/DefaultBtContext.cc
  10067. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10068. Updated the descriptions for -j, -s. Added --bt-seed.
  10069. * doc/aria2c.1
  10070. * doc/aria2c.1.html
  10071. * doc/aria2c.1.txt
  10072. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10073. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  10074. aria2 seeds previously downloaded files without validating piece hashs.
  10075. * src/HelpItemFactory.cc
  10076. * src/OptionHandlerFactory.cc
  10077. * src/RequestGroup.cc
  10078. * src/option_processing.cc
  10079. * src/prefs.cc
  10080. * src/prefs.h
  10081. * src/usage_text.h
  10082. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10083. Updated DESCRIPTION of man page.
  10084. * doc/aria2c.1
  10085. * doc/aria2c.1.html
  10086. * doc/aria2c.1.txt
  10087. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10088. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  10089. Don't define `struct addrinfo' when __sun is defined.
  10090. * src/getaddrinfo.h
  10091. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10092. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  10093. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  10094. second argument is of type `struct _stati64'. Otherwise it is defined as
  10095. `struct stat'.
  10096. * src/AbstractDiskWriter.cc
  10097. * src/File.cc
  10098. * src/File.h
  10099. * src/a2io.h
  10100. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Fixed the compile error in hurd-i386
  10102. See the original bug report:
  10103. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  10104. * src/a2io.h
  10105. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10106. Code cleanup.
  10107. * src/PeerAbstractCommand.cc
  10108. * src/PeerAbstractCommand.h
  10109. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10110. Removed TransferEncoding.
  10111. * src/DownloadCommand.cc
  10112. * src/DownloadCommand.h
  10113. * src/HttpResponseCommand.cc
  10114. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10115. Updated po files.
  10116. * po/aria2c.pot
  10117. * po/*.po
  10118. * po/*.gmo
  10119. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  10121. * src/A2STR.cc
  10122. * src/A2STR.h
  10123. * src/ChunkedDecoder.cc
  10124. * src/ChunkedDecoder.h
  10125. * src/ChunkedEncoding.cc: Removed
  10126. * src/ChunkedEncoding.h: Removed
  10127. * src/DownloadCommand.cc
  10128. * src/DownloadCommand.h
  10129. * src/HttpDownloadCommand.cc
  10130. * src/HttpResponse.cc
  10131. * src/HttpResponse.h
  10132. * src/HttpResponseCommand.cc
  10133. * src/HttpSkipResponseCommand.cc
  10134. * src/HttpSkipResponseCommand.h
  10135. * src/Makefile.am
  10136. * src/TransferEncoding.h: Removed
  10137. * test/ChunkedDecoderTest.cc
  10138. * test/ChunkedEncodingTest.cc: Removed
  10139. * test/HttpResponseTest.cc
  10140. * test/Makefile.am
  10141. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10142. Use append instead of insert.
  10143. * src/GZipDecoder.cc
  10144. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10145. Updated doc
  10146. * src/Decoder.h
  10147. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10148. Updated usage text for -s option.
  10149. * src/usage_text.h
  10150. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10151. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  10152. * src/Request.cc
  10153. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10154. Cleaned up configure.ac.
  10155. * configure.ac
  10156. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10157. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  10158. AC_ARG_ENABLE.
  10159. * configure.ac
  10160. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10161. Added gzip, deflate decoding support in HTTP using libz. If compiled
  10162. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  10163. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  10164. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  10165. fly and writes decoded data to a local disk.
  10166. * README
  10167. * README.html
  10168. * configure.ac
  10169. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  10170. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  10171. * m4/libz.m4
  10172. * src/Decoder.h
  10173. * src/DownloadCommand.cc
  10174. * src/DownloadCommand.h
  10175. * src/Exception.h
  10176. * src/GZipDecoder.cc
  10177. * src/GZipDecoder.h
  10178. * src/HttpHeader.cc
  10179. * src/HttpHeader.h
  10180. * src/HttpRequest.cc
  10181. * src/HttpRequest.h
  10182. * src/HttpResponse.cc
  10183. * src/HttpResponse.h
  10184. * src/HttpResponseCommand.cc
  10185. * src/Makefile.am
  10186. * test/GZipDecoderTest.cc
  10187. * test/HttpRequestTest.cc
  10188. * test/HttpResponseTest.cc
  10189. * test/Makefile.am
  10190. * test/Makefile.in
  10191. * test/gzip_decode_test.gz
  10192. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10193. Clarified usage of -j option.
  10194. * src/usage_text.h
  10195. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10196. Disabled getting size from the response of RETR.
  10197. If SIZE command failed, then disable resuming and segmented downloading.
  10198. * src/FtpConnection.cc
  10199. * src/FtpConnection.h
  10200. * src/FtpNegotiationCommand.cc
  10201. * src/FtpNegotiationCommand.h
  10202. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10203. Use digits to find first byte of file size, which makes the intention
  10204. of the code clearer.
  10205. * src/FtpConnection.cc
  10206. Don't call validateTotalLength() when size is 0.
  10207. * src/FtpNegotiationCommand.cc
  10208. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10209. Updated po files.
  10210. * po/aria2c.pot
  10211. * po/*.gmo
  10212. * po/*.po
  10213. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10214. Clarified usage text for --split option.
  10215. * src/usage_text.h
  10216. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10217. Bump up version number to 0.15.0dev. "dev" means "development"
  10218. version, which means I started the development of the next release!
  10219. * src/configure.ac
  10220. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10221. If FTP server returns negative response with REST raw command and
  10222. requested range is not 0, throw exception. If requested range is 0,
  10223. continue download a file from 0 byte.
  10224. * src/FtpNegotiationCommand.cc
  10225. * src/FtpNegotiationCommand.h
  10226. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10227. Supported FTP server which don't recognize SIZE raw command.
  10228. If SIZE raw command is failed, aria2 will try to get file size
  10229. from the response of RETR raw command. If both attempts are failed,
  10230. then resuming and segmented downloading are disabled.
  10231. * src/FtpConnection.cc
  10232. * src/FtpConnection.h
  10233. * src/FtpNegotiationCommand.cc
  10234. * src/FtpNegotiationCommand.h
  10235. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10236. * Release 0.14.0+1
  10237. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10238. Bump up version number to 0.14.0+1
  10239. * src/configure.ac
  10240. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10241. Fixed the code that refers static member variable from non-static
  10242. context.
  10243. * src/DefaultPeerStorage.cc
  10244. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10245. * Release 0.14.0
  10246. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10247. Added build test script
  10248. * build_test.sh
  10249. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10250. Updated ja.po
  10251. * src/ja.po
  10252. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10253. Bump up version number to 0.14.0
  10254. * src/configure.ac
  10255. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10256. Updated ja.po and fr.po. Great thanks for french translators and
  10257. Sebastien WILLEMIJNS.
  10258. * po/fr.po
  10259. * po/ja.po
  10260. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10261. Added configure option to enable/disable epoll support.
  10262. * configure.ac
  10263. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10264. Updated man page.
  10265. * doc/aria2c.1.txt
  10266. * doc/aria2c.1
  10267. * doc/aria2c.1.html
  10268. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10269. Added missing default value '5' to the usage of --split option.
  10270. * src/HelpItemFactory.cc
  10271. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10272. Filled up pieces based on the number of missing blocks, rather than
  10273. simplay the number of piece * block length.
  10274. * src/BtRequestFactory.h
  10275. * src/DefaultBtInteractive.cc
  10276. * src/DefaultBtInteractive.h
  10277. * src/DefaultBtRequestFactory.cc
  10278. * src/DefaultBtRequestFactory.h
  10279. * src/Piece.cc
  10280. * src/Piece.h
  10281. * test/BitfieldManTest.cc
  10282. * test/DefaultBtRequestFactoryTest.cc
  10283. * test/MockBtRequestFactory.h
  10284. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10285. Made _epEvents a member variable.
  10286. * src/DownloadEngine.cc
  10287. * src/DownloadEngine.h
  10288. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10289. Cancel download if http redirect is bounded more than 20 times.
  10290. * src/AbstractCommand.cc
  10291. * src/HttpSkipResponseCommand.cc
  10292. * src/Request.cc
  10293. * src/Request.h
  10294. * test/RequestTest.cc
  10295. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10296. Fixed unhandled exception(removed keyword `new').
  10297. * src/SocketCore.cc (initEPOLL)
  10298. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10299. Removed visit(const MetaEntry*)
  10300. * src/MetaEntryVisitor.h:
  10301. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  10302. and made them virtual.
  10303. * src/BencodeVisitor.h
  10304. * src/BencodeVisitor.cc
  10305. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10306. Updated po files.
  10307. * po/aria2c.pot
  10308. * po/*.po
  10309. * po/*.gmo
  10310. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10311. Moved the call setWriteCheckSocket inside the previous clause to reduce
  10312. the number of socket to watch out.
  10313. * src/PeerInteractionCommand.cc
  10314. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10315. When there is not enough space in disk when writing a chunk of data,
  10316. aria2 now prints the message to the console to warn user and aborts
  10317. its download. Not all downloads are canceled because some downloads
  10318. may use another disk or partition. BUG#1640332
  10319. * src/AbstractDiskWriter.cc
  10320. * src/PeerAbstractCommand.cc
  10321. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  10322. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  10323. setHaltRequested(true) to cancel download.
  10324. * src/PeerInteractionCommand.h
  10325. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10326. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  10327. socket from int to sock_t as sockets are unsigned in Windows.
  10328. For AsyncNameResolver, DownloadEngine, I did additional modification
  10329. for the portion of the code changed according to epoll support.
  10330. I defined sock_t in a2netcompat.h to use sock_t without including
  10331. SocketCore.h.
  10332. * src/AsyncNameResolver.cc
  10333. * src/AsyncNameResolver.h
  10334. * src/DownloadEngine.cc
  10335. * src/DownloadEngine.h
  10336. * src/SocketCore.cc
  10337. * src/SocketCore.h
  10338. * src/a2netcompat.h
  10339. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10340. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  10341. changes in the patch were applied.
  10342. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  10343. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  10344. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  10345. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10346. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  10347. a2io.h and common.h were modified.
  10348. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  10349. MinGW.
  10350. * src/common.h: Changed off_t to 64 bit in MinGW.
  10351. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10352. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  10353. only a2netcompat.h is modified.
  10354. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  10355. directives.
  10356. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10357. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  10358. only gai_strerror.h is modified.
  10359. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  10360. winsock errors in MinGW.
  10361. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10362. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  10363. follow sources are applied.
  10364. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  10365. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  10366. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  10367. I included locale.h from Platform.cc.
  10368. * src/main.cc: Moved common setup/teardown code to Platform class.
  10369. * test/AllTest.cc: Use Platform class.
  10370. Set locale to C in AllTest.cc to prevent the messages to be localized.
  10371. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10372. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  10373. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  10374. * test/HttpRequestTest.cc: Casted to off_t where it should.
  10375. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10376. Applied Ross's aria2-0.13.2+1-mingw.patch and
  10377. aria2-0.13.2+1-mingw-2.patch.
  10378. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  10379. systems which don't have termious.h. I moved the directive inside of
  10380. if(isTTY) { ... clause so that line is wiped out without termious.h.
  10381. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  10382. anyway.
  10383. * src/asctime_r.h
  10384. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  10385. I added 2nd argument to the prototype declaration.
  10386. * src/StringFormat.cc: Get rid of vasprintf.
  10387. * src/getaddrinfo.h: Fixed constants.
  10388. * configure.ac: Added the check for asctime_r function.
  10389. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  10390. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10391. Added writable test for Socket when the sending message is in progress.
  10392. Usually the sending message is piece message. Without wriable check,
  10393. upload latency is dropped to more than 1sec.
  10394. * src/PeerInteractionCommand.cc
  10395. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10396. Create only requested files and files which shares a piece with
  10397. requested file in multi-torrent downloads. Directory structures are
  10398. also created in the same rule.
  10399. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  10400. DiskWriterEntry as in the previous implementation.
  10401. * src/MultiDiskWriter.cc
  10402. * src/MultiFileAllocationIterator.cc
  10403. * src/MultiFileAllocationIterator.h
  10404. * test/MultiFileAllocationIteratorTest.cc
  10405. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10406. Commented out -lprofiler
  10407. * src/Makefile.am
  10408. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10409. Bump up version number to 0.14.0b.
  10410. * src/configure.ac
  10411. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10412. Actively establish connection to peers in seeding, when peer cache
  10413. is not full and max upload speed limit is not reached.
  10414. * src/ActivePeerConnectionCommand.cc
  10415. * src/ActivePeerConnectionCommand.h
  10416. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10417. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  10418. to make room more fleshy, recently found peers.
  10419. Peer::_badConditionStartTime is not used anymore. Consider to remove
  10420. it.
  10421. * src/DefaultPeerStorage.cc
  10422. * test/DefaultPeerStorageTest.cc
  10423. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10424. Returns cached data only when the previous receiveHandshake() is called
  10425. with peek = true.
  10426. * src/PeerConnection.cc (receiveHandshake)
  10427. * src/PeerConnection.h (receiveHandshake)
  10428. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10429. Changed default value of -s option from 1 to 5.
  10430. Also max value of -s option is changed from 5 to 16.
  10431. * src/HelpItemFactory.cc
  10432. * src/OptionHandlerFactory.cc
  10433. * src/option_processing.cc
  10434. * src/usage_text.h
  10435. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10436. Changed -s options behavior. Now it means the number of connections
  10437. made simultaneously in each http/ftp download.
  10438. If 1 URL is specified, the behavior is the same with old implementation.
  10439. If -s N is given and more than N URLs are specified, first N URLs are
  10440. used and remaining URLs are used for backup. If less than N URLs are
  10441. specified, some of URLs are used more than once so that totally N
  10442. connections are made simultaneously.
  10443. * src/main.cc
  10444. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10445. Included missing iosfwd or ostream header.
  10446. * src/RequestGroupMan.cc
  10447. * src/TaggedItem.cc
  10448. * src/TaggedItem.h
  10449. * src/Util.cc
  10450. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10451. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  10452. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  10453. * src/HttpConnection.cc: Included missing sstream.
  10454. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10455. Added --bt-max-open-files option.
  10456. * src/DefaultPieceStorage.cc
  10457. * src/HelpItemFactory.cc
  10458. * src/MultiDiskAdaptor.cc
  10459. * src/MultiDiskAdaptor.h
  10460. * src/OptionHandlerFactory.cc
  10461. * src/option_processing.cc
  10462. * src/prefs.cc
  10463. * src/prefs.h
  10464. * src/usage_text.h
  10465. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10466. Fixed the bug that aria2 aborts when a path to a directory is given
  10467. in command-line.
  10468. * src/ProtocolDetector.cc
  10469. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10470. Limited the number files opened in each BitTorrent download. The default
  10471. value is 100. The option to change this value will be added.
  10472. * src/MultiDiskAdaptor.cc
  10473. * src/MultiDiskAdaptor.h
  10474. * src/MultiFileAllocationIterator.cc
  10475. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. Fixed the bug that HTTP downloads don't start with old libraries.
  10477. * src/HttpHeaderProcessor.cc
  10478. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10479. Use empty() instead of size() > 0.
  10480. * src/HttpConnection.cc
  10481. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10482. Drop connection if the incoming peer ID is the same with localhost's
  10483. one. The previous implementation drops connection when incoming peer's
  10484. IP address is the same with localhost's one.
  10485. * src/PeerListenCommand.cc
  10486. * src/DefaultBtInteractive.cc
  10487. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10488. Returns cached data without checking whether socket is readable
  10489. if the cache is available.
  10490. * src/PeerConnection.cc (receiveHandshake)
  10491. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10492. Included stdint.h
  10493. * src/common.h
  10494. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10495. Removed duplicate HAVE_GETTIMEOFDAY
  10496. * src/Makefile.am
  10497. * src/Makefile.in
  10498. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10499. Use interval as a minInterval when minInterval is not supplied.
  10500. * src/DefaultBtAnnounce.cc
  10501. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10502. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  10503. attempt is failed, then 2nd attempt get kicked out more quickly.
  10504. And it is now static const member of DefaultBtAnnounce.
  10505. * src/DefaultBtAnnounce.h
  10506. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10507. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  10508. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  10509. * src/ActivePeerConnectionCommand.cc
  10510. * src/BtConstants.h
  10511. * src/BtRuntime.h
  10512. * src/DHTGetPeersCommand.cc
  10513. * src/DefaultBtAnnounce.cc
  10514. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  10515. BtRuntime::MAX_PEERS.
  10516. * src/DefaultPeerStorage.h
  10517. * src/InitiatorMSEHandshakeCommand.cc
  10518. * src/PeerInitiateConnectionCommand.cc
  10519. * src/PeerInteractionCommand.cc
  10520. * src/PeerReceiveHandshakeCommand.cc
  10521. * src/TrackerWatcherCommand.cc
  10522. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10523. Always Connect to _numNewConnection
  10524. * src/ActivePeerConnectionCommand.cc
  10525. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10526. Made `begin' unsigned int.
  10527. * src/GrowSegment.h
  10528. * src/Piece.cc
  10529. * src/Piece.h
  10530. * src/PiecedSegment.cc
  10531. * src/PiecedSegment.h
  10532. * src/Segment.h
  10533. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10534. Calculate piece hash when data is arrived if the data is arrived in
  10535. order. This removes additional read operation for hash calculation.
  10536. If the data is arrived in out of order, the hash is calucated when the
  10537. piece is completed. This is the same behavior as the old implementation.
  10538. * src/BtPieceMessage.cc
  10539. * src/DefaultBtProgressInfoFile.cc
  10540. * src/DefaultPieceStorage.cc
  10541. * src/DownloadCommand.cc
  10542. * src/DownloadCommand.h
  10543. * src/DownloadEngine.cc
  10544. * src/GrowSegment.cc
  10545. * src/GrowSegment.h
  10546. * src/Piece.cc
  10547. * src/Piece.h
  10548. * src/PiecedSegment.cc
  10549. * src/PiecedSegment.h
  10550. * src/Segment.h
  10551. * test/PieceTest.cc
  10552. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10553. Try to keep the ordering of outgoing piece message.
  10554. * src/DefaultBtMessageDispatcher.cc
  10555. (DefaultBtMessageDispatcher::sendMessages)
  10556. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10557. Fixed busy loop when error/hup epoll events occur.
  10558. * src/AbstractCommand.cc
  10559. * src/PeerAbstractCommand.cc
  10560. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10561. Added --bt-request-peer-speed-limit option, which was a constant
  10562. SLOW_SPEED_THRESHOLD.
  10563. * src/ActivePeerConnectionCommand.cc
  10564. * src/ActivePeerConnectionCommand.h
  10565. * src/BtConstants.h
  10566. * src/HelpItemFactory.cc
  10567. * src/OptionHandlerFactory.cc
  10568. * src/PeerReceiveHandshakeCommand.cc
  10569. * src/option_processing.cc
  10570. * src/prefs.cc
  10571. * src/prefs.h
  10572. * src/usage_text.h
  10573. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10574. Removed repeated call of getTopDirPath(). Instead, call it once and
  10575. cache the result.
  10576. * src/MultiDiskAdaptor.cc
  10577. * src/MultiDiskAdaptor.h
  10578. (mkdir, openFile, initAndOpenFile, openExistingFile)
  10579. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10580. Fixed compile error on debian etch.
  10581. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  10582. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  10583. it is undefined.
  10584. * src/Util.cc (ULLONG_MAX)
  10585. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10586. Added epoll support. Use epoll if it is available. If not, use select.
  10587. When async dns is enabled in compile time, epoll support is enabled
  10588. only when aria2 is built with c-ares. This condition statement is
  10589. defined in a2io.h.
  10590. Currently aria2 supports both c-ares and ares, but ares is maintained
  10591. for quite a while and debian already has c-ares package, ares support
  10592. will be dropped in the future version.
  10593. * configure.ac
  10594. * src/AbstractCommand.cc
  10595. * src/AsyncNameResolver.cc
  10596. * src/AsyncNameResolver.h
  10597. * src/Command.cc
  10598. * src/Command.h
  10599. * src/DownloadEngine.cc
  10600. * src/DownloadEngine.h
  10601. * src/PeerAbstractCommand.cc
  10602. * src/SocketCore.cc
  10603. * src/SocketCore.h
  10604. * src/a2io.h
  10605. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10606. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  10607. directive.
  10608. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10609. Do not do write operation to /dev/null file.
  10610. * src/LogFactory.cc
  10611. * src/SimpleLogger.cc
  10612. Replaced vasprintf with vsnprintf
  10613. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  10614. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10615. * src/BtRequestMessage.cc
  10616. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  10617. for segmentation fault caused by previous commit.
  10618. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10619. Reduced the usage of gettimeofday().
  10620. * src/DefaultBtMessageDispatcher.cc
  10621. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  10622. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10623. * src/RequestSlot.cc
  10624. * src/RequestSlot.h
  10625. (RequestSlot::isTimeout)
  10626. Made RequestSlot have a reference to Piece object to avoid find
  10627. Piece repeatedly.
  10628. * src/DefaultBtMessageDispatcher.cc
  10629. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  10630. * src/RequestSlot.cc
  10631. * src/RequestSlot.h
  10632. (RequestSlot::getPiece)
  10633. * test/DefaultBtMessageDispatcherTest.cc
  10634. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10635. * src/TimeA2.cc
  10636. * src/TimeA2.h
  10637. (Time::difference): New function.
  10638. (Time::elapsed): Done optimization.
  10639. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10640. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  10641. directive.
  10642. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10643. * src/option_processing.cc: Added missing `defined' keyword to #if
  10644. directive.
  10645. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10646. Bump up version number to 0.13.2+1
  10647. * src/configure.ac
  10648. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10649. Refactored broken outstanding piece handling.
  10650. * src/DefaultPieceStorage.cc
  10651. * src/DefaultPieceStorage.h
  10652. * src/Piece.cc
  10653. * src/Piece.h
  10654. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10655. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  10656. name collision of static variable and predefined macro.
  10657. * src/BtContext.cc
  10658. * src/BtContext.h
  10659. * src/CookieBoxFactory.cc
  10660. * src/CookieBoxFactory.h
  10661. * src/CookieParser.cc
  10662. * src/CookieParser.h
  10663. * src/DefaultBtContext.cc
  10664. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10665. * src/RequestGroup.cc
  10666. (RequestGroup::createInitialCommand): Use empty() instead of size().
  10667. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10668. * Release 0.13.2
  10669. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10670. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  10671. * po/fr.po
  10672. * po/ja.po
  10673. * po/aria2c.pot
  10674. * po/*.po
  10675. * po/*.gmo
  10676. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10677. Bump up version number to 0.13.2
  10678. * src/configure.ac
  10679. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10680. Refactord.
  10681. * src/RequestGroupMan.cc
  10682. (removeStoppedGroup)
  10683. (fillRequestGroupFromReserver)
  10684. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10685. Fixed compile error on Ubuntu.
  10686. * src/BtPieceMessage.cc
  10687. * src/MessageDigestHelper.cc
  10688. * src/Util.cc
  10689. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10690. Fixed compile error when configured with --disable-bittorrent
  10691. * test/DownloadHandlerFactoryTest.cc
  10692. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10693. Done make update-po
  10694. * po/aria2c.pot
  10695. * po/*.po
  10696. * po/*.gmo
  10697. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10698. Bump up version number to 0.13.2rc.
  10699. * src/configure.ac
  10700. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10701. Made option name bold. Updated SYNOPSIS to make it more readable.
  10702. * doc/aria2c.1.txt
  10703. * doc/aria2c.1
  10704. * doc/aria2c.1.html
  10705. * src/version_usage.cc
  10706. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10707. Refactored. Use std::string instead of size and char*.
  10708. * Data.cc
  10709. * Data.h
  10710. * test/Data.cc
  10711. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10712. Added trimSelf(). Rewritten trim() to use trimSelf().
  10713. * Util.cc
  10714. * Util.h
  10715. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10716. * src/ChunkChecksum.h (getChecksum): Return const reference.
  10717. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. Fixed compile error when configured with --disable-metalink.
  10719. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  10720. * test/FeatureConfigTest.cc
  10721. * test/DownloadHandlerFactoryTest.cc
  10722. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10723. Fixed compile error when configured with --without-gnutls
  10724. --without-openssl
  10725. * src/main.cc
  10726. * test/DefaultBtProgressInfoFileTest.cc
  10727. * test/SegmentManTest.cc
  10728. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10729. Fixed compile error with OpenSSL.
  10730. * src/IteratableChunkChecksumValidator.cc
  10731. * src/LibsslDHKeyExchange.h
  10732. * src/MessageDigestHelper.cc
  10733. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10734. Revert the default value of --max-concurrent-downloads to 5.
  10735. Revert the default value of --metalink-servers to 5.
  10736. Man pages was also updated.
  10737. * src/option_processing.cc
  10738. * doc/aria2c.1.txt
  10739. * doc/aria2c.1.html
  10740. * doc/aria2c.1
  10741. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10742. Returns const reference:
  10743. DownloadContext::getPieceHash, DownloadContext::getName,
  10744. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  10745. BtContext::getInfoHashAsString,
  10746. * src/BtContext.h
  10747. * src/DefaultBtContext.cc
  10748. * src/DefaultBtContext.h
  10749. * src/DownloadContext.h
  10750. * src/SingleFileDownloadContext.h
  10751. * test/MockBtContext.h
  10752. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10753. * src/RequestGroup.h (getDir): Removed.
  10754. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10755. Returns const reference. The internal urlencode function was optimized
  10756. a little bit.
  10757. * src/Request.cc
  10758. * src/Request.h
  10759. * src/HttpRequest.cc
  10760. * src/HttpRequest.h
  10761. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10762. Defined option name and possible values as std::string to reduce
  10763. temporary string object creation in runtime.
  10764. * src/HelpItemFactory.cc
  10765. * src/LogFactory.cc
  10766. * src/Option.cc
  10767. * src/OptionHandlerFactory.cc
  10768. * src/option_processing.cc
  10769. * src/prefs.cc
  10770. * src/prefs.h
  10771. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10772. Return const reference.
  10773. * src/DownloadHandlerConstants.cc
  10774. * src/DownloadHandlerConstants.h
  10775. (getMetalinkExtensions)
  10776. (getMetalinkContentTypes)
  10777. (getBtExtensions)
  10778. (getBtContentTypes)
  10779. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10780. * src/HttpHeader.cc (get): Rewritten.
  10781. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10782. Make HttpHeader::getFirst(...) return const reference.
  10783. * src/HttpHeader.cc
  10784. * src/HttpHeader.h
  10785. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10786. Use Option::getAsBool(...) instead of Option::get(...) and compare
  10787. it with V_TRUE.
  10788. * src/DefaultPieceStorage.cc
  10789. * src/DownloadCommand.cc
  10790. * src/FtpNegotiationCommand.cc
  10791. * src/HttpRequest.cc
  10792. * src/InitiateConnectionCommand.cc
  10793. * src/RequestGroup.cc
  10794. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10795. Made Option::get(...) return const reference of std::string.
  10796. * src/Option.cc
  10797. * src/Option.h
  10798. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10799. Replaced std:copy with insert.
  10800. * src/DefaultBtMessageDispatcher.cc
  10801. * src/DefaultPieceStorage.cc
  10802. * src/DownloadEngineFactory.cc
  10803. * src/RequestGroup.cc
  10804. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10805. Included SocketCore.h to fix compiler warning.
  10806. * src/InitiateConnectionCommand.cc
  10807. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10808. Put piece selection strategy algorithm to RarestPieceSelector class,
  10809. Added a switch to choose whether randomized selection so that unit
  10810. tests emit same results in, possibly, win32.
  10811. * src/DefaultPieceStorage.cc
  10812. * src/DefaultPieceStorage.h
  10813. * src/RarestPieceSelector.cc
  10814. * src/RarestPieceSelector.h
  10815. * test/DefaultPieceStorageTest.cc
  10816. * test/RarestPieceSelectorTest.cc
  10817. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10818. Don't pool connection if HTTP proxy is enabled.
  10819. * src/FtpFinishDownloadCommand.cc
  10820. * src/FtpNegotiationCommand.cc
  10821. * src/HttpSkipResponseCommand.cc
  10822. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10823. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  10824. * src/AbstractCommand.cc
  10825. * src/AbstractCommand.h
  10826. * src/ActivePeerConnectionCommand.cc
  10827. * src/FtpInitiateConnectionCommand.cc
  10828. * src/HttpInitiateConnectionCommand.cc
  10829. * src/InitiateConnectionCommandFactory.cc
  10830. * src/PeerAbstractCommand.cc
  10831. * src/PeerAbstractCommand.h
  10832. * src/PeerInitiateConnectionCommand.cc
  10833. * src/TrackerWatcherCommand.cc
  10834. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10835. Sort RequestSlot in ascending order and manipulate them using
  10836. lower_bound.
  10837. * src/DefaultBtMessageDispatcher.cc
  10838. * src/DefaultBtMessageDispatcher.h
  10839. (getMessageQueue): Added const qualifier.
  10840. (getRequestSlots): Added const qualifier.
  10841. (sendMessages): Use empty() instead of size().
  10842. (doCancelSendingPieceAction): Use HandleEvent object.
  10843. (doAbortOutstandingRequestAction): Rewritten.
  10844. (doChokedAction): Rewritten.
  10845. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  10846. (isOutstandingRequest): Rewritten.
  10847. (getOutstandingRequest): Rewritten.
  10848. (removeOutstandingRequest): Rewritten.
  10849. (addOutstandingRequest): Rewritten.
  10850. * src/RequestSlot.cc
  10851. * src/RequestSlot.h
  10852. (operator=): Rewritten.
  10853. (operator!=): New function.
  10854. (operator<): New function.
  10855. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10856. * src/DefaultBtRequestFactory.cc
  10857. (doChokedAction): Rewritten.
  10858. (removeCompletedPiece): Rewritten.
  10859. (removeTargetPiece): Rewritten.
  10860. (createRequestMessages): Added the debug log.
  10861. (createRequestMessagesOnEndGame: Added the debug log.
  10862. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10863. Added the debug log message.
  10864. * src/BtPieceMessage.cc (doReceivedAction)
  10865. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10866. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  10867. used lower_bound to process them rather than linear search.
  10868. * src/DHTPeerAnnounceStorage.cc
  10869. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10870. Call subtractPieceStats from ~PeerInteractionCommand only when the
  10871. peer has at least one completed piece.
  10872. * src/Peer.cc
  10873. * src/Peer.h
  10874. * src/PeerInteractionCommand.cc
  10875. * src/PeerSessionResource.cc
  10876. * src/PeerSessionResource.h
  10877. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10878. Removed unnecessary sorting
  10879. * src/DefaultPieceStorage (DefaultPieceStorage)
  10880. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10881. Rewritten the portion of the code that mangaes allowed fast indexes.
  10882. * src/PeerSessionResource.cc
  10883. * src/PeerSessionResource.h
  10884. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10885. Removed the invalid string including '\r' from ru.po and
  10886. did make update-po.
  10887. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10888. Added --log-level and --summary-interval to man page.
  10889. * doc/aria2c.1.txt
  10890. * doc/aria2c.1.html
  10891. * doc/aria2c.1
  10892. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10893. Added --log-level option to specify log level. Log messages under
  10894. the specified level are not output. Default value is `debug'.
  10895. * src/HelpItemFactory.cc
  10896. * src/LogFactory.cc
  10897. * src/LogFactory.h
  10898. * src/Logger.h
  10899. * src/OptionHandlerFactory.cc
  10900. * src/SimpleLogger.cc
  10901. * src/SimpleLogger.h
  10902. * src/main.cc
  10903. * src/option_processing.cc
  10904. * src/prefs.h
  10905. * src/usage_text.h
  10906. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10907. Print download progress summary of all parallel downloads in specified
  10908. interval, default 60 secs. While aria2 could download several files
  10909. in parallel (see -j option), it displayed just first download progress,
  10910. and the other downloads are hidden from the users. This new feature
  10911. prints all downloads currently in-progress to the console so that you
  10912. can check the status of all downloads. The interval can be adjusted
  10913. by --summary-interval option.
  10914. The progress readout is now cut so that all fits in the one line of
  10915. console.
  10916. * src/ConsoleStatCalc.cc
  10917. * src/ConsoleStatCalc.h
  10918. * src/HelpItemFactory.cc
  10919. * src/OptionHandlerFactory.cc
  10920. * src/RequestGroupMan.cc
  10921. * src/RequestGroupMan.h
  10922. * src/main.cc
  10923. * src/option_processing.cc
  10924. * src/prefs.h
  10925. * src/usage_text.h
  10926. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10927. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  10928. * src/DownloadEngine.cc (DownloadEngine)
  10929. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10930. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  10931. defined.
  10932. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  10933. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10934. Use erase+lower_bound+insert instead of sort.
  10935. * src/DefaultPieceStorage.cc (addPieceStats)
  10936. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10937. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  10938. * src/A2STR.cc
  10939. * src/A2STR.h
  10940. * src/OptionParser.cc (parse)
  10941. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10942. Defined fake filename `[tracker.announce]' as static const std::string.
  10943. * src/TrackerWatcherCommand.cc (createRequestGroup)
  10944. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10945. Defined default filename `index.html' as static const std::string
  10946. * src/SingleFileDownloadContext.cc
  10947. * src/SingleFileDownloadContext.h
  10948. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10949. Defined "[MEMORY]" as static const std::string.
  10950. * src/MemoryBufferPreDownloadHandler.cc (execute)
  10951. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10952. Defined control file's version number as static const std::string.
  10953. * src/DefaultBtProgressInfoFile.cc
  10954. * src/DefaultBtProgressInfoFile.h
  10955. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10956. Use Request::METHOD_GET
  10957. * src/RequestGroup.cc (createNextCommandWithAdj)
  10958. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10959. Defined "OK", "ERR", "INPR" as static const std::string
  10960. * src/RequestGroupMan.cc (showDownloadResults)
  10961. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10962. Defined default client used in extended handshake as static const
  10963. std::string
  10964. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  10965. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10966. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  10967. * src/HttpConnection.cc (eraseConfidentialInfo)
  10968. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10969. Defined default ftp user and password as static const std::string
  10970. * src/AuthConfigFactory.cc
  10971. * src/AuthConfigFactory.h
  10972. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10973. Defined strings used in netrc as static const std::string
  10974. * src/Netrc.cc
  10975. * src/Netrc.h
  10976. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10977. Defined HTTP status as static const std::string
  10978. * src/AbstractProxyResponseCommand.cc
  10979. * src/HttpHeader.cc
  10980. * src/HttpHeader.h
  10981. * src/HttpResponse.cc
  10982. * src/HttpResponseCommand.cc
  10983. * src/HttpSkipResponseCommand.cc
  10984. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10985. Defined "\r\n", "A", "I" as static const std::string
  10986. * src/A2STR.cc
  10987. * src/A2STR.h
  10988. * src/FtpConnection.cc
  10989. * src/FtpConnection.h
  10990. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10991. Added COLON_C(".") and used it in Request::parseUrl()
  10992. * src/A2STR.cc
  10993. * src/A2STR.h
  10994. * src/Request.cc (parseUrl)
  10995. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10996. Changed the type of padName from `const std::string&' to `const char*'.
  10997. * src/MSEHandshake.cc (verifyPadLength)
  10998. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10999. Defined "sha1" as static const std::string.
  11000. * src/MetalinkParserController.cc
  11001. * src/MetalinkParserController.h
  11002. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11003. Defined message digest algorithm name as static const std::string
  11004. * src/DHTTokenTracker.cc
  11005. * src/DHTUtil.cc
  11006. * src/DefaultBtContext.cc
  11007. * src/MSEHandshake.cc
  11008. * src/MessageDigestHelper.cc
  11009. * src/Peer.cc
  11010. * src/messageDigest.cc
  11011. * src/messageDigest.h
  11012. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11013. Made string literals used in SAX parser static const std::string.
  11014. * src/FileMetalinkParserState.cc
  11015. * src/FileMetalinkParserState.h
  11016. * src/FilesMetalinkParserState.cc
  11017. * src/FilesMetalinkParserState.h
  11018. * src/InitialMetalinkParserState.cc
  11019. * src/InitialMetalinkParserState.h
  11020. * src/MetalinkMetalinkParserState.cc
  11021. * src/MetalinkMetalinkParserState.h
  11022. * src/PiecesMetalinkParserState.cc
  11023. * src/PiecesMetalinkParserState.h
  11024. * src/ResourcesMetalinkParserState.cc
  11025. * src/ResourcesMetalinkParserState.h
  11026. * src/VerificationMetalinkParserState.cc
  11027. * src/VerificationMetalinkParserState.h
  11028. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11029. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  11030. * src/A2STR.cc
  11031. * src/A2STR.h
  11032. * src/File.cc
  11033. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11034. Defined static const std::string IP("ip"), PORT("port") and use them
  11035. instead of string literals.
  11036. * src/DefaultPeerListProcessor.cc
  11037. * src/DefaultPeerListProcessor.h
  11038. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11039. Made string literals for torrent file processing static const
  11040. std::string.
  11041. * src/BtContext.cc
  11042. * src/BtContext.h
  11043. * src/DefaultBtContext.cc
  11044. * src/DefaultBtContext.h
  11045. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11046. Made string literal for tracker response static const std::string
  11047. * src/BtAnnounce.cc
  11048. * src/BtAnnounce.h
  11049. * src/DefaultBtAnnounce.cc
  11050. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11051. Use DHTMessage::T instead of "t".
  11052. * src/DHTMessageTracker.cc (messageArrived)
  11053. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11054. Made keyName static const. Made trimmed charset static const
  11055. std::string.
  11056. * src/Util.cc (getContentDispositionFilename)
  11057. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11058. Made USER_AGENT const. Made "/" static const std::string.
  11059. * src/A2STR.cc
  11060. * src/A2STR.h
  11061. * src/HttpRequest.cc
  11062. * src/HttpRequest.h
  11063. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11064. Made string listeral to static const std::string:
  11065. "Content-Range", "Content-Length"
  11066. * src/HttpHeader.cc
  11067. * src/HttpHeader.h
  11068. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11069. Made string listeral to static const std::string.
  11070. * src/HttpConnection.cc
  11071. * src/HttpHeader.cc
  11072. * src/HttpHeader.h
  11073. * src/HttpResponse.cc
  11074. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11075. Made string listeral to static const std::string.
  11076. * src/A2STR.cc
  11077. * src/A2STR.h
  11078. * src/SimpleLogger.cc
  11079. * src/SimpleLogger.h
  11080. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11081. Made string literal to static const std::string.
  11082. Rewritten CookieParser::setField.
  11083. * src/A2STR.cc
  11084. * src/A2STR.h
  11085. * src/CookieBoxFactory.cc
  11086. * src/CookieBoxFactory.h
  11087. * src/CookieParser.cc
  11088. * src/CookieParser.h
  11089. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11090. Made string literal to static const std::string
  11091. * src/DHTAbstractMessage.cc
  11092. * src/DHTAnnouncePeerMessage.cc
  11093. * src/DHTAnnouncePeerMessage.h
  11094. * src/DHTAnnouncePeerReplyMessage.cc
  11095. * src/DHTAnnouncePeerReplyMessage.h
  11096. * src/DHTFindNodeMessage.cc
  11097. * src/DHTFindNodeMessage.h
  11098. * src/DHTFindNodeReplyMessage.cc
  11099. * src/DHTFindNodeReplyMessage.h
  11100. * src/DHTGetPeersMessage.cc
  11101. * src/DHTGetPeersMessage.h
  11102. * src/DHTGetPeersReplyMessage.cc
  11103. * src/DHTGetPeersReplyMessage.h
  11104. * src/DHTMessage.cc
  11105. * src/DHTMessage.h
  11106. * src/DHTMessageFactoryImpl.cc
  11107. * src/DHTMessageReceiver.cc
  11108. * src/DHTPingMessage.cc
  11109. * src/DHTPingMessage.h
  11110. * src/DHTPingReplyMessage.cc
  11111. * src/DHTPingReplyMessage.h
  11112. * src/DHTQueryMessage.cc
  11113. * src/DHTQueryMessage.h
  11114. * src/DHTResponseMessage.cc
  11115. * src/DHTResponseMessage.h
  11116. * src/DHTUnknownMessage.cc
  11117. * src/DHTUnknownMessage.h
  11118. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11119. Made string literal to static const std::string
  11120. * src/BtChokeMessage.cc (toString)
  11121. * src/BtHaveAllMessage.cc (toString)
  11122. * src/BtHaveNoneMessage.cc (toString)
  11123. * src/BtInterestedMessage.cc (toString)
  11124. * src/BtNotInterestedMessage.cc (toString)
  11125. * src/BtUnchokeMessage.cc (toString)
  11126. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11127. Replaced "" with static const variable A2STR::NIL.
  11128. Replaced string comparison against "" with std::string::empty().
  11129. Added PROTO_* to Request class and use them as a protocol string
  11130. constant.
  11131. Made "started", "stopped", "completed" static const variable in
  11132. AnnounceList class.
  11133. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11134. Updated translations. Great thanks to translators.
  11135. * po/ca.po
  11136. * po/de.po
  11137. * po/fr.po
  11138. * po/it.po
  11139. * po/ja.po
  11140. * po/ru.po
  11141. * po/zh_CN.po
  11142. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11143. Updated man page; categorized options and fixed typo.
  11144. * doc/aria2c.1.txt
  11145. * doc/aria2c.1.html
  11146. * doc/aria2c.1
  11147. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11148. Removed const ref
  11149. * src/MetalinkEntry.cc (AddProtocolPreference)
  11150. * src/RequestGroup.cc (FindServerHostByHostname)
  11151. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11152. Rewritten Accept-Features handling.
  11153. * src/HttpRequestCommand.cc (createHttpRequest)
  11154. * src/a2functional.h
  11155. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11156. Changed method signature:
  11157. DHTAbstractNodeLookupTask::toEntries
  11158. * src/DHTAbstractNodeLookupTask.cc
  11159. * src/DHTAbstractNodeLookupTask.h
  11160. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11161. Changed method signature:
  11162. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  11163. * src/BtContext.h
  11164. * src/DefaultBtContext.cc
  11165. * src/DefaultBtContext.h
  11166. * src/DefaultBtInteractive.cc
  11167. * test/DefaultBtContextTest.cc
  11168. * test/MockBtContext.h
  11169. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11170. Changed method signature:
  11171. MultiFileAllocationIterator::makeDiskWriterEntries
  11172. * src/MultiFileAllocationIterator.cc
  11173. * src/MultiFileAllocationIterator.h
  11174. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11175. Changed method sinature:
  11176. MetalinkEntry::toFileEntry,
  11177. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  11178. Metalinker::queryEntry
  11179. * src/Metalink2RequestGroup.cc
  11180. * src/MetalinkEntry.cc
  11181. * src/MetalinkEntry.h
  11182. * src/MetalinkHelper.cc
  11183. * src/MetalinkHelper.h
  11184. * src/Metalinker.cc
  11185. * src/Metalinker.h
  11186. * src/main.cc
  11187. * test/MetalinkHelperTest.cc
  11188. * test/MetalinkerTest.cc
  11189. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11190. Changed method sinature:
  11191. RequestGroup::getURIs
  11192. * src/RequestGroup.cc
  11193. * src/RequestGroup.h
  11194. * test/Metalink2RequestGroupTest.cc
  11195. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11196. Changed method signature:
  11197. PeerListProcessor::extractPeer
  11198. * src/CompactPeerListProcessor.cc
  11199. * src/CompactPeerListProcessor.h
  11200. * src/DefaultBtAnnounce.cc
  11201. * src/DefaultPeerListProcessor.cc
  11202. * src/DefaultPeerListProcessor.h
  11203. * src/DelegatingPeerListProcessor.cc
  11204. * src/DelegatingPeerListProcessor.h
  11205. * src/PeerListProcessor.h
  11206. * src/UTPexExtensionMessage.cc
  11207. * test/DefaultPeerListProcessorTest.cc
  11208. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11209. Changed method signature:
  11210. BtRequestFactory::createRequestMessages,
  11211. BtRequestFactory::createRequestMessagesOnEndGame
  11212. * src/BtRequestFactory.h
  11213. * src/DefaultBtInteractive.cc
  11214. * src/DefaultBtRequestFactory.cc
  11215. * src/DefaultBtRequestFactory.h
  11216. * test/DefaultBtRequestFactoryTest.cc
  11217. * test/MockBtRequestFactory.h
  11218. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11219. Changed method signature:
  11220. PieceStorage::getInFlightPieces
  11221. * src/DefaultBtProgressInfoFile.cc
  11222. * src/DefaultPieceStorage.cc
  11223. * src/DefaultPieceStorage.h
  11224. * src/PieceStorage.h
  11225. * src/UnknownLengthPieceStorage.cc
  11226. * src/UnknownLengthPieceStorage.h
  11227. * test/DefaultBtProgressInfoFileTest.cc
  11228. * test/MockPieceStorage.h
  11229. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11230. Changed method signature:
  11231. PostDownloadHandler::getNextRequestGroups
  11232. Metalink2RequestGroup::generate
  11233. RequestGroup::postDownloadProcessing
  11234. * src/BtPostDownloadHandler.cc
  11235. * src/BtPostDownloadHandler.h
  11236. * src/Metalink2RequestGroup.cc
  11237. * src/Metalink2RequestGroup.h
  11238. * src/MetalinkPostDownloadHandler.cc
  11239. * src/MetalinkPostDownloadHandler.h
  11240. * src/PostDownloadHandler.h
  11241. * src/RequestGroup.cc
  11242. * src/RequestGroup.h
  11243. * src/RequestGroupMan.cc
  11244. * src/main.cc
  11245. * test/BtPostDownloadHandlerTest.cc
  11246. * test/Metalink2RequestGroupTest.cc
  11247. * test/MetalinkPostDownloadHandlerTest.cc
  11248. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11249. Rewritten AccRequestGroup
  11250. * src/main.cc
  11251. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11252. Rewritten.
  11253. * src/TaggedItem.cc (toTagString)
  11254. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11255. Rewritten Accept-Features handling.
  11256. * src/HttpRequestCommand.cc (createHttpRequest)
  11257. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11258. Rewritten accept types handling.
  11259. * HttpRequest.cc (createRequest)
  11260. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11261. Rewritten
  11262. * src/FeatureConfig.cc (featureSummary)
  11263. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11264. Changed method signature:
  11265. PeerStorage::getActivePeers
  11266. * src/DHTPeerAnnounceEntry.cc
  11267. * src/DefaultPeerStorage.cc
  11268. * src/DefaultPeerStorage.h
  11269. * src/PeerStorage.h
  11270. * test/DefaultPeerStorageTest.cc
  11271. * test/MockPeerStorage.h
  11272. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11273. Changed method signature:
  11274. DHTPeerAnnounceStorage::getPeers,
  11275. DHTPeerAnnounceEntry::getPeers
  11276. * src/DHTGetPeersMessage.cc
  11277. * src/DHTPeerAnnounceEntry.cc
  11278. * src/DHTPeerAnnounceEntry.h
  11279. * src/DHTPeerAnnounceStorage.cc
  11280. * src/DHTPeerAnnounceStorage.h
  11281. * test/DHTAnnouncePeerMessageTest.cc
  11282. * test/DHTPeerAnnounceEntryTest.cc
  11283. * test/DHTPeerAnnounceStorageTest.cc
  11284. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11285. Changed method signature:
  11286. NameResolver::resolve
  11287. * src/DHTEntryPointNameResolveCommand.cc
  11288. * src/InitiateConnectionCommand.cc
  11289. * src/NameResolver.cc
  11290. * src/NameResolver.h
  11291. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11292. Changed method signature:
  11293. PieceStorage::getAdvertisedPieceIndexes
  11294. * src/DefaultBtInteractive.cc
  11295. * src/DefaultPieceStorage.cc
  11296. * src/DefaultPieceStorage.h
  11297. * src/PieceStorage.h
  11298. * src/UnknownLengthPieceStorage.h
  11299. * test/MockPieceStorage.h
  11300. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11301. Changed method signature:
  11302. SegmentMan::getInFlightSegment
  11303. * src/AbstractCommand.cc
  11304. * src/SegmentMan.cc
  11305. * src/SegmentMan.h
  11306. * test/SegmentManTest.cc
  11307. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11308. Changed method signature:
  11309. DHTAbstractNodeLookupTask::getNodesFromMessage
  11310. * src/DHTAbstractNodeLookupTask.cc
  11311. * src/DHTAbstractNodeLookupTask.h
  11312. * src/DHTNodeLookupTask.cc
  11313. * src/DHTNodeLookupTask.h
  11314. * src/DHTPeerLookupTask.cc
  11315. * src/DHTPeerLookupTask.h
  11316. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11317. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  11318. * src/AbstractCommand.cc
  11319. * src/BtCheckIntegrityEntry.cc
  11320. * src/BtCheckIntegrityEntry.h
  11321. * src/BtFileAllocationEntry.cc
  11322. * src/BtFileAllocationEntry.h
  11323. * src/BtSetup.cc
  11324. * src/BtSetup.h
  11325. * src/CheckIntegrityCommand.cc
  11326. * src/CheckIntegrityEntry.h
  11327. * src/ChecksumCheckIntegrityEntry.cc
  11328. * src/ChecksumCheckIntegrityEntry.h
  11329. * src/DHTSetup.cc
  11330. * src/DHTSetup.h
  11331. * src/DownloadEngine.cc
  11332. * src/FileAllocationCommand.cc
  11333. * src/FileAllocationEntry.h
  11334. * src/RequestGroup.cc
  11335. * src/RequestGroup.h
  11336. * src/RequestGroupMan.cc
  11337. * src/RequestGroupMan.h
  11338. * src/StreamCheckIntegrityEntry.cc
  11339. * src/StreamCheckIntegrityEntry.h
  11340. * src/StreamFileAllocationEntry.cc
  11341. * src/StreamFileAllocationEntry.h
  11342. * src/TrackerWatcherCommand.cc
  11343. * src/a2functional.h
  11344. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11345. Changed method signature:
  11346. BNode::findClosestKNodes, BNode:: enumerateBucket,
  11347. DHTBucket::getGoodNodes,
  11348. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  11349. * src/BNode.cc
  11350. * src/BNode.h
  11351. * src/DHTAbstractNodeLookupTask.cc
  11352. * src/DHTAutoSaveCommand.cc
  11353. * src/DHTBucket.cc
  11354. * src/DHTBucket.h
  11355. * src/DHTBucketRefreshTask.cc
  11356. * src/DHTFindNodeMessage.cc
  11357. * src/DHTGetPeersMessage.cc
  11358. * src/DHTRoutingTable.cc
  11359. * src/DHTRoutingTable.h
  11360. * test/BNodeTest.cc
  11361. * test/DHTBucketTest.cc
  11362. * test/DHTRoutingTableTest.cc
  11363. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11364. In piece selection functions, Pass std::deque<...> by reference rather
  11365. than returning it.
  11366. * src/BitfieldMan.cc
  11367. * src/BitfieldMan.h
  11368. * src/DefaultBtRequestFactory.cc
  11369. * src/DefaultPieceStorage.cc
  11370. * src/Piece.cc
  11371. * src/Piece.h
  11372. * test/BitfieldManTest.cc
  11373. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11374. Implemented rarest piece first piece selection strategy.
  11375. * src/AbstractBtMessage.cc
  11376. * src/AbstractBtMessage.h
  11377. * src/BitfieldMan.cc
  11378. * src/BitfieldMan.h
  11379. * src/BtBitfieldMessage.cc
  11380. * src/BtHaveAllMessage.cc
  11381. * src/BtHaveMessage.cc
  11382. * src/DefaultPieceStorage.cc
  11383. * src/DefaultPieceStorage.h
  11384. * src/PeerInteractionCommand.cc
  11385. * src/PieceStorage.h
  11386. * src/UnknownLengthPieceStorage.h
  11387. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11388. Rewritten readData and writeData.
  11389. * src/MultiDiskAdaptor.cc
  11390. * src/MultiDiskAdaptor.h
  11391. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11392. Move \n out of the message "Usage: ...".
  11393. * src/version_usage.cc
  11394. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11395. Bump up version number to 0.13.2b.
  11396. * configure.ac
  11397. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11398. Added const qualifier to argument Exception& e.
  11399. * src/Logger.h
  11400. * src/SimpleLogger.cc
  11401. * src/SimpleLogger.h
  11402. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11403. Pool connection when CWD, SIZE command fails.
  11404. * src/FtpNegotiationCommand.cc
  11405. * src/FtpNegotiationCommand.h
  11406. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11407. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  11408. * src/HttpResponseCommand.cc
  11409. * src/HttpSkipResponseCommand.cc
  11410. * src/HttpSkipResponseCommand.h
  11411. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11412. Pool connection when a server returns 4xx, 5xx responses.
  11413. * src/HttpNullDownloadCommand.cc
  11414. * src/HttpNullDownloadCommand.h
  11415. * src/HttpResponse.cc
  11416. * src/HttpResponse.h
  11417. * src/HttpResponseCommand.cc
  11418. * src/HttpResponseCommand.h
  11419. * test/HttpResponseTest.cc
  11420. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11421. Print usage when no URL is specifed or bad command-line option is
  11422. specified.
  11423. * src/HelpItemFactory.cc
  11424. * src/help_tags.h
  11425. * src/option_processing.cc
  11426. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11427. Removed duplicate log message.
  11428. * src/AbstractCommand.cc (asyncResolveHostname)
  11429. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11430. Updated man page: --async-dns and --ftp-reuse-connection were added.
  11431. Changed -j option's default value from 5 to 1.
  11432. Added new examples using protocol auto detection feature.
  11433. Removed -T, -M usage where it can be omitted.
  11434. * doc/aria2c.1.txt
  11435. * doc/aria2c.1.html
  11436. * doc/aria2c.1.txt
  11437. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11438. Updated command-line usage text, so that it tells users that they
  11439. can specify any number of torrent files and metalink files in
  11440. command-line.
  11441. * src/version_usage.cc
  11442. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11443. Changed the default value of -j option to 1.
  11444. * src/HelpItemFactory.cc
  11445. * src/option_processing.cc
  11446. * src/usage_text.h
  11447. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11448. Added the ability to reuse connection in FTP and it is enabled by
  11449. default. It can be disabled by --ftp-reuse-connection=false option.
  11450. * src/Command.cc
  11451. * src/DownloadCommand.cc
  11452. * src/FtpDownloadCommand.cc
  11453. * src/FtpDownloadCommand.h
  11454. * src/FtpFinishDownloadCommand.cc
  11455. * src/FtpFinishDownloadCommand.h
  11456. * src/FtpInitiateConnectionCommand.cc
  11457. * src/FtpNegotiationCommand.cc
  11458. * src/FtpNegotiationCommand.h
  11459. * src/HelpItemFactory.cc
  11460. * src/Makefile.am
  11461. * src/Makefile.in
  11462. * src/OptionHandlerFactory.cc
  11463. * src/option_processing.cc
  11464. * src/prefs.h
  11465. * src/usage_text.h
  11466. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11467. Call Command::transitStatus() before calling Command::execute(),
  11468. so that the status change made in execute() is not cleared.
  11469. * src/DownloadEngine.cc
  11470. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11471. Removed forward declaration of SocketCore class.
  11472. * src/HttpDownloadCommand.h
  11473. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11474. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  11475. in InitiateConnectionCommandFactory. They should be set only when
  11476. the protocol is HTTP or HTTPS.
  11477. * src/InitiateConnectionCommandFactory.cc
  11478. * src/RequestGroup.cc
  11479. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11480. Fixed infinite loop in checksum checking.
  11481. * src/IteratableChecksumValidator.cc
  11482. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11483. Set _supportsPersistentConnection to true by default.
  11484. * src/Request.cc
  11485. * src/RequestGroup.cc
  11486. * test/HttpRequestTest.cc
  11487. * test/RequestTest.cc
  11488. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11489. Added timeout to socket pool. The default timeout is 15 seconds,
  11490. which is the same value Apache uses.
  11491. * src/DownloadEngine.cc
  11492. * src/DownloadEngine.h
  11493. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11494. Fixed misuse of multimap::find()
  11495. * src/HttpHeader.cc
  11496. * test/HttpHeaderTest.cc
  11497. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11498. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  11499. option.
  11500. The asynchronous DNS is not capable of IPv6 yet.
  11501. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  11502. least for HTTP download.
  11503. * src/AbstractCommand.cc
  11504. * src/AbstractCommand.h
  11505. * src/AsyncNameResolver.cc
  11506. * src/AsyncNameResolver.h
  11507. * src/DHTEntryPointNameResolveCommand.cc
  11508. * src/DHTEntryPointNameResolveCommand.h
  11509. * src/DownloadEngine.cc
  11510. * src/DownloadEngine.h
  11511. * src/FtpInitiateConnectionCommand.cc
  11512. * src/FtpInitiateConnectionCommand.h
  11513. * src/HelpItemFactory.cc
  11514. * src/HttpInitiateConnectionCommand.cc
  11515. * src/HttpInitiateConnectionCommand.h
  11516. * src/InitiateConnectionCommand.cc
  11517. * src/InitiateConnectionCommand.h
  11518. * src/Makefile.am
  11519. * src/Makefile.in
  11520. * src/NameResolver.cc
  11521. * src/NameResolver.h
  11522. * src/OptionHandlerFactory.cc
  11523. * src/SocketCore.cc
  11524. * src/SocketCore.h
  11525. * src/Util.cc
  11526. * src/Util.h
  11527. * src/option_processing.cc
  11528. * src/prefs.h
  11529. * src/usage_text.h
  11530. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11531. Updated man page: --quiet, --header were added.
  11532. --metalink-servers and --enable-http-keep-alive option were updated.
  11533. * doc/aria2c.1
  11534. * doc/aria2c.1.html
  11535. * doc/aria2c.1.txt
  11536. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11537. Enable HTTP keep-alive by default.
  11538. * src/HelpItemFactory.cc
  11539. * src/option_processing.cc
  11540. * src/usage_text.h
  11541. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11542. Disable http keep-alive if the remote server is not HTTP/1.1.
  11543. * src/HttpConnection.cc
  11544. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11545. Receive content body of 302 response so that the connection can be
  11546. reused later when http keep-alive is enabled.
  11547. * src/HttpNullDownloadCommand.cc
  11548. * src/HttpNullDownloadCommand.h
  11549. * src/HttpResponseCommand.cc
  11550. * src/HttpResponseCommand.h
  11551. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11552. const SharedHandle<Request> -> const SharedHandle<Request>&
  11553. * src/FtpDowndloadCommand.cc
  11554. * src/FtpDowndloadCommand.h
  11555. * src/HttpDownloadCommand.cc
  11556. * src/HttpDownloadCommand.h
  11557. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11558. Fixed the bug that the control file(.aria2 file) is not renamed
  11559. according to tryAutoFileRenaming().
  11560. tryAutoFileRenaming() was rewritten so that if both renamed file and
  11561. its control file exist, use them and continue download.
  11562. The old implementation didn't take into account of control file's
  11563. existence, so basically you couldn't continue download of renamed file.
  11564. * src/BtProgressInfoFile.h
  11565. * src/DefaultBtProgressInfoFile.cc
  11566. * src/DefaultBtProgressInfoFile.h
  11567. * src/NullProgressInfoFile.h
  11568. * src/RequestGroup.cc
  11569. * test/DefaultBtProgressInfoFileTest.cc
  11570. * test/MockBtProgressInfoFile.h
  11571. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11572. Change the default value of --metalink-servers option from `5' to `1'.
  11573. * src/HelpItemFactory.cc
  11574. * src/option_processing.cc
  11575. * src/usage_text.h
  11576. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11577. Reimplemented transparent metalink using Accept request header.
  11578. * src/HttpRequest.cc
  11579. * src/HttpRequest.h
  11580. * src/HttpRequestCommand.cc
  11581. * src/Metalink2RequestGroup.cc
  11582. * src/RequestGroup.cc
  11583. * src/RequestGroup.h
  11584. * test/HttpRequestTest.cc
  11585. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11586. Bump up version number to 0.13.2a
  11587. * configure.ac
  11588. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11589. Updated configure.ac using the result of autoscan.
  11590. * configure.ac
  11591. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11592. Fixed compilation error without gcrypt/openssl.
  11593. * src/DownloadCommand.cc
  11594. * src/DownloadCommand.h
  11595. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11596. Reorganized version information so that it can be displayed in a
  11597. standard terminal screen without scrolling.
  11598. Removed http, ftp from Configuration section, because they are always
  11599. enabled.
  11600. * src/FeatureConfig.cc
  11601. * src/FeatureConfig.h
  11602. * src/main.cc
  11603. * src/messageDigest.cc
  11604. * src/messageDigest.h
  11605. * src/version_usage.cc
  11606. * test/FeatureConfigTest.cc
  11607. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11608. Masked user ID in log.
  11609. * src/FtpConnection.cc (sendUser)
  11610. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11611. Removed query part from filename in HTTP download. The query part means
  11612. the substring after "?" in URL. Firefox seems do the same thing.
  11613. A query part is sometimes very long and not suitable to filename,
  11614. so I think it is better to remove it from filename.
  11615. * src/HttpRequest.cc
  11616. * src/HttpRequest.h
  11617. * src/Request.cc
  11618. * src/Request.h
  11619. * test/HttpRequestTest.cc
  11620. * test/RequestTest.cc
  11621. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11622. Rewritten Exception class. Throw exception object, not its pointer and
  11623. catch by reference, so that remove problematic delete operator for
  11624. catched exception.
  11625. * src/Exception.cc
  11626. * src/Exception.h
  11627. * test/ExceptionTest.cc
  11628. * src/*: All files throwing/catching exception.
  11629. * test/*: All files throwing/catching exception.
  11630. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11631. Now auto protocol detection is enabled without -Z option.
  11632. But there is a important difference between with/without -Z optoin.
  11633. For example, if you type:
  11634. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  11635. then, aria2 interprets there are 3 request groups:
  11636. (1) http://host/file, http://mirror/file <-- multi-source download
  11637. (2) file1.torrent
  11638. (3) file2.metalink
  11639. On the other hand, if you invoke above command with -Z option, it is
  11640. interpreted as 4 request groups:
  11641. (1) http://host/file
  11642. (2) file1.torrent
  11643. (3) file2.metalink
  11644. (4) http://mirror/file
  11645. I think usually user don't mix multi-source URLs and torrent files, so
  11646. there is no big problem here.
  11647. * src/main.cc
  11648. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11649. Fixed the bug that causes segmentaion fault when reading XML containing
  11650. unescapsed character like '&'.
  11651. Also a modification was made which avoids adding unnecessary
  11652. characters stack and appending unused string.
  11653. * src/ExpatMetalinkProcessor.cc
  11654. * src/FileMetalinkParserState.h
  11655. * src/FilesMetalinkParserState.h
  11656. * src/FinMetalinkParserState.h
  11657. * src/HashMetalinkParserState.h
  11658. * src/InitialMetalinkParserState.h
  11659. * src/LanguageMetalinkParserState.h
  11660. * src/MetalinkMetalinkParserState.h
  11661. * src/MetalinkParserState.h
  11662. * src/MetalinkParserStateMachine.cc
  11663. * src/MetalinkParserStateMachine.h
  11664. * src/OSMetalinkParserState.h
  11665. * src/PieceHashMetalinkParserState.h
  11666. * src/PiecesMetalinkParserState.h
  11667. * src/ResourcesMetalinkParserState.h
  11668. * src/SizeMetalinkParserState.h
  11669. * src/SkipTagMetalinkParserState.h
  11670. * src/URLMetalinkParserState.h
  11671. * src/VerificationMetalinkParserState.h
  11672. * src/VersionMetalinkParserState.h
  11673. * src/XML2SAXMetalinkProcessor.cc
  11674. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11675. Added StringFormat class, which internally calls vasprintf.
  11676. operator<< is defined for this class, so it can be used with iostream
  11677. classes nicely. SimpleLogger and following functions are rewritten
  11678. using StringFormat class.
  11679. Besides, now Logger class's methods are non-const, many classes
  11680. that has a const Logger* as a member variable are modified to remove
  11681. const qualifier from the variable declaration.
  11682. * src/HelpItemFactory.cc
  11683. * src/Request.cc
  11684. * src/SimpleLogger.cc
  11685. * src/StringFormat.cc
  11686. * src/StringFormat.h
  11687. * src/Util.cc
  11688. * src/option_processing.cc
  11689. * src/version_usage.cc
  11690. * test/StringFormatTest.cc
  11691. * src/*.h: The classes that has const Logger* as a member variable.
  11692. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11693. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  11694. failed. Also fixed memory link when exception is thrown there.
  11695. * src/main.cc (AccRequestGroup)
  11696. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11697. Added build-in "Accept-Features" support. For now only "metalink" is
  11698. used in this header field.
  11699. This "metalink" value is removed from the list when connecting URLs
  11700. fed by metalink file to avoid loop in "transparent" metlaink.
  11701. * src/HttpRequest.cc
  11702. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  11703. header is also held in this variable. Also renamed setUserHeaders as
  11704. addHeader and it was rewritten to add header not just to clear the old
  11705. value.
  11706. * src/HttpRequestCommand.cc
  11707. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  11708. from "Accept-Features" list.
  11709. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  11710. default.
  11711. * src/RequestGroup.h
  11712. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  11713. * src/a2functional.h: Included <string> because Concat class depends on
  11714. it.
  11715. * test/HttpRequestTest.cc
  11716. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11717. Added comment
  11718. * src/RequestGroup.cc (createNextCommand)
  11719. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11720. Capitalized METHOD_GET and METHOD_HEAD
  11721. * src/Request.cc
  11722. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11723. Added getDownloadResults() method
  11724. * src/RequestGroupMan.cc
  11725. * src/RequestGroupMan.h
  11726. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11727. Fixed the bug that aria2 exits when commands is empty() but
  11728. _routineCommands are not.
  11729. * src/DownloadEngine.cc
  11730. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11731. Use the default value pulled from Option object in HelpItemFactory.
  11732. except options whose defualt value is embedded in a usage text.
  11733. * src/HelpItemFactory.cc
  11734. * src/HelpItemFactory.h
  11735. * src/option_processing.cc
  11736. * src/version_usage.cc
  11737. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11738. Added --quiet option to make aria2 quiet (no console output).
  11739. --quiet option is tagged with ADVANCED.
  11740. * src/HelpItemFactory.cc
  11741. * src/LogFactory.cc
  11742. * src/LogFactory.h
  11743. * src/MultiUrlRequestInfo.cc
  11744. * src/MultiUrlRequestInfo.h
  11745. * src/NullStatCalc.h: New class. This class prints nothing.
  11746. * src/OptionHandlerFactory.cc
  11747. * src/main.cc
  11748. * src/option_processing.cc
  11749. * src/prefs.h
  11750. * src/usage_text.h
  11751. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11752. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  11753. * src/HelpItemFactory.cc (createHelpItems):
  11754. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11755. Fixed compilation error in ExpatMetalinkProcessor.cc
  11756. * src/ExpatMetalinkProcessor.cc
  11757. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11758. Reuse socket if the origin server supports HTTP keep-alive and
  11759. --enable-http-keep-alive or --enable-http-pipelining is given.
  11760. The current implementation doesn't reuse the connections established
  11761. against proxy server.
  11762. * src/AbstractCommand.cc
  11763. * src/DownloadEngine.cc
  11764. * src/DownloadEngine.h
  11765. * src/HttpDownloadCommand.cc
  11766. * src/HttpInitiateConnectionCommand.cc
  11767. * src/HttpResponseCommand.cc
  11768. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11769. Rewritten HTTP keep-alive and pipelining routine.
  11770. * src/AbstractCommand.cc
  11771. * src/HttpConnection.cc
  11772. * src/HttpDownloadCommand.cc
  11773. * src/HttpRequest.cc
  11774. * src/HttpRequestCommand.cc
  11775. * src/HttpResponseCommand.cc
  11776. * src/Request.cc
  11777. * src/Request.h
  11778. * src/RequestGroup.cc
  11779. * test/HttpRequestTest.cc
  11780. * test/HttpResponseTest.cc
  11781. * test/RequestTest.cc
  11782. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11783. Added missing setUserHeaders call
  11784. * src/HttpRequestCommand.cc
  11785. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11786. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  11787. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  11788. waste of time because it is more likey false.
  11789. * src/FileAllocationDispatcherCommand.cc (execute)
  11790. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11791. Now HTTP status and version are a member variable of HttpHeader.
  11792. HTTP status is processed as a string, not integer.
  11793. * src/AbstractProxyResponseCommand.cc
  11794. * src/HttpConnection.cc
  11795. * src/HttpHeader.cc
  11796. * src/HttpHeader.h
  11797. * src/HttpHeaderProcessor.cc
  11798. * src/HttpHeaderProcessor.h
  11799. * src/HttpResponse.cc
  11800. * src/HttpResponse.h
  11801. * test/HttpHeaderProcessorTest.cc
  11802. * test/HttpResponseTest.cc
  11803. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11804. Added --header option. You can specify any number of additional HTTP headers
  11805. like:
  11806. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  11807. Unlike other commad-line option, you can use --header option multiple times.
  11808. * src/HelpItemFactory.cc
  11809. * src/HttpRequest.{cc, h}
  11810. * src/HttpRequestCommand.cc
  11811. * src/OptionHandlerFactory.cc
  11812. * src/OptionHandlerImpl.h
  11813. * src/option_processing.cc
  11814. * src/prefs.h
  11815. * src/usage_text.h
  11816. * test/HttpRequestTest.cc (testUserHeaders)
  11817. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11818. Eliminates the time lag between sequential downloads and commands in
  11819. the same RequestGroup.
  11820. In old implementation, aria2 occasionally waits 1 seconds before
  11821. executing next command or RequestGroup.
  11822. This is really a waste of time, and new implementation eliminates
  11823. this unnecessary time lag.
  11824. * src/AbstractCommand.cc
  11825. * src/AutoSaveCommand.cc
  11826. * src/CheckIntegrityCommand.cc
  11827. * src/Command.{cc, h}
  11828. * src/DownloadEngine.{cc, h}
  11829. * src/DownloadEngineFactory.cc
  11830. * src/FileAllocationCommand.cc
  11831. * src/FileAllocationDispatcherCommand.cc
  11832. * src/FillRequestGroupCommand.cc
  11833. * src/FtpInitiateConnectionCommand.cc
  11834. * src/HaveEraseCommand.cc
  11835. * src/HttpInitiateConnectionCommand.cc
  11836. * src/HttpResponseCommand.cc
  11837. * src/RealtimeCommand.cc
  11838. * src/RequestGroup.cc
  11839. * src/RequestGroupMan.cc
  11840. * src/StreamFileAllocationEntry.cc
  11841. * src/TimeBasedCommand.{cc, h}
  11842. * src/TimedHaltCommand.cc
  11843. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11844. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  11845. keyword explicit and SharedHandle's default constructor initializes
  11846. its internal obj to null, old implementation initializes it using
  11847. obj's default constructor.
  11848. To assign null, write SharedHandle<T> x(...); x.reset();
  11849. TODO: test/SharedHandleTest.cc needs more tests.
  11850. * src/SharedHandle.h
  11851. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11852. Fixed type in man page.
  11853. * doc/aria2c.1.txt
  11854. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11855. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  11856. * src/SimpleLogger.{cc, h}
  11857. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11858. Implemented auto protocol detection.
  11859. Now you can do:
  11860. aria2c -Z http://host/file file1.torrent file2.metalink
  11861. (Note: -Z option is required for auto protcol detection.)
  11862. Then aria2c downloads 3 files simultaneously:
  11863. 1. http://host/file
  11864. 2. file1.torrent <-- read local torrent file
  11865. 3. file2.metalink <-- read local Metalink file.
  11866. Same thing goes with -i option. Assume your uris.txt contans:
  11867. http://host/file
  11868. file1.torrent
  11869. file2.metalink
  11870. Then you can do: aria2c -i uris.txt
  11871. (Note: -Z option is not needed if -i option is given.)
  11872. * src/main.cc
  11873. * src/ProtocolDetector.{cc, h}
  11874. * test/ProtocolDetectorTest.cc
  11875. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11876. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  11877. installed
  11878. * src/ARC4Encryptor.h
  11879. * src/ARC4Decryptor.h
  11880. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11881. Renamed argument from 'errno' to 'err', since errno is confused with
  11882. errno defined in errno.h.
  11883. * src/LibgcryptARC4Decryptor.h
  11884. * src/LibgcryptARC4Context.h
  11885. * src/LibgcryptDHKeyExchange.h
  11886. * src/LibgcryptARC4Encryptor.h
  11887. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11888. Rewritten choking algorithm.
  11889. * src/PeerChokeCommand.{cc, h}
  11890. * src/BtInterestedMessage.cc
  11891. * src/PeerSessionResource.{cc, h}
  11892. * src/DefaultPeerStorage.{cc, h}
  11893. * src/BtNotInterestedMessage.cc
  11894. * src/DefaultBtMessageDispatcher.{cc, h}
  11895. * src/BtMessageDispatcher.h
  11896. * src/Peer.{cc, h}
  11897. * src/BtLeecherStateChoke.{cc, h}
  11898. * src/BtSetup.cc
  11899. * src/BtSeederStateChoke.{cc, h}
  11900. * src/PeerStorage.h
  11901. * test/MockPeerStorage.h
  11902. * test/MockBtMessageDispatcher.h
  11903. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11904. Fixed compilation error on x84-64 platform.
  11905. * src/AuthConfig.cc: Included ostream.
  11906. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11907. Rewritten getBasename() and getDirname(), without standard library
  11908. basename(), dirname().
  11909. * src/File.cc
  11910. * test/FileTest.cc
  11911. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11912. Added Simplified Chinese translation. Also updated the following
  11913. translations: Polish, Dutch, German. Great thanks to all translators.
  11914. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11915. Suppress content-range error when 'Content-Range' response header
  11916. doesn't contains bytes-unit specifier 'bytes'
  11917. * src/HttpHeader.cc (getRange)
  11918. * test/HttpHeaderTest.cc
  11919. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11920. Fixed compilation error with g++-4.3
  11921. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11922. Added missing include files for MinGW
  11923. * test/HttpHeaderProcessorTest.cc
  11924. * test/DHTRoutingTableSerializerTest.cc
  11925. * test/DHTRoutingTableDeserializerTest.cc
  11926. * test/UriListParserTest.cc
  11927. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11928. Now download line is printed nicely with no garbage at the end of
  11929. line. I use ioctl to get the columns of terminal.
  11930. If stdout is redirected to another device, instead of carriage return,
  11931. end of line '\n' character is used. This is feature request#1909659
  11932. * src/ConsoleStatCalc.cc (calculateStat)
  11933. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11934. Included a2time.h
  11935. * src/DHTMessageDispatcher.h
  11936. * src/DHTMessageEntry.h
  11937. * src/DHTReplaceNodeTask.h
  11938. * src/DHTMessageTracker.h
  11939. * src/Util.h
  11940. * src/CookieBox.h
  11941. * src/SocketCore.h
  11942. * src/DefaultBtMessageDispatcher.h
  11943. * src/SocketCore.cc
  11944. * src/Util.cc
  11945. * src/DHTPingTask.h
  11946. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11947. Fixed high memory footprint when DHT is enabled.
  11948. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  11949. queued than it is processed and the queue is getting longer. As a
  11950. consequence, momory usage is increased.
  11951. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  11952. replacement cache in DHTBucket which is described in Kademlia paper.
  11953. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  11954. DHTReplaceNodeTask.
  11955. * src/DHTBucket.{h, cc}
  11956. (cacheNode): New function.
  11957. (getCachedNodes): New function.
  11958. (dropNode): Push back cached node to _nodes.
  11959. * test/DHTBucketTest.cc
  11960. (testCacheNode): New test
  11961. (testDropNode): New test
  11962. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11963. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  11964. the unused 4KB memory when ssl is not used.
  11965. * src/SocketCore.cc
  11966. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11967. Added summary log for peer announce storage.
  11968. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  11969. Removed cast
  11970. * src/DefaultPeerStorage.cc (addPeer)
  11971. Log exception message
  11972. * src/DHTMessageTracker.cc (handleTimeout)
  11973. Fixed casting
  11974. * test/HttpRequestTest.cc
  11975. * test/MetalinkProcessorTest.cc
  11976. * test/PieceTest.cc
  11977. * test/MetalinkEntryTest.cc
  11978. * test/SequenceTest.cc
  11979. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11980. * src/ParameterizedStringParser.cc (createLoop):
  11981. Removed unused variable sstep.
  11982. * src/AlphaNumberDecorator.h (decode): Rewritten.
  11983. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11984. * src/Util.{h, cc}
  11985. (parseUInt): New function.
  11986. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  11987. The actual range is uint32_t.
  11988. * test/UtilTest.cc
  11989. * src/ParameterizedStringParser.cc:
  11990. Use Util::parseUInt() for loop variables.
  11991. * test/ParameterizedStringParserTest.cc
  11992. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  11993. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11994. Rewritten the functions for binding port.
  11995. * src/DHTConnectionImpl.{h, cc}
  11996. * src/PeerListenCommand.{h, cc}
  11997. * src/DHTSetup.cc
  11998. * src/BtSetup.cc
  11999. * test/DHTConnectionImplTest.cc
  12000. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12001. type cleanup for allmost all remaining files.
  12002. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12003. Type clarification
  12004. * src/PeerSessionResource.{h, cc}
  12005. * src/DefaultPieceStorage.{h, cc}
  12006. * src/Peer.{h, cc}
  12007. * test/PeerSessionResourceTest.cc
  12008. Use div function
  12009. * src/BtPieceMessage.cc (erasePieceOnDisk)
  12010. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12011. Type clarification
  12012. * src/DefaultPeerStorage.{h, cc}
  12013. * test/DefaultPeerStorageTest.cc
  12014. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12015. Type clarification: size_t for length or size, uint64_t for file
  12016. length, off_t for file offset.
  12017. * src/DefaultBtProgressInfoFile.cc
  12018. * src/DefaultBtContext.{h, cc}
  12019. * src/DefaultBtInteractive.cc
  12020. * src/DownloadCommand.{h, cc}
  12021. * src/IteratableChunkChecksumValidator.{h, cc}
  12022. * src/SegmentMan.{h, cc}
  12023. * src/SingleFileDownloadContext.{h, cc}
  12024. * src/IteratableChecksumValidator.{h, cc}
  12025. * src/BtContext.h
  12026. * src/IteratableValidator.h
  12027. * src/DownloadContext.h
  12028. * test/SingleFileDownloadContextTest.cc
  12029. * test/DefaultBtContextTest.cc
  12030. * test/MockBtContext.h
  12031. * test/Metalink2RequestGroupTest.cc
  12032. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12033. Type clarification: size_t for length or size, uint64_t for file
  12034. length, off_t for file offset.
  12035. * src/PiecedSegment.cc
  12036. * src/GrowSegment.h
  12037. * src/DefaultBtRequestFactory.h
  12038. * src/DefaultBtProgressInfoFile.cc
  12039. * src/UnknownLengthPieceStorage.h
  12040. * src/DefaultPieceStorage.cc
  12041. * src/UnknownLengthPieceStorage.cc
  12042. * src/DefaultBtInteractive.cc
  12043. * src/GrowSegment.cc
  12044. * src/BitfieldMan.h
  12045. * src/DownloadCommand.cc
  12046. * src/BtRequestFactory.h
  12047. * src/PiecedSegment.h
  12048. * src/DefaultPieceStorage.h
  12049. * src/Piece.cc
  12050. * src/DefaultBtRequestFactory.cc
  12051. * src/PieceStorage.h
  12052. * src/Segment.h
  12053. * src/Piece.h
  12054. * src/BitfieldMan.cc
  12055. * src/Util.cc
  12056. * test/DefaultBtProgressInfoFileTest.cc
  12057. * test/DefaultPieceStorageTest.cc
  12058. * test/MockPieceStorage.h
  12059. * test/BtRequestMessageTest.cc
  12060. * test/DefaultBtMessageDispatcherTest.cc
  12061. * test/BitfieldManTest.cc
  12062. * test/GrowSegmentTest.cc
  12063. * test/PieceTest.cc
  12064. * test/SegmentTest.cc
  12065. * test/SegmentManTest.cc
  12066. * test/DefaultBtRequestFactoryTest.cc
  12067. * test/MockBtRequestFactory.h
  12068. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12069. Fixed compilation error with --disable-nls
  12070. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  12071. in gettext.h causes the problem.
  12072. * src/common.h
  12073. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12074. Removed subPiece related functions.
  12075. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  12076. * src/DefaultPieceStorage.{h, cc}
  12077. * test/PieceTest.cc
  12078. * test/DefaultPieceStorageTest.cc
  12079. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12080. Use unsigned char for data store.
  12081. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12082. Bump up version number to 0.13.0+1
  12083. * configure.ac
  12084. * Release 0.13.0+1
  12085. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12086. Changed inactive connection timeout to 120.
  12087. To accept more mulually interested peers, disconnect peer when there
  12088. is no interest between us after certain time passed.
  12089. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  12090. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12091. Fixed the bug that aria2 only uses first dns server in resolv.conf
  12092. when compiled with async DNS support.
  12093. * src/DownloadEngine.cc
  12094. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  12095. value '10' will be a little bit short when some DNS servers are
  12096. offline and several DNS servers are tried. It should be configured
  12097. by command-line option.
  12098. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12099. Merged Ross's mingw patch.
  12100. * src/DHTRoutingTableDeserializer.cc
  12101. * src/DHTRoutingTableSerializer.cc
  12102. * src/Platform.{h, cc}
  12103. * src/timegm.h
  12104. * src/gettimeofday.h
  12105. * src/getaddrinfo.h
  12106. * src/SocketCore.h
  12107. * src/common.h
  12108. * src/inet_aton.h
  12109. * src/DownloadEngine.h
  12110. * src/gai_strerror.h
  12111. * src/a2netcompat.h
  12112. * configure.ac
  12113. * configure
  12114. * aclocal.m4
  12115. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12116. Included missing iostream.
  12117. * test/AllTest.cc
  12118. * test/BtDependencyTest.cc
  12119. * test/BtExtendedMessageTest.cc
  12120. * test/DHTConnectionImplTest.cc
  12121. * test/DHTMessageFactoryImplTest.cc
  12122. * test/DHTMessageTrackerEntryTest.cc
  12123. * test/DHTNodeTest.cc
  12124. * test/DHTRoutingTableSerializerTest.cc
  12125. * test/DefaultBtAnnounceTest.cc
  12126. * test/DefaultBtContextTest.cc
  12127. * test/DefaultBtMessageFactoryTest.cc
  12128. * test/DefaultExtensionMessageFactoryTest.cc
  12129. * test/HandshakeExtensionMessageTest.cc
  12130. * test/HttpResponseTest.cc
  12131. * test/MetalinkProcessorTest.cc
  12132. * test/MultiFileAllocationIteratorTest.cc
  12133. * test/SocketCoreTest.cc
  12134. * test/UTPexExtensionMessageTest.cc
  12135. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12136. Reorganized includes.
  12137. * src/NameResolver.cc
  12138. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12139. Fixed compilation error without ares/c-ares
  12140. * src/NameResolver.h:
  12141. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12142. Added a test for large file.
  12143. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  12144. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12145. Fixed the bug that file size is ignored if size > INT32_MAX
  12146. * src/SizeMetalinkParserState.cc (endElement):
  12147. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12148. Bump up version number to 0.13.0
  12149. * configure.ac
  12150. * Release 0.13.0
  12151. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12152. Updated Makfefile.am to make 'make dist' work.
  12153. Now packaged filename is aria2c-VERSION.tar.bz2.
  12154. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  12155. Added LICENSE.OpenSSL to dist_noinst_DATA.
  12156. Large file support is now configured by configure script.
  12157. * configure.ac
  12158. Removed unsused source files
  12159. * src/
  12160. * test/
  12161. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  12162. Peer.h and BtContext.h respectively.
  12163. * src/Peer.h
  12164. * src/BtContext.h
  12165. Updated translations.
  12166. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  12167. translations. Great thanks to all translators!;)
  12168. * po/*.{po, gmo}
  12169. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12170. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  12171. statically declared sha1 MessageDigestContext.
  12172. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  12173. initialization of short-lived MessageDigestContext.
  12174. * src/MessageDigestHelper.{h, cc}
  12175. * src/main.cc
  12176. Now DownloadCommand has a reference to MessageDigestContext to avoid
  12177. the initialization of MessageDigestContext every time in validating
  12178. chunk checksum.
  12179. * src/DownloadCommand.{h, cc}
  12180. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12181. Add a file descriptor which connected to fast peer(latency<1500) to
  12182. select(). This change reduced CPU load.
  12183. * src/PeerInteractionCommand.cc
  12184. * src/DefaultBtInteractive.{h, cc}
  12185. * src/BtInteractive.h
  12186. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12187. Fixed the previous insufficient fix for possible busy loop.
  12188. * src/MSEHandshake.cc (identifyHandshakeType)
  12189. Removed unused functions.
  12190. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  12191. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12192. Fixed possible busy loop if first 20 bytes are not received for a few
  12193. minutes.
  12194. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  12195. * src/ReceiverMSEHandshakeCommand.cc
  12196. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12197. Fixed compilation error
  12198. * src/ExpatMetalinkProcessor.cc
  12199. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12200. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  12201. * src/DHTBucket.cc
  12202. Removed unnecessary cast.
  12203. * src/HandshakeExtensionMessage.cc
  12204. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12205. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  12206. is missing.
  12207. * src/OptionHandlerFactory.cc
  12208. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12209. Fixed the bug that HAVE message is not sent for a piece they are
  12210. downloaded fom http/ftp server before any BitTorrent handshake is done
  12211. with peers.
  12212. * src/DefaultBtInteractive.cc
  12213. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12214. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  12215. * src/Makefile.am
  12216. * src/Makefile.in
  12217. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12218. Updated README. Added html version of README and man page.
  12219. * README
  12220. * README.html
  12221. * readme2html: Shell script to generate README.html from README using
  12222. asciidoc.
  12223. * doc/aria2c.1.html
  12224. * doc/makeman: Added the line to generate aria2c.1.html
  12225. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12226. Fixed offset calculation.
  12227. * src/LibgcryptDHKeyExchange.h (computeSecret)
  12228. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12229. Rewritten itos and uitos using template. llitos and ullitos are
  12230. replaced with itos and uitos respectively.
  12231. * src/Util.{h, cc}
  12232. * test/UtilTest.cc
  12233. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12234. Fixed the bug that DH key exchange sometimes fails due to bad handling
  12235. of the number of bytes required for storing public key and shared
  12236. secret.
  12237. * src/LibgcryptDHKeyExchange.h
  12238. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  12239. * src/MSEHandshake.cc
  12240. * test/DHKeyExchangeTest.cc
  12241. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12242. Removed since they are not used.
  12243. * src/Xml2MetalinkProcessor.{h, cc}
  12244. * src/Socket.cc
  12245. * src/SegmentSplitter.{h, cc}
  12246. * test/Xml2MetalinkProcessorTest.cc
  12247. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12248. Fixed the bug that prevents aria2 from stopping other than by pressing
  12249. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  12250. option. aria2 doesn't stop even after --seed-time is satisfied and
  12251. continues to output blank lines in the console.
  12252. * src/ReceiverMSEHandshakeCommand.cc
  12253. * src/PeerReceiveHandshakeCommand.cc
  12254. * src/PeerListenCommand.cc
  12255. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12256. Bump up version number to 0.13.0rc
  12257. * configure.ac
  12258. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12259. Updated man page and some usage text.
  12260. * doc/aria2c.1.txt
  12261. * src/usage_text.h
  12262. * po/*.{po, gmo}
  12263. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12264. Updated translations. Added Finnish and Hebrew translations.
  12265. Great thanks to all translators!
  12266. * po/*.{po, gmo}
  12267. * po/LINGUAS
  12268. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12269. Log more detailed information about each message.
  12270. * src/DHTQueryMessage.{h, cc}
  12271. * src/DHTGetPeersMessage.{h, cc}
  12272. * src/DHTFindNodeReplyMessage.{h, cc}
  12273. * src/DHTGetPeersReplyMessage.{h, cc}
  12274. * src/DHTAnnouncePeerMessage.{h, cc}
  12275. * src/DHTResponseMessage.{h, cc}
  12276. * src/DHTFindNodeMessage.{h, cc}
  12277. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12278. Use constants defined in prefs.h
  12279. * src/option_processing.cc
  12280. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12281. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  12282. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12283. Make room for future enchancements for IPv6 addresses.
  12284. Bump up version number of dht.dat file format to 2.
  12285. Not compatible with previous version.
  12286. * src/DHTRoutingTableSerializer.cc
  12287. * src/DHTRoutingTableDeserializer.cc
  12288. * test/DHTRoutingTableSerializerTest.cc
  12289. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12290. Added handling for the return values from
  12291. PeerMessageUtil::createcompact().
  12292. * src/DefaultBtContext.cc (computeFastSet):
  12293. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12294. Fixed abort when peer's ip address is IPv4-mapped address.
  12295. * src/DefaultBtContext.cc (computeFastSet)
  12296. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  12297. cannot handle IPv4-mapped addresses.
  12298. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  12299. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12300. Proper return value handling for OpenSSL functions.
  12301. * src/LibsslDHKeyExchange.h
  12302. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12303. Random bytes generation using libgcrypt and OpenSSL.
  12304. * src/DHTUtil.{h, cc}
  12305. * test/DHTUtilTest.cc
  12306. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12307. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  12308. received.
  12309. * src/DHTMessageReceiver.cc (receiveMessage)
  12310. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12311. Fixed the bug that a return code is always 0. BUG#1897704
  12312. If error occurred during the download or there exist unfinished
  12313. downloads, aria2 returns with code 1.
  12314. * src/RequestGroupMan.{h, cc}
  12315. * src/MultiUrlRequestInfo.{h, cc}
  12316. * src/main.cc
  12317. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12318. IPv6 support for SocketCore class.
  12319. TODO: In SocketCore::establishConnection(), this is insufficient to
  12320. determin the failure of connect() here because the socket is
  12321. non-blocking state. The next addresses should be tried after select().
  12322. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  12323. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  12324. instead which address family independent.
  12325. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  12326. information in a compact peer format which is for IPv4 only.
  12327. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  12328. this is a spec of BitTorrent protocol.
  12329. * src/SocketCore.{h, cc}
  12330. * src/PeerMessageUtil.cc
  12331. * test/SocketCoreTest.cc
  12332. * test/PeerMessageUtilTest.cc
  12333. * test/DHTConnectionImplTest.cc
  12334. Handle IPv4-mapped addresses.
  12335. * src/DHTNode.cc: Now identity is determined by node id.
  12336. * src/DHTMessageTrackerEntry.cc
  12337. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  12338. should handle it.
  12339. * src/DHTRoutingTableDeserializer.cc
  12340. * src/DHTMessageFactoryImpl.cc
  12341. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12342. Change the unit of --stop option from a minute to a second.
  12343. * src/usage_text.h
  12344. * src/DownloadEngineFactory.cc
  12345. * src/OptionHandlerFactory.cc
  12346. * src/message.h
  12347. * src/TimedHaltCommand.cc
  12348. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12349. Make listening socket non-block mode.
  12350. * src/FtpConnection.cc
  12351. * src/FtpNegotiationCommand.{h, cc}
  12352. * src/PeerListenCommand.cc
  12353. Fixed the bug that cause slow ftp negotiation.
  12354. * src/FtpNegotiationCommand.{h, cc}
  12355. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12356. Added basic tag to --enable-dht, --dht-listen-port option.
  12357. * src/HelpItemFactory.cc (createHelpItems)
  12358. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12359. Updated text.
  12360. * src/usage_text.h
  12361. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12362. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  12363. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12364. Determin _threadtholdSpeed in each constructor for
  12365. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  12366. * src/ActivePeerConnectionCommand.{h, cc}
  12367. * src/PeerReceiveHandshakeCommand.{h, cc}
  12368. * src/BtSetup.cc
  12369. * src/BtConstants.h
  12370. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12371. Added --bt-min-crypto-level and --bt-require-crypto options.
  12372. * src/OptionHandlerFactory.cc
  12373. * src/MSEHandshake.cc
  12374. * src/HelpItemFactory.cc
  12375. * src/option_processing.cc
  12376. * src/ReceiverMSEHandshakeCommand.cc
  12377. * src/prefs.h
  12378. * src/DefaultBtAnnounce.cc
  12379. * src/InitiatorMSEHandshakeCommand.cc
  12380. * src/usage_text.h
  12381. * test/MSEHandshakeTest.cc
  12382. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12383. Bump version number to 0.13.0b
  12384. * configure.ac
  12385. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12386. Updated doc.
  12387. * src/MessageDigestHelper.h:
  12388. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12389. Use raw message digest as a token instead of its hexadecimal
  12390. representation.
  12391. * src/DHTTokenTracker.cc (generateToken)
  12392. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12393. Added Message Stream Encryption(MSE) support.
  12394. Currently, aria2 accepts incoming connections with Obfuscation Header
  12395. and legacy BitTorrent Header and establishes connections with
  12396. Obfuscation Header first and if failed then retry with legacy
  12397. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  12398. choose ARC4. The new option to change the default behavior is planned.
  12399. For tracker extension, "supportcrypto=1" is added statically.
  12400. * src/PeerInitiateConnectionCommand.{h, cc}
  12401. * src/PeerConnection.{h, cc}
  12402. * src/HandleRegistry.h
  12403. * src/SocketCore.h
  12404. * src/PeerReceiveHandshakeCommand.{h, cc}
  12405. * src/BtRegistry.{h, cc}
  12406. * src/PeerListenCommand.cc
  12407. * src/InitiatorMSEHandshakeCommand.{h, cc}
  12408. * src/ReceiverMSEHandshakeCommand.{h, cc}
  12409. * src/MSEHandshake.{h, cc}
  12410. * src/ARC4Encryptor.h
  12411. * src/ARC4Decryptor.h
  12412. * src/LibgcryptARC4Encryptor.h
  12413. * src/LibgcryptARC4Decryptor.h
  12414. * src/LibgcryptARC4Context.h
  12415. * src/LibsslARC4Encryptor.h
  12416. * src/LibsslARC4Decryptor.h
  12417. * src/LibsslARC4Context.h
  12418. * src/DHKeyExchange.h
  12419. * src/LibgcryptDHKeyExchange.h
  12420. * src/LibsslDHKeyExchange.h
  12421. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  12422. * test/DefaultBtAnnounceTest.cc
  12423. * test/ARC4Test.cc
  12424. * test/DHKeyExchangeTest.cc
  12425. Removed prepareForRetry() because it is not used.
  12426. * src/PeerAbstractCommand.{h, cc}
  12427. * src/PeerInteractionCommand.{h, cc}
  12428. * src/PeerInitiateConnectionCommand.{h, cc}
  12429. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12430. Added the ability to load nodes from torrent file. These nodes are
  12431. added to the routing table when downloading that torrent.
  12432. * src/BtContext.h
  12433. * src/DefaultBtContext.{h, cc}
  12434. * src/DHTSetup.cc
  12435. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  12436. hostname and port pair, and resolves all of them.
  12437. * src/NameResolver.{h, cc}: Added reset().
  12438. * src/RequestGroup.cc
  12439. * test/DefaultBtContextTest.cc
  12440. * test/MockBtContext.h
  12441. Removed assert() from DefaultBtContext and throw exception instead.
  12442. * src/DefaultBtContext.cc
  12443. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12444. Fixed segmentation fault bug when exiting if dht is disabled.
  12445. * src/RequestGroup.cc
  12446. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12447. Fixed typo in log message and define the message in message.h
  12448. * src/TimedHaltCommand.cc
  12449. * src/message.h
  12450. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12451. Included RecoverableException.h to fix compilation error.
  12452. * test/DHTMessageFactoryImplTest.cc
  12453. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12454. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  12455. * test/DHTPingMessageTest.cc
  12456. * test/DHTGetPeersMessageTest.cc
  12457. * test/DHTFindNodeMessageTest.cc
  12458. * test/DHTAnnouncePeerMessageTest.cc
  12459. * test/MockDHTMessage.h
  12460. * test/MockDHTMessageFactory.h
  12461. * test/MockDHTMessageDispatcher.h: New class.
  12462. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12463. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  12464. virtual.
  12465. * src/DHTMessageDispatcher.h
  12466. * src/DHTMessageDispatcherImpl.{h, cc}
  12467. * src/DHTSetup.cc
  12468. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12469. Adding handling of DHT error message. Just log error message and
  12470. throw exception.
  12471. * src/DHTMessageFactoryImpl.cc
  12472. * test/DHTMessageFactoryImplTest.cc
  12473. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12474. Added handling of dynamic cast failure.
  12475. * src/DHTNodeLookupTask.cc
  12476. * src/DHTPeerLookupTask.cc
  12477. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12478. Added the ability to stop aria2 itself when given time has passed
  12479. from start. Use --stop option to specify time in minutes.
  12480. When 0 is given, this feature is disabled.
  12481. * src/OptionHandlerFactory.cc
  12482. * src/TimeBasedCommand.h: Make _interval protected scope.
  12483. * src/HelpItemFactory.cc
  12484. * src/option_processing.cc
  12485. * src/prefs.h
  12486. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  12487. before calling RequestGroupMan::fillRequestGroupFromReserver().
  12488. Without this modification, the result list shows "ERR" when aria2 is
  12489. stopped by --stop option. It should be "INPR".
  12490. * src/DownloadEngine.{h, cc}
  12491. * src/DownloadEngineFactory.cc
  12492. * src/usage_text.h
  12493. * src/TimedHaltCommand.{h, cc}: New class.
  12494. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12495. Bootstrap through node added by port message.
  12496. Currently bootstrap is executed if the number of buckets in routing
  12497. table is 1.
  12498. * src/BtPortMessage.{h, cc}
  12499. * src/DefaultBtMessageFactory.{h, cc}
  12500. * src/PeerInteractionCommand.cc
  12501. * test/BtPortMessageTest.cc
  12502. * test/MockDHTTask.h
  12503. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12504. Extract the Peer class's member variables, which are only needed after
  12505. PeerInteractionCommand, into PeerSessionResource class.
  12506. This class is instantiated in PeerInteractionCommand class's ctor and
  12507. released in its dtor.
  12508. This will make Peer class lightweight and uses less memory for peers
  12509. which are not connected and wait in the queue.
  12510. * src/PeerChokeCommand.cc
  12511. * src/PeerSessionResource.{h, cc}
  12512. * src/PeerInteractionCommand.cc
  12513. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  12514. * src/DefaultBtInteractive.cc
  12515. * src/BtPieceMessage.cc
  12516. * src/BtInterestedMessage.cc
  12517. * src/BtUnchokeMessage.cc
  12518. * src/DefaultPeerStorage.{h, cc}
  12519. * src/PeerInitiateConnectionCommand.cc
  12520. * src/ActivePeerConnectionCommand.cc
  12521. * src/BtNotInterestedMessage.cc
  12522. * src/DefaultBtMessageDispatcher.cc
  12523. * src/BtChokeMessage.cc
  12524. * src/BtRequestMessage.cc
  12525. * src/Peer.{h, cc}
  12526. * src/BtRegistry.h
  12527. * src/TrackerWatcherCommand.cc
  12528. * src/PeerReceiveHandshakeCommand.cc
  12529. * test/BtExtendedMessageTest.cc
  12530. * test/BtAllowedFastMessageTest.cc
  12531. * test/BtCancelMessageTest.cc
  12532. * test/DefaultPieceStorageTest.cc
  12533. * test/BtBitfieldMessageTest.cc
  12534. * test/BtHaveMessageTest.cc
  12535. * test/BtNotInterestedMessageTest.cc
  12536. * test/BtRequestMessageTest.cc
  12537. * test/PeerSessionResourceTest.cc
  12538. * test/DefaultBtMessageDispatcherTest.cc
  12539. * test/PeerTest.cc
  12540. * test/BtInterestedMessageTest.cc
  12541. * test/BtRejectMessageTest.cc
  12542. * test/BtChokeMessageTest.cc
  12543. * test/DefaultPeerStorageTest.cc
  12544. * test/BtHaveNoneMessageTest.cc
  12545. * test/BtHaveAllMessageTest.cc
  12546. * test/DefaultExtensionMessageFactoryTest.cc
  12547. * test/BtUnchokeMessageTest.cc
  12548. * test/DefaultBtMessageFactoryTest.cc
  12549. * test/HandshakeExtensionMessageTest.cc
  12550. * test/UTPexExtensionMessageTest.cc
  12551. * test/DefaultBtRequestFactoryTest.cc
  12552. * test/BtPieceMessageTest.cc
  12553. Removed typedef PeerStats.
  12554. * src/PeerStat.h
  12555. * src/SegmentMan.cc
  12556. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12557. Added std namespace to copy, remove_copy, back_inserter,
  12558. front_inserter.
  12559. * src/RequestGroupMan.cc
  12560. * src/DefaultPieceStorage.cc
  12561. * src/StreamFileAllocationEntry.cc
  12562. * src/BtFileAllocationEntry.cc
  12563. * src/RequestGroup.cc
  12564. * src/MetalinkEntry.cc
  12565. * src/DelegatingPeerListProcessor.cc
  12566. * src/DefaultBtRequestFactory.cc
  12567. * src/DefaultBtMessageDispatcher.cc
  12568. * src/version_usage.cc: Included <algorithm>
  12569. * src/main.cc
  12570. * src/MetalinkParserController.cc
  12571. * src/DefaultBtContext.cc
  12572. * src/DownloadEngineFactory.cc
  12573. * src/a2algo.h
  12574. Removed.
  12575. * test/StreamUriListParserTest.cc
  12576. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12577. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  12578. ActivePeerConnectionCommand when it is given and
  12579. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  12580. * src/ActivePeerConnectionCommand.{h, cc}
  12581. * src/BtSetup.cc
  12582. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12583. Only add socket to DownloadEngine's select routine when peer or
  12584. localhost is unchoked and interested. This lowers CPU usage a
  12585. little bit.
  12586. * src/PeerInteractionCommand.cc
  12587. * src/PeerAbstractCommand.{h, cc}
  12588. * src/BtInteractive.h
  12589. * src/DefaultBtInteractive.{h, cc}
  12590. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12591. Revert previous change because get_peers message is needed for
  12592. announce_peer anyway.
  12593. * src/DHTGetPeersCommand.cc
  12594. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12595. Request peers thought DHT only when download hasn't finished.
  12596. * src/DHTGetPeersCommand.cc
  12597. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12598. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  12599. * src/DHTBucketRefreshTask.{h, cc}
  12600. * src/DHTSetup.cc
  12601. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12602. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  12603. standard classes.
  12604. Included string.h where mem* function are used.
  12605. Added namespace aria2.
  12606. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12607. Create directory before saving DHT routing table.
  12608. Now ios::failure is now handled properly.
  12609. * src/DHTAutoSaveCommand.cc
  12610. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12611. Removed unnecessary cerr.
  12612. * src/DownloadEngine.cc
  12613. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12614. Catch exception inside DHTMessageReceiver::receiveMessage().
  12615. Log unknown message.
  12616. * src/DHTMessageReceiver.{h, cc}
  12617. * src/DHTMessageFactory.h
  12618. * src/DHTMessageFactoryImpl.{h, cc}
  12619. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  12620. * src/DHTInteractionCommand.cc
  12621. * src/DHTUnknownMessage.{h, cc}
  12622. * test/DHTUnknownMessageTest.cc
  12623. * test/MockDHTMessageFactory.h
  12624. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12625. Commented out ip address comparison because a host can have multiple
  12626. ip addresses and it is hard to predict the hostname is resolved into
  12627. which one.
  12628. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  12629. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12630. * po/Makefile.in: Removed since this is generated by configure.
  12631. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12632. Fixed compiler warning about redefinition of SIZE_MAX.
  12633. Use common.h instead of config.h directly here.
  12634. * src/Platform.{h, cc}
  12635. The check of ENABLE_NLS is made in gettext.h, so it is not required
  12636. here.
  12637. * common.h
  12638. 2008-02-02 gettextize <[email protected]>
  12639. Updated gettext related files.
  12640. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  12641. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  12642. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12643. Added DHT functionality, compatible with mainline.
  12644. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  12645. You may need to specify entry point to DHT network using
  12646. --dht-entry-point. DHT uses UDP port to listen incoming message.
  12647. Use --dht-listen-port to specify port number. Make sure that your
  12648. firewall configuration can pass through UDP traffic to the port.
  12649. The routing table is saved in $HOME/.aria2/dht.dat.
  12650. * src/DHT*
  12651. * src/BNode.{h, cc}
  12652. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  12653. particular torrent.
  12654. * src/Data.cc: Rewritten ctor.
  12655. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  12656. --dht-entry-point.
  12657. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  12658. * src/RequestGroup.cc: Initialize DHT functionality. When download
  12659. ends, remove BtContext from DHTPeerAnnounceStorage.
  12660. * src/BtPortMessage.{h, cc}: Rewritten.
  12661. * src/message.h
  12662. * src/OptionHandlerImpl.cc
  12663. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  12664. --dht-entry-point.
  12665. * src/Dictionary.{h, cc} (remove): New function.
  12666. * src/prefs.h
  12667. * src/DefaultBtMessageFactory.h
  12668. * src/BtHandshakeMessage.cc
  12669. * src/ActivePeerConnectionCommand.cc
  12670. * src/SocketCore.{h, cc}: Added datagram socket support.
  12671. * src/DefaultBtMessageFactory.cc
  12672. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  12673. Create DHT commands.
  12674. * src/BtMessageFactory.h
  12675. * src/PeerMessageUtil.{h, cc}
  12676. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12677. Fixed the bug that log file is not written when configuration file doesn't exist.
  12678. This is caused by using Logger class before LogFactory is not configured.
  12679. BUG #1875079
  12680. * src/option_processing.cc
  12681. Warning message "configuration doesn't exist" is only printed when --conf is
  12682. given.
  12683. * src/option_processing.cc
  12684. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12685. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  12686. ShaVisitor is now deprecated and slated to be removed.
  12687. * src/DefaultBtContext.cc
  12688. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12689. Externalize message to message.h
  12690. * src/Platform.cc
  12691. * src/message.h
  12692. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12693. Set default domain and default path to cookie.
  12694. * src/HttpResponse.cc
  12695. * src/CookieBox.{h, cc}
  12696. * src/CookieParser.{h, cc}
  12697. * test/CookieParserTest.cc
  12698. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12699. Added --no-conf and --conf-path command-line option.
  12700. --no-conf option disables loading aria2.conf file.
  12701. --conf-path option changes the configuration file path. The default
  12702. file path is $HOME/.aria2/aria2.conf
  12703. Added a warning message when the configuration file is not found.
  12704. * src/HelpItemFactory.cc
  12705. * src/option_processing.cc
  12706. * src/prefs.h
  12707. * src/usage_text.h
  12708. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12709. Added the message to inform users that other help categories are
  12710. available in -h option.
  12711. * src/version_usage.cc
  12712. * src/TagContainer.{h, cc}
  12713. * test/TagContainerTest.cc
  12714. * src/TaggedItem.{h, cc}
  12715. * test/TaggedItemTest.cc
  12716. * src/HelpItem.h
  12717. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12718. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  12719. from PiecedSegment's ctor.
  12720. Previously Piece::getAllMissingBlockIndexes() is called from
  12721. PiecedSegment() but it is rather expensive since only first element is
  12722. used.
  12723. * src/PiecedSegment.cc
  12724. * src/Piece.{h, cc}
  12725. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12726. Rewritten get*Missing*Index functions. Now no need to allocate memory
  12727. each time these functions are called.
  12728. * src/BitfieldMan.{h, cc}
  12729. * test/BitfieldManTest.cc
  12730. * src/array_fun.h
  12731. * test/array_funTest.cc
  12732. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  12733. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  12734. filtered. Removed unnecessary cast to int32_t.
  12735. * src/BitfieldMan.{h, cc}
  12736. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12737. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  12738. payload length(4bytes) are received. This happens because lenbufLength
  12739. is not updated in this particular case and successive call of
  12740. receiveMessage() overwrites payload length with bytes recieved which
  12741. are payload body.
  12742. * src/PeerConnection.{h, cc}
  12743. * src/message.h
  12744. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12745. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  12746. peer if there are peers that have same ipaddr and port.
  12747. I've experiened segmentation fault and "pure virtual function was
  12748. called" error.
  12749. * src/Peer.h
  12750. * test/PeerTest.cc
  12751. * src/DefaultPeerStorage.cc
  12752. * test/DefaultPeerStorageTest.cc
  12753. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12754. Removed a call to isPowerOf() because it is no longer necessary here
  12755. and a request block is not always power of 2.
  12756. BUG#1866924
  12757. * src/PeerMessageUtil.cc (checkLength)
  12758. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12759. Fixed the bug that always first found Segment is removed from
  12760. usedSegmentEntries. Removed unused functions.
  12761. * src/SegmentMan.{h, cc}
  12762. * test/SegmentManTest.cc
  12763. Fixed the bug that ServerHost is not removed.
  12764. * src/RequestGroup.cc
  12765. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12766. Fixed the bug that SegmentMan::completeSegment() is not called
  12767. even if Segment is complete when --lowest-speed-limit is enabled.
  12768. BUG#1864525
  12769. * src/DownloadCommand.{h, cc}
  12770. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12771. Fixed: hash algorithm 'sha1' is always used.
  12772. * src/DownloadCommand.cc (validatePieceHash)
  12773. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12774. Added --enable-peer-exchange command-line option.
  12775. * src/OptionHandlerFactory.cc
  12776. * src/HelpItemFactory.cc
  12777. * src/option_processing.cc
  12778. * src/usage_text.h
  12779. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12780. Move extension from BtRuntime to ExtensionMessageFactory, because
  12781. extension can be specified per peer, not per torrent.
  12782. * src/DefaultBtInteractive.cc
  12783. * src/BtRuntime.h
  12784. * src/ExtendedMessagingAware.h
  12785. * src/ExtensionMessageFactory.h
  12786. * src/DefaultExtensionMessageFactory.cc
  12787. * test/DefaultExtensionMessageFactoryTest.cc
  12788. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12789. Added categorized option help. Specify category using --help option.
  12790. Also added the ability to search options in forward match.
  12791. * src/HelpItem.{h, cc}
  12792. * test/HelpItemTest.cc
  12793. * src/HelpItemFactory.{h, cc}
  12794. * src/TagContainer.{h, cc}
  12795. * test/TagContainerTest.cc
  12796. * src/option_processing.cc
  12797. * src/prefs.h
  12798. * src/TaggedItem.{h, cc}
  12799. * test/TaggedItemTest.cc
  12800. * src/version_usage.cc
  12801. * src/help_tags.h
  12802. * src/usage_text.h
  12803. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12804. Fixed segmentation fault when bad torrent metainfo is parsed.
  12805. Added dynamic_cast properly to detect the misconfiguration of metainfo
  12806. and then throw exception or skip it.
  12807. * src/DefaultBtContext.{h, cc}
  12808. * test/DefaultBtContextTest.cc
  12809. * src/AnnounceList.cc
  12810. * src/CompactPeerListProcessor.cc
  12811. * src/message.h
  12812. * src/DefaultBtAnnounce.{h, cc}
  12813. * test/DefaultBtAnnounceTest.cc
  12814. * src/BencodeVisitor.cc
  12815. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12816. Added missing "B"(=Byte). So now the message looks like this:
  12817. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  12818. * src/message.h (MSG_SHARE_RATIO_REPORT)
  12819. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12820. Show the seed ratio after torrent downloads.
  12821. For example, after torrent download completed and --seed-time and
  12822. --seed-ratio conditions are fulfilled, following message is printed
  12823. right after "Download complete: .....":
  12824. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  12825. * src/RequestGroupMan.cc
  12826. * src/RequestGroup.{h, cc}
  12827. * src/message.h
  12828. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12829. Remove a defunct control file. A defunct control file means that while
  12830. it exists, but the corresponding download file is missing.
  12831. After its removal, a download restarts from the beginning.
  12832. * src/RequestGroup.cc
  12833. * src/message.h
  12834. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12835. Allocate bitfield in Peer when it is really used. More specifically,
  12836. bitfield in Peer is allocated after the connection is established and
  12837. deallocated when the connection is dropped.
  12838. Since 2 parameters(piece length and total length) was removed from the
  12839. constructor of Peer class, many test classes were modified accordingly.
  12840. See svn log for more detailed information.
  12841. * src/PeerInteractionCommand.cc
  12842. * src/CompactPeerListProcessor.cc
  12843. * src/Peer.cc
  12844. * src/DefaultPeerListProcessor.cc
  12845. * src/PeerListenCommand.cc
  12846. * src/PeerReceiveHandshakeCommand.cc
  12847. Fixed memory leak
  12848. * src/Piece.cc
  12849. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12850. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  12851. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  12852. command-line options.
  12853. * src/option_processing.cc
  12854. * src/ActivePeerConnectionCommand.cc
  12855. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12856. Send have message to peer if it already has the piece.
  12857. * src/BtHaveMessage.{h, cc}
  12858. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12859. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  12860. port.
  12861. * src/DefaultPeerStorage.{h, cc}
  12862. * test/DefaultPeerStorageTest.cc
  12863. * src/HandshakeExtensionMessage.cc
  12864. * test/HandshakeExtensionMessageTest.cc
  12865. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  12866. * src/PeerStorage.h
  12867. * test/MockPeerStorage.h
  12868. * src/PeerListenCommand.cc
  12869. * src/PeerReceiveHandshakeCommand.cc
  12870. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12871. Added --metalink-enable-unique-protocol option.
  12872. * src/Metalink2RequestGroup.cc
  12873. * src/option_processing.cc
  12874. * src/prefs.h
  12875. * src/version_usage.cc
  12876. * doc/aria2c.1.txt
  12877. * doc/aria2c.1
  12878. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12879. Allow a peer in incomingPeer to be added peers.
  12880. * src/DefaultPeerStorage.cc
  12881. * test/DefaultPeerStorageTest.cc
  12882. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12883. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  12884. I could reproduce this bug in following procedure:
  12885. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  12886. 2. Restart aria2.
  12887. 3. You see the download stopped around 99%.
  12888. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12889. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  12890. If timeout is reached, then _nextCommand is unused and it may contains
  12891. segments and they won't be canceled. Actually, timeout is not needed
  12892. here because if the server dropped connection, then retry is made.
  12893. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12894. Added uTorrent compatible Peer Exchange.
  12895. * src/BencodeVisitor.{h, cc}
  12896. * test/BencodeVisitorTest.cc
  12897. * src/BtConstants.h
  12898. * src/BtContext.h: Added 'private' flag.
  12899. * src/BtExtendedMessage.{h, cc}
  12900. * test/BtExtendedMessageTest.cc
  12901. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  12902. reserved field.
  12903. * test/BtHandshakeMessageTest.cc
  12904. * src/BtMessageFactory.h
  12905. * src/BtRegistry.h
  12906. * src/BtRuntime.h: This class holds default extension message IDs for
  12907. aria2. By default, aria2 uses ID 8 for ut_pex.
  12908. * src/DefaultBtContext.cc
  12909. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  12910. When it is true, aria2 enables ut_pex. This value is set by
  12911. PeerInteractionCommand.
  12912. * src/DefaultBtMessageFactory.{h, cc}
  12913. * test/DefaultBtMessageFactoryTest.cc
  12914. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  12915. handling to DefaultBtInteractive class.
  12916. * src/DefaultExtensionMessageFactory.{h, cc}
  12917. * test/DefaultExtensionMessageFactoryTest.cc
  12918. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  12919. the container(peers and incomingPeers. The equality is determined by
  12920. Peer::id).
  12921. * test/DefaultPeerStorageTest.cc
  12922. * src/ExtensionMessage.h
  12923. * test/MockExtensionMessage.h
  12924. * src/ExtensionMessageFactory.h
  12925. * test/MockExtensionMessageFactory.h
  12926. * src/HandshakeExtensionMessage.{h, cc}
  12927. * test/HandshakeExtensionMessageTest.cc
  12928. * src/MetaEntry.h
  12929. * src/Peer.{h, cc}
  12930. * src/PeerInteractionCommand.cc
  12931. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  12932. addIncomingPeer.
  12933. * src/PeerMessageUtil.{h, cc}
  12934. * src/PeerObject.h
  12935. * src/UTPexExtensionMessage.{h, cc}
  12936. * test/UTPexExtensionMessageTest.cc
  12937. * src/message.h
  12938. * src/prefs.h
  12939. Fixed the bug that returns incomplete data when it contains null
  12940. character. A convenient constructor was also added.
  12941. * src/Data.{h, cc}
  12942. Rewritten.
  12943. * src/CompactPeerListProcessor.cc
  12944. Fixed typos.
  12945. * src/message.h
  12946. * src/MetaFileUtil.cc
  12947. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12948. Added "Status Legend" label to the explanation text of 'stat' in
  12949. download result and moved it to the last. BUG#1848214
  12950. * src/RequestGroupMan.cc
  12951. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12952. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  12953. * src/Makefie.am
  12954. * test/Makefile.am
  12955. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12956. Fixed the bug that prevents aria2 from loading cookie file when expire
  12957. value is greater than 2^31-1. BUG#1851066
  12958. * src/CookieBoxFactory.cc
  12959. * test/CookieBoxFactoryTest.cc
  12960. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12961. Fixed possible memory leak when an exception is thrown.
  12962. * src/XML2SAXMetalinkProcessor.cc
  12963. Added Expat support. If both libxml2 and Expat are installed, then
  12964. libxml2 is used by default.
  12965. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  12966. ExpatMetalinkProcessor according to the configuration.
  12967. * src/ExpatMetalinkProcessor.{h, cc}
  12968. * src/main.cc: Removed libxml2 specific header and init/free function.
  12969. * src/MetalinkProcessorFactory.{h, cc}
  12970. * src/MetalinkHelper.cc
  12971. * src/Metalinker.h: Removed unnecessary libxml2 header.
  12972. * src/MetalinkProcessor.h
  12973. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  12974. MetalinkProcessorTest is used instead.
  12975. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  12976. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  12977. MetalinkProcessorFactory::newInstance().
  12978. * m4/libexpat.m4
  12979. * configure.ac: Added configuration options for libexpat.
  12980. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12981. Disabled -s option in metalink download.
  12982. * src/Metalink2RequestGroup.cc
  12983. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12984. If several protocols are available for a mirror in metalink file,
  12985. aria2 now use one of them. --metalink-preferred-protocol option was
  12986. added to specify the preference of protocol.
  12987. * src/AbstractCommand.cc
  12988. * src/OptionHandlerFactory.cc
  12989. * src/ServerHost.{h, cc}
  12990. * src/Metalink2RequestGroup.cc
  12991. * src/RequestGroup.{h, cc}
  12992. * test/RequestGroupTest.cc
  12993. * src/option_processing.cc
  12994. * src/prefs.h
  12995. * src/HttpResponseCommand.cc
  12996. * src/MetalinkResource.{h, cc}
  12997. * src/FtpNegotiationCommand.cc
  12998. * src/MetalinkEntry.{h, cc}
  12999. * src/MetalinkEntryTest.cc
  13000. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13001. Code cleanup and added debug log.
  13002. * src/PeerConnection.cc
  13003. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13004. Compiler error fix: applied the patch by Tiziano Mueller
  13005. * src/RequestGroup.cc
  13006. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13007. Fixed the bug: only first announce URL is tried in AnnounceTier,
  13008. in stopped and completed event.
  13009. * src/AnnounceList.{h, cc}
  13010. * test/AnnounceListTest.cc
  13011. * src/DefaultBtAnnounce.cc
  13012. * test/DefaultBtAnnounceTest.cc
  13013. Sorted URLs.
  13014. * test/Metalink2RequestGroupTest.cc
  13015. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13016. Removed unnecessary string copy. Updated doc and corrected indentation.
  13017. * src/Base64.cc
  13018. Fixed compilation warnings
  13019. * test/DataTest.cc
  13020. * test/HttpRequestTest.cc
  13021. * test/MetaFileUtilTest.cc
  13022. * test/RequestTest.cc
  13023. * Release 0.12.0
  13024. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13025. Updated translations
  13026. * po/{de,fr,ja,nl,ru}.po
  13027. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  13028. translations. Many thanks to translators.
  13029. * po/{ca,es,it,pt_BR,sv}.po
  13030. * po/LINGUAS
  13031. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13032. Added a notice about URL
  13033. * src/version_usage.cc
  13034. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  13035. Fixed the bug#1845750; CTRL+C does not stop torrent.
  13036. aria2 repeatedly sends stopped request when tracker returns error code.
  13037. * src/AnnounceList.cc
  13038. * test/AnnounceListTest.cc
  13039. * src/AnnounceTier.h
  13040. Added a message when ctrl-c is hit.
  13041. Now second ctrl-c is also handled in signal handler.
  13042. * src/RequestGroupMan.{h, cc}
  13043. * src/RequestGroup.{h, cc}
  13044. * src/MultiUrlRequestInfo.cc
  13045. * src/DownloadEngine.cc
  13046. * src/TrackerWatcherCommand.cc
  13047. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13048. Code cleanup
  13049. * src/Base64.cc (encode)
  13050. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13051. Changed Direct/IO enable/disable procesure in file allocation routine.
  13052. * src/SingleFileAllocationIterator.cc
  13053. (SingleFileAllocationIterator):
  13054. Disable directIO if offset is not multiple of 512.
  13055. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  13056. * src/MultiFileAllocationIterator.cc (allocateChunk):
  13057. Enable created SingleFileAllocationIterator's directIO.
  13058. * src/FileAllocationEntry.cc
  13059. (FileAllocationEntry): Enable directIO here.
  13060. (~FileAllocationEntry): Disable directIO here.
  13061. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13062. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  13063. * src/Peer.{h, cc}
  13064. * src/DefaultPieceStorage.cc
  13065. * test/DefaultPieceStorageTest.cc
  13066. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13067. Rewritten direct I/O support routine
  13068. * src/SingleFileAllocationIterator.cc
  13069. * src/MultiDiskAdaptor.{h, cc}
  13070. * src/ByteArrayDiskWriter.h
  13071. * src/AbstractSingleDiskAdaptor.h
  13072. * src/AbstractDiskWriter.cc
  13073. * src/DefaultPieceStorage.cc
  13074. * src/DiskWriter.h
  13075. * src/BinaryStream.h
  13076. * src/IteratableChunkChecksumValidator.cc
  13077. * src/IteratableChecksumValidator.cc
  13078. * src/CheckIntegrityEntry.cc
  13079. * src/FileAllocationEntry.cc
  13080. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13081. Fixed typo
  13082. * src/version_usage.cc
  13083. Updated doc
  13084. * doc/aria2c.1.txt
  13085. * doc/aria2c.1
  13086. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13087. Fixed compile error without message digest support.
  13088. * src/FileMetalinkParserState.cc
  13089. * src/MetalinkParserController.{h, cc}
  13090. * test/XML2SAXMetalinkProcessorTest.cc
  13091. * test/MetalinkParserControllerTest.cc
  13092. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13093. Enable direct I/O support in checksum checking.
  13094. * src/IteratableChunkChecksumValidator.{h, cc}
  13095. * test/IteratableChunkChecksumValidatorTest.cc
  13096. * src/CheckIntegrityEntry.cc
  13097. * src/PieceHashCheckIntegrityEntry.cc
  13098. * src/IteratableChecksumValidator.{h, cc}
  13099. * src/BtCheckIntegrityEntry.cc: Added doc.
  13100. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13101. Added --allow-piece-length-change option.
  13102. * src/DefaultBtProgressInfoFile.cc
  13103. * test/DefaultBtProgressInfoFileTest.cc
  13104. * src/OptionHandlerFactory.cc
  13105. * src/option_processing.cc
  13106. * src/prefs.h
  13107. * src/version_usage.cc
  13108. * doc/aria2c.1.txt
  13109. * doc/aria2c.1
  13110. Fixed: duplicated result entry appears when exception is thrown in
  13111. RequestGroup::createInitiateConnectionCommand().
  13112. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  13113. Add RequestGroup to _requestGroup after RequetGroup::
  13114. createInitiateConnectionCommand() succeeds.
  13115. Externalized message
  13116. * src/XML2SAXMetalinkProcessor.cc
  13117. * src/message.h
  13118. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13119. Forced download abort when received negative response from http/ftp
  13120. server.
  13121. * src/HttpResponseCommand.cc
  13122. * src/FtpNegotiationCommand.cc
  13123. * src/HttpResponse.cc
  13124. * src/FtpConnection.cc
  13125. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13126. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  13127. the predecessor, Xml2MetalinkParser class.
  13128. I tested them against 94KB metalink file with 1234 chunk checksums.
  13129. The new one parsed it in 22msec, while it took 6000msec with old one.
  13130. * src/XML2SAXMetalinkProcessor.{h, cc}
  13131. * test/XML2SAXMetalinkProcessorTest.cc
  13132. * src/MetalinkParserController.{h, cc}
  13133. * test/MetalinkParserControllerTest.cc
  13134. * src/MetalinkParserState.h: Also added 16 subclasses.
  13135. * src/main.cc
  13136. * src/Metalink2RequestGroup.cc
  13137. * src/MetalinkHelper.cc
  13138. * src/MetalinkEntry.cc
  13139. * src/ChunkChecksum.h
  13140. Rewritten Base64 class for better performance.
  13141. * src/Base64.{h, cc}
  13142. * test/Base64Test.cc
  13143. * src/HttpRequest.cc
  13144. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13145. Fixed the bug#1841757: aria2 will connect to server to only get
  13146. file size.
  13147. * src/StreamFileAllocationEntry.cc
  13148. * src/option_processing.cc
  13149. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  13150. downloads.
  13151. * src/FtpNegotiationCommand.cc
  13152. Suppressed wrong message when finding PreDownloadHandler
  13153. * src/RequestGroup.cc
  13154. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13155. Updated usage
  13156. * src/version_usage.cc
  13157. Updated man page
  13158. * doc/aria2c.1.txt
  13159. * doc/aria2c.1
  13160. Updated po files
  13161. * po/aria2c.pot
  13162. * po/*.po
  13163. * po/*.gmo
  13164. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13165. Eliminated g++-4.2 warning
  13166. * src/DownloadHandlerConstants.{h, cc}
  13167. * src/Util.cc
  13168. * test/MetaFileUtilTest.cc
  13169. * test/PStringBuildVisitorTest.cc
  13170. Fixed bug: --check-integrity doesn't work for multi file torrent.
  13171. * src/RequestGroup.cc
  13172. * src/BtCheckIntegrityEntry.cc
  13173. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13174. Fixed a2io.h
  13175. * src/a2io.h
  13176. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13177. Added direct I/O support. The current implementation uses O_DIRECT,
  13178. which is not posix standard and is tested on linux 2.6.21.
  13179. Currently only file allocation uses direct I/O.
  13180. * src/SingleFileAllocationIterator.{h, cc}
  13181. * test/SingleFileAllocationIteratorTest.cc
  13182. * src/MultiFileAllocationIterator.{h, cc}
  13183. * test/MultiFileAllocationIteratorTest.cc
  13184. * src/BinaryStream.h
  13185. * src/DiskWriter.h
  13186. * src/AbstractDiskWriter.{h, cc}
  13187. * src/ByteArrayDiskWriter.h
  13188. * src/DiskAdaptor.h
  13189. * src/AbstractSingleDiskAdaptor.{h, cc}
  13190. * src/MultiDiskAdaptor.{h, cc}
  13191. * src/FileAllocationEntry.cc
  13192. * src/Util.{h, cc}
  13193. * src/OptionHandlerFactory.cc
  13194. * src/prefs.h
  13195. * src/version_usage.cc
  13196. * src/option_processing.cc
  13197. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  13198. handleException.
  13199. * src/MultiFileAllocationIterator.cc
  13200. Added EINTR handling
  13201. * src/SocketCore.cc
  13202. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13203. Updated usage
  13204. * src/version_usage.cc
  13205. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13206. Applied Ross's patch for MinGW port.
  13207. * src/DownloadEngine.h
  13208. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13209. Set Content-Type to SingleFileDownloadContext when http response is
  13210. received.
  13211. * src/HttpResponseCommand.cc
  13212. * src/HttpResponse.{h, cc}
  13213. * test/HttpResponseTest.cc
  13214. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13215. Rewritten to add content-type support.
  13216. * src/DownloadHandler.{h, cc}
  13217. * src/BtPostDownloadHandler.{h, cc}
  13218. * test/BtPostDownloadHandlerTest.cc
  13219. * src/MetalinkPostDownloadHandler.{h, cc}
  13220. * test/MetalinkPostDownloadHandlerTest.cc
  13221. * src/PostDownloadHandler.{h, cc}
  13222. * src/DownloadHandlerConstants.{h, cc}
  13223. * src/RequestGroup.cc
  13224. * src/HttpResponseCommand.cc
  13225. * src/FtpNegotiationCommand.cc
  13226. * src/SingleFileDownloadContext.{h, cc}
  13227. * src/RequestGroup.h
  13228. * src/RequestGroupCriteria.h
  13229. * src/ContentTypeRequestGroupCriteria.h
  13230. Added 'mem' option value for --follow-metalink, --follow-torrent.
  13231. If it is give, metalink/torrent file is not written to the disk, but
  13232. just is kept in memory. Parsing is occurred on memory.
  13233. * src/MetalinkHelper.{h, cc}
  13234. * src/MetalinkProcessor.h
  13235. * src/Xml2MetalinkProcessor.{h, cc}
  13236. * test/Xml2MetalinkProcessorTest.cc
  13237. * src/DownloadHandlerFactory.{h, cc}
  13238. * test/DownloadHandlerFactoryTest.cc
  13239. * src/PreDownloadHandler.{h, cc}
  13240. * src/OptionHandlerFactory.cc
  13241. * src/DefaultBtContext.{h, cc}
  13242. * test/DefaultBtContextTest.cc
  13243. * src/version_usage.cc
  13244. * src/Metalink2RequestGroup.{h, cc}
  13245. * src/RequestGroup.{h, cc}
  13246. * src/a2functional.h
  13247. * test/a2functionalTest.cc
  13248. * src/MemoryBufferPreDownloadHandler.{h, cc}
  13249. * src/OptionHandlerImpl.h
  13250. * src/prefs.h
  13251. * src/Util.{h, cc}
  13252. * test/UtilTest.cc
  13253. Keep DownloadResult rather than RequestGroup after downloads to reduce
  13254. memory usage.
  13255. * src/RequestGroupMan.{h, cc}
  13256. * src/DownloadEngine.cc
  13257. * src/BtDependency.{h, cc}: Changed the type of dependee from
  13258. WeakHandle to SharedHandle because WeakHandle could be null.
  13259. * src/RequestGroup.{h, cc}
  13260. * src/DownloadEngineFactory.cc
  13261. * src/DownloadResult.h
  13262. Set totalLength after download finished
  13263. * src/UnknownLengthPieceStorage.{h, cc}
  13264. Keep torrent file specified in metalink in memory.
  13265. * src/Metalink2RequestGroup.cc
  13266. * src/BtDependency.cc
  13267. * src/TrueRequestGroupCriteria.h
  13268. Fixed the bug: seekg is used where seekp should be used.
  13269. * src/ByteArrayDiskWriter.cc
  13270. * test/ByteArraydiskWriterTest.cc
  13271. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13272. Fixed syntax error
  13273. * test/SequenceTest.cc
  13274. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13275. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  13276. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  13277. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  13278. * src/RequestGroup.cc (downloadFinishedByFileLength)
  13279. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13280. Added the check to see whether ares_host_callback accepts timeouts
  13281. with c-ares; only c-ares 1.5.0 or newer accepts it.
  13282. * src/NameResolver.{h, cc}
  13283. * m4/libcares.m4
  13284. * configure.ac: Set C++ for language choice.
  13285. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13286. Fixed: compilation fails without c-ares/ares
  13287. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  13288. Generate http/ftp commands only when download is incomplete.
  13289. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  13290. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13291. Corrected typo. Examples are removed since they are available in man
  13292. page.
  13293. * src/version_usage.cc
  13294. Updated man page.
  13295. * doc/aria2c.1
  13296. * doc/aria2c.1.txt
  13297. * doc/makeman: Commented out sed command.
  13298. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13299. Throw DlAbortEx when a remote file is not found.
  13300. * src/HttpResponse.cc
  13301. * src/FtpNegotiationCommand.cc
  13302. * src/message.h
  13303. Overwrite an existing file if --allow-overwrite=true is given.
  13304. * src/RequestGroup.cc
  13305. Removed unused functions
  13306. * src/AbstractCommand.h
  13307. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13308. Removed 'extern' from 'extern typedef ...' in src/*.h
  13309. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13310. Updated usage
  13311. * src/version_usage.cc
  13312. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13313. Trim announce URL
  13314. * src/DefaultBtContext.cc
  13315. * test/ShaVisitorTest.cc
  13316. Trim argument s. Give trimed s to exception constructor.
  13317. * src/Util.cc (parseInt)(parseLLInt)
  13318. * test/UtilTest.cc
  13319. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13320. Set precision back to 1.
  13321. * src/ConsoleStatCalc.cc (calculateStat)
  13322. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13323. Replaced strtol with Util::parseInt
  13324. * src/ChunkedEncoding.cc
  13325. * src/HttpConnection.cc
  13326. * src/CookieBoxFactory.cc
  13327. * src/ParameterizedStringParser.cc
  13328. * src/Util.cc
  13329. * test/UtilTest.cc
  13330. * test/OptionHandlerTest.cc
  13331. * src/Request.cc
  13332. Throw exception when empty string is given. The message for exception
  13333. changed.
  13334. * src/Util.cc (parseInt)(parseLLInt)
  13335. * src/message.h
  13336. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13337. Set precision to 2 because share ratio is rounded into 1.0 if precision
  13338. set to 1.
  13339. * src/ConsoleStatCalc.cc (calculateStat)
  13340. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13341. Preallocate non-requested file which is adjacent forward to requested
  13342. file('requested' files means the files given in --select-file option)
  13343. if they share a same piece.
  13344. This fixes long pause in the file system which doesn't support sparse
  13345. files like FAT32 while downloading.
  13346. * src/MultiFileAllocationIterator.{h, cc}
  13347. * test/MultiFileAllocationIteratorTest.cc
  13348. * src/FileEntry.{h, cc}
  13349. Removed unused _option.
  13350. * src/MultiDiskAdaptor.h
  13351. * test/MultiDiskAdaptorTest.cc
  13352. * src/DefaultPieceStorage.cc
  13353. Set the default value of --seed-ratio to 1.0.
  13354. If 0.0 is given, then seeding continues regardless of share ratio.
  13355. * src/version_usage.cc
  13356. * src/option_processing.cc
  13357. * src/BtSetup.cc
  13358. * doc/aria2c.1.txt
  13359. * doc/aria2c.1
  13360. Fixed: Selective download is not working in BitTorrent
  13361. * src/RequestGroup.cc
  13362. Introduced Sequence class. Use this instead of Util::unfoldRange()
  13363. * src/PieceStorage.h
  13364. * test/MockPieceStorage.h
  13365. * src/UnknownLengthPieceStorage.h
  13366. * src/DefaultPieceStorage.{h, cc}
  13367. * src/Metalink2RequestGroup.cc
  13368. * src/RequestGroup.cc
  13369. * src/Sequence.h
  13370. * test/SequenceTest.cc
  13371. * src/IntSequence.h
  13372. * src/message.h
  13373. * src/Util.{h, cc}
  13374. * test/UtilTest.cc
  13375. Added new function 'parse' to catch exception thrown by subclass's
  13376. parseArg
  13377. * src/OptionHandler.h
  13378. * src/OptionParser.cc
  13379. * src/NameMatchOptionHandler.h
  13380. * src/OptionHandlerImpl.h
  13381. * test/OptionHandlerTest.cc
  13382. Added IntegerRangeOptionHandler. Used for --listen-port and
  13383. --select-file. Now --listen-port accepts range of port.
  13384. * src/OptionHandlerFactory.cc
  13385. * src/version_usage.cc
  13386. * src/OptionHandlerImpl.h
  13387. * src/option_processing.cc
  13388. * src/BtSetup.cc
  13389. * src/PeerListenCommand.{h, cc}
  13390. * doc/aria2c.1.txt
  13391. * doc/aria2c.1
  13392. Implemented operator< for Exception class to provide easy way to print
  13393. exception stack trace.
  13394. * src/Exception.{h, cc}
  13395. * src/main.cc
  13396. * src/option_processing.cc
  13397. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13398. * src/version_usage.cc
  13399. (showVersion): Reworked.
  13400. (showUsage): Added examples.
  13401. Removed Hint for total length and file name.
  13402. * src/Metalink2RequestGroup.cc
  13403. * src/RequestGroup.{h, cc}
  13404. * src/HttpResponseCommand.cc
  13405. * src/FtpNegotiationCommand.cc
  13406. Now --follow-torrent and --follow-metalink option work properly.
  13407. * src/RequestGroup.cc
  13408. Updated man page
  13409. * doc/aria2c.1.txt
  13410. * doc/aria2c.1
  13411. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13412. Removed.
  13413. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  13414. Use Segment::operator==()
  13415. * src/HttpConnection.cc
  13416. * src/Segment.h
  13417. Updated usage
  13418. * src/version_usage.cc
  13419. Added EINTR treatment.
  13420. * src/SocketCore.cc
  13421. * src/AbstractDiskWriter.cc
  13422. Rewritten.
  13423. * src/Util.cc (rangedFileCopy)
  13424. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13425. Fixed typo.
  13426. * src/version_usage.cc
  13427. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13428. Implemented. Now -c option works fine.
  13429. * src/DefaultPieceStorage.cc (markPiecesDone)
  13430. * test/DefaultPieceStorageTest.cc
  13431. Removed.
  13432. * src/SegmentMan.{h, cc}
  13433. (markAllPiecesDone)
  13434. (markPieceDone)
  13435. Synchronized po files with
  13436. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  13437. * src/fr.po
  13438. * src/ru.po
  13439. * src/de.po
  13440. * src/ja.po
  13441. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13442. Added ifdef and some modifications to compile without BitTorrent,
  13443. Metalink, MessageDigest
  13444. support.
  13445. * src/PieceHashCheckIntegrityEntry.cc
  13446. * src/MetalinkEntry.h
  13447. * src/version_usage.cc
  13448. * src/main.cc
  13449. * src/DownloadEngine.{h, cc}
  13450. * src/Metalink2RequestGroup.cc
  13451. * src/Peer.cc
  13452. * src/RequestGroup.cc
  13453. * src/MetalinkHelper.cc
  13454. * test/DefaultPieceStorageTest.cc
  13455. * test/MetalinkPostDownloadHandlerTest.cc
  13456. * test/Metalink2RequestGroupTest.cc
  13457. Hide TOTAL SPD when all downloads complete.
  13458. * src/ConsoleStatCalc.cc
  13459. Log target system information.
  13460. * src/main.cc
  13461. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13462. Now --metalink-location accepts a comma-deliminated list of locations.
  13463. * src/MetalinkEntry.{h, cc}
  13464. * test/MetalinkEntryTest.cc
  13465. * src/version_usage.cc
  13466. * src/Metalink2RequestGroup.cc
  13467. * src/Xml2MetalinkProcessor.cc
  13468. * test/Xml2MetalinkProcessorTest.cc
  13469. * doc/aria2c.1.txt
  13470. * doc/aria2c.1
  13471. * src/Util.cc (toUpper)(toLower): Rewritten.
  13472. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13473. Added the ability to detect duplicate download entry which is about to
  13474. download the same file other RequestGroup is downloading.
  13475. * src/RequestGroup.cc
  13476. * src/HttpResponseCommand.cc
  13477. * src/FtpNegotiationCommand.cc
  13478. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13479. Recalculates download progress when loading a control file,
  13480. if the piece length of DownloadContext is different from the one saved
  13481. in the control file. Currently in-flight pieces are ignored.
  13482. * src/DefaultBtProgressInfoFile.cc
  13483. * test/DefaultBtProgressInfoFileTest.cc
  13484. * src/Util.{h, cc}
  13485. * test/UtilTest.cc
  13486. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13487. Do not rotate tiers in announce-list.
  13488. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  13489. AnnounceList::allTiersFailed() used instead to detect whether all
  13490. tiers are tried and failed.
  13491. * test/DefaultBtAnnounceTest.cc
  13492. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  13493. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  13494. * test/AnnounceListTest.cc
  13495. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  13496. clause. Catch RecoverableException instead of DlRetryEx instead.
  13497. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13498. Implemented checksum validation feature(1 checksum for each file)
  13499. The validation takes place after the download.
  13500. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  13501. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  13502. * src/CheckIntegrityCommand.cc: Changed log message.
  13503. * src/Metalink2RequestGroup.cc: Set checksum to
  13504. SingleFileDownloadContext.
  13505. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  13506. PieceHashCheckIntegrity class.
  13507. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  13508. PieceHashCheckIntegrity class.
  13509. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  13510. * src/IteratableValidator.h: New class.
  13511. * src/message.h
  13512. * src/CheckIntegrityEntry.{h, cc}
  13513. * src/IteratableChunkChecksumValidator.{h, cc}
  13514. * src/SingleFileDownloadContext.h
  13515. * src/DownloadCommand.cc
  13516. --allow-overwrite=true is no longer needed to check file integrity
  13517. before download in BitTorrent download.
  13518. * src/RequestGroup.cc (getInitialCommand)
  13519. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  13520. throws exception.
  13521. * src/RequestGroupMan.cc (getInitialCommands)
  13522. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13523. urlencode the given url inside Request::parseUrl(...)
  13524. * src/Request.{h, cc}
  13525. * src/Util.{h, cc}
  13526. * test/RequestTest.cc
  13527. Removed #!metalink3! notation support because it is deleted from
  13528. the metalink specification.
  13529. * src/Request.{h, cc}
  13530. * test/RequestTest.cc
  13531. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13532. Don't connect server before checking file integrity at startup, if
  13533. filesize and output file path are known.
  13534. * src/AbstractCommand.cc
  13535. * src/StreamFileAllocationEntry.cc
  13536. * src/Metalink2RequestGroup.cc
  13537. * src/RequestGroup.{h, cc}
  13538. * src/HttpResponseCommand.cc
  13539. * src/FtpNegotiationCommand.cc
  13540. Added DownloadFailureException. If it is thrown, RequestGroup should
  13541. halt.
  13542. * src/AbstractCommand.cc
  13543. * src/DownloadFailureException.h
  13544. * src/RequestGroup.cc
  13545. Catch RecoverableException, instead of DlAbortEx.
  13546. * src/RequestGroupMan.cc
  13547. * src/FillRequestGroupCommand.cc
  13548. * src/MetaFileUtil.cc
  13549. * src/IteratableChunkChecksumValidator.cc
  13550. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  13551. getGID())
  13552. * src/CheckIntegrityCommand.cc
  13553. * src/message.h
  13554. Print gid instead of idx.
  13555. * src/RequestGroupMan.cc
  13556. Removed exception throwers declaration.
  13557. * src/DirectDiskAdaptor.{h, cc}
  13558. * src/SocketCore.{h, cc}
  13559. * src/MultiDiskAdaptor.{h, cc}
  13560. * src/HttpConnection.{h, cc}
  13561. * src/HttpResponse.{h, cc}
  13562. * src/DiskAdaptor.{h, cc}
  13563. * src/CopyDiskAdaptor.{h, cc}
  13564. * src/MultiDiskAdaptor.{h, cc}
  13565. * src/HttpHeaderProcessor.{h, cc}
  13566. * src/AbstractSingleDiskAdaptor.{h, cc}
  13567. * src/Util.{h, cc}
  13568. * test/UtilTest.cc
  13569. * src/DefaultDiskWriter.{h, cc}
  13570. * src/FtpConnection.{h, cc}
  13571. * src/AbstractDiskWriter.{h, cc}
  13572. Removed duplicate code.
  13573. * src/StreamCheckIntegrityEntry.cc
  13574. Removed unnecessary include.
  13575. * src/DiskWriter.h
  13576. Included Exception.h
  13577. * src/option_processing.cc
  13578. Included 2 files and added doc
  13579. * src/TrackerWatcherCommand.cc
  13580. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  13581. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13582. Changed CheckIntegrityEntry interface so that it can define
  13583. the action when all the chunk checksums are valid.
  13584. * src/CheckIntegrityEntry.h
  13585. * src/StreamCheckIntegrityEntry.{h, cc}
  13586. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  13587. are valid, then aira2 goes to seeding mode. Sometimes it is better
  13588. to exit rather than doing seeding. So, it would be good to toggle this
  13589. behavior.
  13590. * src/CheckIntegrityCommand.cc
  13591. * src/AbstractCommand.cc
  13592. * src/RequestGroup.cc
  13593. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13594. Reflect the download length of in-flight pieces.
  13595. It makes the download length readout more precise.
  13596. * src/DefaultPieceStorage.{h, cc}
  13597. * test/DefaultPieceStorageTest.cc
  13598. * src/a2functional.h
  13599. * test/a2functionalTest.cc
  13600. Lower CPU load when --max-download-limit is used.
  13601. There is up and down in speed indicator when enabling
  13602. http-pipelining but a download goes well. I think the problem is that
  13603. because http-pipelining is enabled, DownloadCommand is created for
  13604. each segment and in its constructor, PeerStat::downloadStart() is
  13605. called. In PeerStat::downloadStart(), speed calculation object is
  13606. reseted, which makes download speed zero.
  13607. * src/DownloadCommand.cc
  13608. Rewritten using accumulate.
  13609. * src/RequestGroupMan.cc (calculateStat)
  13610. Code clearnup.
  13611. * src/FtpNegotiationCommand.cc
  13612. * src/HttpResponseCommand.cc
  13613. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13614. Fixed: Can not resume: aria2 reports download already finished.
  13615. * src/AbstractCommand.{h, cc}
  13616. * src/HttpResponseCommand.cc
  13617. * src/FtpNegotiateCommand.cc
  13618. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13619. Now a file is stored in the directory specified in .metalnk file
  13620. (file[@name]).
  13621. * src/Metalink2RequestGroup.cc
  13622. Create the directory structure when opening the file if it doesn't
  13623. exist.
  13624. * src/AbstractDiskWriter.cc
  13625. * src/Util.{h, cc}
  13626. * src/File.h
  13627. * test/UtilTest.cc
  13628. Removed file name comparison
  13629. * src/Metalink2RequestGroup.cc
  13630. * src/HttpResponseCommand.cc
  13631. Rewritten using Util::mkdirs()
  13632. * src/FileEntry.cc (setupDir)
  13633. * test/FileEntryTest.cc
  13634. Updated doc
  13635. * src/SingleFileDownloadContext.h
  13636. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13637. Now SleepCommand dispatches nextCommand when halt is requested.
  13638. It avoids a possible long wait after hitting CTRL-C.
  13639. * src/SleepCommand.{h, cc}
  13640. * src/RequestGroupAware.{h, cc}
  13641. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13642. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  13643. to open listen port, then remove the port number from the tracker
  13644. request.
  13645. * src/DefaultBtAnnounce.cc
  13646. * test/DefaultBtAnnounceTest.cc
  13647. * test/MockPieceStorage.h
  13648. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  13649. them more testable.
  13650. * src/DefaultBtAnnounce.{h, cc}
  13651. * src/DefaultBtContext.{h, cc}
  13652. * src/Util.{h, cc}
  13653. * test/DefaultBtAnnounceTest.cc
  13654. * test/DefaultBtContextTest.cc
  13655. * test/UtilTest.cc
  13656. Added 'B' to upload bytes readout.
  13657. * src/ConsoleStatCalc.cc
  13658. Now the listen port for BitTorrent download is opened when it is
  13659. needed.
  13660. * src/DownloadEngineFactory.cc
  13661. * src/BtSetup.{h, cc}
  13662. * src/PeerListenCommand.{h, cc}
  13663. Now an exception thrown while parsing tracker response is now logged.
  13664. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  13665. called, which means no retry is made in this case, assuming a tracker
  13666. has a problem.
  13667. * src/TrackerWatcherCommand.cc
  13668. Fixed: downloading a file whose length is unkown fails.
  13669. * src/DownloadCommand.cc
  13670. Simplified prepareForNextSegment()
  13671. * src/DownloadCommand.cc
  13672. Updated
  13673. * po/POTFILES.in
  13674. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13675. Re-implemented a file listing for Metalink, which was dropped while
  13676. http/ftp/torrent integration was being implemented.
  13677. * src/MetalinkHelper.{h, cc}: New class.
  13678. * test/MetalinkHelperTest.cc
  13679. * src/main.cc
  13680. * src/Metalink2RequestGroup.cc
  13681. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13682. Added the ability to display the detailed torrent file information.
  13683. Now -S option gives not only a file listing, but also total download
  13684. length, info hash, announce URI, piece length, the number of pieces,
  13685. and mode(single or multi-torrent).
  13686. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  13687. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  13688. KiB)
  13689. * test/UtilTest.cc
  13690. * src/main.cc
  13691. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13692. Added ftp://USER:PASSWD@Servername automatic parsing.
  13693. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  13694. _password. Recognize username and password in URI.
  13695. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  13696. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  13697. * src/RequestFactory.{h, cc}: Removed.
  13698. * src/AuthConfigFactory.{h, cc}: New class.
  13699. * src/FtpConnection.cc: Use AuthConfigFactory.
  13700. * src/HttpRequest.cc: Use AuthConfigFactory.
  13701. * test/HttpRequestTest.cc: Updated.
  13702. * test/RequestTest.cc: Updated.
  13703. * test/AuthConfigFactoryTest.cc: New class.
  13704. * test/RequestFactoryTest.cc: Removed.
  13705. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13706. Use RequestGroup::allDownloadFinished() to decide whether the control
  13707. file should be removed or saved.
  13708. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  13709. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  13710. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13711. Use File::renameTo()
  13712. * src/DefaultBtProgressInfoFile.cc
  13713. Added --no-file-allocation-limit command-line option.
  13714. * src/version_usage.cc
  13715. * src/option_processing.cc
  13716. * src/OptionHandlerFactory.cc
  13717. * src/RequestGroup.{h, cc}
  13718. * src/BtCheckIntegrityEntry.cc
  13719. * src/StreamCheckIntegrityEntry.cc
  13720. * src/prefs.h
  13721. * doc/aria2c.1.txt
  13722. * doc/aria2c.1
  13723. Now prealloc is the default value for --file-allocation option.
  13724. * src/version_usage.cc
  13725. * src/option_processing.cc
  13726. * doc/aria2c.1.txt
  13727. * doc/aria2c.1
  13728. Don't URL-encode user-agent.
  13729. * src/HttpRequest.cc
  13730. Updated translations
  13731. * po/LINGUAS: Added nl for Dutch translation.
  13732. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  13733. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  13734. * po/POTFILES.in: Updated.
  13735. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13736. Added the ability to recognize url-list in a torrent file.
  13737. The retrieved URLs are attached to the corresponding FileEntry.
  13738. * src/DefaultBtContext.{h, cc}
  13739. * src/FileEntry.{h, cc}
  13740. * test/DefaultBtContextTest.cc
  13741. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13742. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  13743. after the download finishes.
  13744. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13745. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  13746. the data smaller than block length.
  13747. A block length can be specified by constructor's argument.
  13748. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  13749. Get a missing piece in the range of given FileEntry. This function is
  13750. not used in the program yet.
  13751. * src/Util.h: Added some macros.
  13752. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13753. Added HTTP/1.1 keep alive and pipelining support.
  13754. See --enable-http-keep-alive and --enable-http-pipelining option.
  13755. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  13756. Segment.
  13757. * src/HttpDownloadCommand.{h, cc}
  13758. * src/OptionHandlerFactory.cc
  13759. * src/HttpConnection.{h, cc}
  13760. * src/version_usage.cc
  13761. * src/HttpInitiateConnectionCommand.cc
  13762. * src/FtpInitiateConnectionCommand.cc
  13763. * src/Segment.h
  13764. * src/HttpRequestCommand.{h, cc}
  13765. * src/option_processing.cc
  13766. * src/prefs.h
  13767. * src/HttpResponseCommand.cc
  13768. * src/SegmentMan.{h, cc}
  13769. * src/FtpNegotiateCommand.cc
  13770. * src/HttpProxyResponseCommand.cc
  13771. * src/Request.cc
  13772. * src/HttpRequest.cc
  13773. * src/DownloadCommand.cc
  13774. * test/HttpRequestTest.cc
  13775. * test/RequestTest.cc
  13776. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13777. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  13778. finished.
  13779. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13780. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  13781. catching it inside the method.
  13782. When no file entry is found in a metalink without querying user
  13783. preferences, throw the exception with the error message that suggests
  13784. metalink file is probably broken.
  13785. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  13786. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13787. Fixed the bug that prevents remote Metalink/Torrent file from begin
  13788. processed.
  13789. * src/RequestGroupMan.cc (removeStoppedGroup)
  13790. Added debug message.
  13791. * src/BtPostDownloadHandler.cc
  13792. * src/MetalinkPostDownloadHandler.cc
  13793. * src/PostDownloadHandler.{h, cc}
  13794. * src/RequestGroup.cc
  13795. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13796. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  13797. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13798. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  13799. stops and there are any unfinished or in-progress downloads.
  13800. Added the legend of "stat".
  13801. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13802. Throw exception when chunck checksum verification fails.
  13803. * src/DownloadCommand.cc (validatePieceHash): New function.
  13804. * src/PiecedSegment.{h, cc} (clear): New function.
  13805. * src/GrowSegment.{h, cc} (clear): New function.
  13806. * src/Segment.h (clear): New function.
  13807. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  13808. * test/SegmentTest.cc
  13809. * test/GrowSegmentTest.cc
  13810. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13811. Do not send referer when redirected.
  13812. * src/Request.cc (redirectUrl)
  13813. * test/RequestTest.cc
  13814. * test/HttpRequestTest.cc
  13815. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13816. Implemented BitTorrent/http/ftp integrated download.
  13817. I've rewritten lots of files and now some headers have forward
  13818. class declarations to reduce compile time.
  13819. The implementation is extremely alpha stage, I recommend to use this
  13820. for testing purpose only.
  13821. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13822. Fixed the compilation error on 64bit platform.
  13823. * test/HttpHeaderProcessorTest.cc
  13824. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13825. Merged Ross's patch that fixes compilation problem in MinGW
  13826. * test/DefaultBtProgressInfoFileTest.cc
  13827. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13828. Updated fr.po by sebone
  13829. * po/fr.po
  13830. Updated man page.
  13831. * doc/aria2c.1.txt
  13832. * Release 0.11.3
  13833. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13834. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  13835. failure in Metalink.
  13836. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13837. Automatically save *.aria2 control file of http/ftp download in every
  13838. 60 seconds.
  13839. * src/AutoSaveCommand.{h, cc}: New class.
  13840. * src/TimeBasedCommand.{h, cc}: New class.
  13841. * src/DownloadEngineFactory.cc (newConsoleEngine)
  13842. Disable parameterized URI support by default. Added -P option to
  13843. enable the feature.
  13844. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  13845. * src/OptionHandlerFactory.cc
  13846. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  13847. Updated Japanese translation.
  13848. * po/ja.po
  13849. Updated man page.
  13850. * doc/aria2c.1.txt
  13851. * Release 0.11.3-rc
  13852. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13853. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  13854. it is successful, then renamed to *.aria2.
  13855. This prevents *.aria2 file from being truncated or corrupted when
  13856. file system becomes out of space.
  13857. * src/DefaultBtProgressInfoFile.cc (save)
  13858. * src/SegmentMan.cc (save)
  13859. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  13860. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13861. Reduced the fragmentation of bitfield in http/ftp download.
  13862. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  13863. * test/BitfieldManTest.cc
  13864. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13865. Added the ability to disable segmented download in .metalink.
  13866. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  13867. 'url' tag.
  13868. * src/MetalinkEntry.{h, cc}
  13869. * src/RequestResource.{h, cc}
  13870. * src/MetalinkRequestInfo.cc
  13871. * src/Xml2MetalinkProcessor.cc
  13872. * test/Xml2MetalinkProcessorTest.cc
  13873. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13874. Added parameterized URI support.
  13875. * src/main.cc: -Z option added.
  13876. * src/OptionHandlerFactory.cc
  13877. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  13878. * src/PStringDatum.h: New class.
  13879. * src/PStringSegment.{h,cc}: New class.
  13880. * src/PStringNumLoop.h: New class.
  13881. * src/PStringSelect.h: New class.
  13882. * src/NumberDecorator.h: New class.
  13883. * src/FixedWidthNumberDecorator.h: New class.
  13884. * src/AlphaNumberDecorator.h: New class.
  13885. * src/PStringVisitor.h: New class.
  13886. * src/PStringBuildVisitor.{h,cc}: New class.
  13887. * src/ParameterizedStringParser.{h,cc}: New class.
  13888. * src/Util.{h,cc}
  13889. (isNumber): New function.
  13890. (isLowercase): New function.
  13891. (isUppercase): New function.
  13892. (alphaToNum): New function.
  13893. * test/ParameterizedStringParserTest.cc: New class.
  13894. * test/AlphaNumberDecoratorTest.cc: New class.
  13895. * test/PStringBuildVisitorTest.cc: New class.
  13896. * test/UtilTest.cc
  13897. (testIsNumber): New function.
  13898. (testIsLowercase): New function.
  13899. (testIsUppercase): New function.
  13900. (testAlphaToNum): New function.
  13901. Added '\n' after the error message
  13902. * src/RequestInfo.h (printDownloadAbortMessage)
  13903. Added auto file renaming feature in http(s)/ftp download.
  13904. * src/main.cc: Added --auto-file-renaming command-line option.
  13905. * src/OptionHandlerFactory.cc
  13906. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  13907. * src/RequestGroup.{h, cc}
  13908. (shouldCancelDownloadForSafety): Rewritten
  13909. (tryAutoFileRenaming): New function.
  13910. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  13911. * src/HttpResponseCommand.cc
  13912. (executeInternal): Removed the call to RequestGroupMan::
  13913. isSameFileBeingDownloaded()
  13914. * src/FtpNegotiateCommand.cc
  13915. (recvSize): Removed the call to RequestGroupMan::
  13916. isSameFileBeingDownloaded()
  13917. * test/RequestGroupTest.cc: New class.
  13918. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13919. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  13920. IO.
  13921. * src/DefaultBtProgressInfoFile.cc
  13922. * src/MetaFileUtil.cc
  13923. * src/SimpleLogger.cc
  13924. * src/SegmentMan.cc
  13925. * src/Util.cc
  13926. * src/Platform.cc
  13927. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13928. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  13929. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13930. Avoid sparse files if possible, because VFAT32 doesn't support it.
  13931. * src/DefaultDiskWriter.cc (initAndOpenFile)
  13932. Fixed the bug that prevents file allocation is not done when
  13933. dowloading multi-torrent file.
  13934. * src/AbstractDiskWriter.cc (openFile)
  13935. Increase the maximum number of -j option from 15 to 45.
  13936. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13937. Added fr.po, thanks to Charles Landemaine.
  13938. * po/fr.po
  13939. * po/LINGUAS
  13940. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13941. gcc 3.4.4 support:
  13942. * src/DefaultBtContext.cc: int32_t -> int
  13943. * src/main.cc: int -> int32_t, int32_t -> int
  13944. * src/messageDigest.h: uint32_t -> unsigned int
  13945. * src/NameResolver.h: int32_t -> int
  13946. * src/PeerConnection.cc: int -> int32_t
  13947. * src/SpeedCalc.cc: int32_t -> int
  13948. * src/TrackerUpdateCommand.h: int -> int32_t
  13949. * src/Util.cc: int32_t -> int
  13950. * src/Util.h: int32_t -> int
  13951. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  13952. * test/AnnounceListTest.cc: int -> int32_t
  13953. * test/ChunkedEncodingTest.cc: int -> int32_t
  13954. * test/DataTest.cc: int -> int32_t
  13955. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  13956. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  13957. * test/DefaultPieceStorageTest.cc: int -> int32_t
  13958. * test/FeatureConfigTest.cc: int -> int32_t
  13959. * test/MetalinkEntryTest.cc: int -> int32_t
  13960. * test/MockBtRequestFactory.h: int -> int32_t
  13961. * test/MockPieceStorage.h: int -> int32_t
  13962. * test/OptionTest.cc: int -> int32_t
  13963. * test/RequestTest.cc: int -> int32_t
  13964. * test/SegmentManTest.cc: int -> int32_t
  13965. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  13966. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13967. Move sleep functions to Util class:
  13968. * src/Util.cc
  13969. (sleep): New function.
  13970. (usleep): New function.
  13971. * src/DownloadCommand.cc: sleep -> Util::sleep
  13972. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  13973. MinGW build enhancements. The following files are added:
  13974. * src/timegm.{c,h}
  13975. Changes to support the above new files:
  13976. * configure.ac
  13977. * src/Makefile.am
  13978. * src/a2time.h
  13979. * src/Util.cc:
  13980. * src/strptime.c: Added support for %Z option.
  13981. Fixed MinGW non-blocking bug.
  13982. * src/SocketCore.cc
  13983. * src/HttpRequestCommand.cc
  13984. Miscellenous build fixes/enhancements.
  13985. * configure.ac: Added summary report.
  13986. * src/Platform.h: Tweaked #include's.
  13987. * src/a2netcompat.h: Tweaked #include's.
  13988. * src/strptime.h: Tweaked #include's.
  13989. * src/gai_strerror.c: Tweaked #include's.
  13990. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  13991. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  13992. * src/gettimeofday.h: Added HAVE_CONFIG_H
  13993. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13994. Increased the initial connection size in BitTorrent download to 40.
  13995. * src/BtRuntime.h
  13996. Added the usage message of --peer-id-prefix option.
  13997. * src/main.cc
  13998. * Release 0.11.2
  13999. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14000. MessageDigestHelper is introduced in order to simplify the use
  14001. of message digest. Removed repeated code.
  14002. The message digest algorithm is now specified by string, like "sha1",
  14003. "md5".
  14004. * src/messageDigest.{h, cc}
  14005. * src/MessageDigestHelper.{h, cc}: New class.
  14006. * src/DefaultPieceStorage.cc
  14007. * src/DefaultBtContext.{h, cc}
  14008. (computeFastSet): New function.
  14009. (setInfoHash): Added for unit testing.
  14010. (setNumPieces): Added for unit testing.
  14011. * src/DefaultBtInteractive.cc
  14012. * src/BtPieceMessage.cc
  14013. * src/Peer.cc
  14014. * src/Checksum.h
  14015. * src/message.h
  14016. * src/IteratableChecksumValidator.h
  14017. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  14018. inside it.
  14019. * src/SegmentMan.{h, cc}
  14020. (checkIntegrity): Removed.
  14021. * src/IteratableChunkChecksumValidator.{h, cc}
  14022. * src/Util.h
  14023. (sha1Sum): Removed.
  14024. (simpleMessageDigest): Removed.
  14025. (fileChecksum): Removed.
  14026. (computeFastSet): Removed.
  14027. * src/ShaVisitor.cc
  14028. * src/ChunkChecksum.h
  14029. * src/DownloadCommand.cc
  14030. Removed messageDigest virtual functions.
  14031. * src/MultiDiskAdaptor.{h, cc}
  14032. * src/DiskAdaptor.h
  14033. * src/ByteArrayDiskWriter.h
  14034. * src/DiskWriter.h
  14035. * src/DiskAdaptorWriter.h
  14036. * src/AbstractSingleDiskAdaptor.{h, cc}
  14037. * src/AbstractDiskWriter.{h, cc}
  14038. Fixed comilation error when message digest is disabled.
  14039. * src/MetalinkEntry.{h, cc}
  14040. * src/MetalinkRequestInfo.cc
  14041. Removed srandom and random.
  14042. * src/SimpleRandomizer.h
  14043. Added size() virtual function to DiskAdaptor
  14044. * src/MultiDiskAdaptor.h
  14045. Fixed the bug that causes that files are not opened correctly in
  14046. multi-file torrent.
  14047. * src/TorrentRequestInfo.cc
  14048. * src/MultiDiskAdaptor.cc
  14049. Added SHA256 support
  14050. * src/messageDigest.cc
  14051. * src/Xml2MetalinkProcessor.cc
  14052. Show supported message digest algorithms
  14053. * src/main.cc
  14054. Updated contact info.
  14055. * src/main.cc
  14056. Applied Ross's patch
  14057. * src/a2netcompat.h
  14058. * src/main.cc
  14059. Fixed the bug that prevents a remote metalink from not being processed
  14060. even if '-o foo.metalink' is specified.
  14061. * src/MetalinkRequestInfo.cc
  14062. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14063. Merged Dan's patch:
  14064. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  14065. Use va_copy to avoid core dump on amd64:
  14066. * src/SimpleLogger.cc
  14067. Updated contact info.
  14068. * src/main.cc
  14069. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  14070. digest is not available.
  14071. * src/MetalinkEntry.h
  14072. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14073. Make a2netcompat.h include a2io.h to fix compilation error:
  14074. * src/a2netcompat.h
  14075. * src/SocketCore.cc: Removed include of a2io.h
  14076. * src/Util.cc: Removed include of a2io.h
  14077. Gather time related functions to a2time.h:
  14078. * src/a2time.h: New file.
  14079. * src/DefaultPeerStorage.cc
  14080. * src/SimpleLogger.cc
  14081. * src/Util.{h, cc}
  14082. * src/SimpleRandomizer.h
  14083. * src/TimeA2.{h,cc}
  14084. * src/DownloadCommand.cc
  14085. * src/main.cc
  14086. Removed #ifdef __MINGW32__ since gai_strerror is included in
  14087. a2netcompat.h:
  14088. * src/NameResolver.cc
  14089. Fixed compilation error without openssl:
  14090. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  14091. Added default block to suppress compiler warnings:
  14092. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  14093. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  14094. MinGW build enhancements. The following files are added:
  14095. * src/gai_strerror.{c,h}
  14096. * src/gettimeofday.{c,h}
  14097. Changes to support the above new files:
  14098. * configure.ac
  14099. * src/Makefile.am
  14100. * src/a2netcompat.h
  14101. * src/TimeA2.cc
  14102. * src/DefaultPeerStorage.cc
  14103. * src/NameResolver.cc: removed mingw_strerror() function.
  14104. * src/SocketCore.cc: removed mingw_strerror() function.
  14105. Miscellaneous MinGW build fixes.
  14106. * src/a2io.h: Use _lseeki64() instead of lseek()
  14107. * src/common.h
  14108. * src/DefaultFileAllocator.cc
  14109. * src/GlowFileAllocator.cc
  14110. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  14111. * src/NameResolver.cc
  14112. (callback): Changed int32_t to int.
  14113. (resolve): Changed int32_t to int.
  14114. * src/Platform.cc
  14115. * src/Platform.h
  14116. * test/MultiDiskWriterTest.cc
  14117. * test/PeerMessageUtilTest.cc
  14118. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  14119. Other enhancements and fixes.
  14120. * src/HttpRequestCommand.cc
  14121. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  14122. * src/SocketCore.cc:
  14123. (error): New function to abstract errno/WSAGetLastError().
  14124. (errorMsg): New function to abstract errno/WSAGetLastError().
  14125. (initiateSecureConnection): Added more detailed error reporting.
  14126. * src/SocketCore.h: Added private variable blocking, to allow
  14127. proper handling of OpenSSL psuedo-errors.
  14128. * src/message.h
  14129. (EX_SSL_INIT_FAILURE)
  14130. (EX_SSL_IO_ERROR)
  14131. (EX_SSL_PROTOCOL_ERROR)
  14132. (EX_SSL_UNKNOWN_ERROR)
  14133. (EX_SSL_CONNECT_ERROR)
  14134. (EX_SOCKET_BLOCKING)
  14135. (EX_SOCKET_NONBLOCKING)
  14136. (EX_SOCKET_UNKNOWN_ERROR)
  14137. * src/Util.cc
  14138. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  14139. reserved name.
  14140. (httpGMT): Fixed typo.
  14141. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14142. Merged Ross's win32 patch(manually)
  14143. In the course of merging, following files are added.
  14144. * src/strptime.{h,c}
  14145. * src/libgen.{h,c}
  14146. * src/inet_aton.{h,c}
  14147. * src/Platform.{h,cc}
  14148. * src/localtime_r.{h,c}
  14149. * src/getaddrinfo.{h,c}
  14150. I've gethered network related things, and put them to following file:
  14151. * src/a2netcompat.h
  14152. Also io related things are put to following file:
  14153. * src/a2io.h
  14154. Changed %lld to %s because mingw32 doesn't recognize %lld.
  14155. * src/message.h
  14156. (MSG_ALLOCATION_COMPLETED)
  14157. (EX_TOO_LARGE_FILE)
  14158. (EX_SIZE_MISMATCH)
  14159. (EX_FILE_OFFSET_OUT_OF_RANGE)
  14160. (EX_INVALID_CHUNK_CHECKSUM)
  14161. (EX_INVALID_RANGE_HEADER)
  14162. * src/FileAllocationCommand.cc
  14163. * src/HttpResponse.cc
  14164. * src/RequestGroup.cc
  14165. * src/MultiDiskAdaptor.cc
  14166. * src/OptionHandlerImpl.h
  14167. * src/HttpResponseCommand.cc
  14168. * src/FtpNegotiateCommand.cc
  14169. * src/IteratableChecksumValidator.cc
  14170. * src/SegmentMan.cc
  14171. * src/ChunkChecksumValidator.cc
  14172. Added Randomizer::getRandomNumber(long int)
  14173. * src/Randomizer.h (getRandomNumber)
  14174. * src/SimpleRandomizer.h (getRandomNumber)
  14175. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  14176. * src/Util.cc (randomAlpha): Use this new function.
  14177. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14178. Converted int's to in32_t. long long int's are also converted to
  14179. int64_t
  14180. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14181. Fixed the bug that prevents cookies from being sent to the server
  14182. if the domain of cookie is FQDN and starts with ".".
  14183. * src/Cookie.cc (match)
  14184. To add the ability to change peer id.
  14185. * src/DefaultBtContext.h
  14186. (_peerIdPrefix): New variable
  14187. (setPeerIdPrefix): New function.
  14188. * src/torrentRequestInfo.cc
  14189. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  14190. DefaultBtContext.
  14191. * src/main.cc (main): Added peer-id-prefix command-line option.
  14192. The usage message is not added yet.
  14193. * src/DefaultBtContext.cc
  14194. (generatePeerId): Use _peerIdPrefix.
  14195. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  14196. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14197. Fixed the bug that prevents filename in content-disposition from
  14198. being retrieved when filename is not quoted.
  14199. * src/Util.cc (getContentDispositionFilename)
  14200. Fixed the bug that causes infinate loop and memory leak when file open
  14201. operation failed.
  14202. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  14203. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14204. Fixed the bug that causes segfault when all URIs specified are
  14205. unsupported.
  14206. * src/RequestGroupMan.cc (getInitialCommands)
  14207. Check if RequestGroup::createNextCommand() returns empty list of
  14208. commands.
  14209. * src/RequestGroup.cc (createNextCommand)
  14210. Change log level from info to error so that users can notice that
  14211. an error occurred.
  14212. Fixed the bug that causes segfault when a zero-sized file is
  14213. downloaded.
  14214. * src/BitfieldMan.cc (isAllBitSet)
  14215. Return true if bitfieldLength is 0.
  14216. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14217. * src/main.cc
  14218. (showUsage): Added 3 usage examples for metalink download.
  14219. Replace MetalinkChunkChecksum with ChunkChecksum.
  14220. * src/MetalinkChunkChecksum.h: Removed.
  14221. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  14222. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  14223. * src/Xml2MetalinkProcessor.cc
  14224. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  14225. * src/MetalinkRequestInfo.cc (execute)
  14226. * Release 0.11.1
  14227. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14228. Reads URIs from stdin when "-i -" is specified.
  14229. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  14230. * src/UriListParser.h, src/UriListParser.cc: New class.
  14231. * src/StreamUriListParser.h: New class.
  14232. * src/FileUriListParser.h: New class.
  14233. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  14234. instead of UriFileListParser.
  14235. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14236. Made console readout more readable.
  14237. * src/ConsoleDownloadEngine.cc (sendStatistics)
  14238. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14239. Fix the bug that causes -s option not to work.
  14240. * src/main.cc (main)
  14241. * src/a2algo.h: New file.
  14242. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14243. Create directory structure specified in metalink file.
  14244. * src/RequestGroup.h, src/RequestGroup.cc
  14245. (initAndOpenFile): Create a directory to store files if it does not
  14246. exist.
  14247. (getDir): New function.
  14248. Added ETA and download speed for an individual file to readout.
  14249. * src/ConsoleDownloadEngine.cc (sendStatistics)
  14250. * src/RequestGroup.h
  14251. (calculateDownloadSpeed): New function.
  14252. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14253. Made -S option work with metalink file and provided selective download
  14254. to metalink.
  14255. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  14256. (filename): Removed.
  14257. (file): New variable.
  14258. (size): Removed.
  14259. (operator=): Updated.
  14260. (getPath): New function.
  14261. (getLength): New function.
  14262. (toFileEntry): New function.
  14263. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  14264. (execute): Use toStream.
  14265. (showFileEntry): Removed.
  14266. * src/MetalinkRequestInfo.h
  14267. (targetFiles): New variable.
  14268. (setTargetFiles): New variable.
  14269. * src/MetalinkRequestInfo.cc
  14270. (execute): Added the ability to print file information included in
  14271. a metalink file.
  14272. Added selective download mode to metalink.
  14273. * src/main.cc
  14274. (showUsage): Updated to denote that -S and --select-file options are
  14275. applicable to metalink.
  14276. * src/FileEntry.h
  14277. (operator=): New function.
  14278. (getBasename): New function.
  14279. (getDirname): New function.
  14280. * src/Util.h, src/Util.cc
  14281. (toStream): New function.
  14282. * src/Xml2MetalinkProcessor.cc: Updated.
  14283. Made aria2 work with metalink with directory structure.
  14284. * src/File.h, src/File.cc
  14285. (getBasename): New function.
  14286. (getDirname): New function.
  14287. * src/RequestGroup.h, src/RequestGroup.cc
  14288. (_topDir): New variable.
  14289. (setTopDir): New function.
  14290. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  14291. Rewrote HTTP header parsing with stringstream.
  14292. * src/HttpConnection.h, src/HttpConnection.cc
  14293. (HttpRequestEntry): New class.
  14294. (headerBuf): Removed.
  14295. (headerBufLength): Removed.
  14296. (outstandingHttpRequests): Now its element type is
  14297. HttpRequestEntryHandle.
  14298. (findEndOfHeader): Removed.
  14299. (receiveResponse): Rewritten.
  14300. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  14301. Updated doc for -j option to notice that it should be used with -i
  14302. option.
  14303. * src/main.cc (showUsage)
  14304. Removed unused classes.
  14305. * src/RequestInfo.h
  14306. (FileInfo): Removed.
  14307. (checksum): Removed.
  14308. (fileInfo): Removed.
  14309. (setChecksum): Removed.
  14310. (getChecksum): Removed.
  14311. (getFileInfo): Removed.
  14312. Use ISO units.
  14313. * src/ConsoleDownloadEngine.cc
  14314. * src/TorrentConsoleDownloadEngine.cc
  14315. * src/Util.cc (abbrevSize)
  14316. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14317. Added the default listening ports to the help message.
  14318. * src/main.cc (showUsage)
  14319. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14320. Reduce the number of calls to gettimeofday to lower CPU load.
  14321. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  14322. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  14323. * src/Peer.h (calculateUploadSpeed): New function.
  14324. (calculateDownloadSpeed): New function.
  14325. * src/DefaultPeerStorage.cc
  14326. (CalculateStat): Added _now variable.
  14327. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  14328. and Peer::calculateUploadSpeed(const struct timeval&)
  14329. Drop connection if no request or piece message is exchanged in
  14330. a certain interval.
  14331. * src/DefaultBtInteractive.h
  14332. (btRuntime): New variable.
  14333. (inactiveCheckPoint): New variable.
  14334. (checkActiveInteraction): New function.
  14335. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  14336. request or piece message is received.
  14337. (checkActiveInteraction): New function.
  14338. (doInteractionProcessing): Call checkActiveInteraction.
  14339. Fixed the bug that causes remote Metalink and Torrent files are not
  14340. processed.
  14341. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  14342. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14343. Changed format of log file.
  14344. * src/SimpleLogger.cc
  14345. * Release 0.11.0
  14346. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14347. * src/AbstractCommand.cc
  14348. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  14349. MSG_MAX_TRY from error to info.
  14350. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  14351. * src/message.h
  14352. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  14353. (MSG_DOWNLOAD_ABORTED): Added %s.
  14354. (MSG_RESTARTING_DOWNLOAD): Added %s.
  14355. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  14356. * src/PeerAbstractCommand.cc
  14357. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  14358. * src/Request.h
  14359. (cookieBox): Made ShardHandle.
  14360. * src/RequestGroup.h, src/RequestGroup.cc
  14361. (createNextCommandWithAdj): New function.
  14362. * src/FileAllocationCommand.cc
  14363. (executeInternal): Use createNextCommandWithAdj().
  14364. * src/CheckIntegrityCommand.cc
  14365. (executeInternal): Use createNextCommandWithAdj().
  14366. Added --load-cookies command-option.
  14367. * src/OptionHandlerFactory.cc
  14368. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  14369. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  14370. Now aria2 can handle cookie's expiration date.
  14371. * src/Cookie.h (expires): Changed its type to time_t.
  14372. * src/main.cc: Added --load-cookies command-line option.
  14373. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  14374. * src/Util.h, src/Util.cc (httpGMT): New function.
  14375. * src/Request.cc (Request): Initialize cookieBox using
  14376. CookieBoxFactory.
  14377. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  14378. * src/CookieParser.h, src/CookieParser.cc: New class.
  14379. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  14380. * src/HttpResponseCommand.cc
  14381. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  14382. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  14383. download.
  14384. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14385. Added -j command-line option.
  14386. * src/OptionHandlerFactory.cc (createOptionHandlers)
  14387. * src/main.cc
  14388. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  14389. Rewritten using stringstream.
  14390. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  14391. Rewritten using stringstream.
  14392. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14393. Make download size shown in MB, KB.
  14394. * src/ConsoleDownloadEngine.h (sendStatistics)
  14395. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  14396. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14397. Accept incoming connections if download rate is low.
  14398. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  14399. (_lowestSpeedLimit): New variable.
  14400. (setLowestSpeedLimit): New function.
  14401. (execute): Accept incoming connections if download rate is low.
  14402. MAX_PEERS is ignored in this case.
  14403. Disable PREF_OUT in multiple concurrent download:
  14404. * src/RequestGroup.h, src/RequestGroup.cc
  14405. (setUserDefinedFilename): New function.
  14406. * src/DownloadEngineFactory.cc
  14407. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  14408. concurrent download.
  14409. * src/DefaultSegmentManFactory.cc
  14410. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  14411. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14412. RequestGroup::getNextCommand() was renamed to createNextCommand().
  14413. Added its overloaded method.
  14414. * src/RequestGroup.h
  14415. (_numConcurrentCommand): New variable.
  14416. (setNumConcurrentCommand): New function.
  14417. * src/RequestGroup.cc
  14418. Abort download if same file is being downloaded concurrently.
  14419. * src/RequestGroup.h, src/RequestGroupMan.cc
  14420. (isSameFileBeingDownloaded): New function.
  14421. * src/HttpResponseCommand.cc (executeInternal)
  14422. * src/FtpNegotiateCommand.cc (recvSize)
  14423. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  14424. * main.cc: Added help message for -i option.
  14425. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14426. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  14427. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  14428. * src/MetalinkEntry.h
  14429. (checksum): Changed to ChecksumHandle
  14430. * src/MetalinkRequestInfo.cc
  14431. (checksum): Changed to ChecksumHandle
  14432. * src/File.cc
  14433. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  14434. * src/common.h
  14435. (DIR_OPEN_MODE): New definition
  14436. * src/RequestGroup.cc
  14437. (prepareForNextAction): Added an argument.
  14438. * src/message.h
  14439. (MSG_GOOD_CHECKSUM): New definition
  14440. (MSG_BAD_CHECKSUM): New definition
  14441. * src/HttpResponseCommand.cc
  14442. (handleDefaultEncoding): Continue download sequence in new
  14443. non-segmented download.
  14444. * src/FileAllocationEntry.h
  14445. (_nextDownloadCommand): New variable.
  14446. * src/DownloadCommand.cc
  14447. (prepareForNextSegment): Create ChecksumCommand if checksum is
  14448. available.
  14449. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  14450. * src/IteratableChecksumValidator.h,
  14451. src/IteratableChecksumValidator.cc: New class.
  14452. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  14453. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14454. Change file mode to 666:
  14455. * src/common.h (OPEN_MODE): New definition.
  14456. * src/File.cc
  14457. * src/Util.cc
  14458. * src/Directry.cc
  14459. * src/AbstractDiskWriter.cc
  14460. Change the level of log message "download aborted" to debug:
  14461. * src/PeerAbstractCommand.cc (execute)
  14462. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  14463. * src/TrackerWatcherCommand.cc
  14464. (createCommand): Sleep some seconds after request failed.
  14465. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  14466. then abort tracker request.
  14467. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14468. * Added the simultaneous download feature.
  14469. * src/main.cc: Print "Exception caught: " when exception is caught.
  14470. Use CUIDCounter instead of BtRuntime::getNewCuid():
  14471. * src/ActivePeerConnectionCommand.cc
  14472. * src/PeerInteractionCommand.cc
  14473. * src/BtRuntime.h
  14474. (cuidCounter): Removed.
  14475. (getNewCuid): Removed.
  14476. * src/DownloadEngineFactory.cc
  14477. * src/PeerListenCommand.cc
  14478. * src/TrackerUpdateCommand.cc
  14479. * src/PeerInitiateConnectionCommand.cc
  14480. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14481. * src/PeerAbstractCommand.cc
  14482. (onAbort): Call PeerStorage::returnPeer()
  14483. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  14484. (incomingPeers): New variable.
  14485. (addIncomingPeer): New function.
  14486. (returnPeer): New function.
  14487. (onErasingPeer): New function.
  14488. (addPeer): push_back -> push_front
  14489. (getActivePeers): Rewritten.
  14490. (calculateStat): Rewritten.
  14491. * src/PeerStorage.h
  14492. (TransferStat::copy): New function.
  14493. (TransferStat::TransferStat): New function.
  14494. (TransferStat::operator=): New function.
  14495. (addIncomingPeer): New function.
  14496. (returnPeer): New function.
  14497. * src/PeerListenCommand.cc
  14498. (execute): Use PeerStorage::addIncomingPeer() instead of
  14499. Peer::addPeer().
  14500. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14501. Connect to a peer actively when download speed is lower than specified
  14502. speed in torrent download:
  14503. * src/ActivePeerConnectionCommand.h: New class.
  14504. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14505. * src/HttpRequest.cc (createRequest): url-encode user-agent
  14506. * src/main.cc: Fixed the bug that prevents download if .netrc
  14507. doesn't exist.
  14508. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14509. To cache resolved hostname:
  14510. * src/AbstractCommand.h, src/AbstractCommand.cc
  14511. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  14512. Added dns cache.
  14513. * src/FtpInitiateConnectionCommand.cc
  14514. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  14515. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  14516. NameResolver working without ares.
  14517. * src/TorrentRequestInfo.cc
  14518. (execute): Don't cache dns in torrent download.
  14519. * src/HttpInitiateConnectionCommand.cc
  14520. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  14521. * src/DNSCache.h: New class.
  14522. * src/UrlRequestInfo.cc
  14523. (execute): Use dns cache.
  14524. In http request, suppress port number in http request header if port
  14525. is 80 or 443:
  14526. * src/HttpRequest.cc (getHostText): Suppress port number in http
  14527. request header if port is 80 or 443.
  14528. (createProxyRequest): Allways send port number.
  14529. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14530. To add the command-line option which disables netrc support:
  14531. * src/OptionHandlerFactory.cc
  14532. (createOptionHandlers): Added PREF_NO_NETRC.
  14533. * src/main.cc: Added -n option.
  14534. * src/prefs.h (PREF_NO_NETRC): New definition.
  14535. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  14536. V_TRUE.
  14537. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  14538. is V_FALSE. This may get configurable in the future release.
  14539. To clear peer's error status by time basis:
  14540. * src/PeerAbstractCommand.cc
  14541. (onAbort): Call Peer::startBadCondition().
  14542. * src/Peer.h, src/Peer.cc
  14543. (error): Removed.
  14544. (_badConditionStartTime): New variable.
  14545. (_badConditionInterval): New variable. Initialized to 10 seconds.
  14546. (startBadCondition): New function.
  14547. (isGood): New function.
  14548. * src/DefaultPeerStorage.cc
  14549. (addPeer): Use Peer::isGood().
  14550. (FindFinePeer): Use Peer::isGood().
  14551. Always include port number in http request header:
  14552. * src/HttpRequest.cc (getHostText): Always include port number in
  14553. http request header.
  14554. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14555. To the ability to read options from a config file:
  14556. * src/main.cc: Command-line parameter validation is delegated to
  14557. OptionHandler class.
  14558. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  14559. * src/Option.h, src/Option.cc (clear): New function.
  14560. * src/OptionParser.h, src/OptionParser.cc: New class.
  14561. * src/OptionHandler.h: New class.
  14562. * src/NameMatchOptionHandler.h: New class.
  14563. * src/OptionHandlerImpl.h: New classes.
  14564. * src/prefs.h: '_' -> '-'
  14565. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  14566. (FTP_PASV): New definition.
  14567. * src/Util.h, src/Util.cc (getRealSize): New function.
  14568. To disable netrc support if .netrc file does not have correct
  14569. permissions:
  14570. * src/File.h, src/File.cc (mode): New function.
  14571. To prevent confidential information to be logged:
  14572. * src/HttpConnection.h, src/HttpConnection.cc
  14573. (eraseConfidentialInfo): New function.
  14574. (sendRequest): Call eraseConfidentialInfo().
  14575. (sendProxyRequest): Call eraseConfidentialInfo().
  14576. * src/main.cc: Validate permissions of .netrc file.
  14577. To add --user-agent command-line option:
  14578. * src/main.cc: Added new command line option: --user-agent
  14579. * src/prefs.h (PREF_USER_AGENT): New definition.
  14580. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  14581. parameter to HttpRequest object.
  14582. * src/AbstractProxyRequestCommand.cc
  14583. (executeInternal): Set user-agent option parameter to HttpRequest
  14584. object.
  14585. Marged the patches from Dan Fandrich.
  14586. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14587. Use filename and size from Metalink file instead of sending HEAD
  14588. request:
  14589. * src/UrlRequestInfo.h
  14590. (_filename): New variable.
  14591. (_totalLength): New variable.
  14592. (setTotalLength): New variable.
  14593. (setFilename): New variable.
  14594. * src/MetalinkRequestInfo.cc
  14595. (execute): Set filename and size to UrlRequestInfo
  14596. * src/UrlRequestInfo.cc
  14597. (execute): Use filename and size from Metalink instead of seding
  14598. HEAD request to servers.
  14599. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14600. To add the ability to resume downloading a partially downloaded file
  14601. which is downloaded from the beginning:
  14602. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  14603. takes this role.
  14604. * src/main.cc: Added -c option.
  14605. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  14606. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  14607. * src/prefs.h (PREF_CONTINUE): New definition.
  14608. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  14609. * src/DefaultDiskWriter.cc
  14610. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  14611. * src/AbstractDiskWriter.h
  14612. (glowFileAllocator): New variable.
  14613. * src/AbstractDiskWriter.cc
  14614. (openExistingFile): Now preallocate file space from the end of the
  14615. existing file if totalLength argument is specified and grater than 0.
  14616. * src/UrlRequestInfo.cc: If -c option is specified and the file
  14617. to download exists in local, continue the download of the file.
  14618. --allow-overwrite=true is assumed in this context.
  14619. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  14620. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  14621. Throw exception if --check-integrity=true is specified but chunk
  14622. checksums are not provided:
  14623. * src/UrlRequestInfo.cc
  14624. Do not print URLs to stdout:
  14625. * src/UrlRequestInfo.cc
  14626. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14627. * src/Request.h: Use AuthResolver to get authentication information.
  14628. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  14629. set to RequestFactory object.
  14630. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  14631. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  14632. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  14633. create Request object.
  14634. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  14635. To integrate Netrc into exsiting classes:
  14636. * src/Request.h
  14637. (_userDefinedAuthConfig): New variable.
  14638. (findNetrcAuthenticator): New function.
  14639. (segment): Removed.
  14640. (setUserDefinedAuthConfig): New function.
  14641. (resolveHttpAuthConfigItem): New function.
  14642. (resolveFtpAuthConfigItem): New function.
  14643. (resolveHttpProxyAuthConfigItem): New function.
  14644. * src/HttpRequest.h
  14645. (authConfig): Removed.
  14646. (proxyAuthConfig): Removed.
  14647. (setAuthConfig): Removed.
  14648. (setProxyAuthConfig): Removed.
  14649. * src/UrlRequest.h
  14650. (getHeadResult): Added a parameter: authConfigHandle
  14651. * src/common.h
  14652. (SingletonHolder.h): New include.
  14653. * src/main.cc
  14654. (Netrc.h): New include.
  14655. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  14656. Added initial value of PREF_NETRC_PATH.
  14657. Added the initialization of netrc.
  14658. * src/AuthConfig.h: New class.
  14659. * src/prefs.h
  14660. (PREF_NETRC_PATH): New definition.
  14661. * src/HttpAuthConfig.h: Removed.
  14662. * src/Netrc.cc
  14663. (getRequiredNextToken): New function.
  14664. (skipMacdef): New function.
  14665. (parse): Rewritten.
  14666. * src/Netrc.h
  14667. (getRequiredNextToken): New function.
  14668. (skipMacdef): New function.
  14669. * src/Util.h, src/Util.cc
  14670. (getHomeDir): New function.
  14671. * src/TrackerWatcherComand.cc
  14672. (createRequestCommand): Use AuthConfig.
  14673. * src/FtpConnection.cc
  14674. (sendUser): Use Request::resolveFtpAuthConfigItem().
  14675. (sendPass): Use Request::resolveFtpAuthConfigItem().
  14676. * src/Request.cc
  14677. (findNetrcAuthenticator): New function.
  14678. (resolveHttpAuthConfigItem): New function.
  14679. (resolveFtpAuthConfigItem): New function.
  14680. (resolveHttpProxyAuthConfigItem): New function.
  14681. * src/UrlRequestInfo.cc: Use AuthConfig.
  14682. * src/HttpRequest.cc
  14683. (createRequest): Use authConfig.
  14684. (getProxyAuthString): Use authConfig.
  14685. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  14686. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  14687. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14688. To reduce overhead to find commands whose socket is either
  14689. readable or writable in the download engine loop:
  14690. * src/Command.h, src/Command.cc
  14691. (STATUS): New enum.
  14692. (status): New variable.
  14693. (statusMatch): New function.
  14694. (setStatusActive): New function.
  14695. (setStatusInactive): New function.
  14696. * src/DownloadEngine.h, src/DownloadEngine.cc
  14697. (executeCommand): New function.
  14698. (run): Simplified.
  14699. (waitData): Call Command::setStatusActive() when command's socket is
  14700. readable or writable.
  14701. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14702. To handle Segment as SegmentHandle:
  14703. * src/AbstractCommand.cc (execute): Rewritten.
  14704. * src/SegmentMan.h: Segment -> SegmentHandle
  14705. Introducded HttpResponse class, HttpRequest class to improve code
  14706. extensiveness and make it clear:
  14707. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  14708. HttpResponse class.
  14709. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  14710. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  14711. * src/HttpConnection.cc: Contruction of http request were moved to
  14712. HttpRequest class.
  14713. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  14714. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  14715. * src/HttpAuthConfig.h: New class.
  14716. * src/Range.h: New class.
  14717. To make FtpTunnel{Request, Response}Command and
  14718. HttpProxy{Request, Response}Command derived from
  14719. AbstractProxy{Request, Response}Command:
  14720. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  14721. Derived from AbstractProxyRequestCommand class.
  14722. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  14723. Derived from AbstractProxyResponseCommand class.
  14724. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  14725. Derived from AbstractProxyRequestCommand class.
  14726. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  14727. Derived from AbstractProxyResponseCommand class.
  14728. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  14729. : New class.
  14730. * src/AbstractProxyResponseCommand.h,
  14731. src/AbstractProxyResponseCommand.cc: New class.
  14732. To add netrc support:
  14733. * src/Netrc.h, src/Netrc.cc: New class.
  14734. * src/Util.h, src/Util.cc (split): New function.
  14735. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  14736. "Content-Range" header instead of "Range" header.
  14737. * src/HttpHeader.h
  14738. (getStatus): Removed.
  14739. (setStatus): Removed.
  14740. * src/Segment.h
  14741. (getPositionToWrite): New function.
  14742. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14743. * src/HttpHeader.h
  14744. (Range.h): New include.
  14745. (status): New variable.
  14746. (HttpHeader): Initialized status with 0.
  14747. (getStatus): New function.
  14748. (setStatus): New function.
  14749. (getRange): New function.
  14750. (HttpHeaderHandle): New function.
  14751. * src/HttpHeader.cc
  14752. (getRange): New function.
  14753. * src/Request.h
  14754. (RequestWeakHandle): New definition.
  14755. * src/HttpConnection.h
  14756. (HttpConnectionHandle): New type definition.
  14757. * src/HttpConnection.cc
  14758. (receiveResponse): Set HTTP status to headers.
  14759. * src/main.cc
  14760. (showUsage): Fixed typo.
  14761. * src/Segment.h
  14762. (SegmentHandle): New type definition.
  14763. * src/BitfieldMan.h
  14764. (getMissingUnusedLength): New function.
  14765. * src/BitfieldMan.cc
  14766. (getMissingUnusedLength): New function.
  14767. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14768. To fix static initialization order problem:
  14769. * src/BitfieldManFactory.h
  14770. (defaultRandomizer): Removed.
  14771. (factory): New variable.
  14772. (getNewFactory): Removed.
  14773. (getFactoryInstance): New function.
  14774. (setDefaultRandomizer): Rewritten.
  14775. (getDefaultRandomizer): Rewritten.
  14776. * src/BitfieldManFactory.cc
  14777. (defaultRandomizer): Removed.
  14778. (factory): Initialized to 0.
  14779. (BitfieldManFactory): Initialized randomizer to 0.
  14780. * src/DefaultPieceStorage.cc
  14781. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  14782. * src/Peer.cc
  14783. (Peer): getNewFactory() -> getFactoryInstance()
  14784. * src/SegmentMan.cc
  14785. (initBitfield): getNewFactory() -> getFactoryInstance()
  14786. * src/Piece.cc
  14787. (Piece): getNewFactory() -> getFactoryInstance()
  14788. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14789. To fix the bug that causes crash on Max OS X:
  14790. * src/SimpleRandomizer.h
  14791. (getInstance): Create new instance if the static variable is null.
  14792. * src/SimpleRandomizer.cc
  14793. (randomizer): Initialized to 0.
  14794. * src/BitfieldManFactory.h
  14795. (getNewFactory): Removed the call to setRandomizer().
  14796. To fix the miscalculation of the range of checksum:
  14797. * src/BitfieldMan.h
  14798. (isBitSetOffsetRange): New function.
  14799. * src/BitfieldMan.cc
  14800. (isBitSetOffsetRange): New function.
  14801. * src/SegmentMan.cc
  14802. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  14803. Use bitfield->getBlockLength() instead of segment.segmentLength.
  14804. * Release 0.10.1
  14805. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14806. To lower CPU usage in BitTorrent download when --max-upload-limit
  14807. command-line option specified:
  14808. * src/DefaultBtMessageDispatcher.cc
  14809. (sendMessages): Calculate uploading speed only when current message
  14810. is uploading data and is not sent yet.
  14811. * src/DefaultPeerStorage.h
  14812. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  14813. * src/HttpResponseCommand.cc
  14814. (handleDefaultEncoding): Added the cast to int32_t to itos.
  14815. This fixes compile error in Soralis 10.
  14816. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14817. To fix segfault in Metalink download:
  14818. * src/UrlRequestInfo.h
  14819. (filename): Removed.
  14820. (totalLength): Removed.
  14821. (setTotalLength): Removed.
  14822. (setFilename): Removed.
  14823. * src/MetalinkRequestInfo.cc
  14824. (execute): Do not set filename and totalLength to reqInfo.
  14825. Set chunk checksum to reqInfo if it is not null.
  14826. * src/HttpResponseCommand.cc
  14827. (executeInternal): Fixed filename in log.
  14828. (handleDefaultEncoding): Removed the call to initBitfield() and
  14829. markAllPiecesDone().
  14830. (handleOtherEncoding): Added HEAD method handling.
  14831. * src/FtpNegotiateCommand.cc
  14832. (executeInternal): Added SEQ_HEAD_OK handling.
  14833. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  14834. return false.
  14835. * src/FtpNegotiateCommand.h
  14836. (SEQ_HEAD_OK): New definition.
  14837. * src/SegmentMan.cc
  14838. (initBitfield): Delete bitfield.
  14839. (isChunkChecksumValidationReady): Fixed the condition.
  14840. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  14841. works fine.
  14842. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14843. * src/Xml2MetalinkProcessor.h
  14844. (xpathExists): New function.
  14845. * src/Xml2MetalinkProcessor.cc
  14846. (xpathExists): New function.
  14847. Not to send HEAD request if filename and size are available in Metalink
  14848. file:
  14849. * src/UrlRequestInfo.h
  14850. (filename): New variable.
  14851. (totalLength): New variable.
  14852. (setTotalLength): New function.
  14853. (setFilename): New function.
  14854. * src/MetalinkRequestInfo.cc
  14855. (execute): Set filename and size to UrlRequestInfo.
  14856. * src/MetalinkEntry.cc
  14857. (MetalinkEntry): Initialize size with 0.
  14858. * src/UrlRequestInfo.cc
  14859. (execute): Set filename and size to SegmentMan.
  14860. Not to download rest of the files after selected files are downloaded
  14861. in BitTorrent:
  14862. * src/PieceStorage.h
  14863. (allDownloadFinished): New function.
  14864. * src/DefaultBtAnnounce.cc
  14865. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  14866. downloadFinished.
  14867. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  14868. * src/DefaultPieceStorage.cc
  14869. (completePiece): Use allDownloadFinished instead of downloadFinished.
  14870. Commented out the call to finishSelectiveDownloadingMode().
  14871. (downloadFinished): Call isFilteredAllBitSet() instead of
  14872. isAllBitSet().
  14873. (allDownloadFinished): New function.
  14874. * src/DefaultBtInteractive.cc
  14875. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  14876. downloadFinished().
  14877. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  14878. * src/TorrentDownloadEngine.cc
  14879. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  14880. * src/BitfieldMan.h
  14881. (isFilteredAllBitSet): New function.
  14882. * src/ShareRatioSeedCriteria.h
  14883. (PieceStorage.h): New include.
  14884. (pieceStorage): New variable.
  14885. (evaluate):
  14886. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  14887. * src/BitfieldMan.cc
  14888. (isFilteredAllBitSet): New function.
  14889. (isAllBitSet): Filter is not took into account.
  14890. Rename --force-truncate as --allow-overwrite:
  14891. * src/TorrentRequestInfo.cc
  14892. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  14893. * src/main.cc
  14894. (showUsage): --force-truncate -> --allow-overwrite
  14895. * src/message.h
  14896. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  14897. * src/prefs.h
  14898. (PREF_FORCE_TRUNCATE): Removed.
  14899. (PREF_ALLOW_OVERWRITE): New definition.
  14900. * src/SegmentMan.cc
  14901. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  14902. * src/MetalinkRequestInfo.cc
  14903. (execute): Queueing message are now logged in info level.
  14904. * src/common.h
  14905. (LONG_LONG_MAX): Removed.
  14906. (LONG_LONG_MIN): Removed.
  14907. * src/HttpResponseCommand.cc
  14908. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  14909. * src/FtpNegotiateCommand.cc
  14910. (recvSize): LONG_LONG_MAX -> INT64_MAX
  14911. * src/main.cc
  14912. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  14913. command-line option.
  14914. (main): Added --check-integriy and --realtime-chunk-checksum
  14915. command-line option.
  14916. --force-truncate -> --allow-overwrite
  14917. Set initial value of --check-integrity option to false.
  14918. Don't show usage when error occurs while persing command-line options.
  14919. Removed deprecated --upload-limit option.
  14920. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14921. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  14922. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  14923. * src/BtAllowedFastMessage.cc:
  14924. * src/BtBitfieldMessage.cc
  14925. * src/BtCancelMessage.cc
  14926. * src/BtChokeMessage.cc
  14927. * src/BtHaveAllMessage.cc
  14928. * src/BtHaveMessage.cc
  14929. * src/BtHaveNoneMessage.cc
  14930. * src/BtInterestedMessage.cc
  14931. * src/BtNotInterestedMessage.cc
  14932. * src/BtPieceMessage.cc
  14933. * src/BtPortMessage.cc
  14934. * src/BtRejectMessage.cc
  14935. * src/BtRequestMessage.cc
  14936. * src/BtSuggestPieceMessage.cc
  14937. * src/BtUnchokeMessage.cc
  14938. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  14939. files are affected.
  14940. * src/ChunkChecksumValidator.cc
  14941. * src/SegmentMan.cc
  14942. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14943. To add chunk checksum validation:
  14944. * src/MetalinkEntry.h
  14945. (MetalinkChunkChecksum.h): New include.
  14946. (chunkChecksum): New variable.
  14947. * src/Request.h
  14948. (method): New variable.
  14949. (setMethod): New function.
  14950. (getMethod): New function.
  14951. (METHOD_GET): New static constant.
  14952. (METHOD_HEAD): New static constant.
  14953. * src/Xml2MetalinkProcessor.h
  14954. (getPieceHash): New function.
  14955. * src/PieceStorage.h
  14956. (markAllPiecesDone): New function.
  14957. (checkIntegrity): New function.
  14958. * src/FileAllocator.h
  14959. (NullFileAllocationMonitor.h): New include.
  14960. (FileAllocator): Initialize fileAllocationMonitor with new
  14961. NullFileAllocationMonitor().
  14962. * src/MultiDiskAdaptor.h
  14963. (messageDigest.h): Remove include.
  14964. (ctx): Removed.
  14965. (hashUpdate): Added ctx.
  14966. (MultiDiskAdaptor): Removed ctx.
  14967. (sha1Sum): Renamed as messageDigest.
  14968. (messageDigest): New function.
  14969. * src/UrlRequestInfo.h
  14970. (HeadResult): New class.
  14971. (digestAlgo): New variable.
  14972. (chunkChecksumLength): New variable.
  14973. (chunkChecksums): New variable.
  14974. (getHeadResult): New function.
  14975. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  14976. (setDigestAlgo): New function.
  14977. (setChunkChecksumLength): New function.
  14978. (setChunkChecksums): New function.
  14979. * src/DefaultPieceStorage.cc
  14980. (DiskAdaptorWriter.h): New include.
  14981. (ChunkChecksumValidator.h): New include.
  14982. (markAllPiecesDone): New function.
  14983. (checkIntegrity): New function.
  14984. * src/DefaultBtContext.h
  14985. (getPieceHashes): New function.
  14986. * src/TorrentRequestInfo.cc
  14987. (execute): Try to validate chunk checksum if file already exists and
  14988. .aria2 file doesn't there and user allows aria2 to overwrite it.
  14989. * src/messageDigest.h
  14990. (~MessageDigestContext): Added digestFree().
  14991. * src/MetalinkRequestInfo.cc
  14992. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  14993. * src/DiskAdaptor.h
  14994. (messageDigest.h): New include.
  14995. (sha1Sum): Renamed as messageDigest.
  14996. (messageDigest): New function.
  14997. * src/DownloadCommand.h
  14998. (PeerStat.h): New include.
  14999. (maxDownloadSpeedLimit): New variable.
  15000. (startupIdleTime): New variable.
  15001. (lowestDownloadSpeedLimit): New variable.
  15002. (peerStat): New variable.
  15003. (setMaxDownloadSpeedLimit): New function.
  15004. (setStartupIdleTime): New function.
  15005. (setLowestDownloadSPeedLimit): New function.
  15006. * src/BtContext.h
  15007. (getPieceHashes): New function.
  15008. * src/main.cc
  15009. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  15010. option to true for testing purpose.
  15011. * src/BtPieceMessage.cc
  15012. (checkPieceHash): Use messageDigest
  15013. * src/DownloadEngine.cc
  15014. (SetDescriptor): Removed.
  15015. (AccumulateActiveCommand): Removed.
  15016. (waitData): Rewritten.
  15017. (updateFdSet): Rewritten.
  15018. * src/MultiDiskAdaptor.cc
  15019. (hashUpdate): Added ctx.
  15020. (sha1Sum): Renamed as messageDigest.
  15021. (messageDigest): New function.
  15022. * src/BitfieldMan.h
  15023. (isBitRangeSet): New function.
  15024. (unsetBitRange): New function.
  15025. * src/ByteArrayDiskWriter.h
  15026. (sha1Sum): Renamed as messageDigest.
  15027. (messageDigest): New function.
  15028. * src/ConsoleDownloadEngine.cc
  15029. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  15030. * src/DiskWriter.h
  15031. (messageDigest.h): New include.
  15032. (sha1Sum): Renamed as messageDigest.
  15033. (messageDigest): New function.
  15034. * src/ChunkChecksumValidator.h: New class.
  15035. * src/DiskAdaptorWriter.h: New class.
  15036. * src/prefs.h
  15037. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  15038. (PREF_CHECK_INTEGRITY): New definition.
  15039. * src/HttpResponseCommand.cc
  15040. (handleDefaultEncoding): Added method "HEAD" handling.
  15041. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  15042. (handleOtherEncoding):
  15043. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  15044. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  15045. startupIdleTime, lowestDownloadSpeedLimit to command.
  15046. * src/SegmentMan.h
  15047. (getSegmentEntryByIndex): New function.
  15048. (getSegmentEntryByCuid): New function.
  15049. (getSegmentEntryIteratorByCuid): New function.
  15050. (diskWriter): DiskWriter -> DiskWriterHandle
  15051. (pieceHashes): New variable.
  15052. (chunkHashLength): New variable.
  15053. (digestAlgo): New variable.
  15054. (FindPeerStat): Removed.
  15055. (getPeerStat): Rewritten.
  15056. (markAllPiecesDone): New function.
  15057. (checkIntegrity): New function.
  15058. (tryChunkChecksumValidation): New function.
  15059. (isChunkChecksumValidationReady): New function.
  15060. * src/BitfieldMan.cc
  15061. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  15062. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  15063. blocks to 0.
  15064. (isBitRangeSet): New function.
  15065. (unsetBitRange): New function.
  15066. * src/FtpNegotiateCommand.cc
  15067. (executeInternal): Set maxDownloadSpeedLimit,
  15068. startupIdleTime, lowestDownloadSpeedLimit to command.
  15069. (recvSize): Added method "HEAD" handling.
  15070. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  15071. * src/AbstractSingleDiskAdaptor.cc
  15072. (sha1Sum): Renamed as messageDigest.
  15073. (messageDigest): New function.
  15074. * src/AbstractSingleDiskAdaptor.h
  15075. (sha1Sum): Renamed as messageDigest.
  15076. (messageDigest): New function.
  15077. * src/Util.h
  15078. (indexRange): New function.
  15079. * src/MetalinkEntry.cc
  15080. (MetalinkEntry): Initialized chunkChecksum to 0.
  15081. * src/ShaVisitor.cc
  15082. (~ShaVisitor): Removed the call to ctx.digestFree().
  15083. * src/SegmentMan.cc
  15084. (ChunkChecksumValidator.h): New include.
  15085. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  15086. to DIGEST_ALGO_SHA1.
  15087. (~SegmentMan): Removed diskWriter.
  15088. (FindSegmentEntryByIndex): Removed.
  15089. (FindSegmentEntryByCuid): Removed.
  15090. (checkoutSegment): Rewritten.
  15091. (findSlowerSegmentEntry): Rewritten.
  15092. (getSegment): Rewritten.
  15093. (updateSegment): Rewritten.
  15094. (completeSegment): Rewritten.
  15095. (markAllPiecesDone): New function.
  15096. (checkIntegrity): New function.
  15097. (isChunkChecksumValidationReady): New function.
  15098. (tryChunkChecksumValidation): New function.
  15099. * src/Xml2MetalinkProcessor.cc
  15100. (getEntry): Get size and set it to entry.
  15101. Get chunk checksum and set it to entry.
  15102. (getPieceHash): New function.
  15103. * src/Util.cc
  15104. (sha1Sum): Removed ctx.digestFree()
  15105. (fileChecksum): Removed ctx.digestFree()
  15106. (indexRange): New function.
  15107. * src/Request.cc
  15108. (METHOD_GET): New variable.
  15109. (METHOD_HEAD): New variable.
  15110. (Request): Added method.
  15111. * src/UrlRequestInfo.cc
  15112. (FatalException.h): New include.
  15113. (message.h): New include.
  15114. (operator<<): Added operator<< for class HeadResult.
  15115. (getHeadResult): New function.
  15116. (execute): Get filename and size in separate download engine.
  15117. * src/ChunkChecksumValidator.cc: New class.
  15118. * src/DownloadCommand.cc:
  15119. (DownloadCommand): Added peerStat.
  15120. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  15121. the value from Option.
  15122. The buffer size is now 16KB.
  15123. Use peerStat member instead of getting it from SegmentMan.
  15124. Use startupIdleTime member instead of gettingit from Option.
  15125. Added chunk checksum validation.
  15126. * src/AbstractDiskWriter.cc
  15127. (AbstractDiskWriter): Removed ctx.
  15128. (~AbstractDiskWriter): Removed ctx.digestFree()
  15129. (writeDataInternal): Returns the return value of write.
  15130. (readDataInternal): Returns the return value of read.
  15131. (sha1Sum): Renamed as messageDigest
  15132. (messageDigest): New function.
  15133. * src/AbstractDiwkWriter.h
  15134. (messageDigest.h): Removed include.
  15135. (ctx): Removed.
  15136. (sha1Sum): Renamed as messageDigest
  15137. (messageDigest): New function.
  15138. * src/DefaultPieceStorage.h
  15139. (markAllPiecesDone): New function.
  15140. (checkIntegrity): New function.
  15141. * src/NullFileAllocationMonitor.h: New class.
  15142. * src/MetalinkChunkChecksum.h: New class.
  15143. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15144. To decrease CPU usage in bittorrent download, calculation results in
  15145. BitfieldMan were cached and realtime fetching PeerObject was removed
  15146. with WeakHandle introduced. Option values are set to the objects
  15147. by setter before download begins.
  15148. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  15149. * src/DefaultBtRequestFactory.h
  15150. (dispatcher): BtMessageDispatcherHandle ->
  15151. BtMessageDispatcherWeakHandle.
  15152. (messageFactory): New variable.
  15153. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  15154. BtMessageDispatcherWeakHandle.
  15155. (setBtMessageFactory): New function.
  15156. * src/DefaultBtMessageDispatcher.cc:
  15157. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  15158. from Option.
  15159. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  15160. feating the value from Option.
  15161. Use messageFactory member.
  15162. * src/PeerInteractionCommand.cc
  15163. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  15164. Add reverse dependencies to factory object.
  15165. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  15166. dispatcher.
  15167. Set messageFactory to receiver.
  15168. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  15169. btInteractive.
  15170. Set receiver to peerObject.
  15171. Set maxDownloadSpeedLimit to this.
  15172. (executeInternal): Use maxDownloadSpeedLimit member.
  15173. * src/BtChokeMessage.cc
  15174. (doReceivedAction): Use dispatcher, requestFactory member.
  15175. (onSendComplete): Use dispatcher member.
  15176. * src/PeerInteractionCommand.h
  15177. (maxDownloadSpeedLimit): New variable.
  15178. * src/DefaultBtMessageReceiver.h
  15179. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  15180. (dispatcher):
  15181. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  15182. (messageFactory): New variable.
  15183. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  15184. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  15185. (setDispatcher):
  15186. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  15187. (setBtMessageFactory): New function.
  15188. * src/DefaultBtInteractive.cc
  15189. (initiateHandshake): Use messageFactory member.
  15190. (addBitfieldMessageToQueue): Use messageFactory member.
  15191. (addAllowedFastMessageToQueue): Use messageFactory member.
  15192. (decideChoking): Use messageFactory member.
  15193. (checkHave): Use messageFactory member.
  15194. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  15195. (receiveMessages): Use maxDownloadSpeedLimit member.
  15196. (decideInterest): Use messageFactory member.
  15197. * src/BtRequestMessage.cc
  15198. (doReceivedAction): Use messageFactory, dispatcher member.
  15199. (onQueued): Use dispatcher member.
  15200. * src/BtPieceMessage.cc
  15201. (doReceivedAction): Use dispatcher member.
  15202. (send): Use peerConnection member.
  15203. (onWrongPiece): Use requestFactory member.
  15204. (handleChokingEvent): Use messageFactory, dispatcher member.
  15205. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  15206. * src/BtMessageDispatcher.h
  15207. (BtMessageDispatcherWeakHandle): New type definition.
  15208. * src/SimpleBtMessage.cc
  15209. (send): Use peerConnection member.
  15210. * src/BtRejectMessage.cc
  15211. (doReceivedAction): Use dispatcher member.
  15212. * src/DefaultBtMessageDispatcher.h
  15213. (Option.h): Removed include.
  15214. (messageFactory): New variable.
  15215. (option): Removed.
  15216. (maxUploadSpeedLimit): New variable.
  15217. (requestTimeout): New variable.
  15218. (DefaultBtMessageDispatcher): Removed option.
  15219. Added maxUploadSpeedLimit, requestTimeout.
  15220. (setOption): Removed.
  15221. (getOption): Removed.
  15222. (setMaxUploadSpeedLimit): New function.
  15223. (setRequestTimeout): New function.
  15224. (setBtMessageFactory): New function.
  15225. * src/DefaultBtInteractive.h
  15226. (btMessageReceiver):
  15227. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  15228. (dispatcher):
  15229. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  15230. (btRequestFactory):
  15231. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  15232. (peerConnection):
  15233. PeerConnectionHandle -> PeerConnectionWeakHandle
  15234. (messageFactory): New variable.
  15235. (option): Removed.
  15236. (keepAliveInterval): New variable.
  15237. (maxDownloadSpeedLimit): New variable.
  15238. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  15239. (setBtMessageReceiver):
  15240. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  15241. (setDispatcher):
  15242. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  15243. (setBtRequestFactory):
  15244. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  15245. (setPeerConnection):
  15246. PeerConnectionHandle -> PeerConnectionWeakHandle
  15247. (setOption): Removed.
  15248. (setKeepAliveInterval): New function.
  15249. (setMaxDownloadSpeedLimit): New function.
  15250. (setBtMessageFactory): New function.
  15251. * src/BitfieldMan.h
  15252. (cachedNumMissingBlock): New variable.
  15253. (cachedNumFilteredBlock): New variable.
  15254. (cachedCompletedLength): New variable.
  15255. (cachedFilteredComletedLength): New variable.
  15256. (cachedFilteredTotalLength): New variable.
  15257. (countMissingBlockNow): New function.
  15258. (countFilteredBlockNow): New function.
  15259. (getFilteredTotalLengthNow): New function.
  15260. (getCompletedLengthNow): New function.
  15261. (getFilteredCompletedLengthNow): New function.
  15262. (updateCache): New function.
  15263. * src/AbstractBtMessage.h
  15264. (BtMessageDispatcher.h): New include.
  15265. (PeerConnection.h): New include.
  15266. (BtRequestFactory.h): New include
  15267. (BtMessageFactory.h): New include.
  15268. (dispatcher): New variable.
  15269. (messageFactory): New variable.
  15270. (peerConnection: New variable.
  15271. (setBtMessageDispatcher): New function.
  15272. (setPeerConnection): New function.
  15273. (setBtMessageFactory): New function.
  15274. (setBtRequestFactory): New function.
  15275. * src/DefaultBtMessageFactory.cc
  15276. (setCommonProperty): Set dispatcher, requestFactory, this,
  15277. peerConnection to msg.
  15278. * src/BtRegistry.h
  15279. (BT_MESSAGE_RECEIVER): New macro.
  15280. * src/PeerConnection.h
  15281. (PeerConnectionWeakHandle): New type definition.
  15282. * src/BtMessageFactory.h
  15283. (BtMessageFactoryWeakHandle): New type definition.
  15284. * src/BitfieldMan.cc
  15285. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  15286. cachedCompletedLength, cachedFilteredComletedLength,
  15287. cachedFilteredTotalLength.
  15288. Call updateCache().
  15289. (countMissingBlock): Return cachedNumMissingBlock.
  15290. (countMissingBlockNow): New function.
  15291. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  15292. (countFilteredBlockNow): New function.
  15293. (setBit): Call updateCache().
  15294. (unsetBit): Call updateCache().
  15295. (setBitfield): Call updateCache().
  15296. (clearAllBit): Call updateCache().
  15297. (setAllBit): Use setBitInternal instead of setBit.
  15298. Call updateCache().
  15299. (addFilter): Call updateCache().
  15300. (enableFilter): Call updateCache().
  15301. (disableFilter): Call updateCache().
  15302. (clearFilter): Call updateCache().
  15303. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  15304. (getFilteredTotalLengthNow): New function.
  15305. (getCompletedLength): Return cachedCompletedLength.
  15306. (getCompletedLengthNow): New function.
  15307. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  15308. (getFilteredCompletedLengthNow): New function.
  15309. (updateCache): New function.
  15310. * src/BtMessageReceiver.h
  15311. (BtMessageReceiverWeakHandle): New type definition.
  15312. * src/DefaultBtMessageReceiver.cc
  15313. (receiveHandshake): Use messageFactory member.
  15314. (sendHandshake): Use messageFactory member.
  15315. (receiveMessage): Use messageFactory member.
  15316. * src/DefaultBtMessageFactory.h
  15317. (dispatcher): New variable.
  15318. (requestFactory): New variable.
  15319. (peerConnection): New variablle.
  15320. (setBtMessageDispatcher): New function.
  15321. (setBtRequestFactory): New function.
  15322. (setPeerConnection): New function.
  15323. * src/SharedHandle.h
  15324. (RefCount): New class.
  15325. (WeakHandle): New class.
  15326. * src/PeerObject.h
  15327. (BtMessageReceiver.h): New include.
  15328. (PeerObject): Added btMessageReceiver.
  15329. (btMessageReceiver): New variable.
  15330. * src/Util.cc
  15331. (countBit): Simplified.
  15332. * src/BtCancelMessage.cc
  15333. (doReceivedAction): Use dispatcher member.
  15334. * src/BtRequestFactory.h
  15335. (BtRequestFactoryWeakHandle): New type definition.
  15336. * src/PeerStorage.h
  15337. (downloadSpeed): int -> uint32_t
  15338. (uploadSpeed): int -> uint32_t
  15339. (sessionDownloadLength): long long int -> uint64_t
  15340. (sessionUploadLength): long long int -> uint64_t
  15341. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15342. To add RecoverableException, FatalException:
  15343. * src/AbstractCommand.cc
  15344. (onAbort): Exception -> RecoverableException
  15345. * src/PeerAbstractCommand.h
  15346. (RecoverableException.h): New include.
  15347. (onAbort): Exception -> RecoverableException.
  15348. * src/PeerInteractionCommand.cc
  15349. (onAbort): Exception -> RecoverableException.
  15350. * src/PeerAbstractCommand.cc
  15351. (execute): Exception -> RecoverableException.
  15352. (onAbort): Exception -> RecoverableException.
  15353. * src/TorrentRequestInfo.cc
  15354. (execute): Exception -> RecoverableException.
  15355. * src/MetalinkRequestInfo.cc
  15356. (execute): Exception -> RecoverableException.
  15357. * src/MetaFileUtil.cc: RecoverableException.
  15358. * src/AbstractCommand.h
  15359. (onAbort): Exception -> RecoverableException.
  15360. * src/DlRetryEx.h: Exception -> RecoverableException.
  15361. * src/DlAbortEx.h: Exception -> RecoverableException.
  15362. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  15363. * src/Util.cc: Exception -> RecoverableException.
  15364. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  15365. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  15366. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  15367. To make ID static const int
  15368. * src/BtInterestedMessage.h
  15369. (ID_t): Removed.
  15370. (ID): New variable.
  15371. (getId): Made non-const.
  15372. * src/BtPieceMessage.h
  15373. (ID_t): Removed.
  15374. (ID): New variable.
  15375. (getId): Made non-const.
  15376. * src/BtChokeMessage.h
  15377. (ID_t): Removed.
  15378. (ID): New variable.
  15379. (getId): Made non-const.
  15380. * src/BtHaveAllMessage.h
  15381. (ID_t): Removed.
  15382. (ID): New variable.
  15383. (getId): Made non-const.
  15384. * src/BtKeepAliveMessage.h
  15385. (ID_t): Removed.
  15386. (ID): New variable.
  15387. (getId): Made non-const.
  15388. * src/BtHandshakeMessage.h
  15389. (ID): New variable.
  15390. (getId): Made non-const.
  15391. * src/BtSuggestPieceMessage.h
  15392. (ID_t): Removed.
  15393. (ID): New variable.
  15394. (getId): Made non-const.
  15395. * src/BtPortMessage.h
  15396. (ID_t): Removed.
  15397. (ID): New variable.
  15398. (getId): Made non-const.
  15399. * src/AbstractBtMessage.h
  15400. (id): Removed.
  15401. (AbstractBtMessage): Removed id.
  15402. (getId): Removed.
  15403. * src/BtHaveMessage.h
  15404. (ID_t): Removed.
  15405. (ID): New variable.
  15406. (getId): Made non-const.
  15407. * src/BtAllowedFastMessage.h
  15408. (ID_t): Removed.
  15409. (ID): New variable.
  15410. (getId): Made non-const.
  15411. * src/BtCancelMessage.h
  15412. (ID_t): Removed.
  15413. (ID): New variable.
  15414. (getId): Made non-const.
  15415. * src/BtNotInterestedMessage.h
  15416. (ID_t): Removed.
  15417. (ID): New variable.
  15418. (getId): Made non-const.
  15419. * src/BtChokeMessage.h
  15420. (ID_t): Removed.
  15421. (ID): New variable.
  15422. (getId): Made non-const.
  15423. * src/BtRejectMessage.h
  15424. (ID_t): Removed.
  15425. (ID): New variable.
  15426. (getId): Made non-const.
  15427. * src/BtBitfieldMessage.h
  15428. (ID_t): Removed.
  15429. (ID): New variable.
  15430. (getId): Made non-const.
  15431. * src/BtUnchokeMessage.h
  15432. (ID_t): Removed.
  15433. (ID): New variable.
  15434. (getId): Made non-const.
  15435. * src/BtRequestMessage.h
  15436. (ID_t): Removed.
  15437. (ID): New variable.
  15438. (getId): Made non-const.
  15439. * src/BtHaveMessage.h
  15440. (ID_t): Removed.
  15441. (ID): New variable.
  15442. (getId): Made non-const.
  15443. To add --force-truncate command-line option and a check whether
  15444. the file already exists:
  15445. * src/DirectDiskAdaptor.h
  15446. (getFilePath): Made virtual public.
  15447. * src/MultiDiskAdaptor.h
  15448. (File.h): New include.
  15449. (DiskWriterEntry::fileEntry): Made private.
  15450. (DiskWriterEntry::fileExists): New function.
  15451. (DiskWriterEntry::getFileEntry): New function.
  15452. (fileExists): New function.
  15453. (getFilePath): New function.
  15454. * src/TorrentRequestInfo.cc
  15455. (FatalException.h): New include.
  15456. (message.h): New include.
  15457. (RecoverableException.h): New include.
  15458. (execute): Added a check whether file is already exists or not.
  15459. * src/DiskAdaptor.h
  15460. (fileExists): New function.
  15461. (getFilePath): New function.
  15462. * src/main.cc
  15463. (showUsage): Added an explanation of --force-truncate command-line
  15464. option.
  15465. (main): Added --force-truncate command-line option.
  15466. * src/Exception.h
  15467. (setMsg): buf[256] -> buf[1024]
  15468. * src/CopyDiskWriter.h
  15469. (getFilePath): Made public virtual.
  15470. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  15471. (fileExists): New function.
  15472. * src/DownloadEngineFactory.cc
  15473. (newTorrentConsoleEngine): Don't open file here.
  15474. * src/message.h
  15475. (EX_FILE_ALREADY_EXISTS): New definition.
  15476. * src/prefs.h
  15477. (PREF_FOECE_TRUNCATE): New definition.
  15478. * src/HttpResponseCommand.cc
  15479. (handleDefaultEncoding): Added a check whether the file already exists.
  15480. * src/SegmentMan.h
  15481. (fileExists): New function.
  15482. (shouldCancelDownloadForSafety): New function.
  15483. * src/FtpNegotiateCommand.cc
  15484. (recvSize): Added a check whether the file already exists.
  15485. * src/AbstractSingleDiskAdaptor.cc
  15486. (File.h): New include.
  15487. (fileExists): New function.
  15488. * src/AbstractSingleDiskAdaptor.h
  15489. (getFilePath): Removed.
  15490. (fileExists): New function.
  15491. * src/SegmentMan.cc
  15492. (fileExists): New function.
  15493. (shouldCancelDownloadForSafety): New function.
  15494. To fix regression bug in torrent downloading:
  15495. * src/DefaultBtRequestFactory.cc
  15496. (doChokedAction): New function.
  15497. * src/DefaultBtRequestFactory.h
  15498. (doChokedAction): New function.
  15499. * src/DefaultBtMessageDispatcher.cc
  15500. (doChokedAction): Do not delete request if its target is in allowed
  15501. fast set.
  15502. * src/DefaultBtInteractive.cc
  15503. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  15504. (sendKeepAlive): Send keep alive message even if the outgoing message
  15505. queue is not empty.
  15506. (decideInterest): Simplified the code.
  15507. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  15508. it is already called when BtChokeMessage is received from a peer.
  15509. * src/BtRequestFactory.h
  15510. (doChokedAction): New function.
  15511. To clean up code:
  15512. * src/PeerInteractionCommand.h
  15513. (executeInternal): Added virtual keyword explicitly.
  15514. (prepareForRetry): Added virtual keyword explicitly.
  15515. (prepareForNextPeer): Added virtual keyword explicitly.
  15516. (onAbort): Added virtual keyword explicitly.
  15517. * src/RequestSlot.cc
  15518. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  15519. * src/BtPieceMessage.cc
  15520. (doReceivedAction): Added a debug log of piece's bitfield.
  15521. * src/Piece.h
  15522. (getBitfieldLength): New function.
  15523. * src/ByteArrayDiskWriter.cc
  15524. (clear): Added buf = 0 to avoid double free corruption.
  15525. * src/FileAllocator.cc
  15526. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  15527. Added cp.reset().
  15528. * src/BitfieldMan.h
  15529. (operator=): Rewritten.
  15530. * src/BitfieldMan.cc
  15531. (BitfieldMan): Initialized bitfield, useBitfield.
  15532. * src/PeerConnection.cc
  15533. (receiveMessage): Added a call to socket->readable() after getting
  15534. message length to avoid possible EOF.
  15535. * src/Util.cc
  15536. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  15537. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15538. To add an ability to pre-allocate file space:
  15539. * src/DirectDiskAdaptor.h: Rewritten.
  15540. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  15541. * src/MultiDiskAdaptor.h: Rewritten.
  15542. * src/DefaultPieceStorage.cc
  15543. (MultiDiskWriter.h): Removed include.
  15544. (PreAllocationDiskWriter.h): Removed include.
  15545. (FileAllocationMonitor.h): New include.
  15546. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  15547. (initStorage): Rewritten.
  15548. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15549. * src/FileAllocator.h: New class.
  15550. * src/FileAllocator.cc: New class.
  15551. * src/FileAllocationMonitor.h: New class.
  15552. * src/FileAllocationMonitor.cc: New class.
  15553. * src/ConsoleFileAllocationMonitor.h: New class.
  15554. * src/ConsoleFileAllocationMonitor.cc: New class.
  15555. * src/AbstractSingleDiskAdaptor.h: New class.
  15556. * src/AbstractSingleDiskAdaptor.cc: New class.
  15557. * src/DiskAdaptor.h
  15558. (Directory.h): Removed include.
  15559. (DiskWriter.h): Removed include.
  15560. (FileEntry.h): Removed include.
  15561. (diskWriter): Removed.
  15562. (DiskAdaptor): Removed diskWriter.
  15563. (openFile): Made pure virtual.
  15564. (closeFile): Made pure virtual.
  15565. (openExistingFile): Made pure virtual.
  15566. (initAndOpenFile): Made pure virtual.
  15567. (writeData): Made pure virtual.
  15568. (readData): Made pure virtual.
  15569. (sha1Sum): Made pure virtual.
  15570. (getStoreDir): Returns const reference of storeDir.
  15571. (DiskAdaptorHandle): New type definition.
  15572. * src/main.cc
  15573. (ConsoleFileAllocationMonitor.h): New include.
  15574. (showUsage): Added default value description of -s option.
  15575. Added the description of --file-allocation option.
  15576. (main): Set default value of --file-allocation option to 'none'.
  15577. Added --file-allocation command-line option.
  15578. Setup FileAllocationMonitorFactory.
  15579. * src/FtpInitiateConnectionCommand.cc
  15580. (executeInternal): Removed diskWriter related processing, which was
  15581. moved to FtpNegotiationCommand.cc.
  15582. * src/DirectDiskAdaptor.cc
  15583. (getFilePath): Made non-const.
  15584. * src/CopyDiskAdaptor.h
  15585. (DiskAdaptor.h): Removed include.
  15586. (DiskWriter.h): Removed include.
  15587. (AbstractSingleDiskAdaptor.h): New include.
  15588. (getFilePath): Made non-const. Added virtual keyword.
  15589. (CopyDiskAdaptor): Removed diskWriter.
  15590. (getTempFile): Returns const reference.
  15591. (CopyDiskAdaptorHandle): New type definition.
  15592. * src/ByteArrayDiskWriter.cc
  15593. (clear): Simplified.
  15594. (initAndOpenFile): Rewritten.
  15595. (openFile): Call initAndOpenFile()
  15596. * src/MultiDiskAdaptor.cc: Rewritten.
  15597. * src/DownloadEngineFactory.cc
  15598. (FileAllocator.h): New include.
  15599. (FileAllocationMonitor.h): New include.
  15600. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  15601. create DefaultDiskWriter with file allocator.
  15602. * src/DiskWriter.h
  15603. (initAndOpenFile): Added totalLength argument.
  15604. (openFile): Added totalLength argument.
  15605. * src/prefs.h
  15606. (PREF_FILE_ALLOCATION): New definition.
  15607. (V_PREALLOC): New definition.
  15608. (V_NONE): New definition.
  15609. * src/HttpResponseCommand.cc
  15610. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  15611. size.
  15612. * src/FtpNegotiateCommand.cc
  15613. (Util.h): New include.
  15614. (recvSize): Open file here.
  15615. * src/Util.h
  15616. (ullitos): New function.
  15617. * src/CopyDiskWriter.h
  15618. (getFilePath): Made non-const.
  15619. * src/DefaultDiskWriter.h
  15620. (Option.h): New include.
  15621. (totalLength): Removed.
  15622. (DefaultDiskWriter): Removed totalLength.
  15623. (initAndOpenFile): Added totalLength argument.
  15624. (DefaultDiskWriterHandle): New type definition.
  15625. (createNewDiskWriter): New function.
  15626. * src/Util.cc
  15627. (ullitos): New function.
  15628. * src/DefaultDiskWriter.cc
  15629. (message.h): New include.
  15630. (FileAllocator.h): New include.
  15631. (prefs.h): New include.
  15632. (Util.h): New include.
  15633. (DefaultDiskWriter): Removed totalLength.
  15634. (initAndOpenFile): Added file allocation.
  15635. (createNewDiskWriter): New function. Just for temporary solution.
  15636. It will be rewritten later.
  15637. * src/DiskAdaptor.cc
  15638. (DiskAdaptor): Removed diskWriter.
  15639. * src/AbstractDiskWriter.cc
  15640. (LogFactory.h): New include.
  15641. (AbstractDiskWriter): Added fileAllocator, logger.
  15642. (openFile): Added totalLength argument.
  15643. * src/AbstractDiskWriter.h
  15644. (FileAllocator.h): New include.
  15645. (Logger.h): New include.
  15646. (fileAllocator): New variable.
  15647. (logger): New variable.
  15648. (openFile): Added totalLength argument. Added virtual keyword
  15649. explicitly.
  15650. (openExistingFile): Added totalLength argument. Added virtual keyword
  15651. explicitly.
  15652. (closeFile): Added virtual keyword explicitly.
  15653. (sha1Sum): Added virtual keyword explicitly.
  15654. (writeData): Added virtual keyword explicitly.
  15655. (readData): Added virtual keyword explicitly.
  15656. (setFileAllocator): New function.
  15657. * src/DefaultPieceStorage.h
  15658. (FileAllocator.h): New include.
  15659. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15660. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  15661. * src/FileProgressMonitor.h: New class.
  15662. To compile aria2 on PC-BSD:
  15663. * src/DefaultBtContext.cc
  15664. (libgen.h): New include.
  15665. To fix memory leak:
  15666. * src/Exception.h
  15667. (~Exception): Delete cause. Fixed memory leak.
  15668. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15669. Rewritten a portion of bittorrent implementation:
  15670. * src/BtMessageValidator.h: New class.
  15671. * src/BtBitfieldMessageValidator.h: New class.
  15672. * src/BtHandshakeMessageValidator.h: New class.
  15673. * src/BtRequestMessageValidator.h: New class.
  15674. * src/BtSuggestPieceMessageValidator.h: New class.
  15675. * src/BtAllowedFastMessageValidator.h: New class.
  15676. * src/BtRejectMessageValidator.h: New class.
  15677. * src/BtCancelMessageValidator.h: New class.
  15678. * src/BtPieceMessageValidator.h: New class.
  15679. * src/BtHaveMessageValidator.h: New class.
  15680. * src/BtEventListener.h: New class.
  15681. * src/AbstractBtEventListener.h: New class.
  15682. * src/BtEvent.h: New class.
  15683. * src/BtChokingEvent.h: New class.
  15684. * src/BtChokedEvent.h: New class.
  15685. * src/BtCancelSendingPieceEvent.h: New class.
  15686. * src/BtAbortOutstandingRequestEvent.h: New class.
  15687. * src/Randomizer.h: New class.
  15688. * src/SimpleRandomizer.h: New class.
  15689. * src/BtMessage.h: New class.
  15690. * src/AbstractBtMessage.h: New class.
  15691. * src/SimpleBtMessage.h: New class.
  15692. * src/BtHaveMessage.h: New class.
  15693. * src/BtInterestedMessage.h: New class.
  15694. * src/BtAllowedFastMessage.h: New class.
  15695. * src/BtUnchokeMessage.h: New class.
  15696. * src/BtCancelMessage.h: New class.
  15697. * src/BtNotInterestedMessage.h: New class.
  15698. * src/BtChokeMessage.h: New class.
  15699. * src/BtHaveNoneMessage.h: New class.
  15700. * src/BtHandshakeMessage.h: New class.
  15701. * src/BtSuggestPieceMessage.h: New class.
  15702. * src/BtHaveMessage.h: New class.
  15703. * src/BtPieceMessage.h: New class.
  15704. * src/BtHaveAllMessage.h: New class.
  15705. * src/BtKeepAliveMessage.h: New class.
  15706. * src/BtPortMessage.h: New class.
  15707. * src/BtRejectMessage.h: New class.
  15708. * src/BtBitfieldMessage.h: New class.
  15709. * src/BtRequestMessage.h: New class.
  15710. * src/DefaultBtRequestFactory.h: New class.
  15711. * src/DefaultBtMessageReceiver.h: New class.
  15712. * src/BtInteractive.h: New class.
  15713. * src/BtMessageDispatcher.h: New class.
  15714. * src/DefaultBtMessageDispatcher.h: New class.
  15715. * src/DefaultBtInteractive.h: New class.
  15716. * src/BitfieldManFactory.h: New class.
  15717. * src/HandleRegistry.h: New class.
  15718. * src/BtMessageFactory.h: New class.
  15719. * src/BtMessageReceiver.h: New class.
  15720. * src/DefaultBtMessageFactory.h: New class.
  15721. * src/PeerObject.h: New class.
  15722. * src/BtRequestFactory.h: New class.
  15723. * src/SuggestPieceMessage.h: Removed.
  15724. * src/PortMessage.h: Removed.
  15725. * src/SuggestPieceMessage.h: Removed.
  15726. * src/KeepAliveMessage.h: Removed.
  15727. * src/HandshakeMessage.h: Removed.
  15728. * src/PeerInteraction.h: Removed.
  15729. * src/UnchokeMessage.h: Removed.
  15730. * src/PieceMessage.h: Removed.
  15731. * src/RequestMessage.h: Removed.
  15732. * src/InterestedMessage.h: Removed.
  15733. * src/HaveMessage.h: Removed.
  15734. * src/CancelMessage.h: Removed.
  15735. * src/RejectMessage.h: Removed.
  15736. * src/AllowedFastMessage.h: Removed.
  15737. * src/HaveNoneMessage.h: Removed.
  15738. * src/SimplePeerMessage.h: Removed.
  15739. * src/HaveAllMessage.h: Removed.
  15740. * src/BitfieldMessage.h: Removed.
  15741. * src/PeerMessageFactory.h: Removed.
  15742. * src/NotInterestedMessage.h: Removed.
  15743. * src/ChokeMessage.h: Removed.
  15744. * src/PeerMessage.h: Removed.
  15745. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15746. To know root cause of exception:
  15747. * src/Exception.h
  15748. (cause): New variable.
  15749. (Exception): Added a parameter.
  15750. (getMsg): Return const reference to msg.
  15751. (getCause): New function.
  15752. * src/DlRetryEx.h
  15753. (DlRetryEx): Added a parameter 'cause'.
  15754. Added an overloaded constructor.
  15755. (DlAbortEx): Added a parameter 'cause'.
  15756. Added an overloaded constructor.
  15757. * src/SimpleLogger.cc
  15758. (writeLog): Log nested exception messages recursively.
  15759. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15760. * src/DefaultBtProgressInfoFile.cc
  15761. (load): Fixed memory leak when the infohash doesn't match.
  15762. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15763. * src/DefaultPeerStorage.cc
  15764. (calculateStat): Simplified the code by combining 2 loops into 1.
  15765. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15766. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  15767. for BitTorrent download:
  15768. * src/PeerAbstractCommand.cc
  15769. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  15770. * src/main.cc:
  15771. (timeoutSpecified): Removed.
  15772. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  15773. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  15774. * src/TorrentRequestInfo.cc
  15775. (timeoutSpecified): Removed.
  15776. (torrentHandler): Removed timeoutSpecified and the adjustment of
  15777. timeout value.
  15778. * src/prefs.h
  15779. (PREF_BT_TIMEOUT): New definition.
  15780. Delete unused variables:
  15781. * src/TorrentRequestInfo.cc
  15782. (requestInfo): Removed.
  15783. Move setSignalHander to Util::setGlobalSignalHandler:
  15784. * src/TorrentRequestInfo.cc:
  15785. setSignalHander -> Util::setGlobalSignalHandler
  15786. * src/main.cc
  15787. (setSignalHander): Removed.
  15788. (main): setSignalHander -> Util::setGlobalSignalHandler
  15789. * src/Util.h
  15790. (setGlobalSignalHandler): New function.
  15791. * src/Util.cc
  15792. (setGlobalSignalHandler): New function.
  15793. * src/UrlRequestInfo.cc:
  15794. setSignalHander -> Util::setGlobalSignalHandler
  15795. Reset peer status in order to exit gracefully:
  15796. * src/PeerAbstractCommand.cc
  15797. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  15798. To fix the bug that causes the number of bytes uploaded is not saved
  15799. to .aria2 file:
  15800. * src/DefaultPeerStorage.h
  15801. (removedPeerSessionDownloadLength): New variable.
  15802. (removedPeerSessionUploadLength): New variable.
  15803. * src/DefaultPeerStorage.cc
  15804. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  15805. removedPeerSessionUploadLength(0).
  15806. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  15807. through all peers, and then add removedPeerSessionDownloadLength(
  15808. removedPeerSessionUploadLength) to it.
  15809. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  15810. (to) the peer to removedPeerSessionDownloadLength
  15811. (removedPeerSessionUploadLength).
  15812. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15813. To add Metalink location option:
  15814. * src/MetalinkRequestInfo.cc
  15815. (execute): Call MetalinkEntry::setLocationPreference()
  15816. * src/main.cc
  15817. (showUsage): Added the help message for --metalink-location option.
  15818. (main): Added --metalink-location option.
  15819. * src/prefs.h
  15820. (PREF_METALINK_LOCATION): New definition.
  15821. * src/MetalinkEntry.cc
  15822. (AddLocationPreference): New function object.
  15823. (setLocationPreference): New function.
  15824. * src/Xml2MetalinkProcessor.cc
  15825. (getResource): Set location attribute to MetalinkResource
  15826. To show URLs to download
  15827. * src/UrlRequestInfo.h
  15828. (printUrls): New function.
  15829. To add multiple <file> Metalink support:
  15830. * src/MetalinkEntry.h
  15831. (MetalinkResources): Removed.
  15832. (setLocationPreference): New function.
  15833. (MetalinkEntryHandle): New type definition.
  15834. (MetalinkEntries): New type definition.
  15835. * src/Xml2MetalinkProcessor.h
  15836. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15837. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15838. (parseFile): Metalinker* -> MetalinkerHandle
  15839. * src/UrlRequestInfo.h
  15840. (execute): RequestInfo* -> RequestInfos
  15841. * src/MetalinkRequestInfo.cc
  15842. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  15843. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  15844. (execute): RequestInfo* -> RequestInfos
  15845. Added multiple <file> support. Print filename when it is queued.
  15846. * src/MetalinkRequestInfo.h
  15847. (execute): RequestInfo* -> RequestInfos
  15848. (getDownloadEngine): Removed.
  15849. * src/RequestInfo.h
  15850. (RequestInfoHandle): New type definition.
  15851. (RequestInfos): New type definition.
  15852. (execute): RequestInfo* -> RequestInfos
  15853. (getDownloadEngine): Removed.
  15854. * src/MetalinkResource.h
  15855. (MetalinkResourceHandle): New type definition.
  15856. (MetalinkResources): New type definition.
  15857. * src/MetalinkEntry.cc
  15858. (~MetalinkEntry): Removed the deletion of the elements of resources,
  15859. because the element is now of type MetalinkResourceHandle.
  15860. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  15861. (Supported): MetalinkResource* -> MetalinkResourceHandle
  15862. (dropUnsupportedResource): Removed the deletion of the elements of
  15863. resources because the element is now of type MetalinkResourceHandle.
  15864. * src/Xml2MetalinkProcessor.cc
  15865. (parseFile): Metalinker* -> MetalinkerHandle
  15866. MetalinkEntry* -> MetalinkEntryHandle
  15867. Removed try-catch block.
  15868. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  15869. MetalinkResource* -> MetalinkResourceHandle
  15870. Removed try-catch block.
  15871. (getResource): MetalinkResource* -> MetalinkResourceHandle
  15872. Free result by using xmlXPathFreeObject()
  15873. * src/Metalinker.cc
  15874. (~Metalinker): Removed the deletion of entries.
  15875. MetalinkEntry* -> MetalinkEntryHandle
  15876. (queryEntry): Add multiple <file> Metalink support.
  15877. * src/Metalinker.h
  15878. (MetalinkEntries): Removed.
  15879. (queryEntry): MetalinkEntry* -> MetalinkEntries
  15880. * src/MetalinkProcessor.h
  15881. (parseFile): Metalinker* -> MetalinkerHandle
  15882. Bug fixes:
  15883. * src/PeerChokeCommand.cc
  15884. (execute): cat01->cat02
  15885. * src/DefaultPieceStorage.cc
  15886. (DefaultPieceStorage): Added diskAdaptor(0)
  15887. * src/TrackerWatcherComand.cc:
  15888. (execute): Use btAnnounce->noMoreAnnounce()
  15889. to determin whether the function returns true or not.
  15890. * src/TrackerUpdateCommand.cc:
  15891. (execute): Use btAnnounce->noMoreAnnounce()
  15892. to determin whether the function returns true or not.
  15893. * src/FtpConnection.cc
  15894. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  15895. This is the fix of the busy loop bug.
  15896. * src/DownloadCommand.cc
  15897. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  15898. cached PeerStat.
  15899. The value of "name" entry in torrent file is now set by
  15900. *DiskAdaptor::setTopDir(...) methods.
  15901. * src/MultiDiskAdaptor.h
  15902. (topDir): New variable.
  15903. (setTopDir): New function.
  15904. (getTopDir): New function.
  15905. * src/MultiDiskAdaptor.cc
  15906. (getFilePath): Concat storDir, "/" and topDir.
  15907. (mkdir): Use getFilePath() to get the directory path for output.
  15908. * src/DefaultPieceStorage.cc
  15909. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  15910. CopyDiskAdaptor.
  15911. * src/CopyDiskAdaptor.h
  15912. (topDir): New variable.
  15913. (setTopDir): New function.
  15914. (getTopDir): New function.
  15915. * src/CopyDiskAdaptor.cc
  15916. (fixFilename): Updated.
  15917. Misc
  15918. * src/UrlRequestInfo.h
  15919. (e): Removed.
  15920. (UrlRequestInfo): Removed e.
  15921. (getDownloadEngine): Removed.
  15922. * src/UrlRequestInfo.cc
  15923. (handler): Rewritten.
  15924. (printUrls): New function.
  15925. (execute): Call printUrls().
  15926. * src/HandshakeMessage.cc
  15927. (check): peerinteraction->getBtContext() -> btContext
  15928. * src/PeerInteraction.h
  15929. (getBtContext): Removed.
  15930. * src/TorrentRequestInfo.h
  15931. (execute): RequestInfo* -> RequestInfos
  15932. (getDownloadEngine): Removed.
  15933. * src/TorrentRequestInfo.cc
  15934. (haltRequested): Removed.
  15935. (btHaltRequested): New variable.
  15936. (torrentHandler): haltRequested -> btHaltRequested
  15937. (execute): RequestInfo* -> RequestInfos
  15938. * src/TorrentConsoleDownloadEngine.cc
  15939. (afterEachIteration): haltRequested -> btHaltRequested.
  15940. * src/ConsoleDownloadEngine.h
  15941. (initStatistics): Added virtual.
  15942. (calculateStatistics): Added virtual.
  15943. (onEndOfRun): Added virtual.
  15944. (afterEachIteration): Added virtual.
  15945. * src/ConsoleDownloadEngine.cc
  15946. (haltRequested): New variable.
  15947. (afterEachIteration): New function.
  15948. * src/main.cc
  15949. (requestInfo): Removed.
  15950. * src/SegmentMan.cc
  15951. (findSlowerSegmentEntry): Refactored.
  15952. * Release 0.9.0
  15953. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15954. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  15955. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  15956. * src/TorrentMan.h: Removed.
  15957. * src/TorrentMan.cc: Removed.
  15958. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  15959. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  15960. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  15961. * src/PeerAbstractCommand.cc: Use btRuntime.
  15962. * src/BtContextAwareCommand.h: New class.
  15963. * src/FileEntry.h: Added accessor methods for following variables.
  15964. (path): Made private.
  15965. (length): Made private.
  15966. (offset): Made private.
  15967. (extracted): Made private.
  15968. (requested): Made private.
  15969. (FileEntries): New definition.
  15970. (FileEntryHandle): New definition.
  15971. * src/FileEntry.cc: New file.
  15972. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  15973. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  15974. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  15975. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  15976. * src/PieceStorage.h: New file.
  15977. * src/PeerInteractionCommand.h: Use btContext.
  15978. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  15979. btRuntime.
  15980. * src/DefaultBtProgressInfoFile.h: New file.
  15981. * src/DefaultBtProgressInfoFile.cc: New file.
  15982. * src/File.cc
  15983. (Util.h): New include.
  15984. (mkdirs): New function.
  15985. * src/MultiDiskAdaptor.h
  15986. (mkdir): New function.
  15987. * src/PeerListProcessor.h
  15988. (Peers): Removed.
  15989. * src/PeerInteraction.h
  15990. (torrentMan): Removed.
  15991. (btContext): New variable.
  15992. (peerStorage): New variable.
  15993. (pieceStorage): New variable.
  15994. (btAnnounce): New variable.
  15995. (getTorrentMan): Removed.
  15996. (getBtContext): New function.
  15997. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  15998. btAnnounce.
  15999. * src/HandshakeMessage.h
  16000. (TorrentMan.h): Removed.
  16001. * src/HandshakeMessage.cc: Use btContext.
  16002. * src/DefaultBtAnnounce.cc: New file.
  16003. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  16004. * src/DefaultPieceStorage.cc: New file.
  16005. * src/DefaultBtContext.h: New file.
  16006. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  16007. Use the accessor methods of FileEntry.
  16008. * src/CookieBox.cc: Updated to use Util::slice().
  16009. * src/PieceMessage.cc: Use btContext, pieceStorage.
  16010. * src/common.h (SharedHandle.h): New include.
  16011. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  16012. pieceStorage.
  16013. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  16014. * src/DiskAdaptor.h
  16015. (topDir): Removed.
  16016. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  16017. (setTopDir): Removed.
  16018. (getTopDir): Removed.
  16019. * src/BtContext.h: New file.
  16020. * src/DefaultPeerStorage.h: New file.
  16021. * src/PieceMessage.h (TorrentMan.h): Removed.
  16022. * src/RequestMessage.h (TorrentMan.h): Removed.
  16023. * src/TorrentDownloadEngine.h
  16024. (uploadLength): New variable.
  16025. (btContext): New variable.
  16026. (btRuntime): New variable.
  16027. (pieceStorage): New variable.
  16028. (peerStorage): New variable.
  16029. (btAnnounce): New variable.
  16030. (btProgressInfoFile): New variable.
  16031. (torrentMan): Removed.
  16032. (setBtContext): New function.
  16033. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  16034. peerStorage, btAnnounce, btProgressInfoFile.
  16035. * src/Piece.h
  16036. (toString): New function.
  16037. (Pieces): New type definition.
  16038. * src/Peer.h
  16039. (active): New variable.
  16040. (Peer): Added active.
  16041. (activate): Set active to true.
  16042. (deactivate): Set active to false.
  16043. (isActive): New function.
  16044. (Peers): New type definition.
  16045. * src/DirectDiskAdaptor.cc
  16046. (getFilePath): Use the accessor methods of FileEntry.
  16047. * src/TorrentConsoleDownloadEngine.h
  16048. (afterEachIteration): New function.
  16049. * src/TorrentConsoleDownloadEngine.cc
  16050. (haltRequested): New variable.
  16051. (sendStatistics): Use pieceStorage, btRuntime.
  16052. (afterEachIteration): New function.
  16053. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  16054. * src/Directry.h
  16055. (Directory): New function.
  16056. (DirectoryHandle): New type definition.
  16057. * src/BtProgressInfoFile.h: New file.
  16058. * src/RequestMessage.cc: Use pieceStorage.
  16059. * src/BtRuntime.h: New file.
  16060. * src/DefaultBtContext.cc: New file.
  16061. * src/BitfieldMan.h
  16062. (getCompletedLength): New function(private).
  16063. (getCompletedLength): New function.
  16064. (getFilteredCompletedLength): New function.
  16065. * src/BitfieldMan.h
  16066. (getCompletedLength): New function(private).
  16067. (getCompletedLength): New function.
  16068. (getFilteredCompletedLength): New function.
  16069. * src/MultiDiskAdaptor.cc
  16070. (mkdir): New function.
  16071. (openFile): Call mkdir().
  16072. (initAndOpenFile): Call mkdir().
  16073. * src/CancelMessage.h
  16074. (TorrentMan.h): Removed.
  16075. * src/RejectMessage.h
  16076. (TorrentMan.h): Removed.
  16077. * src/DownloadEngineFactory.cc
  16078. (DefaultPieceStorage.h): New include.
  16079. (DefaultPeerStorage.h): New include.
  16080. (DefaultBtAnnounce.h): New include.
  16081. (DefaultBtProgressInfoFile.h): New include.
  16082. (newTorrentConsoleEngine): Rewritten.
  16083. * src/ShareRatioSeedCriteria.h
  16084. (torrentMan): Removed.
  16085. (btContext): New variable.
  16086. (peerStorage): New variable.
  16087. (btRuntime): New variable.
  16088. (evaluate): Use btContext, btRuntime, peerStorage.
  16089. * src/AnnounceTier.h: New file.
  16090. * src/BtAnnounce.h: New file.
  16091. * src/BtRegistry.h: New file.
  16092. * src/PeerInitiateConnectionCommand.h: Added btContext.
  16093. * src/PeerConnection.h (TorrentMan.h): Removed.
  16094. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  16095. * src/Util.h
  16096. (slice): Added an argument.
  16097. * src/Util.cc
  16098. (slice): Added an argument to control whether trim is made or not.
  16099. * src/PeerStorage.h: New file.
  16100. * src/BtRegistry.cc: New file.
  16101. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  16102. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  16103. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  16104. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  16105. * src/TorrentRequestInfo.h
  16106. (e): Removed.
  16107. (showFileEntry): Added an argument.
  16108. (getDownloadEngine): Return 0.
  16109. * src/DefaultBtAnnounce.h: New file.
  16110. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  16111. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  16112. * src/PeerMessageFactory.h
  16113. (btContext): New variable.
  16114. (pieceStorage): New variable.
  16115. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  16116. btAnnounce.
  16117. * src/DiskAdaptor.cc
  16118. (DiskAdaptor): Removed topDir.
  16119. (~DiskAdaptor): Removed topDir.
  16120. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  16121. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  16122. * src/File.h (mkdirs): New function.
  16123. * src/DefaultPeerStorage): New file.
  16124. * src/DownloadEngineFactory.h
  16125. (newTorrentConsoleEngine): Use btContext.
  16126. * src/BtContextAwareCommand.cc: New file.
  16127. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  16128. * src/PeerMessage.h
  16129. (btContext): New variable.
  16130. (peerStorage): New variable.
  16131. (pieceStorage): New variable.
  16132. (setBtContext): New function.
  16133. * src/Directry.cc
  16134. (Directory): New function.
  16135. (createDir): Do nothing if name.size() == 0.
  16136. * src/AnnounceList.h
  16137. (AnnounceTier): Removed.
  16138. (AnnounceTiers): Removed.
  16139. * src/DefaultPieceStorage.h: New file.
  16140. * src/Piece.cc (toString): New function.
  16141. To fix typo:
  16142. * src/main.cc (showVersion): Fixed typo.
  16143. To fix compile warning:
  16144. * src/DelegatingPeerListProcessor.cc
  16145. (canHandle): Added "return false".
  16146. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16147. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  16148. make the process of announce request testable.
  16149. * src/TrackerWatcherCommand.h
  16150. (TimeA2.h): Removed.
  16151. (interval): Removed.
  16152. (checkPoint): Removed.
  16153. (createRequestCommand): Added an argument 'url'.
  16154. (TrackerWatherCommand): Removed interval.
  16155. (createCommand): New function.
  16156. * src/DownloadEngineFactory.cc
  16157. (newTorrentConsoleEngine): Updated according to the changes in
  16158. TrackerWatherCommand.
  16159. * src/TorrentMan.cc
  16160. (DelegatingPeerListProcessor.h): New includes.
  16161. (TorrentMan): Added the initialization of announceInterval.
  16162. (isStoppedAnnounceReady): New function.
  16163. (isCompletedAnnounceReady): New function.
  16164. (isDefaultAnnounceReady): New function.
  16165. (isAnnounceReady): New function.
  16166. (getAnnounceUrl): New function.
  16167. (announceStart): New function.
  16168. (announceFailure): New function.
  16169. (announceSuccess): New function.
  16170. (isAllAnnounceFailed): New function.
  16171. (resetAnnounce): New function.
  16172. (processAnnounceResponse): New function.
  16173. (needMorePeerConnection): New function.
  16174. (noMoreAnnounce): New function.
  16175. * src/TrackerUpdateCommand.h
  16176. (getTrackerResponse): int->size_t
  16177. * src/TorrentMan.h
  16178. (isStoppedAnnounceReady): New function.
  16179. (isCompletedAnnounceReady): New function.
  16180. (isDefaultAnnounceReady): New function.
  16181. (announceInterval): New variable.
  16182. (isAnnounceReady): New function.
  16183. (getAnnounceUrl): New function.
  16184. (announceStart): New function.
  16185. (announceFailure): New function.
  16186. (announceSuccess): New function.
  16187. (isAllAnnounceFailed): New function.
  16188. (resetAnnounce): New function.
  16189. (processAnnounceResponse): New function.
  16190. (needMorePeerConnection): New function.
  16191. (noMoreAnnounce): New function.
  16192. * src/TrackerWatcherCommand.cc
  16193. (TrackerWatherCommand): Removed interval and checkPoint.
  16194. (execute): Rewritten.
  16195. (createCommand): New function.
  16196. (createRequestCommand): Rewritten.
  16197. * src/TrackerUpdateCommand.cc
  16198. (MetaFileUtil.h): Removed.
  16199. (DelegatingPeerListProcessor.h): Removed.
  16200. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  16201. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16202. Request -> RequestHandle:
  16203. * src/HttpResponseCommand.h: Request->RequestHandle
  16204. * src/AbstractCommand.cc: Request->RequestHandle
  16205. * src/HttpDownloadCommand.cc: Request->RequestHandle
  16206. * src/HttpRequestCommand.cc: Request->RequestHandle
  16207. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  16208. * src/AbstractCommand.h: Request->RequestHandle
  16209. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  16210. * src/HttpResponseCommand.cc: Request->RequestHandle
  16211. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  16212. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  16213. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  16214. * src/HttpConnection.h: Request->RequestHandle
  16215. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  16216. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  16217. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  16218. * src/DownloadCommand.h: Request->RequestHandle
  16219. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  16220. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  16221. * src/HttpRequestCommand.h: Request->RequestHandle
  16222. * src/FtpNegotiateCommand.h: Request->RequestHandle
  16223. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  16224. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  16225. * src/HttpDownloadCommand.h: Request->RequestHandle
  16226. * src/FtpConnection.cc: Request->RequestHandle
  16227. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  16228. * src/UrlRequestInfo.cc: Request->RequestHandle
  16229. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  16230. * src/HttpConnection.h: Request->RequestHandle
  16231. * src/DownloadCommand.cc: Request->RequestHandle
  16232. * src/FtpConnection.h: Request->RequestHandle
  16233. * src/FtpDowndloadCommand.h: Request->RequestHandle
  16234. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  16235. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  16236. * src/Request.h
  16237. (SharedHandle.h): New include.
  16238. (RequestHandle): New type definition.
  16239. (Requests): Redefined.
  16240. To add MULTITRACKER support:
  16241. * src/TrackerWatcherCommand.h
  16242. (createRequestCommand): New function.
  16243. * src/DownloadEngineFactory.cc
  16244. (newTorrentConsoleEngine): Removed req.
  16245. * src/prefs.h
  16246. (PREF_TRACKER_MAX_TRIES): New definition.
  16247. * src/TorrentMan.cc
  16248. (TorrentMan): Removed req. Added trackerNumTry.
  16249. (~TorrentMan): Removed req.
  16250. (setupInternal1): Added announceList.
  16251. * src/TorrentRequestInfo.cc
  16252. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  16253. announces is now specified by PREF_TRACKER_MAX_TRIES.
  16254. * src/main.cc
  16255. (main): Added PREF_TRACKER_MAX_TRIES.
  16256. * src/TorrentMan.h
  16257. (Request.h): Removed.
  16258. (AnnounceList.h): New include.
  16259. (trackerNumTry): New variable.
  16260. (req): Removed.
  16261. (announceList): New variable.
  16262. * src/TrackerWatcherCommand.cc
  16263. (execute): Rewritten.
  16264. (createRequestCommand): New function.
  16265. * src/TrackerUpdateCommand.cc
  16266. (execute): Updated with the use of AnnounceList.
  16267. * src/AnnounceList.cc: New class.
  16268. * src/AnnounceList.h: New class.
  16269. To fix typo:
  16270. * src/prefs.h
  16271. (PREF_MAX_TRIES): max_try->max_tries
  16272. To not to decode "+" as space in URL decode:
  16273. * src/Util.cc
  16274. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  16275. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16276. To add timeout to async name resolution:
  16277. * src/AbstractCommand.h
  16278. (nameResolveFinished): New function. This is not elegant way. It needs
  16279. to be more refined.
  16280. (nameResolverCheck): New variable.
  16281. * src/AbstractCommand.cc
  16282. (AbstractCommand): Added nameResolverCheck.
  16283. (execute): Added the check whether the name resolution has finished.
  16284. (setNameResolverCheck): Set nameResolverCheck to true.
  16285. (disableNameResolverCheck): Set nameResolverCheck to false.
  16286. (nameResolverFinished): New function.
  16287. * src/FtpInitiateConnectionCommand.h
  16288. (nameResolverFinished): New function.
  16289. * src/FtpInitiateConnectionCommand.cc
  16290. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  16291. * src/HttpInitiateConnectionCommand.h
  16292. (nameResolverFinished): New function.
  16293. * src/HttpInitiateConnectionCommand.cc
  16294. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  16295. * src/prefs.h
  16296. (PREF_DNS_TIMEOUT): New definition.
  16297. * src/main.cc
  16298. (main): Added PREF_DNS_TIMEOUT.
  16299. To add the support for a non-compact response from a tracker:
  16300. * src/PeerListProcessor.h: New class.
  16301. * src/DefaultPeerListProcessor.h: New class.
  16302. * src/DefaultPeerListProcessor.cc: New class.
  16303. * src/CompactPeerListProcessor.h: New class.
  16304. * src/CompactPeerListProcessor.cc: New class.
  16305. * src/DelegatingPeerListProcessor.h: New class.
  16306. * src/DelegatingPeerListProcessor.cc: New class.
  16307. * src/TorrentMan.cc
  16308. (addPeer): New function(overload).
  16309. (addPeer): Delete unused peers only when new peer is added.
  16310. * src/TorrentMan.h
  16311. (PeerListProcessor.h): Included.
  16312. (Peers): Removed.
  16313. (addPeer): New function(overload).
  16314. * src/TrackerUpdateCommand.cc
  16315. (netinet/in.h): Removed.
  16316. (DelegatingPeerListProcessor.h): Included.
  16317. (execute): Updated to use DelegatingPeerListProcessor.
  16318. To fix the memory leak in TorrentMan::peers:
  16319. * src/PeerAbstractCommand.cc
  16320. (onAbort): Added peer->resetStatus().
  16321. * src/Peer.h
  16322. (resetStatus): Made public.
  16323. To improve the precision of the speed calculation:
  16324. * src/SpeedCalc.h
  16325. (nextInterval): New variable.
  16326. * src/SpeedCalc.cc
  16327. (reset): Added nextInterval.
  16328. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  16329. (changeSw): Set nextInterval to 15 seconds relative to the current
  16330. instant time.
  16331. * src/main.cc
  16332. (showVersion): Updated.
  16333. (showUsage): Updated.
  16334. * Release 0.8.1
  16335. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16336. * src/main.cc
  16337. (showUsage): Commented out --min-segment-size option.
  16338. (main): Commented out --min-segment-size option.
  16339. * Release 0.8.0
  16340. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16341. * src/*.{h,cc}:
  16342. Added an exception to the license which allows linking with OpenSSL.
  16343. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16344. * src/AbstractCommand.cc
  16345. (execute): Check whether the download has finished before checking
  16346. socket status.
  16347. Return true if peerStat->getStatus() == REQUEST_IDLE.
  16348. Do not exit even if no segment is available.
  16349. * src/prefs.h
  16350. (PREF_STARTUP_IDLE_TIME): New definition.
  16351. * src/PeerInteractionCommand.cc
  16352. (executeInternal): Removed max speed limit. Because it performs bad.
  16353. (receiveMessages): Added max speed limit. This was better than above,
  16354. but still a little bit to be desired. Sometimes the download speed
  16355. became much faster than I specified.
  16356. * src/SpeedCalc.h
  16357. (start): New variable.
  16358. (accumulatedLength): New variable.
  16359. (getAvgSpeed): New function.
  16360. * src/SpeedCalc.cc
  16361. (reset): Added start, accumulatedLength.
  16362. (update): Added calculation of an average speed.
  16363. (getAvgSpeed): New function.
  16364. * src/DownloadCommand.h
  16365. (sw): Removed.
  16366. * src/main.cc
  16367. (main): Added PREF_STARTUP_IDLE_TIME.
  16368. * src/PeerStat.h
  16369. (STATUS): Added REQUEST_IDLE.
  16370. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  16371. (getAvgDownloadSpeed): New function
  16372. (requestIdle): New function.
  16373. * src/SegmentMan.h
  16374. (SegmentEntryHandle): New type definition.
  16375. (SegmentEntries): Now holds SegmentEntryHandle.
  16376. (findSlowerSegmentEntry): New funtion.
  16377. * src/SegmentMan.cc
  16378. (save): Updated according to the changes in SegmentEntries.
  16379. (read): Updated according to the changes in SegmentEntries.
  16380. (FindSegmentEntryByIndex): Updated according to the changes in
  16381. SegmentEntries.
  16382. (FindSegmentEntryByCuid): Updated according to the changes in
  16383. SegmentEntries.
  16384. (checkoutSegment): Updated according to the changes in SegmentEntries.
  16385. (onNullBitfield): Updated according to the changes in SegmentEntries.
  16386. Renamed uitr as itr.
  16387. (findSlowerSegmentEntry): New function.
  16388. (getSegment): Updated according to the changes in SegmentEntries.
  16389. Added the feature that cancels the segment with slow server and fast
  16390. one takes it over.
  16391. (cancelSegment): Updated according to the changes in SegmentEntries.
  16392. (getDownloadLength): Updated according to the changes in
  16393. SegmentEntries.
  16394. (init): Assigned 0 to bitfield after deleting it.
  16395. * src/DownloadCommand.cc
  16396. (STARTUP_IDLE_TIME): Removed.
  16397. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  16398. * src/PeerChokeCommand.cc
  16399. (optUnchokingPeer): Updated according to the changes in Peer.
  16400. (ResetDelta): Removed.
  16401. (UploadFaster): Updated according to the changes in Peer.
  16402. (DownloadFaster): Updated according to the changes in Peer.
  16403. (execute): I clarify the meaning of "upload" and "download" here.
  16404. "upload" means the transfer from localhost to remote host.
  16405. "download" means the transfer from remote host to localhost.
  16406. Based on this rule, I swapped orderByUploadRate and
  16407. orderByDownloadRate.
  16408. * src/PeerInteractionCommand.cc
  16409. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  16410. (executeInternal): Removed the argument of
  16411. peerInteraction->sendMessages().
  16412. (receiveMessages): Rewritten download speed limit.
  16413. (sendKeepAlive): Removed peerInteraction->sendMessages().
  16414. * src/HttpResponseCommand.cc
  16415. (handleDefaultEncoding): If file size is unknown in torrent request,
  16416. do not call segmentMan->initBitfield() here.
  16417. Disabled persistent connection feature in torrent request.
  16418. * src/UrlRequestInfo.h
  16419. (UrlRequestInfo): Removed const qualifier from option.
  16420. * src/TorrentMan.h
  16421. (TransferStat): New class.
  16422. (deltaDownloadLength): Removed.
  16423. (deltaUploadLength): Removed.
  16424. (addDeltaDownloadLength): Removed.
  16425. (getDeltaDownloadLength): Removed.
  16426. (resetDeltaDownloadLength): Removed.
  16427. (addDeltaUploadLength): Removed.
  16428. (getDeltaUploadLength): Removed.
  16429. (resetDeltaUploadLength): Removed.
  16430. (addActivePeer): Added peer->activate().
  16431. (deleteActivePeer): Added peer->deactivate().
  16432. (calculateStat): New function.
  16433. * src/TorrentMan.cc
  16434. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  16435. (calculateStat): New function.
  16436. * src/PeerInteraction.h
  16437. (uploadLimit): Removed.
  16438. (option): New variable.
  16439. (setUploadLimit): Removed.
  16440. (getUploadSpeed): Removed.
  16441. (sendMessages): Removed the argument "currentUploadSpeed".
  16442. * src/PeerInteraction.cc
  16443. (prefs.h): Included.
  16444. (PeerInteraction): Removed uploadLimit. Added option.
  16445. (sendMessages): Rewritten upload speed limit.
  16446. (sendHandshake): Removed the argument from sendMessages().
  16447. (sendBitfield): Removed the argument from sendMessages().
  16448. * src/PeerAbstractCommand.cc
  16449. (execute): Commented out the portion of upload limit.
  16450. (onAbort): Removed peer->resetStatus().
  16451. * src/TorrentRequestInfo.cc
  16452. (timeoutSpecified): Declared extern.
  16453. (execute): Set timeout to 180 if timeout is not specified by.
  16454. command-line.
  16455. * src/PieceMessage.cc
  16456. (receivedAction): Added peer->updateDownloadLength().
  16457. Removed peer->addPeerUpload().
  16458. Removed torrentMan->addDeltaDownloadLength().
  16459. (send): Added peer->updateUploadLength().
  16460. Removed peer->addPeerDownload().
  16461. Removed torrentMan->addDeltaUploadLength().
  16462. * src/main.cc
  16463. (timeoutSpecified): New variable.
  16464. (main): Set timeoutSpecified to false.
  16465. If the command-line option "--upload-limit" is specified, then
  16466. timeoutSpecified is set to true. This option will remain in the next
  16467. release, but be deprecated in the future release.
  16468. * src/TorrentRequestInfo.h
  16469. (TorrentRequestInfo): Removed const qualifier from op.
  16470. * src/PeerStat.h
  16471. (uploadSpeed): New variable.
  16472. (PeerStat): Added default value to cuid.
  16473. (calculateUploadSpeed): New function.
  16474. (updateUploadLength): New function.
  16475. (getMaxUploadSpeed): New function.
  16476. (getAvgUploadSpeed): New function.
  16477. (reset): Added uploadSpeed. Set status to IDLE.
  16478. * src/TorrentDownloadEngine.h
  16479. (cp): Declared as Time.
  16480. (sessionDownloadLengthArray): Removed.
  16481. (sessionUploadLengthArray): Removed.
  16482. (currentCp): Removed.
  16483. (lastCalcStat): New variable
  16484. (lastElapsed): Removed.
  16485. (sessionDownloadLength): Removed.
  16486. (calculateStat): New function.
  16487. * src/TorrentDownloadEngine.cc
  16488. (initStatistics): Removed lastElapsed, cp[],
  16489. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  16490. currentCp, sessionDownloadLength.
  16491. Added cp.reset() and lastCalcStat.reset().
  16492. (calculateSpeed): Changed the name of the argument.
  16493. (calculateStatistics): Rewritten.
  16494. (calculateStat): New function.
  16495. * src/Peer.h
  16496. (PeerStat.h): Included.
  16497. (peerUpload): Removed.
  16498. (peerDownload): Removed.
  16499. (peerStat): New variable.
  16500. (sessionUploadLength): New variable.
  16501. (sessionDownloadLength): New variable.
  16502. (deltaUpload): Removed.
  16503. (deltaDownload): Removed.
  16504. (resetStatus): Made private.
  16505. (Peer): Added sessionUploadLength, sessionDownloadLength.
  16506. Removed peerUpload, peerDownload.
  16507. (updateUploadLength): New function.
  16508. (addDeltaUpload): Removed.
  16509. (updateDownloadLength): New function.
  16510. (resetDeltaUpload): Removed.
  16511. (getDeltaUpload): Removed.
  16512. (addDeltaDownload): Removed.
  16513. (calculateUploadSpeed): New function.
  16514. (resetDeltaDownload): Removed.
  16515. (getDeltaDownload): Removed.
  16516. (calculateDownloadSpeed): New function.
  16517. (getSessionUploadLength): New function.
  16518. (getSessionDownloadLength): New function.
  16519. (activate): New function.
  16520. (deactivate): New function.
  16521. (addPeerUpload): Removed.
  16522. (setPeerUpload): Removed.
  16523. (getPeerUpload): Removed.
  16524. (addPeerDownload): Removed.
  16525. (setPeerDownload): Removed.
  16526. (getPeerDownload): Removed.
  16527. * src/Peer.cc
  16528. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  16529. * src/MetalinkRequestInfo.h
  16530. (MetalinkRequestInfo): Removed const qualifier from op.
  16531. * src/RequestInfo.h
  16532. (op): Removed const qualifier.
  16533. (RequestInfo): Removed const qualifier from op.
  16534. * src/prefs.h
  16535. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  16536. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  16537. * src/PeerInteractionCommand.cc
  16538. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  16539. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  16540. * src/PeerInteraction.cc
  16541. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  16542. * src/main.cc
  16543. (showUsage): Updated the description of "--lowest-speed-limit" option.
  16544. Added the description of "--max-download-limit" option.
  16545. Removed the description of "--upload-limit" option.
  16546. Added the description of "--max-upload-limit" option.
  16547. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  16548. Added "--max-download-limit" option and "--max-upload-limit" option.
  16549. Added the warning message if "--upload-limit" option is used.
  16550. * src/DownloadCommand.cc
  16551. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  16552. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16553. To rewrite segment download mechanism for HTTP/FTP download.
  16554. Use BitfieldMan to manage segment download.
  16555. * src/HttpResponseCommand.h
  16556. (executeInternal): Pass the reference of segment.
  16557. * src/AbstractCommand.cc
  16558. (prepareForRetry): Call segmentMan->cancelSegment here.
  16559. (onAbort): Call segmentMan->cancelSegment here.
  16560. * src/HttpDownloadCommand.cc
  16561. (prepareForNextSegment): New function.
  16562. * src/DownloadEngineFactory.cc
  16563. (newConsoleEngine): Removed splitter.
  16564. (newTorrentConsoleEngine): Removed splitter.
  16565. * src/Request.h
  16566. (segment): Renamed from seg.
  16567. * src/FtpInitiateConnectionCommand.h
  16568. (executeInternal): Pass the reference of segment.
  16569. * src/AbstractCommand.h
  16570. (executeInternal): Pass the reference of segment.
  16571. * src/pref.h
  16572. (PREF_SEGMENT_SIZE): New definition.
  16573. * src/HttpProxyRequestCommand.h
  16574. (executeInternal): Pass the reference of segment.
  16575. * src/HttpResponseCommand.cc
  16576. (checkResponse): Allowed status 206 when a request range starts 0.
  16577. (handleDefaultEncoding): Rewritten the code related to Segment.
  16578. (handleOtherEncoding): Rewritten the code related to Segment.
  16579. * src/SegmentMan.h
  16580. (SegmentEntry): New class.
  16581. (SegmentEntries): New type definition.
  16582. (bitfield): New variable.
  16583. (usedSegmentEntries): New variable.
  16584. (onNullBitfield): New function.
  16585. (checkoutSegment): New function.
  16586. (segments): Removed.
  16587. (splitter): Removed.
  16588. (unregisterId): Removed.
  16589. (getSegment): New function(overload)
  16590. (getDownloadedSize): Removed.
  16591. (cancelSegment): New function.
  16592. (completeSegment): New function.
  16593. (initBitfield): New function.
  16594. (hasSegment): New function.
  16595. (getDownloadLength): New function.
  16596. * src/BitfieldMan.h
  16597. (getStartIndex): New function.
  16598. (getEndIndex): New function.
  16599. (getMissingUnusedIndex): New function(overload).
  16600. (getSparseMissingUnusedIndex): New function.
  16601. * src/BitfieldMan.cc
  16602. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  16603. (getMissingUnusedIndex): New function(overload).
  16604. (Range): New class.
  16605. (getStartIndex): New function.
  16606. (getEndIndex): New function.
  16607. (getSparseMissingUnusedIndex): New function.
  16608. (isBitSetInternal): Return false if the given index is less than 0.
  16609. * src/HttpInitiateConnectionCommand.h
  16610. (executeInternal): Pass the reference of segment.
  16611. * src/FtpNegotiateCommand.h
  16612. (executeInternal): Pass the reference of segment.
  16613. * src/FtpNegotiateCommand.cc
  16614. (recvSize): Initialize bitfield here.
  16615. * src/FtpTunnelResponseCommand.h
  16616. (executeInternal): Pass the reference of segment.
  16617. * src/HttpConnection.cc
  16618. (createRequest): Rewritten range header processing.
  16619. * src/DownloadCommand.h
  16620. (executeInternal): Pass the reference of segment.
  16621. (prepareForRetry): Removed.
  16622. (prepareForNextSegment): Added an argument segment. Made it a virtual
  16623. function.
  16624. * src/main.cc
  16625. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  16626. * src/SegmentMan.cc
  16627. (SegmentMan): Added bitfield. Removed splitter.
  16628. (~SegmentMan): Added bitfield. Removed splitter.
  16629. (unregisterId): Removed.
  16630. (getSegment): Rewritten.
  16631. (updateSegment): Rewritten.
  16632. (save): Rewritten.
  16633. (read): Rewritten.
  16634. (finished): Rewritten.
  16635. (getDownloadedSize): Removed.
  16636. (initBitfield): New function.
  16637. (FindSegmentEntryByIndex): New function object.
  16638. (FindSegmentEntryByCuid): New function object.
  16639. (checkoutSegment): New function.
  16640. (onNullBitfield): New function.
  16641. (getSegment): New function(overload).
  16642. (CancelSegment): New function object.
  16643. (cancelSegment): New function.
  16644. (completeSegment): New function.
  16645. (hasSegment): New function.
  16646. (getDownloadLength): New function.
  16647. * src/FtpInitiateConnectionCommand.cc
  16648. (executeInternal): Load .aria2 file after hostname resolution finishes.
  16649. * src/Segment.h: Rewritten.
  16650. * src/Segment.cc (operator<<): New function.
  16651. * src/HttpDownloadCommand.h
  16652. (prepareForNextSegment): New function.
  16653. * src/Request.cc
  16654. (resetUrl): Made segment null.
  16655. * src/DownloadEngine.cc
  16656. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  16657. * src/HttpProxyRequestCommand.h
  16658. (executeInternal): Pass the reference of segment.
  16659. * src/DownloadCommand.cc
  16660. (executeInternal): Rewritten the code related to Segment.
  16661. (prepareForRetry): Removed.
  16662. (prepareForNextSegment): Rewritten.
  16663. * src/FtpTunnelResponseCommand.h
  16664. (executeInternal): Pass the reference of segment.
  16665. To add HTTP 1.1 persistent connection support(experimental)
  16666. * src/HttpRequestCommand.cc
  16667. (executeInternal): Disable keep alive if it is disabled by
  16668. configuration.
  16669. * src/Request.h
  16670. (keepAlive): New variable.
  16671. (isKeepAlive): New function.
  16672. (setKeepAlive): New function.
  16673. * src/pref.h
  16674. (PREF_HTTP_KEEP_ALIVE): New definition.
  16675. * src/HttpResponseCommand.cc
  16676. (executeInternal): Check the remote server supports keep alive.
  16677. * src/HttpConnection.cc
  16678. (createRequest): Send "Connection: close" only if keep alive is
  16679. disabled.
  16680. * src/main.cc
  16681. (main):
  16682. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  16683. To add max download speed limit:
  16684. * src/pref.h
  16685. (PREF_MAX_SPEED_LIMIT): New definition.
  16686. * src/PeerInteractionCommand.cc
  16687. (executeInternal): Added max download speed limit. Not tested yet.
  16688. * src/SegmentMan.h
  16689. (PeerStats): New type definition.
  16690. (peerStats): New variable.
  16691. (registerPeerStat): New function.
  16692. (FindPeerStat): New function object.
  16693. (getPeerStat): New function.
  16694. (calculateDownloadSpeed): New function.
  16695. * src/SpeedCalc.h: New class.
  16696. * src/SpeedCalc.cc: New class.
  16697. * src/main.cc
  16698. (main):
  16699. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  16700. download speed is not restricted).
  16701. * src/PeerStat.h: New class.
  16702. * src/SegmentMan.cc
  16703. (registerPeerStat): New function.
  16704. (calculateDownloadSpeed): New function.
  16705. * src/DownloadCommand.cc
  16706. (STARTUP_IDLE_TIME): New definition.
  16707. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  16708. downloadStart.
  16709. (~DownloadCommand): Call peerStat->downloadStop.
  16710. (executeInternal): Added download speed limitter. Rewritten lowest
  16711. speed limitter.
  16712. * src/HttpConnection.cc
  16713. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  16714. * src/AbstractCommand.cc
  16715. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  16716. Added hostname to the error message.
  16717. * src/ConsoleDownloadEngine.cc
  16718. (calculateStatistics): Initialize psize with dlSize.
  16719. * src/PieceMessage.cc
  16720. (receivedAction): Do not call peerInteraction->abortPiece here.
  16721. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  16722. * src/BitfieldMan.h
  16723. (clearAllUseBit): New function.
  16724. (setAllUseBit): New function.
  16725. * src/BitfieldMan.cc
  16726. (clearAllBit): Do not clear useBitfield here.
  16727. (clearAllUseBit): New function.
  16728. (setAllUseBit): New function.
  16729. * src/Piece.cc
  16730. (clearAllBlock): Call bitfield->clearAllUseBit().
  16731. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16732. To make filename URL-decoded:
  16733. * src/HttpResponseCommand.h: Updated doc.
  16734. * src/HttpResponseCommand.cc
  16735. (determinFilename): Made filename URL-decoded.
  16736. * src/FtpInitiateConnectionCommand.cc
  16737. (executeInternal): Made filename URL-decoded.
  16738. * src/Util.h (urldecode): New function.
  16739. * src/Util.cc (urldecode): New function.
  16740. To fix a bug that caused assertion failure in ares_strerror:
  16741. * src/NameResolver.cc (callback): Fixed the bug.
  16742. * Release 0.7.3
  16743. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16744. To add --seed-time and --seed-ratio command-line option:
  16745. * src/Option.h (getAsDouble): New function.
  16746. * src/Option.cc (getAsDouble): New function.
  16747. * src/SeedCheckCommand.h: New class.
  16748. * src/SeedCheckCommand.cc: New class.
  16749. * src/DownloadEngineFactory.cc
  16750. (SeedCheckCommand.h): Included.
  16751. (UnionSeedCriteria.h): Included.
  16752. (TimeSeedCriteria.h): Included.
  16753. (ShareRatioSeedCriteria.h): Included.
  16754. (newTorrentConsoleEngine): Added the processing of seed option.
  16755. * src/SeedCriteria.h: New class.
  16756. * src/ShareRatioSeedCriteria.h: New class.
  16757. * src/TimeSeedCriteria.h: New class.
  16758. * src/UnionSeedCriteria.h: New class.
  16759. * src/prefs.h
  16760. (PREF_SEED_TIME): New definition.
  16761. (PREF_SEED_RATIO): New definition.
  16762. * src/main.cc
  16763. (showUsage): Added --seed-time and --seed-ratio option.
  16764. (main): Added --seed-time and --seed-ratio option.
  16765. Made default log file name "/dev/null".
  16766. * src/SharedHandle.h
  16767. (SharedHandle): Copy constructor. Made it assignable from the
  16768. SharedHandle of the subclasses.
  16769. (operator=): Made it assignable from the SharedHandle of the
  16770. subclasses.
  16771. (getRefCount): New function.
  16772. To add notice log level and the switch to write log to stdout. This
  16773. switch is configurable per log level.
  16774. * src/Logger.h
  16775. (notice): New function.
  16776. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  16777. constant.
  16778. * src/LogFactory.cc
  16779. (getInstance): The use of NullLogger was removed. A log message with
  16780. notice log level was made written to stdout along with log file.
  16781. * src/NullLogger.h
  16782. (notice): New function.
  16783. * src/SimpleLogger.h
  16784. (writeHeader): Added the 'file' argument.
  16785. (writeLog): Added the 'file' argument.
  16786. (writeFile): New function.
  16787. (stdoutField): New variable.
  16788. (SimpleLogger): Removed the default constructor.
  16789. (SimpleLogger): Made the default value of logfile 0.
  16790. (debug): Added 'virtual' keyword.
  16791. (info): Added 'virtual' keyword.
  16792. (warn): Added 'virtual' keyword.
  16793. (error): Added 'virtual' keyword.
  16794. (notice): New function.
  16795. (setStdout): New function.
  16796. * src/SimpleLogger.cc
  16797. (WRITE_LOG): Replaced writeLog with writeFile.
  16798. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  16799. (SimpleLogger): Removed the default constructor.
  16800. (setStdout): New function.
  16801. (writeLog): Added the handling of NOTICE log level.
  16802. (writeFile): New function.
  16803. (notice): New function.
  16804. * src/TorrentMan.h: Updated doc.
  16805. * src/BitfieldMan.h: Updated doc.
  16806. * src/TrackerWatcherCommand.cc
  16807. (execute): Return true if error occurred in the request to the tracker
  16808. and halt is requested.
  16809. * src/TrackerUpdateCommand.cc
  16810. (execute): Return true if error occurred in the request to the tracker
  16811. and halt is requested.
  16812. To call onDownloadComplete from TorrentMan::completePiece(), not from
  16813. DownloadEngine:
  16814. * src/TorrentConsoleDownloadEngine.h
  16815. (onSelectiveDownloadingCompletes): Removed.
  16816. * src/TorrentConsoleDownloadEngine.cc
  16817. (onSelectiveDownloadingCompletes): Removed.
  16818. * src/TorrentDownloadEngine.h
  16819. (onEndOfRun): Added 'virtual' keyword.
  16820. (afterEachIteration): Removed.
  16821. (onSelectiveDownloadingCompletes): Removed.
  16822. * src/TorrentDownloadEngine.cc
  16823. (onEndOfRun): Removed filenameFixed.
  16824. (afterEachIteration): Removed.
  16825. * src/TorrentMan.cc
  16826. (completePiece): Call onDownloadComplete here.
  16827. (onDownloadComplete): Added 2 log messages.
  16828. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16829. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  16830. * src/NameResolver.h: Added the prototype declaration of callback().
  16831. To support c-ares library:
  16832. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16833. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16834. * src/FtpInitiateConnectionCommand.h:
  16835. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16836. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16837. * src/HttpInitiateConnectionCommand.h:
  16838. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16839. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  16840. Added thes upport of c-ares's ares_strerror(the idea came from patch
  16841. #1542285 by tizianomueller)
  16842. * src/HttpInitiateConnectionCommand.cc:
  16843. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16844. * src/FtpInitiateConnectionCommand.cc:
  16845. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16846. * src/DownloadEngine.h:
  16847. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16848. * src/DownloadEngine.cc:
  16849. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  16850. To fix the bug that causes compilation failure with metalink-support
  16851. disabled(bug#1543587):
  16852. * src/main.cc: Fixed with the patch by tizianomueller.
  16853. * Release 0.7.2
  16854. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16855. * src/main.cc
  16856. (main): Added a message to inform users that aria2 is starting to
  16857. verify checksum.
  16858. * src/RequestInfo.cc
  16859. (printDownloadAbortMessage): Added a message to inform users that
  16860. transfer can be resumed.
  16861. * src/FeatureConfig.cc
  16862. (FEATURE_ASYNC_DNS): New definition.
  16863. (FeatureConfig): Added aysnc DNS entry.
  16864. To replace CommandUuid with Command* in SocketEntry and
  16865. NameResolverEntry:
  16866. * src/DownloadEngine.h
  16867. (CommandUuids): Removed.
  16868. (SocketEntry::commandUuid): Removed.
  16869. (SocketEntry::command): New variable.
  16870. (SocketEntry::SocketEntry): Updated.
  16871. (SocketEntry::operator==): Updated.
  16872. (NameResolverEntry::commandUuid): Removed.
  16873. (NameResolverEntry::command): New variable.
  16874. (NameResolverEntry::NameResolverEntry): Updated.
  16875. (NameResolverEntry::operator==): Updated.
  16876. (waitData): Changed the argument type.
  16877. (addSocketForReadCheck): Changed the argument type.
  16878. (deleteSocketForReadCheck): Changed the argument type.
  16879. (addSocketForWriteCheck): Changed the argument type.
  16880. (deleteSocketForWriteCheck): Changed the argument type.
  16881. (addNameResolverCheck): Changed the argument type.
  16882. (deleteNameResolverCheck): Changed the argument type.
  16883. * src/DownloadEngine.cc
  16884. (FindCommand): Removed.
  16885. (run): Removed activeUuid. Added activeCommands instead.
  16886. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  16887. (AccumulateActiveCommand): New function object.
  16888. (waitData): Use AccumulateActiveCommand.
  16889. (addSocketForReadCheck): Use Command instead of CommandUuid.
  16890. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  16891. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  16892. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  16893. (addNameResolverCheck): Use Command instead of CommandUuid.
  16894. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  16895. * src/AbstractCommand.cc
  16896. (disableReadCheckSocket): Updated according to the changes in
  16897. DownloadEngine.
  16898. (setReadCheckSocket): Updated according to the changes in
  16899. DownloadEngine.
  16900. (disableWriteCheckSocket): Updated according to the changes in
  16901. DownloadEngine.
  16902. (setWriteCheckSocket): Updated according to the changes in
  16903. DownloadEngine.
  16904. (setNameResolverCheck): Updated according to the changes in
  16905. DownloadEngine.
  16906. (disableNameResolverCheck): Updated according to the changes in
  16907. DownloadEngine.
  16908. * src/AbstractCommand.cc
  16909. (disableReadCheckSocket): Updated according to the changes in
  16910. DownloadEngine.
  16911. (setReadCheckSocket): Updated according to the changes in
  16912. DownloadEngine.
  16913. (disableWriteCheckSocket): Updated according to the changes in
  16914. DownloadEngine.
  16915. (setWriteCheckSocket): Updated according to the changes in
  16916. DownloadEngine.
  16917. * release 0.7.1
  16918. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16919. To handle the case where some BitTorrent tracker requires all letters
  16920. except for [A-Za-z0-9] is URL encoded.
  16921. * src/Util.h
  16922. (torrentUrlencode): New function.
  16923. * src/Util.cc
  16924. (ctype.h): Included.
  16925. (torrentUrlencode): New function.
  16926. * src/TrackerWatcherCommand.cc
  16927. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  16928. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16929. To add asynchronous DNS support(libares):
  16930. * src/AbstractCommand.h
  16931. (setNameResolverCheck): New function.
  16932. (disableNameResolverCheck): New function
  16933. (resolveHostname): New function.
  16934. * src/AbstractCommand.cc
  16935. (setNameResolverCheck): New function.
  16936. (disableNameResolverCheck): New function
  16937. (resolveHostname): New function.
  16938. * src/FtpInitiateConnectionCommand.h
  16939. (nameResolver): New function.
  16940. * src/FtpInitiateConnectionCommand.cc
  16941. (Util.h): Included.
  16942. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  16943. disableWriteCheckSocket.
  16944. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  16945. (executeInternal): Added async DNS support.
  16946. * src/HttpInitiateConnectionCommand.h
  16947. (nameResolver): New function.
  16948. * src/HttpInitiateConnectionCommand.cc
  16949. (DlRetryEx.h): Included.
  16950. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  16951. disableWriteCheckSocket.
  16952. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  16953. (executeInternal): Added async DNS support.
  16954. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  16955. by extern "C" declaration.
  16956. * src/NameResolver.cc: New class.
  16957. * src/Util.h:
  16958. (isNumberAndDotsNotation): New function
  16959. * src/Util.cc
  16960. (isNumberAndDotsNotation): New function.
  16961. * src/DownloadEngine.h
  16962. (NameResolver.h): Included.
  16963. (NameResolverEntry): New class.
  16964. (NameResolverEntries): New type definition.
  16965. (addNameResolverCheck): New function.
  16966. (deleteNameResolverCheck): New function.
  16967. * src/DownloadEngine.cc
  16968. (run): Initialize cp with 0.
  16969. (SetDescriptor::operator()): Added for NameResolverEntry.
  16970. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  16971. (waitData): Check nameResolver entries.
  16972. (updateFdSet): Update fds in nameResolver entries.
  16973. (addNameResolverCheck): New function.
  16974. (deleteNameResolverCheck): new function.
  16975. * src/PeerInteractionCommand.cc
  16976. (executeInternal): Fixed wrong socket handling.
  16977. * src/main.cc
  16978. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  16979. * src/Util.cc
  16980. (fileChecksum): Removed the call to ctx.digestReset().
  16981. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16982. * po/ru.po: Azamat sent me Russian translation.
  16983. * src/FtpNegotiateCommand.cc
  16984. (recvGreeting): Call disableWriteCheckSocket just after
  16985. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  16986. (recvRetr): Recognized status code 125 as a acceptable response code.
  16987. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  16988. case-insesitive filesystem(BUG#1531057).
  16989. * src/Time.h: Renamed as TimeA2.h.
  16990. * src/Time.cc: Renamed as TimeA2.cc.
  16991. * src/TimeA2.h: New class.
  16992. * src/TimeA2.cc: New class.
  16993. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  16994. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  16995. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  16996. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  16997. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  16998. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16999. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  17000. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  17001. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  17002. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  17003. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  17004. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  17005. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  17006. * release 0.7.0
  17007. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17008. * src/PeerChokeCommand.h
  17009. (PeerChokeCommand): Rearranged the arguments.
  17010. * src/PeerChokeCommand.cc
  17011. (PeerChokeCommand): Rearranged the arguments.
  17012. * src/MetalinkEntry.h
  17013. (Checksum.h): Included.
  17014. (md5): Removed.
  17015. (sha1): Removed.
  17016. (checksum): New variable.
  17017. (operator=): Updated.
  17018. (check): Removed.
  17019. * src/prefs.h
  17020. (PREF_LOWEST_SPEED_LIMIT): New definition.
  17021. (PREF_FOLLOW_TORRENT): New definition.
  17022. (PREF_SELECT_FILE): New definition.
  17023. (PREF_FOLLOW_METALINK): New definition.
  17024. * src/MetalinkResource.h
  17025. (TYPE_HTTPS): Added to enum TYPE.
  17026. * src/TorrentMan.cc
  17027. (~TorrentMan): Rewritten.
  17028. * src/MultiDiskWriter.cc
  17029. (MultiDiskAdaptor): Updated according to the changes in
  17030. MessageDigestContext.
  17031. (~MultiDiskAdaptor): Updated according to the changes in
  17032. MessageDigestContext.
  17033. (hashUpdate): Updated according to the changes in MessageDigestContext.
  17034. (sha1Sum): Updated according to the changes in MessageDigestContext.
  17035. * src/Util.h
  17036. (fileChecksum): Updated according to the changes in
  17037. MessageDigestContext.
  17038. * src/Util.cc
  17039. (sha1Sum): Updated according to the changes in MessageDigestContext.
  17040. (fileChecksum): Updated according to the changes in
  17041. MessageDigestContext.
  17042. * src/messageDigest.h: Rewritten.
  17043. * src/MetalinkEntry.cc
  17044. (check): Removed.
  17045. (Supported): Updated.
  17046. (dropUnsupportedResource): Fixed a memory leak.
  17047. * src/ShaVisitor.cc
  17048. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  17049. (~ShaVisitor): Updated according to the changes in
  17050. MessageDigestContext.
  17051. (visit): Updated according to the changes in MessageDigestContext.
  17052. * src/main.cc
  17053. (main): Rewritten the portion of download loop. --lowest-speed-limit
  17054. command-line option added.
  17055. * src/DownloadEngine.h
  17056. (SocketEntry): New class.
  17057. (SocketEntries): New definition.
  17058. (PairFind): Removed.
  17059. (SockCmdMap): Removed.
  17060. * src/DownloadEngine.cc
  17061. (DownloadEngine): Rewritten.
  17062. (~DownloadEngine): Rewritten.
  17063. (run): Renamed activeCommandUuids as activeUuids.
  17064. (SetDescriptor): Rewritten.
  17065. (AccumulateActiveCommandUuid): Removed.
  17066. (AccumulateActiveUuid): New function object.
  17067. (waitData): Rewritten.
  17068. (updateFdSet): Rewritten.
  17069. (addSocket): Rewritten.
  17070. (deleteSocket): Rewritten.
  17071. (addSocketForReadCheck): Rewritten.
  17072. (deleteSocketForReadCheck): Rewritten.
  17073. (addSocketForWriteCheck): Rewritten.
  17074. (deleteSocketForWriteCheck): Rewritten.
  17075. * src/Xml2MetalinkProcessor.cc
  17076. (getEntry): Rewritten the portion of MetalinkEntry creation.
  17077. * src/DownloadCommand.cc
  17078. (executeInternal): Added the check routine for lowest speed limit.
  17079. * src/AbstractDiskWriter.cc
  17080. (AbstractDiskWriter): Updated according to the changes in
  17081. MessageDigestContext.
  17082. (~AbstractDiskWriter): Updated according to the changes in
  17083. MessageDigestContext.
  17084. (sha1Sum): Updated according to the changes in MessageDigestContext.
  17085. * src/RequestInfo.h: New class.
  17086. * src/UrlRequestInfo.h: New class.
  17087. * src/UrlRequestInfo.cc: New class.
  17088. * src/TorrentRequestInfo.h: New class.
  17089. * src/TorrentRequestInfo.cc: New class.
  17090. * src/MetalinkRequestInfo.h: New class.
  17091. * src/MetalinkRequestInfo.cc: New class.
  17092. * src/Checksum.h: New class.
  17093. * src/DownloadEngineFactory.h: New class.
  17094. * src/DownloadEngineFactory.cc: New class.
  17095. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17096. * src/Option.h
  17097. (getAsBool): New function.
  17098. * src/Option.cc
  17099. (prefs.h): Included.
  17100. (defined): 0-length value is now recognized as undefined.
  17101. (getAsInt): Rewritten.
  17102. (getAsLLInt): Rewritten.
  17103. (getAsBool): New function.
  17104. * src/FeatureConfig.h: Rewritten.
  17105. * src/FeatureConfig.cc: Rewritten.
  17106. * src/prefs.h
  17107. (PREF_STDOUT_LOG): New definition.
  17108. (PREF_LOG): New definition.
  17109. (PREF_DIR): New definition.
  17110. (PREF_OUT): New definition.
  17111. (PREF_SPLIT): New definition.
  17112. (PREF_DAEMON): New definition.
  17113. (PREF_REFERER): New definition.
  17114. (PREF_TORRENT_FILE): New definition.
  17115. (PREF_LISTEN_PORT): New definition.
  17116. (PREF_METALINK_FILE): New definition.
  17117. (PREF_METALINK_VERSION): New definition.
  17118. (PREF_METALINK_LANGUAGE): New definition.
  17119. (PREF_METALINK_OS): New definition.
  17120. (PREF_METALINK_SERVERS): New definition.
  17121. * src/main.cc
  17122. (main): Following command-line parameters are now put into Option
  17123. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  17124. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  17125. metalinkLanguage, metalinkOs, metalinkServers
  17126. To fix the bug that aria2 can not handle http response header properly.
  17127. * src/HttpHeader.cc
  17128. (put): Made name lowercased.
  17129. (defined): Made name lowercased.
  17130. (getFirst): Made name lowercased.
  17131. (get): Made name lowercased.
  17132. (getFirstAsInt): Rewritten.
  17133. (getFirstAsLLInt): Rewritten.
  17134. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17135. * src/TorrentMan.h:
  17136. (advertisePiece): Updated doc.
  17137. (getAdvertisedPieceIndexes): Updated doc.
  17138. (removeAdvertisedPiece); New function.
  17139. * src/TorrentMan.cc
  17140. (FindElapsedHave): New function object.
  17141. (removeAdvertisedPiece): New function.
  17142. * src/HaveEraseCommand.h: New class.
  17143. * src/HaveEraseCommand.cc: New class.
  17144. * src/FeatureConfig.h: New class.
  17145. * src/FeatureConfig.cc: New class.
  17146. * src/Request.h
  17147. (defaultPorts): Removed.
  17148. * src/Request.cc
  17149. (FeatureConfig.h): Included.
  17150. (Request): Removed the statements related to defaultPorts.
  17151. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  17152. A default port number is now retrieved from FeatureConfig.
  17153. * src/main.cc
  17154. (HaveEraseCommand.h): Included.
  17155. (showVersion): Added the output of feature list.
  17156. (main): Added HaveEraseCommand to command queue in BitTorrent
  17157. downloading.
  17158. * src/PeerInteractionCommand.h
  17159. (chokeCheckPoint): Commented out.
  17160. (periodicExecPoint): New variable.
  17161. * src/PeerInteractionCommand.cc
  17162. (executeInternal): Following methods are now called in at least every
  17163. 0.5 seconds to reduce CPU usage:
  17164. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  17165. checkHave(), sendKeepAlive().
  17166. (checkLongTimePeerChoking): Commented out.
  17167. * src/BitfieldMan.h
  17168. (getNthBitIndex): Changed the method signature.
  17169. (getMissingIndexRandomly): Changed the method signature.
  17170. * src/BitfieldMan.cc
  17171. (getNthBitIndex): Rewritten
  17172. (getMissingIndexRandomly): Rewritten.
  17173. (hasMissingPiece): Rewritten.
  17174. (getMissingIndex): Refactored.
  17175. (getMissingUnusedIndex); Refactored.
  17176. (getMissingIndex): Refactored.
  17177. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17178. * src/PeerMessage.h
  17179. (Piece.h): Included.
  17180. (SharedHandle.h): Included.
  17181. (invalidate): New variable.
  17182. (uploading): New variable.
  17183. (isInvalidate): New function.
  17184. (isUploading): New function.
  17185. (onPush): New function.
  17186. (onChoked): New function.
  17187. (onCanceled): New function.
  17188. (onAbortPiece): New function.
  17189. (PeerMessageHandle): New type definition.
  17190. * src/PeerMessage.cc
  17191. (PeerMessage): Added the initialization for invalidate and uploading.
  17192. * src/CancelMessage.h
  17193. (CancelMessage): Rewritten.
  17194. * src/RejectMessage.h
  17195. (RejectMessage): Rewritten.
  17196. * src/Metalinker.h
  17197. (operator=): Defined.
  17198. * src/MetaEntry.h
  17199. (operator=): Defined.
  17200. * src/MetalinkResource.h
  17201. (operator=): Defined.
  17202. * src/AllowedFastMessage.h
  17203. (AllowedFastMessage): Rewritten.
  17204. * src/HandshakeMessage.h
  17205. (HandshakeMessage): New function(overload).
  17206. * src/HandshakeMessage.cc
  17207. (HandshakeMessage): Rewritten.
  17208. (init): New function.
  17209. * src/HaveMessage.h
  17210. (HaveMessage): Rewritten.
  17211. * src/Time.h
  17212. (operator=): Defined the function body here.
  17213. * src/Time.cc
  17214. (operator=): Removed.
  17215. * src/SocketCore.h
  17216. (operator==): Defined here.
  17217. (operator!=): Defined here.
  17218. (operator<): Defined here.
  17219. * src/SocketCore.cc
  17220. (operator==): Removed.
  17221. (operator<): Removed.
  17222. * src/BitfieldMan.h
  17223. (operator=): Defined the function body here.
  17224. * src/BitfieldMan.cc
  17225. (operator=): Removed.
  17226. * src/TorrentMan.h
  17227. (deleteErrorPeer): Removed.
  17228. (deleteUnusedPeer); New function.
  17229. * src/TorrentMan.cc
  17230. (addPeer): Call deleteUnusedPeer.
  17231. (deleteErrorPeer): Removed.
  17232. (deleteUnusedPeer): New function.
  17233. * src/PeerAbstractCommand.h
  17234. (setNoCheck): New function.
  17235. (noCheck): New variable.
  17236. * src/PeerAbstractCommand.cc
  17237. (PeerAbstractCommand): Added the initialization of noCheck.
  17238. (execute): Added a check for noCheck.
  17239. (setNoCheck): New function.
  17240. * src/Util.h
  17241. (stdio.h): Included.
  17242. * src/Util.cc
  17243. (unistd.h): Included.
  17244. * src/DefaultDiskWriter.cc
  17245. (unistd.h): Included.
  17246. * src/Peer.h
  17247. (operator==): Defined the function body here.
  17248. (operator!=): Defined the function body here.
  17249. * src/Peer.cc
  17250. (operator==): Removed.
  17251. (operator!=): Removed.
  17252. * src/Piece.h
  17253. (Piece): Defined the function body here(copy constructor).
  17254. (operator=): Defined the function body here.
  17255. (operator==): Defined the function body here.
  17256. * src/Piece.cc
  17257. (Piece): Removed(copy constructor).
  17258. (operator=): Removed.
  17259. (operator==): Removed.
  17260. * src/PeerMessageUtil.h
  17261. (ChokeMessage.h): Removed.
  17262. (UnchokeMessage.h): Removed.
  17263. (InterestedMessage.h): Removed.
  17264. (NotInterestedMessage.h): Removed.
  17265. (HaveMessage.h): Removed.
  17266. (BitfieldMessage.h): Removed.
  17267. (RequestMessage.h): Removed.
  17268. (CancelMessage.h): Removed.
  17269. (PieceMessage.h): Removed.
  17270. (HandshakeMessage.h): Removed.
  17271. (KeepAliveMessage.h): Removed.
  17272. (PortMessage.h): Removed.
  17273. (HaveAllMessage.h): Removed.
  17274. (HaveNoneMessage.h): Removed.
  17275. (PeerConnection.h): Removed.
  17276. (HandshakeMessage.h): Included.
  17277. * src/BitfieldMessage.h
  17278. (init): New function.
  17279. (BitfieldMessage): Rewritten.
  17280. (BitfieldMessage): New function(overload).
  17281. * src/RequestSlot.h
  17282. (operator=): Defined the function body here.
  17283. (operator==): Defined the function body here.
  17284. * src/RequestSlot.cc
  17285. (operator=): Removed.
  17286. (operator==): Removed.
  17287. To remove the dependency on the PeerMessage subclass from
  17288. PeerInteraction:
  17289. * src/PeerMessageFactory.h: New class.
  17290. * src/PeerMessageFactory.cc: New class.
  17291. * src/SimplePeerMessage.cc
  17292. (send): If invalidate is true then do nothing.
  17293. * src/PeerInteractionCommand.cc
  17294. (HandshakeMessage.h): Included.
  17295. (KeepAliveMessage.h): Included.
  17296. (ChokeMessage.h): Included.
  17297. (UnchokeMessage.h): Included.
  17298. (HaveMessage.h): Included.
  17299. (executeInternal): Call setNoCheck().
  17300. Removed setWriteCheckSocket(socket).
  17301. * src/PeerInteraction.h
  17302. (ChokeMessage.h): Removed.
  17303. (UnchokeMessage.h): Removed.
  17304. (InterestedMessage.h): Removed.
  17305. (NotInterestedMessage.h): Removed.
  17306. (HaveMessage.h): Removed.
  17307. (BitfieldMessage.h): Removed.
  17308. (RequestMessage.h): Removed.
  17309. (CancelMessage.h): Removed.
  17310. (PieceMessage.h): Removed.
  17311. (HandshakeMessage.h): Removed.
  17312. (KeepAliveMessage.h): Removed.
  17313. (PortMessage.h): Removed.
  17314. (HaveAllMessage.h): Removed.
  17315. (HaveNoneMessage.h): Removed.
  17316. (RejectMessage.h): Removed.
  17317. (AllowedFastMessage.h): Removed.
  17318. (SuggestPieceMessage.h): Removed.
  17319. (PeerMessageFactory.h): Included.
  17320. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  17321. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  17322. (PeerMessageFactory): New variable.
  17323. (createPeerMessage): Removed.
  17324. (createHandshakeMessage): Removed.
  17325. (setPeerMessageCommonProperty): Removed.
  17326. (addRequestSlot): New function.
  17327. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  17328. (getPeerMessageFactory): New function.
  17329. (createRequestMessage): Removed.
  17330. (createCancelMessage): Removed.
  17331. (createPieceMessage): Removed.
  17332. (createHaveMessage): Removed.
  17333. (createChokeMessage): Removed.
  17334. (createUnchokeMessage): Removed.
  17335. (createInterestedMessage): Removed.
  17336. (createNotInterestedMessage): Removed.
  17337. (createBitfieldMessage): Removed.
  17338. (createKeepAliveMessage): Removed.
  17339. (createHaveAllMessage): Removed.
  17340. (createHaveNoneMessage): Removed.
  17341. (createRejectMessage): Removed.
  17342. (createAllowedFastMessage): Removed.
  17343. * src/PeerInteraction.cc
  17344. (PeerInteraction): Allocate PeerMessageFactory here.
  17345. (~PeerInteraction): Deallocate PeerMessageFactory here.
  17346. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  17347. PieceMessage::ID.
  17348. (addMessage): Simplified by using PeerMessage::onPush().
  17349. (addRequestSlot): New function.
  17350. (rejectAllPieceMessageInQueue): Simplified by using
  17351. PeerMessage::onChoked().
  17352. (rejectPieceMessageInQueue): Simplified by using
  17353. PeerMessage::onCanceled().
  17354. (abortPiece): Simplified by using PeerMessage::abortPiece().
  17355. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  17356. (createHandshakeMessage): Removed.
  17357. (createPeerMessage): Removed.
  17358. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  17359. (setPeerMessageCommonProperty): Removed.
  17360. (createRequestMessage): Removed.
  17361. (createCancelMessage): Removed.
  17362. (createPieceMessage): Removed.
  17363. (createHaveMessage): Removed.
  17364. (createChokeMessage): Removed.
  17365. (createUnchokeMessage): Removed.
  17366. (createInterestedMessage): Removed.
  17367. (createNotInterestedMessage): Removed.
  17368. (createBitfieldMessage): Removed.
  17369. (createKeepAliveMessage): Removed.
  17370. (createHaveAllMessage): Removed.
  17371. (createHaveNoneMessage): Removed.
  17372. (createRejectMessage): Removed.
  17373. (createAllowedFastMessage): Removed.
  17374. * src/PieceMessage.h
  17375. (createRejectMessage): New function.
  17376. (PieceMessage): Rewritten.
  17377. (onChoked): New function.
  17378. (onCanceled): New function.
  17379. * src/PieceMessage.cc
  17380. (send): If invalidate is true then do nothing, just return.
  17381. (createRejectMessage): New function.
  17382. (onChoked): New function.
  17383. (onCanceled): New function.
  17384. * src/RequestMessage.h
  17385. (RequestMessage): Rewritten.
  17386. (onPush): New function.
  17387. (onAbortPiece): New function.
  17388. * src/RequestMessage.cc
  17389. (onPush): New function.
  17390. (onAbortPiece): New function.
  17391. Update fd_set when a socket is added or deleted in order to improve
  17392. performance:
  17393. * src/DownloadEngine.h
  17394. (rfdset): New variable.
  17395. (wfdset): New variable.
  17396. (updateFdSet): New function.
  17397. * src/DownloadEngine.cc
  17398. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  17399. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  17400. (waitData): Copy rfdset and wfdset.
  17401. (updateFdSet): New function.
  17402. (addSocket): Call updateFdSet.
  17403. (deleteSocket): Call updateFdSet.
  17404. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17405. To add the support for Metalink3.0 backward compatible links:
  17406. * src/Request.h
  17407. (SAFE_CHARS): Added '#'.
  17408. (METALINK_MARK): New definition.
  17409. * src/Request.cc
  17410. (parseUrl): Added the support for Metalink3.0 backward compatible
  17411. links.
  17412. etc
  17413. * src/PeerInteraction.cc
  17414. (MsgPushBack): Removed.
  17415. (sendMessages): Use STL copy and back_inserter.
  17416. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  17417. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  17418. * src/TorrentMan.h
  17419. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  17420. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17421. * src/SharedHandle.h: New class.
  17422. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  17423. * src/HttpResponseCommand.h
  17424. (HttpResponseCommand): Wrapped Socket.
  17425. * src/SocketCore.h
  17426. (operator==): New function.
  17427. (operator!=): New function.
  17428. (operator<): New function.
  17429. (getSockfd): New function.
  17430. (isOpen): New function.
  17431. (writeData): New function.
  17432. * src/SocketCore.cc
  17433. (operator==): New function.
  17434. (operator!=): New function.
  17435. (operator<): New function.
  17436. * src/AbstractCommand.h
  17437. (socket): Changed its type to SocketHandle.
  17438. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17439. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17440. (disableReadCheckSocket): New function.
  17441. (disableWriteCheckSocket): New function.
  17442. (readCheckTarget): Changed its type to SocketHandle.
  17443. (writeCheckTarget): Changed its type to SocketHandle.
  17444. (AbstractCommand): Replaced Socket with SocketHandle.
  17445. * src/AbstractCommand.cc
  17446. (AbstractCommand): Replaced Socket with SocketHandle.
  17447. (~AbstractCommand): Removed the deallocation for Socket object.
  17448. (disableReadCheckSocket): New function.
  17449. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17450. (disableWriteCheckSocket): New function.
  17451. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17452. * src/HttpDownloadCommand.cc
  17453. (DownloadCommand): Replaced Socket with SocketHandle.
  17454. * src/PeerAbstractCommand.h
  17455. (socket): Changed its type to SocketHandle.
  17456. (peer): Changed its type to PeerHandle.
  17457. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17458. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17459. (disableReadCheckSocket): New function.
  17460. (disableWriteCheckSocket): New function.
  17461. (readCheckTarget): Changed its type to SocketHandle.
  17462. (writeCheckTarget): Changed its type to SocketHandle.
  17463. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17464. Replaced Peer with PeerHandle.
  17465. * src/HttpRequestCommand.cc
  17466. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17467. Use disableReadCheckSocket.
  17468. * src/PeerInitiateConnectionCommand.h
  17469. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17470. * src/PeerChokeCommand.cc
  17471. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  17472. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  17473. (execute): Use PeerHandle.
  17474. * src/PeerConnection.h
  17475. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  17476. (socket): Changed its type to SocketHandle.
  17477. (PeerConnection): Replaced Socket with SocketHandle.
  17478. * src/PeerConnection.cc
  17479. (PeerConnection): Replaced Socket with SocketHandle.
  17480. * src/PeerInteractionCommand.h
  17481. (PeerInteractionCommand): Replaced socket with SocketHandle.
  17482. Replaced Peer with PeerHandle.
  17483. * src/PeerInteractionCommand.cc
  17484. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  17485. Replaced Peer with PeerHandle.
  17486. (executeInternal): Use disableWriteCheckSocket.
  17487. Use HandshakeMessageHandle.
  17488. (receiveMessages): Use PeerMessageHandle.
  17489. (prepareForNextPeer): Use PeerHandle.
  17490. * src/HttpProxyRequestCommand.h
  17491. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17492. * src/HttpResponseCommand.cc
  17493. (HttpResponseCommand): Replaced Socket with SocketHandle.
  17494. * src/TorrentMan.cc
  17495. (nullPeer): Added external reference.
  17496. (~TorrentMan): Removed the deallocation of the elements of peers.
  17497. (addPeer): Rewritten.
  17498. (isPeerAvailable): Use nullPeer.
  17499. (deleteOldpeers): Replaced with deleteErrorPeer.
  17500. (deleteErrorPeer): New function.
  17501. (getPeer): Use PeerHandle and nullPeer.
  17502. (hasMissingPiece): Replaced Peer with PeerHandle.
  17503. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17504. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17505. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17506. (getMissingPiece): Replaced Peer with PeerHandle.
  17507. * src/FtpNegotiateCommand.cc
  17508. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  17509. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  17510. (recvGreeting): Use disableWriteCheckSocket.
  17511. (recvPasv): Removed the allocation of Socket.
  17512. Use disableReadCheckSocket.
  17513. (sendRestPasv): Use disableWriteCheckSocket.
  17514. (recvRetr): Changed assertion.
  17515. * src/PeerInteraction.h
  17516. (SharedHandle.h): Included SharedHandle.h.
  17517. (PeerMessageHandle): New type definition.
  17518. (HandshakeMessageHandle): New type definition.
  17519. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  17520. (peer): Changed its type to PeerHandle.
  17521. (createHandshakeMessage): Replaced HandshakeMessage with
  17522. HandshakeMessageHandle.
  17523. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  17524. (PeerInteraction): Replaced Peer with PeerHandle.
  17525. Replaced Socket with SocketHandle.
  17526. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17527. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17528. (receiveHandshake): Replaced HandshakeMessage with
  17529. HandshakeMessageHandle.
  17530. * src/PeerInteraction.cc
  17531. (PeerInteraction): Replaced Peer with PeerHandle.
  17532. Replaced Socket with SocketHandle.
  17533. (~PeerInteraction): Removed the deallocation of the elements of
  17534. messageQueue.
  17535. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  17536. (isSendingMessageInProgress): Replaced PeerMessage with
  17537. PeerMessageHandle.
  17538. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  17539. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  17540. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  17541. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  17542. (abortPiece): Use PeerMessageHandle.
  17543. (receiveHandshake): Replaced HandshakeMessage with
  17544. HandshakeMessageHandle. Removed try-catch block.
  17545. (createHandshakeMessage): Replaced HandshakeMessage with
  17546. HandshakeMessageHandle.
  17547. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  17548. Removed try-catch block.
  17549. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  17550. * src/HttpProxyResponseCommand.cc
  17551. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17552. * src/FtpTunnelResponseCommand.h
  17553. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17554. * src/HttpConnection.cc
  17555. (HttpConnection): Replaced Socket with SocketHandle.
  17556. * src/PeerAbstractCommand.cc
  17557. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  17558. (~PeerAbstractCommand): Removed the deallocation of socket.
  17559. Use disableReadCheckSocket, disableWriteCheckSocket.
  17560. (disableReadCheckSocket): New function.
  17561. (setReadCheckSocket): Replaced Socket with SocketHandle.
  17562. (disableWriteCheckSocket): New function.
  17563. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  17564. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  17565. * src/FtpTunnelRequestCommand.cc
  17566. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17567. (~FtpTunnelRequestCommand): Corrected indentation.
  17568. * src/DownloadCommand.h
  17569. (DownloadCommand): Replaced Socket with SocketHandle.
  17570. * src/PeerListenCommand.cc
  17571. (PeerListenCommand): Removed the initialization of socket.
  17572. (~PeerListenCommand): Removed the deallocation of socket.
  17573. (bindPort): Use SocketHandle.
  17574. (execute): Use SocketHandle and PeerHandle.
  17575. * src/FtpDowndloadCommand.cc
  17576. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17577. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  17578. * src/main.cc
  17579. (main): Corrected indentation.
  17580. * src/HttpInitiateConnectionCommand.cc
  17581. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  17582. (executeInternal): Removed the allocation of socket.
  17583. * src/HttpRequestCommand.h
  17584. (HttpRequestCommand): Replaced Socket with SocketHandle.
  17585. * src/FtpNegotiationCommand.h
  17586. (dataSocket): Changed its type to SocketHandle.
  17587. (serverSocket): Changed its type to SocketHandle.
  17588. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  17589. * src/TorrentMan.h
  17590. (MAX_PEER_UPDATE): Removed.
  17591. (MAX_PEERS): New definition.
  17592. (Peers): The element is now of type PeerHandle.
  17593. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  17594. (getPeer): Replaced Peer with PeerHandle.
  17595. (deleteOldErrorPeers): Removed.
  17596. (deleteErrorPeer): New function.
  17597. (hasMissingPiece): Replaced Peer with PeerHandle.
  17598. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  17599. (getMissingPiece): Replaced Peer with PeerHandle.
  17600. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  17601. (getMissingFastPiece): Replaced Peer with PeerHandle.
  17602. (addActivePeer): Replaced Peer with PeerHandle.
  17603. (deleteActivePeer): Replaced Peer with PeerHandle.
  17604. Added a check for the return value of find.
  17605. * src/FtpTunnelResponseCommand.cc
  17606. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  17607. * src/FtpInitiateConnectionCommand.cc
  17608. (executeInternal): Removed the allocation of socket.
  17609. * src/DownloadEngine.h
  17610. (Sockets): An element is now of type SocketHandle.
  17611. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  17612. (CommandUuids): New type definition.
  17613. (rsockets): Changed its type to SockCmdMap.
  17614. (wsockets): Changed its type to SockCmdMap.
  17615. (addSocket): Rewritten.
  17616. (deleteSocket): Rewritten.
  17617. (addSocketForReadCheck): Rewritten.
  17618. (deleteSocketForReadCheck): Rewritten.
  17619. (addSocketForWriteCheck): Rewritten.
  17620. (deleteSocketForWriteCheck): Rewritten.
  17621. (PairFind): New template class.
  17622. * src/HttpDownloadCommand.h
  17623. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  17624. * src/FtpConnection.cc
  17625. (FtpConnection): Replaced Socket with SocketHandle.
  17626. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  17627. block.
  17628. * src/InitiateConnectionCommandFactory.cc
  17629. (DlAbortEx.h): Included DlAbortEx.h.
  17630. (createInitiateConnectionCommand): Throw exception if the protocol of
  17631. requested URI is not supported.
  17632. * src/Peer.cc
  17633. (nullPeer): Changed its type to PeerHandle.
  17634. (operator==): New function.
  17635. (operator!=): New function.
  17636. * src/Peer.h
  17637. (SharedHandle.h): Included SharedHandle.h.
  17638. (operator==): New function.
  17639. (operator!=): New function.
  17640. (Peer): Added the default constructor.
  17641. Use resetStatus() to initialize member variables.
  17642. (nullPeer): Removed.
  17643. * src/TrackerUpdateCommand.cc
  17644. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  17645. with MIN_PEERS.
  17646. * src/PeerListenCommand.h
  17647. (socket): Changed its type to SocketHandle.
  17648. * src/Command.h
  17649. (CommandUuid): New type definition.
  17650. (uuid): New variable.
  17651. (uuidGen): New variable.
  17652. (Command): Added the initialization of uuid.
  17653. (getUuid): New function.
  17654. * src/Socket.h
  17655. (Socket): Removed.
  17656. (SocketHandle): New type definition.
  17657. * src/DownloadEngine.h
  17658. (FindCommand): New function object.
  17659. (run): The portion of socket check was rewritten.
  17660. (SetDescriptor): New function object.
  17661. (AccumulateActiveCommandUuid): New function object.
  17662. (waitData): Rewritten.
  17663. (addSocket): Rewritten.
  17664. (deleteSocket): Rewritten.
  17665. (addSocketForReadCheck): Rewritten.
  17666. (addSocketForWriteCheck): Rewritten.
  17667. (deleteSocketForReadCheck): Rewritten.
  17668. (deleteSocketForWriteCheck): Rewritten.
  17669. * src/HttpProxyResponseCommand.h
  17670. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  17671. * src/HttpConnection.h
  17672. (socket): Changed its type to SocketHandle.
  17673. (HttpConnection): Replaced Socket with SocketHandle.
  17674. * src/PeerInitiateConnectionCommand.cc
  17675. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  17676. (executeInternal): Removed the allocation of socket.
  17677. (prepareForNextPeer): Use PeerHandle.
  17678. * src/PeerMessage.h
  17679. (peer): Changed its type to PeerHandle.
  17680. (getPeer): Replaced Peer with PeerHandle.
  17681. (setPeer): Replaced Peer with PeerHandle.
  17682. * src/DownloadCommand.cc
  17683. (DownloadCommand): Replaced Socket with SocketHandle.
  17684. * src/FtpConnection.h
  17685. (socket): Changed its type to SocketHandle.
  17686. (FtpConnection): Replaced Socket with SocketHandle.
  17687. (sendPort); Replaced Socket with SocketHandle.
  17688. * src/FtpDowndloadCommand.h
  17689. (ctrlSocket): Changed its type to SocketHandle.
  17690. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  17691. * src/HttpProxyRequestCommand.cc
  17692. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  17693. * src/FtpTunnelRequestCommand.h
  17694. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  17695. etc
  17696. * src/PeerChokeCommand.h
  17697. (setAllPeerChoked): Removed.
  17698. (setAllPeerResetDelta): Removed.
  17699. * src/PeerChokeCommand.cc
  17700. (setAllPeerChoked): Removed.
  17701. (ChokePeer): New function object.
  17702. (setAllPeerResetDelta): Removed.
  17703. (ResetDelta): New function object.
  17704. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  17705. (execute): Show download speed when the local node is a seeder.
  17706. setAllPeerChoked and setAllPeerResetDelta were rewritten
  17707. using STL.
  17708. * src/TrackerWatcherCommand.h
  17709. (MIN_PEERS): Removed.
  17710. * src/TorrentMan.cc
  17711. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  17712. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17713. To fix the bug that .aria2 file is not saved if downloading is stopped
  17714. by the errors:it results that aria2 can not resume downloading:
  17715. * src/main.cc
  17716. (normalDownload): Added the call to save().
  17717. (main): Added the deletion of the elements in 'reserved'.
  17718. To fix log:
  17719. * src/PeerInteraction.cc
  17720. (receiveHandshake): Fixed log.
  17721. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17722. To improve download performance in BitTorrent:
  17723. * src/TorrentMan.cc
  17724. (getPeer): Check the number of connections. Return nullPeer if
  17725. it is greater than MAX_PEER_UPDATE.
  17726. This code was originally here, but was removed in 0.5.1.
  17727. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17728. To improve the conditional compilation:
  17729. * src/MultiDiskWriter.h:
  17730. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17731. * src/MultiDiskWriter.cc:
  17732. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17733. * src/Util.h:
  17734. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17735. Added ENABLE_BITTORRENT around computeFastSet().
  17736. * src/Util.cc:
  17737. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17738. Added ENABLE_BITTORRENT around computeFastSet().
  17739. * src/messageDigest.h:
  17740. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  17741. * src/ShaVisitor.h:
  17742. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17743. * src/ShaVisitor.cc:
  17744. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17745. * src/main.cc:
  17746. Added ENABLE_BITTORRENT around includes and blocks related to
  17747. BitTorrent.
  17748. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  17749. digest support is not available.
  17750. * src/AbstractDiskWriter.h:
  17751. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17752. * src/AbstractDiskWriter.cc:
  17753. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  17754. * src/MetalinkEntry.cc
  17755. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  17756. support is not available.
  17757. To add command-line options for Metalink:
  17758. * src/main.cc:
  17759. Added metalink-version, metalink-language, metalink-os,
  17760. follow-metalink.
  17761. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  17762. * src/main.cc: Use these definition.
  17763. * Release 0.6.0
  17764. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17765. To add Metalink support(http/ftp only):
  17766. * src/AbstractCommand.h
  17767. (tryReserved): New function.
  17768. * src/AbstractCommand.cc
  17769. (execute): Call tryReserved().
  17770. (tryReserved): New function.
  17771. * src/Request.h
  17772. (Requests): New type definition.
  17773. * src/SegmentMan.h
  17774. (reserved): New variable.
  17775. * src/Util.h
  17776. (fileChecksum): New function.
  17777. (toUpper): New function.
  17778. (toLower): New function.
  17779. * src/Util.cc
  17780. (messageDigest.h): Included.
  17781. (trim): Trim \r\n\t.
  17782. (fileChecksum): New function.
  17783. (toUpper): New function.
  17784. (toLower): New function.
  17785. * src/main.cc
  17786. (normalDownload): New function.
  17787. (main): Added 2 command-line options: metalink-file,
  17788. metalink-connection. Their usage has not been written yet.
  17789. * src/MetalinkProcessor.h: New class.
  17790. * src/Xml2MetalinkProcessor.h: New class.
  17791. * src/Xml2MetalinkProcessor.cc: New class.
  17792. * src/MetalinkEntry.h: New class.
  17793. * src/MetalinkEntry.cc: New class.
  17794. * src/MetalinkResource.h: New class.
  17795. * src/MetalinkResource.cc: New class.
  17796. To add md5 message digest checking:
  17797. * src/messageDigest.h: Rewritten.
  17798. * src/MultiDiskWriter.cc: Updated according to the changes in
  17799. messageDigest.h.
  17800. * src/ShaVisitor.cc: Updated according to the changes in
  17801. messageDigest.h.
  17802. * src/Util.cc: Updated according to the changes in messageDigest.h.
  17803. * src/AbstractDiskWriter.cc: Updated according to the changes in
  17804. messageDigest.h.
  17805. To fix a bug that causes segfault when the payload length in peer
  17806. message is less than 0:
  17807. * src/PeerConnection.cc:
  17808. (receiveMessage): Fixed the bug.
  17809. * src/PeerMessageUtil.cc
  17810. (checkLength): Throw an exception if length is less than or equals to
  17811. 0.
  17812. To add new interfaces to Base64 encoding/decoding:
  17813. * src/Base64.h
  17814. (part_encode): Changed the method signature.
  17815. (encode): New function(overload).
  17816. (decode): New function(overload).
  17817. * src/Base64.cc
  17818. (part_encode): Rewritten.
  17819. (encode): Rewritten.
  17820. (encode): New function(overload).
  17821. To prevent a peer to download same piece if there is an error in
  17822. checksum:
  17823. * src/PieceMessage.cc
  17824. (receivedAction): Call peerInteraction->abortPiece().
  17825. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17826. To fix the bug that causes same have message is sent many times to
  17827. a single peer.
  17828. * src/Time.cc
  17829. (isNewer): Use Util::difftv().
  17830. * src/Util.cc
  17831. (difftv): Added a cast to (long long int).
  17832. * src/TorrentMan.cc
  17833. (advertisePiece): Use push_front.
  17834. (getAdvertisedPieceIndexes): A performance improvement was made.
  17835. To fix the bug that sends tracker requests without a sleep interval
  17836. when the number of connections is less than 15.
  17837. * src/TrackerWatcherCommand.cc
  17838. (execute): Now the number of connections is not a factor to decide
  17839. whether or not a tracker request should be sent or not.
  17840. * src/Time.h
  17841. (setTimeInSec): New function.
  17842. * src/Time.cc
  17843. (setTimeInSec): New function.
  17844. etc.
  17845. * src/ChokeMessage.cc
  17846. (receivedAction): Removed peer->snubbing = false
  17847. * src/PeerConnection.h
  17848. (receiveHandshake): Updated doc.
  17849. * src/TorrentMan.h
  17850. (getAdvertisedPieceIndexes): Updated the method signature.
  17851. * src/TorrentMan.cc
  17852. (getAdvertisedPieceIndexes): Updated the method signature.
  17853. * src/Time.h
  17854. (getTimeInMicros): Added a cast to (long long int).
  17855. (getTimeInMillis): Added a cast to (long long int).
  17856. * Release 0.5.2
  17857. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17858. To make a listening socket non-block:
  17859. * src/SocketCore.h
  17860. (setNonBlockingMode): New function.
  17861. * src/SocketCore.cc
  17862. (setNonBlockingMode): New function.
  17863. (beginListen): Added a call to setNonBlockingMode().
  17864. (acceptConnection): Call setNonBlockingMode().
  17865. (setBlockingMode): Updated.
  17866. To handle tracker's NAT-checking:
  17867. * src/PeerConnection.cc
  17868. (receiveHandshake): 'msg' param is filled with received data and
  17869. its length is assigned to 'length' param, even if all handshake
  17870. message is not yet received.
  17871. * src/PeerInteractionCommand.cc
  17872. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  17873. a new peer connects to localhost.
  17874. A call to peerInteraction->sendHandshake() was removed because
  17875. it is called from peerInteraction->receiveHandshake(true).
  17876. * src/PeerInteraction.h
  17877. (quickReplied): New variable.
  17878. (receiveHandshake): Added an argument.
  17879. * src/PeerInteraction.cc
  17880. (PeerInteraction): Added the initialization of quickReplied.
  17881. (receiveHandshake): Send handshake message as soon as the info hash
  17882. in a handshake message from a peer is correct.
  17883. To change the random part of peer id and key parameter:
  17884. * src/TorrentMan.h
  17885. (key): New variable.
  17886. * src/TorrentMan.cc
  17887. (setupInternal1): Use Util::randomAlpha() to generate random part
  17888. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  17889. key is also generated by Util::randomAlpha() and it is now 8 character
  17890. long.
  17891. * src/Util.h
  17892. (randomAlpha): New function.
  17893. * src/Util.cc
  17894. (randomAlpha): New function.
  17895. * src/TrackerWatcherCommand.cc
  17896. (execute): In a tracker request: Use torrentMan->key as key parameter.
  17897. Added no_peer_id=1.
  17898. Set snubbing flag to false when a choke message is received from a
  17899. snubbed peer.
  17900. * src/ChokeMessage.cc
  17901. (receivedAction): Set snubbing flag to false.
  17902. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17903. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  17904. * src/SimpleLogger.h (writeHeader): New function.
  17905. * src/SimpleLogger.cc (writeHeader): New function.
  17906. (writeLog): Fixed the bug that causes segfaults if exception message
  17907. contains an unescaped "%" character.
  17908. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  17909. when a tracker request fails.
  17910. * src/Request.cc (parseUrl): Query string is now handled properly.
  17911. * Release 0.5.1
  17912. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17913. To add Time class which represents a specific instant in time and
  17914. its precision is microseconds. Time checking procedures were rewritten
  17915. using this object.
  17916. * src/Time.h: New class.
  17917. * src/Time.cc: New class.
  17918. * src/AbstractCommand.h
  17919. (updateCheckPoint): Removed.
  17920. (isTimeoutDetected): Removed.
  17921. (checkPoint): Changed the type to Time.
  17922. (timeout): New variable.
  17923. (setTimeout): New function.
  17924. * src/AbstractCommand.cc
  17925. (AbstractCommand): Removed the initialization of checkPoint.
  17926. Added the initialization of timeout.
  17927. (updateCheckPoint): Removed.
  17928. (isTimeoutDetected): Removed.
  17929. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17930. * src/PeerChokeCommand.h
  17931. (checkPoint): Changed the type to Time.
  17932. * src/PeerChokeCommand.cc
  17933. (PeerChokeCommand): Removed the initialization of checkPoint.
  17934. (execute): Rewritten using Time object.
  17935. * src/TrackerWatcherCommand.h
  17936. (checkPoint): Changed the type to Time.
  17937. * src/TrackerWatcherCommand.cc
  17938. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  17939. (execute): Rewritten.
  17940. * src/ConsoleDownloadEngine.h
  17941. (cp): Changed the type to Time.
  17942. (startup): Changed the type to Time.
  17943. * src/ConsoleDownloadEngine.cc
  17944. (initStatistics): Use cp.reset(), startup.reset().
  17945. (calculateStatistics): Rewritten using Time object.
  17946. * src/PeerAbstractCommand.h
  17947. (updateCheckPoint): Removed.
  17948. (isTimeoutDetected): Removed.
  17949. (checkPoint): Changed the type to Time.
  17950. * src/PeerAbstractCommand.cc
  17951. (PeerAbstractCommand): Removed the initialization of checkPoint.
  17952. (updateCheckPoint): Removed.
  17953. (isTimeoutDetected): Removed.
  17954. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17955. * src/PeerInteractionCommand.cc
  17956. (PeerInteractionCommand): Removed the initializations of struct
  17957. timeval variables.
  17958. * src/PeerInteractionCommand.h
  17959. (keepAliveCheckPoint): Changed the type to Time.
  17960. (chokeCheckPoint): Changed the type to Time.
  17961. (freqCheckPoint): Changed the type to Time.
  17962. (haveCheckTime): Changed the type to Time.
  17963. * src/PeerInteractionCommand.cc
  17964. (executeInternal): Rewritten using Time object.
  17965. (detectMessageFlooding): Rewritten using Time object.
  17966. (checkLongTimePeerChoking): Rewritten using Time object.
  17967. (sendKeepAlive): Rewritten using Time object.
  17968. (checkHave): Rewritten using Time object.
  17969. * src/SleepCommand.h
  17970. (checkPoint): Changed the type to Time.
  17971. * src/SleepCommand.cc
  17972. (SleepCommand): Removed the initialization of checkPoint.
  17973. (execute): Rewritten using Time object.
  17974. * src/TorrentAutoSaveCommand.h
  17975. (checkPoint): Changed the type to Time.
  17976. * src/TorrentAutoSaveCommand.cc
  17977. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  17978. (execute): Rewritten.
  17979. * src/DownloadCommand.h
  17980. (sw): Changed the type to Time.
  17981. * src/DownloadCommand.cc
  17982. (DownloadCommand): Removed the initialization of sw.
  17983. (executeInternal): Rewritten.
  17984. * src/RequestSlot.h
  17985. (dispatchedTime): Changed the type to Time.
  17986. * src/RequestSlot.cc
  17987. (RequestSlot): Removed the call to setDispatchedTime().
  17988. (setDispatchedTime): Rewirtten.
  17989. (isTimeout): Rewritten.
  17990. (getLatencyInMillis): Rewritten.
  17991. * src/TorrentDownloadEngine.h
  17992. (cp): Changed the type to Time[2].
  17993. (startup): Changed the type to Time.
  17994. * src/TorrentDownloadEngine.cc
  17995. (initStatistics): Rewritten.
  17996. (calculateStatistics): Rewritten.
  17997. * src/DownloadEngine.cc
  17998. (run): Rewritten.
  17999. To detect all attempts to connect to the tracker are failed:
  18000. * src/AbstractCommand.cc
  18001. (execute): Increment e->segmentMan->errors if a command aborted.
  18002. * src/SegmentMan.h
  18003. (errors): New variable.
  18004. * src/SegmentMan.cc
  18005. (SegmentMan): Added the initialization of errors.
  18006. (init): Added the initialization of errors.
  18007. * src/TrackerWatcherCommand.cc
  18008. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  18009. request was failed.
  18010. To handle snubbed peers:
  18011. * src/PeerChokeCommand.cc
  18012. (optUnchokingPeer): Snubbed peers don't get unchoked.
  18013. (execute): Snubbed peers don't get unchoked.
  18014. * src/PeerInteraction.h
  18015. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  18016. * src/PeerInteraction.cc
  18017. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  18018. back the requested 16k block in 60 seconds.
  18019. * src/PieceMessage.cc
  18020. (receivedAction): A peer's snubbed state is cleard if it sends
  18021. the requested 16k block in 60 seconds.
  18022. * src/Peer.h
  18023. (snubbing): New variable.
  18024. * src/Peer.cc
  18025. (resetStatus): Added snubbed = false.
  18026. To fix the bug that causes have message is not sent:
  18027. * src/PeerInteractionCommand.cc
  18028. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  18029. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  18030. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  18031. * src/TorrentMan.h
  18032. (HaveEntry): New class.
  18033. (advertisePiece): Rewritten.
  18034. (getAdvertisedPieceIndexes): Rewritten.
  18035. (Haves): Changed the type.
  18036. (getAdvertisedPieceIndexes): Added an argument.
  18037. Others:
  18038. * src/TorrentMan.h
  18039. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  18040. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  18041. * src/TorrentMan.cc
  18042. (getPeer): Don't check the number of connections here.
  18043. (setupInternal1): Changed peerId.
  18044. * src/PeerInteractionCommand.h
  18045. (KEEP_ALIVE_INTERVAL): New definition.
  18046. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  18047. * src/main.cc
  18048. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  18049. * src/DownloadEngine.h: Removed unnecessary header includes.
  18050. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18051. To fix the bug that causes segfaults if a tracker returns a zero-length
  18052. list as "peers":
  18053. * src/TrackerUpdateCommand.cc
  18054. (execute): Added a check to see wether the type of peers is Data*.
  18055. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18056. * Release 0.5.0
  18057. To fix compile issue with gcc3:
  18058. * src/CancelMessage.h
  18059. (ID): Renamed as ID_t
  18060. (ID_t): New enum.
  18061. * src/RejectMessage.h
  18062. (ID): Renamed as ID_t
  18063. (ID_t): New enum.
  18064. * src/SuggestPieceMessage.h
  18065. (ID): Renamed as ID_t
  18066. (ID_t): New enum.
  18067. * src/AllowedFastMessage.h
  18068. (ID): Renamed as ID_t
  18069. (ID_t): New enum.
  18070. * src/PortMessage.h
  18071. (ID): Renamed as ID_t
  18072. (ID_t): New enum.
  18073. * src/HaveNoneMessage.h
  18074. (ID): Renamed as ID_t
  18075. (ID_t): New enum.
  18076. * src/KeepAliveMessage.h
  18077. (ID): Renamed as ID_t
  18078. (ID_t): New enum.
  18079. * src/HaveAllMessage.h
  18080. (ID): Renamed as ID_t
  18081. (ID_t): New enum.
  18082. * src/UnchokeMessage.h
  18083. (ID): Renamed as ID_t
  18084. (ID_t): New enum.
  18085. * src/BitfieldMessage.h
  18086. (ID): Renamed as ID_t
  18087. (ID_t): New enum.
  18088. * src/PieceMessage.h
  18089. (ID): Renamed as ID_t
  18090. (ID_t): New enum.
  18091. * src/RequestMessage.h
  18092. (ID): Renamed as ID_t
  18093. (ID_t): New enum.
  18094. * src/NotInterestedMessage.h
  18095. (ID): Renamed as ID_t
  18096. (ID_t): New enum.
  18097. * src/ChokeMessage.h
  18098. (ID): Renamed as ID_t
  18099. (ID_t): New enum.
  18100. * src/InterestedMessage.h
  18101. (ID): Renamed as ID_t
  18102. (ID_t): New enum.
  18103. * src/HaveMessage.h
  18104. (ID): Renamed as ID_t
  18105. (ID_t): New enum.
  18106. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18107. * src/PeerAbstractCommand.h
  18108. (beforeSocketCheck): Removed.
  18109. * src/PeerAbstractCommand.cc
  18110. Modified in order to call executeInternal() even if socket check
  18111. and upload limit check fail.
  18112. * src/PeerInteractionCommand.h
  18113. (keepAlive): Removed.
  18114. (sendKeepAlive): New function.
  18115. (checkHave): New function.
  18116. (beforeSocketCheck): Removed.
  18117. * src/PeerInteractionCommand.cc
  18118. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  18119. calls to checkHave() and sendKeepAlive().
  18120. (keepAlive): Renamed to sendKeepAlive().
  18121. (sendKeepAlive): New function.
  18122. (beforeSocketCheck): Removed.
  18123. (checkHave): New function.
  18124. * src/BitfieldMan.cc
  18125. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  18126. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  18127. 0.
  18128. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  18129. * src/TorrentMan.h
  18130. (UsedPieces): Removed.
  18131. (Pieces): New type definition.
  18132. * src/Piece.h: Updated doc.
  18133. * src/Peer.h
  18134. (totalLength): Removed.
  18135. * src/Peer.cc
  18136. (updateLatency): Fixed the latency calculation.
  18137. * src/TorrentMan.cc
  18138. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  18139. than or equal to MAX_PEER_LIST_SIZE.
  18140. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  18141. then return false.
  18142. (deleteOldErrorPeers): Rewritten.
  18143. (deleteUsedPiece): Fixed the miss use of STL remove.
  18144. * src/PeerInteraction.h
  18145. (Pieces): Removed.
  18146. (deleteTimeoutRequestSlot): Removed.
  18147. (deleteCompletedRequestSlot): Removed.
  18148. (checkRequestSlot): New function.
  18149. * src/PeerInteraction.cc
  18150. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  18151. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  18152. (checkRequestSlot): New function.
  18153. * src/DownloadEngine.cc
  18154. (run): Clear activeSockets before calling waitData().
  18155. (waitData): Removed a call to activeSockets.clear().
  18156. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18157. To attempt to handle EINTR:
  18158. * src/SocketCore.cc
  18159. (isReadable): Added EINTR handling.
  18160. (isWritable): Added EINTR handling.
  18161. To improve the performance:
  18162. * src/AbstractCommand.cc
  18163. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  18164. * src/PeerInteractionCommand.h
  18165. (receiveMessage): Renamed as receiveMessages().
  18166. (receiveMessages): New function.
  18167. * src/PeerInteractionCommand.cc
  18168. (executeInternal): receiveMessage loop is moved to new receiveMessages
  18169. () function. detectMessageFlooding() is moved here.
  18170. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  18171. (). The flooding detection for have message is comment out.
  18172. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  18173. Util::difftv().
  18174. (receiveMessage): Renamed as receiveMessages().
  18175. (receiveMessages): New function.
  18176. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  18177. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  18178. * src/SleepCommand.cc
  18179. (execute): Use Util::difftvsec() instead of Util::difftv().
  18180. * src/BitfieldMan.h
  18181. (getNthBitIndex): New function.
  18182. (hasMissingPiece): New function.
  18183. (getAllMissingIndexes): New function.
  18184. * src/BitfieldMan.cc
  18185. (countSetBit): Rewritten.
  18186. (getNthBitIndex): New function.
  18187. (getMissingIndexRandomly): Rewritten.
  18188. (hasMissingPiece): New function.
  18189. (getAllMissingIndexes): New function.
  18190. * src/TorrentMan.cc
  18191. (hasMissingPiece): New function.
  18192. (deleteUsedPiece): Rewritten using STL.
  18193. * src/PeerInteraction.cc
  18194. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  18195. is a little bit faster then TorrentMan::getMissingPieceIndex().
  18196. (addRequests): Updated the number of pending requests.
  18197. * src/PeerAbstractCommand.cc
  18198. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  18199. (execute): Returns true if TorrentMan::isHalt() is true.
  18200. Corrected the condition of upload limit checking.
  18201. * src/Util.h
  18202. (countBit): New function.
  18203. * src/Util.cc
  18204. (nbits): New variable.
  18205. (countBit): New function.
  18206. * src/DownloadEngine.h
  18207. (SockCmdMap): New type definition.
  18208. (waitData): Added an argument.
  18209. (addSocket): Added an argument.
  18210. (addSocketForReadCheck): Added an argument.
  18211. (addSocketForWriteCheck): Added an argument.
  18212. * src/DownloadEngine.cc
  18213. (run): Executes only commands whose sockets are ready to read or write.
  18214. All commands are executed in every 1 second.
  18215. (waitData): Calls select() again if it returned
  18216. EINTR.
  18217. (addSocket): Saves socket and command object pair to the map.
  18218. (deleteSocket): Deletes socket and command object pair from the map.
  18219. (addSocketForReadCheck): Added an argument.
  18220. (addSocketForWriteCheck): Added an argument.
  18221. * src/DownloadCommand.cc
  18222. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  18223. To send "event=stopped" to the tracker when the application finishes:
  18224. * src/PeerChokeCommand.h
  18225. (checkPoint): New variable.
  18226. * src/PeerChokeCommand.cc
  18227. (PeerChokeCommand): Added the initialization of checkPoint.
  18228. (execute): The interval check is now done by checkPoint, not
  18229. SleepCommand. Return true if TorrentMan::isHalt() is true.
  18230. * src/TorrentMan.h
  18231. (halt): New function.
  18232. (hasMissingPiece): New function.
  18233. (isHalt): New function.
  18234. (setHalt): New function.
  18235. * src/TorrentMan.cc
  18236. (TorrentMan): Added the initialization of halt.
  18237. * src/TorrentAutoSaveCommand.h
  18238. (checkPoint): New variable.
  18239. * src/PeerListenCommand.cc
  18240. (execute): Returns true if TorrentMan::isHalt() is true.
  18241. * src/main.cc
  18242. (setSignalHander): Added flags argument.
  18243. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  18244. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  18245. Removed printDownloadAbortMessage() after torrent downloading loop.
  18246. * src/TorrentAutoSaveCommand.cc
  18247. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  18248. (execute): Returns true if TorrentMan::isHalt() is true.
  18249. The interval check is now done by checkPoint, not SleepCommand.
  18250. * src/TrackerWatcherCommand.cc
  18251. (execute): If TorrentMan::isHalt(), then create a tracker request with
  18252. event=stopped.
  18253. * src/TrackerUpdateCommand.cc
  18254. (prepareForRetry): Do not use SleepCommand here.
  18255. (execute): Returns true if TorrentMan::isHalt() is true.
  18256. Others:
  18257. * src/TorrentMan.cc
  18258. (getMissingPieceIndex): Updated log message.
  18259. * src/PeerInteraction.cc
  18260. (createPeerMessag): Updated log message.
  18261. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18262. To add the ability to download several pieces in mix in a command and
  18263. increase the number of request slots according to request-cancel
  18264. latency:
  18265. * src/PeerInteractionCommand.cc
  18266. (executeInternal): The number of messages to be received at a time
  18267. is increased from 10 to 50.
  18268. * src/LogFactory
  18269. (getInstance): Added NullLogger.
  18270. * src/NullLogger.h: New class.
  18271. * src/BitfieldMan.h
  18272. (getMissingIndex): New function.
  18273. * src/BitfieldMan.cc
  18274. (getMissingIndex): New function.
  18275. * src/TorrentMan.h
  18276. (checkOutPiece): New function.
  18277. (getMissingPieceIndex): New function.
  18278. (getMissingFastPieceIndex): New function.
  18279. (getMissingFastPiece): New function.
  18280. * src/TorrentMan.cc
  18281. (updatePiece): Rewritten using STL.
  18282. (syncPiece): Rewritten using STL.
  18283. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  18284. checkOutPiece().
  18285. (getMissingPieceIndex): New function.
  18286. (getMissingFastPieceIndex): New function.
  18287. (getMissingFastPiece): New function.
  18288. (checkOutPiece): New function.
  18289. * src/PeerInteraction.h
  18290. (Pieces): New type definition.
  18291. (piece): Removed.
  18292. (pieces): New variable.
  18293. (getNewPieceAndSendInterest): Added the "piece" argument.
  18294. (abortPiece): Added the "piece" argument.
  18295. (abortAllPieces): New function.
  18296. (isInRequestSlot): New function.
  18297. (hasDownloadPiece): Added the "index" argument.
  18298. (setDownloadPiece): Removed.
  18299. (getDownloadPiece): Added the "index" argument.
  18300. (updatePiece): New function.
  18301. (createRequestMessage): Added the "index" argument.
  18302. * src/PeerInteraction.cc
  18303. (onChoked): Rewritten.
  18304. (abortPiece): Rewirtten.
  18305. (abortAllPieces): New function.
  18306. (deleteTimeoutRequestSlot): Rewritten.
  18307. Clarified code a little bit.
  18308. (deleteCompletedRequestSlot): Rewritten.
  18309. (isInRequestSlot): New function.
  18310. (syncPiece): Rewritten.
  18311. (updatePiece): New function.
  18312. (getNewPieceAndSendInterest): Rewritten.
  18313. (addRequests): Rewritten.
  18314. (getDownloadPiece): Rewritten.
  18315. (hasDownloadPiece): Rewritten.
  18316. (createRequestMessage): Added the "index" argument.
  18317. * src/common.h
  18318. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  18319. (DIV_FLOOR): New definition.
  18320. * src/PieceMessage.cc
  18321. (receivedAction): Update request-piece latency here.
  18322. * src/RequestSlot.h
  18323. (getLatencyInMillis): New function.
  18324. * src/RequestSlot.cc
  18325. (isTimeout): Rewritten using getLatencyInMillis.
  18326. (getLatencyInMillis): New function.
  18327. * src/Piece.h
  18328. (operator==): New function.
  18329. (getMissingBlockIndex): New function.
  18330. * src/Piece.cc
  18331. (operator==): New function.
  18332. (getMissingBlockIndex): New function.
  18333. * src/Peer.h
  18334. (DEFAULT_LATENCY): New definition.
  18335. (latency): New variable.
  18336. (updateLatency): New function.
  18337. (getLatency): New function.
  18338. * src/Peer.cc
  18339. (resetStatus): Reset latecy.
  18340. (updateLatency): New function.
  18341. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18342. * src/SocketCore.cc
  18343. (isReadable): Added secure to the condition.
  18344. * src/HttpConnection.cc
  18345. (receiveResponse): Fixed a bug that causes no response header
  18346. exception.
  18347. * src/Peer.h
  18348. (getFastSet): Fixed the return value type.
  18349. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18350. To remove a wait from download loop:
  18351. * src/DownloadEngine.cc
  18352. (run): Comment out shortSleep.
  18353. To rewrite the message handling:
  18354. * src/SimplePeerMessage.h: New class.
  18355. * src/SimplePeerMessage.cc: New class.
  18356. * src/CancelMessage.h: Derived from SimplePeerMessage.
  18357. (msg): New variable.
  18358. (create): New function.
  18359. (send): Removed.
  18360. (getMessage): New function.
  18361. (getMessageLength): New function.
  18362. * src/CancelMessage.cc
  18363. (create): New function.
  18364. (receivedAction): Replaced deleteRequestMessageInQueue with
  18365. rejectPieceMessageInQueue.
  18366. (send): Removed.
  18367. (getMessage): New function.
  18368. (getMessageLength): New function.
  18369. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  18370. (msg): New variable.
  18371. (msgLength): New variable.
  18372. (~BitfieldMessage): Deleted msg.
  18373. (send): Removed.
  18374. (getMessage): New function.
  18375. (getMessageLength): New function.
  18376. * src/BitfieldMessage.cc
  18377. (create): New function.
  18378. (send): Removed.
  18379. (getMessage): New function.
  18380. (getMessageLength): New function.
  18381. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  18382. (msg): New variable.
  18383. (sendPredicate): New function.
  18384. (onSendComplete): New function.
  18385. (send): Removed.
  18386. (getMessage): New function.
  18387. (getMessageLength): New function.
  18388. (create): New function.
  18389. * src/ChokeMessage.cc
  18390. (create): New function.
  18391. (send): Removed.
  18392. (sendPredicate): New function.
  18393. (getMessage): New function.
  18394. (getMessageLength): New function.
  18395. (onSendComplete): New function.
  18396. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  18397. (msg): New variable.
  18398. (send): Removed.
  18399. (getMessage): New function.
  18400. (getMessageLength): New function.
  18401. * src/KeepAliveMessage.cc
  18402. (send): Removed.
  18403. (getMessage): New function.
  18404. (getMessageLength): New function.
  18405. * src/PortMessage.h
  18406. (create): New function.
  18407. (receivedAction): Updated log message.
  18408. * src/PortMessage.cc: New file.
  18409. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  18410. (msg): New variable.
  18411. (sendPredicate): New function.
  18412. (onSendComplete): New function.
  18413. (create): New function.
  18414. (send): Removed.
  18415. (getMessage): New function.
  18416. (getMessageLength): New function.
  18417. * src/UnchokeMessage.cc
  18418. (create): New function.
  18419. (send): Removed.
  18420. (sendPredicate): New function.
  18421. (getMessage): New function.
  18422. (getMessageLength): New function.
  18423. (onSendComplete): New function.
  18424. * src/PieceMessage.h
  18425. (leftPieceDataLength): Removed.
  18426. (leftDataLength): New variable.
  18427. (headerSend): New variable.
  18428. (pendingCount): New variable.
  18429. (msgHeader): New variable.
  18430. (sendPieceData): New function.
  18431. (incrementPendingCount): New function.
  18432. (isPendingCountMax): New function.
  18433. (create): New function.
  18434. (getMessageHeader): New function.
  18435. (getMessageHeaderLength): New function.
  18436. * src/PieceMessage.cc
  18437. (create): New function.
  18438. (getMessageHeader): New function.
  18439. (getMessageHeaderLength): New function.
  18440. (send): Rewritten.
  18441. (sendPieceData): New function.
  18442. * src/HaveMessage.h: Derived from SimplePeerMessage.
  18443. (msg): New variable.
  18444. (create): New function.
  18445. (getMessage): New function.
  18446. (getMessageLength): New function.
  18447. * src/HaveMessage.cc
  18448. (create): New function.
  18449. (send): Removed.
  18450. (sendPieceData): New function.
  18451. (getMessage): New function.
  18452. (getMessageLength): New function.
  18453. * src/RequestMessage.h: Derived from SimplePeerMessage.
  18454. (msg): New variable.
  18455. (create): New function.
  18456. (send): Removed.
  18457. (getMessage): New function.
  18458. (getMessageLength): New function.
  18459. * src/RequestMessage.cc
  18460. (create): New function.
  18461. (receivedAction): Added the handling of fast extension.
  18462. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  18463. (send): Removed.
  18464. (getMessage): New function.
  18465. (getMessageLength): New function.
  18466. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  18467. (msg): New variable.
  18468. (sendPredicate): New function.
  18469. (onSendComplete): New function.
  18470. (create): New function.
  18471. (getMessage): New function.
  18472. (getMessageLength): New function.
  18473. * src/InterestedMessage.cc
  18474. (create): New function.
  18475. (send): Removed.
  18476. (sendPieceData): New function.
  18477. (getMessage): New function.
  18478. (getMessageLength): New function.
  18479. (onSendComplete): New function.
  18480. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  18481. (msg): New variable.
  18482. (sendPieceData): New function.
  18483. (onSendComplete): New function.
  18484. (create): New function.
  18485. (send): Removed.
  18486. (getMessage): New function.
  18487. (getMessageLength): New function.
  18488. * src/NotInterestedMessage.cc
  18489. (create): New function.
  18490. (send): Removed.
  18491. (sendPredicate): New function.
  18492. (getMessage): New function.
  18493. (getMessageLength): New function.
  18494. (onSendComplete): New function.
  18495. * src/AllowedFastMessage.h: New class.
  18496. * src/AllowedFastMessage.cc: New class.
  18497. * src/RejectMessage.h: New class.
  18498. * src/RejectMessage.cc: New class.
  18499. * src/SuggestPieceMessage.h: New class.
  18500. * src/SuggestPieceMessage.cc: New class.
  18501. * src/HaveAllMessage.h: New class.
  18502. * src/HaveAllMessage.cc: New class.
  18503. * src/HaveNoneMessage.h: New class.
  18504. * src/HaveNoneMessage.cc: New class.
  18505. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  18506. (msg): New variable.
  18507. (reserved): New variable.
  18508. (create): New function.
  18509. (getId): New function.
  18510. (receivedAction): New function.
  18511. (getMessage): New function.
  18512. (getMessageLength): New function.
  18513. (isFastExtensionSupported): New function.
  18514. * src/HandshakeMessage.cc
  18515. (HandshakeMessage): Moved here from HandshakeMessage.h.
  18516. (create): New function.
  18517. (getMessage): New function.
  18518. (getMessageLength): New function.
  18519. (toString): Added the output of reserved field.
  18520. (check): Added const qualifier.
  18521. (isFastExtensionSupported): New function.
  18522. * src/PeerMessageUtil.h
  18523. (createChokeMessage): Removed.
  18524. (createUnchokeMessage): Removed.
  18525. (createInterestedMessage): Removed.
  18526. (createNotInterestedMessage): Removed.
  18527. (createHaveMessage): Removed.
  18528. (createBitfieldMessage): Removed.
  18529. (createRequestMessage): Removed.
  18530. (createCancelMessage): Removed.
  18531. (createPieceMessage): Removed.
  18532. (createPortMessage): Removed.
  18533. (createChokeMessage): Removed.
  18534. (createUnchokeMessage): Removed.
  18535. (createInterestedMessage): Removed.
  18536. (createNotInterestedMessage): Removed.
  18537. (createHaveMessage): Removed.
  18538. (createBitfieldMessage): Removed.
  18539. (createRequestMessage): Removed.
  18540. (createCancelMessage): Removed.
  18541. (createPieceMessage): Removed.
  18542. (createKeepAliveMessage): Removed.
  18543. (createHandshakeMessage): Removed.
  18544. (setIntParam): New function.
  18545. (createPeerMessageString): New function.
  18546. * src/PeerMessageUtil.cc
  18547. (createChokeMessage): Removed.
  18548. (createUnchokeMessage): Removed.
  18549. (createInterestedMessage): Removed.
  18550. (createNotInterestedMessage): Removed.
  18551. (createHaveMessage): Removed.
  18552. (createBitfieldMessage): Removed.
  18553. (createRequestMessage): Removed.
  18554. (createCancelMessage): Removed.
  18555. (createPieceMessage): Removed.
  18556. (createPortMessage): Removed.
  18557. (createRequestMessage): Removed.
  18558. (createCancelMessage): Removed.
  18559. (createPieceMessage): Removed.
  18560. (createHaveMessage): Removed.
  18561. (createChokeMessage): Removed.
  18562. (createUnchokeMessage): Removed.
  18563. (createInterestedMessage): Removed.
  18564. (createNotInterestedMessage): Removed.
  18565. (createBitfieldMessage): Removed.
  18566. (createKeepAliveMessage): Removed.
  18567. (createHandshakeMessage): Removed.
  18568. (setIntParam): New function.
  18569. (createPeerMessageString): New function.
  18570. * src/PeerConnection.h
  18571. (peer): Removed.
  18572. (torrentMan): Removed.
  18573. (createNLengthMessage): Removed.
  18574. (setIntParam): Removed.
  18575. (writeOutgoingMessageLog): Removed all overloaded functions.
  18576. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18577. (sendMessage): New function.
  18578. (sendHandshake): Removed.
  18579. (sendKeepAlive): Removed.
  18580. (sendChoke): Removed.
  18581. (sendUnchoke): Removed.
  18582. (sendInterested): Removed.
  18583. (sendNotInterested): Removed.
  18584. (sendHave): Removed.
  18585. (sendBitfield): Removed.
  18586. (sendRequest): Removed.
  18587. (sendPiece): Removed.
  18588. (sendPieceHeader): Removed.
  18589. (sendPieceData): Removed.
  18590. (sendCancel): Removed.
  18591. (getPeer): Removed.
  18592. * src/PeerConnection.cc
  18593. (PeerConnection): Deleted peer and torrentMan from its arguments.
  18594. (sendHandshake): Removed.
  18595. (sendKeepAlive): Removed.
  18596. (createNLengthMessage): Removed.
  18597. (setIntParam): Removed.
  18598. (writeOutgoingMessageLog): Removed all overloaded functions.
  18599. (sendChoke): Removed.
  18600. (sendUnchoke): Removed.
  18601. (sendInterested): Removed.
  18602. (sendNotInterested): Removed.
  18603. (sendHave): Removed.
  18604. (sendBitfield): Removed.
  18605. (sendRequest): Removed.
  18606. (sendPiece): Removed.
  18607. (sendPieceHeader): Removed.
  18608. (sendPieceData): Removed.
  18609. (sendMessage): New function.
  18610. (sendCancel): Removed.
  18611. * src/PeerInteractionCommand.cc
  18612. (PeerInteractionCommand): Call setUploadLimit.
  18613. (executeInternal): Call setUploadLimit.
  18614. Added the handling of "inProgress" state of handshake message.
  18615. Call sendBitfield() or sendAllowdFast() instead of deprecated
  18616. sendNow().
  18617. (keepAlive): Call addMessage and sendMessage instead of deprecated
  18618. sendNow().
  18619. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  18620. * src/TorrentMan.h
  18621. (PEER_ID_LENGTH): New definition.
  18622. (hasAllPieces): New function.
  18623. * src/TorrentMan.cc
  18624. (getMissingPiece): Added the handling of fast extension.
  18625. (cancelPiece): Call updatePiece().
  18626. (hasAllPieces): New function.
  18627. * src/PeerInteraction.h
  18628. (fastSet): New variable.
  18629. (getNewPieceAndSendInterest): Changed the return type to void.
  18630. (send): Renamed as sendMessages.
  18631. (deleteAllRequestSlot): Removed.
  18632. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18633. (cancelAllRequest): Removed all overloaded functions.
  18634. (deleteAllRequestSlot): Removed.
  18635. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18636. (rejectPieceMessageInQueue): New function.
  18637. (rejectAllPieceMessageInQueue): New function.
  18638. (onChoked): New function.
  18639. (isSendingMessageInProgress): New function.
  18640. (getCorrespondingRequestSlot): Changed its arguments.
  18641. (isInFastSet): New function.
  18642. (addFastSetIndex): New function.
  18643. (addRequests): New function.
  18644. (sendNow): Removed.
  18645. (trySendNow): Removed.
  18646. (sendBitfield): New function.
  18647. (sendAllowdFast): New function.
  18648. (createHaveAllMessage): New function.
  18649. (createHaveNoneMessage): New function.
  18650. (createRejectMessage): New function.
  18651. (createAllowedFastMessage): New function.
  18652. * src/PeerInteraction.cc
  18653. (send): Renamed as sendMessages.
  18654. (sendMessages): New function.
  18655. (MsgPushBack): New class.
  18656. (isSendingMessageInProgress): New function.
  18657. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  18658. (rejectAllPieceMessageInQueue): New function.
  18659. Added the handling of fast extension.
  18660. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  18661. (rejectPieceMessageInQueue): New function.
  18662. Added the handling of fast extension.
  18663. (deleteRequestSlot): Replaced for loop with std::find.
  18664. (onChoked): New function.
  18665. (deleteAllRequestSlot): Removed.
  18666. (abortPiece): Rewirtten.
  18667. (deleteTimeoutRequestSlot): Updated log messages.
  18668. (getCorrespondingRequestSlot): Changed its arguments.
  18669. (cancelAllRequest): Removed all overloaded functions.
  18670. (receiveHandshake): Added the check to see whether an incoming peer
  18671. supports fast extension.
  18672. (createHandshakeMessage): Use HandshakeMessage::create instead of
  18673. PeerMessageUtil.
  18674. (createPeerMessage): Use create() of each message class instead of
  18675. PeerMessageUtil.
  18676. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  18677. AllowedFastMessage were added.
  18678. (getNewPieceAndSendInterest): Changed its return value type to void.
  18679. Added the handling of fast extension.
  18680. (addRequests): New function.
  18681. (sendNow): Removed.
  18682. (sendHandshake): Rewritten.
  18683. (trySendNow): Removed.
  18684. (sendBitfield): New function.
  18685. (sendAllowdFast): New function.
  18686. (isInFastSet): New function.
  18687. (addFastSetIndex): New function.
  18688. (createRequestMessage): Use RequestMessage::create instead of
  18689. PeerMessageUtil.
  18690. (createCancelMessage): Use CancelMessage::create instead of
  18691. PeerMessageUtil.
  18692. (createPieceMessage): Use PieceMessage::create instead of
  18693. PeerMessageUtil.
  18694. (createHaveMessage): Use HaveMessage::create instead of
  18695. PeerMessageUtil.
  18696. (createChokeMessage): Use ChokeMessage::create instead of
  18697. PeerMessageUtil.
  18698. (createUnchokeMessage): Use UnchokeMessage::create instead of
  18699. PeerMessageUtil.
  18700. (createInterestedMessage): Use InterestedMessage::create instead of
  18701. PeerMessageUtil.
  18702. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  18703. of PeerMessageUtil.
  18704. (createBitfieldMessage): Use BitfieldMessage::create instead of
  18705. PeerMessageUtil.
  18706. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  18707. PeerMessageUtil.
  18708. (createHaveAllMessage): New function.
  18709. (createHaveNoneMessage): New function.
  18710. (createRejectMessage): New function.
  18711. (createAllowedFastMessage: New function.
  18712. * src/Util.h
  18713. (sha1Sum): New function.
  18714. (computeFastSet): New function.
  18715. * src/Util.cc
  18716. (sha1Sum): New function.
  18717. (computeFastSet): New function.
  18718. * src/Peer.h
  18719. (fastExtensionEnabled): New variable.
  18720. (fastSet): New variable.
  18721. (setAllBitfield): New function.
  18722. (setFastExtensionEnabled): New function.
  18723. (isFastExtensionEnabled): New function.
  18724. (addFastSetIndex): New function.
  18725. (getFastSet): New function.
  18726. (isInFastSet): New function.
  18727. (countFastSet): New function.
  18728. * src/Peer.cc
  18729. (isInFastSet): New function.
  18730. (addFastSetIndex): New function.
  18731. (setAllBitfield): New function.
  18732. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  18733. sockets.
  18734. * src/PeerAbstractCommand.cc
  18735. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  18736. and uploadLimit.
  18737. (execute): Changed the procedure of checking sockets. The upload speed
  18738. checking were added.
  18739. (setUploadLimit): New function.
  18740. (setUploadLimitCheck): New function.
  18741. * src/PeerAbstractCommand.h
  18742. (setUploadLimit): New function.
  18743. (setUploadLimitCheck): New function.
  18744. (uploadLimit): New variable.
  18745. (uploadLimitCheck): New variable.
  18746. To contact a tracker regularly:
  18747. * src/TrackerWatcherCommand.h (interval): New variable.
  18748. (checkPoint): New variable.
  18749. (TrackerWatcherCommand): Added interval argument.
  18750. * src/TrackerWatcherCommand.cc
  18751. (TrackerWatcherCommand): Initialized checkPoint.
  18752. (execute): Now a tracker is contacted in every specified period.
  18753. If peer list is not needed, send request with numwant=0.
  18754. * src/TrackerUpdateCommand.cc
  18755. (execute): Updated log messages.
  18756. * src/DownloadEngine.cc
  18757. (~DownloadEngine): Removed two asserts.
  18758. (waitData): Uncommented wfds. May be a bug fix.
  18759. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18760. * src/PeerInteractionCommand.h
  18761. (checkInactiveConnection): Removed.
  18762. * src/PeerInteractionCommand.cc
  18763. (executeInternal): Removed following function calls:
  18764. detectMessageFlooding(), checkLongTimePeerChoking and
  18765. checkInactiveConnection().
  18766. (checkInactiveConnection): Removed.
  18767. (detectMessageFlooding): Removed function call to
  18768. checkInactiveConnection().
  18769. * src/PeerMessageUtil.h
  18770. (createChokeMessage): New function. Overload.
  18771. (createUnchokeMessage): New function. Overload.
  18772. (createInterestedMessage): New function. Overload.
  18773. (createNotInterestedMessage): New function. Overload.
  18774. (createHaveMessage): New function. Overload.
  18775. (createBitfieldMessage): New function. Overload.
  18776. (createRequestMessage): New function. Overload.
  18777. (createCancelMessage): New function. Overload.
  18778. (createPieceMessage): New function. Overload.
  18779. (createKeepAliveMessage): New function. Overload.
  18780. * src/PeerMessageUtil.cc
  18781. (createChokeMessage): New function. Overload.
  18782. (createUnchokeMessage): New function. Overload.
  18783. (createInterestedMessage): New function. Overload.
  18784. (createNotInterestedMessage): New function. Overload.
  18785. (createHaveMessage): New function. Overload.
  18786. (createBitfieldMessage): New function. Overload.
  18787. (createRequestMessage): New function. Overload.
  18788. (createCancelMessage): New function. Overload.
  18789. (createPieceMessage): New function. Overload.
  18790. (createKeepAliveMessage): New function. Overload.
  18791. * src/SendMessageQueue.cc
  18792. (createRequestMessage): Use PeerMessageUtil.
  18793. (createCancelMessage): Use PeerMessageUtil.
  18794. (createPieceMessage): Use PeerMessageUtil.
  18795. (createHaveMessage): Use PeerMessageUtil.
  18796. (createChokeMessage): Use PeerMessageUtil.
  18797. (createUnchokeMessage): Use PeerMessageUtil.
  18798. (createInterestedMessage): Use PeerMessageUtil.
  18799. (createNotInterestedMessage): Use PeerMessageUtil.
  18800. (createBitfieldMessage): Use PeerMessageUtil.
  18801. (createKeepAliveMessage): Use PeerMessageUtil.
  18802. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  18803. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  18804. * src/PeerInteraction.h: New class.
  18805. * src/PeerInteraction.cc: New class.
  18806. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18807. Each peer message has its own class.
  18808. * src/PendingMessages.h: Removed.
  18809. * src/PendingMessages.cc: Removed. The sending process was moved to
  18810. each message class.
  18811. * src/RequestSlotMan.h: Removed.
  18812. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  18813. SendMessageQueue.
  18814. * src/RequestMessage.h: New class.
  18815. * src/RequestMessage.cc: New class.
  18816. * src/CancelMessage.h: New class.
  18817. * src/CancelMessage.cc: New class.
  18818. * src/BitfieldMessage.h: New class.
  18819. * src/BitfieldMessage.cc: New class.
  18820. * src/ChokeMessage.h: New class.
  18821. * src/ChokeMessage.cc: New class.
  18822. * src/KeepAliveMessage.h: New class.
  18823. * src/KeepAliveMessage.cc: New class.
  18824. * src/PortMessage.h: New class.
  18825. * src/UnchokeMessage.h: New class.
  18826. * src/UnchokeMessage.cc: New class.
  18827. * src/PieceMessage.h: New class.
  18828. * src/PieceMessage.cc: New class.
  18829. * src/HaveMessage.h: New class.
  18830. * src/HaveMessage.cc: New class.
  18831. * src/BitfieldMessage.h: New class.
  18832. * src/BitfieldMessage.cc: New class.
  18833. * src/NotInterestedMessage.h: New class.
  18834. * src/NotInterestedMessage.cc: New class.
  18835. * src/InterestedMessage.h: New class.
  18836. * src/InterestedMessage.cc: New class.
  18837. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  18838. (getSendMessageQueue): New function.
  18839. (setSendMessageQueue): New function.
  18840. * src/HandshakeMessage.cc: New class.
  18841. * src/PeerConnection.h (receiveMessage): Changed return value and
  18842. arguments.
  18843. (receiveHandshake): Changed return value and arguments.
  18844. * src/PeerConnection.cc (receiveMessage): Do not create message class
  18845. here.
  18846. (receiveHandshake): Do not create handshake class here.
  18847. * src/PeerInteractionCommand.h (peerConnection): Removed.
  18848. (piece): Removed.
  18849. (syncPiece): Removed.
  18850. (sendInterest): Removed.
  18851. (sendMessages): Removed.
  18852. (createRequestPendingMessage): Removed.
  18853. (checkPieceHash): Removed.
  18854. (erasePieceOnDisk): Removed.
  18855. (getNewPieceAndSendInterest): Removed.
  18856. (onGotNewPice): Removed.
  18857. (onGotWrongPiece): Removed.
  18858. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18859. Removed peerConnection, piece.
  18860. (~PeerInteractionCommand): Removed peerConnection.
  18861. (executeInternal): Use sendMessageQueue instead of peerConnection.
  18862. (syncPiece): Moved to SendMessageQueue.
  18863. (decideChoking): Removed PendingMessage.
  18864. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  18865. The action after receiving peer message was moved to each message
  18866. class.
  18867. (onGotNewPice): Moved to SendMessageQueue.
  18868. (onGotWrongPiece): Moved to SendMessageQueue.
  18869. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  18870. (sendInterest): Moved to SendMessageQueue.
  18871. (createRequestPendingMessage): Removed.
  18872. (sendMessages): Moved to SendMessageQueue.
  18873. (onAbort): Use SendMessageQueue::abortPiece()
  18874. (keepAlive): Use sendMessageQueue instead of peerConnection.
  18875. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  18876. (checkPieceHash): Moved to SendMessageQueue.
  18877. (erasePieceOnDisk): Moved to SendMessageQueue.
  18878. * src/PeerMessageUtil.h
  18879. (createBitfieldMessage): Removed.
  18880. (createHaveMessage): Changed return value and arguments.
  18881. (createBitfieldMessage): Changed return value and arguments.
  18882. (createRequestCancelMessage): Removed.
  18883. (createPieceMessage): Changed return value and arguments.
  18884. (getShortIntParam): New function.
  18885. (checkIndex): Changed arguments.
  18886. (checkBegin): Changed arguments.
  18887. (checkLength): Changed arguments.
  18888. (checkPieceOffset): Removed.
  18889. (checkRange): New function.
  18890. (checkBitfield): Changed arguments.
  18891. (createPeerMessage): Removed.
  18892. (checkIntegrity): Removed.
  18893. (createHandshakeMessage): Changed arguments.
  18894. (createChokeMessage): New function.
  18895. (createUnchokeMessage): New function.
  18896. (createInterestedMessage): New function.
  18897. (createNotInterestedMessage): New function.
  18898. (createRequestMessage): New function.
  18899. (createCancelMessage): New function.
  18900. (createPortMessage): New function.
  18901. * src/PeerMessageUtil.cc
  18902. (createBitfieldMessage): Removed.
  18903. (createHaveMessage): Changed return value and arguments.
  18904. (createBitfieldMessage): Changed return value and arguments.
  18905. (createRequestCancelMessage): Removed.
  18906. (createPieceMessage): Changed return value and arguments.
  18907. (getShortIntParam): New function.
  18908. (checkIndex): Changed arguments.
  18909. (checkBegin): Changed arguments.
  18910. (checkLength): Changed arguments.
  18911. (checkPieceOffset): Removed.
  18912. (checkRange): New function.
  18913. (checkBitfield): Changed arguments.
  18914. (createPeerMessage): Removed.
  18915. (checkIntegrity): Removed.
  18916. (createHandshakeMessage): Changed arguments.
  18917. (createChokeMessage): New function.
  18918. (createUnchokeMessage): New function.
  18919. (createInterestedMessage): New function.
  18920. (createNotInterestedMessage): New function.
  18921. (createRequestMessage): New function.
  18922. (createCancelMessage): New function.
  18923. (createPortMessage): New function.
  18924. * src/PeerMessage.h
  18925. (id): Removed.
  18926. (index): Removed.
  18927. (begin): Removed.
  18928. (length): Removed.
  18929. (bitfield): Removed.
  18930. (bitfieldLength): Removed.
  18931. (block): Removed.
  18932. (blockLength): Removed.
  18933. (inProgress): New variable.
  18934. (cuid): New variable.
  18935. (peer): New variable.
  18936. (sendMessageQueue): New variable.
  18937. (logger): New variable.
  18938. (setBitfield): Removed.
  18939. (getBitfield): Removed.
  18940. (setBlock): Removed.
  18941. (getBlock): Removed.
  18942. (getBitfieldLength): Removed.
  18943. (getBlockLength): Removed.
  18944. (isInProgress): New function.
  18945. (toString): Made pure virtual.
  18946. (check): New function.
  18947. (send): New function.
  18948. (receivedAction): New function.
  18949. (getId): Made pure virtual.
  18950. (setId): Removed.
  18951. (getIndex): Removed.
  18952. (setIndex): Removed.
  18953. (getBegin): Removed.
  18954. (setBegin): Removed.
  18955. (getLength): Removed.
  18956. (setLength): Removed.
  18957. (getCuid): New function.
  18958. (setCuid): New function.
  18959. (getPeer): New function.
  18960. (setPeer): New function.
  18961. (getSendMessageQueue): New function.
  18962. (setSendMessageQueue): New function.
  18963. (ID): Removed.
  18964. * src/PeerMessage.cc
  18965. (setBitfield): Removed.
  18966. (setBlock): Removed.
  18967. (toString): Removed.
  18968. * src/TorrentMan.h
  18969. (getPieceLength): New function.
  18970. (getPieceLength): New function.
  18971. * src/SendMessageQueue.h
  18972. (REQUEST_TIME_OUT): New definition.
  18973. (RequestSlots): New definition.
  18974. (MessageQueue): New definition.
  18975. (requestSlotMan): Removed.
  18976. (pendingMessages): Removed.
  18977. (requestSlots): New variable.
  18978. (messageQueue): New variable.
  18979. (torrentMan): New variable.
  18980. (peerConnection): New variable.
  18981. (peer): New variable.
  18982. (piece): New variable.
  18983. (getNewPieceAndSendInterest): New function.
  18984. (createPeerMessage): New function.
  18985. (createHandshakeMessage): New function.
  18986. (send): Made private.
  18987. (setPeerMessageCommonProperty): New function.
  18988. (deleteAllRequestSlot): New function.
  18989. (deleteRequestMessageInQueue): New function.
  18990. (cancelAllRequest): Made private.
  18991. (cancelAllRequest): Made private.
  18992. (countRequestSlot): Made private.
  18993. (addPendingMessage): Removed.
  18994. (deletePendingPieceMessage): Removed.
  18995. (deletePendingRequestMessage): Removed.
  18996. (addMessage): New function.
  18997. (deletePieceMessageInQueue): New function.
  18998. (deleteTimeoutRequestSlot): Changed argument.
  18999. (deleteCompletedRequestSlot): Changed argument.
  19000. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  19001. (getCorrespondingRequestSlot): New function.
  19002. (countPendingMessage): Removed.
  19003. (countMessageInQueue): New function.
  19004. (getTorrentMan): New function.
  19005. (getPeerConnection): New function.
  19006. (hasDownloadPiece): New function.
  19007. (getDownloadPiece): New function.
  19008. (setDownloadPiece): New function.
  19009. (syncPiece): New function.
  19010. (sendMessages): New function.
  19011. (sendNow): New function.
  19012. (trySendNow): New function.
  19013. (abortPiece): New function.
  19014. (sendHandshake): New function.
  19015. (receiveMessage): New function.
  19016. (receiveHandshake): New function.
  19017. (createRequestMessage): New function.
  19018. (createCancelMessage): New function.
  19019. (createPieceMessage): New function.
  19020. (createHaveMessage): New function.
  19021. (createChokeMessage): New function.
  19022. (createUnchokeMessage): New function.
  19023. (createInterestedMessage): New function.
  19024. (createNotInterestedMessage): New function.
  19025. (createBitfieldMessage): New function.
  19026. (createKeepAliveMessage): New function.
  19027. * src/SendMessageQueue.cc
  19028. (SendMessageQueue): Removed requestSlotMan.
  19029. Instantiated peerConnection here.
  19030. (~SendMessageQueue): Removed requestSlotMan.
  19031. Added deletion of peerConnection and the contents of messageQueue.
  19032. (send): Updated according to the change of messageQueue.
  19033. (addPendingMessage): Renamed to addMessage.
  19034. (addMessage): New function.
  19035. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  19036. (deletePieceMessageInQueue): New function.
  19037. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  19038. (deleteRequestMessageInQueue): New function.
  19039. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  19040. here.
  19041. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  19042. (...) was moved here.
  19043. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  19044. moved here.
  19045. (deleteCompletedRequestSlot):
  19046. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  19047. (getCorrespondingRequestSlot):
  19048. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  19049. And renamed to getCorrespondingRequestSlot, correcting a typo.
  19050. (countPendingMessage): Renamed to countMessageInQueue.
  19051. (countMessageInQueue): New function.
  19052. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  19053. (receiveHandshake): New function.
  19054. (createHandshakeMessage): New function.
  19055. (receiveMessage): New function.
  19056. (createPeerMessage): New function.
  19057. (syncPiece): New function.
  19058. (getNewPieceAndSendInterest): New function.
  19059. (sendMessages): New function.
  19060. (sendNow): New function.
  19061. (trySendNow): New function.
  19062. (sendHandshake): New function.
  19063. (abortPiece): New function.
  19064. (getDownloadPiece): New function.
  19065. (getPeerMessageCommonProperty): New function.
  19066. (createRequestMessage): New function.
  19067. (createCancelMessage): New function.
  19068. (createPieceMessage): New function.
  19069. (createHaveMessage): New function.
  19070. (createChokeMessage): New function.
  19071. (createUnchokeMessage): New function.
  19072. (createInterestedMessage): New function.
  19073. (createNotInterestedMessage): New function.
  19074. (createBitfieldMessage): New function.
  19075. (createKeepAliveMessage): New function.
  19076. To add simple Content-Disposition support:
  19077. * src/HttpResponseCommand.h (determinFilename): New function.
  19078. * src/HttpResponseCommand.cc (executeInternal):
  19079. Use determinFilename(headers) instead of req->getFile() when comparing
  19080. filename.
  19081. (determinFilename): New function.
  19082. (handleDefaultEncoding): Use determinFilename(headers) instead of
  19083. req->getFile().
  19084. (handleOtherEncoding): Use determinFilename(headers) instead of
  19085. req->getFile().
  19086. * src/Util.h (getContentDispositionFilename): New function.
  19087. * src/Util.cc (getContentDispositionFilename): New function.
  19088. * src/LogFactory.h (release): New function.
  19089. * src/LogFactory.cc (release): New function.
  19090. To fix a bug that causes out-of-bound exception when HTTP status
  19091. line is wrong:
  19092. * src/HttpConnection.cc (receiveResponse): Added a check for header
  19093. size.
  19094. * src/common.h (Deleter): New class.
  19095. * src/SegmentMan.cc
  19096. (~SegmentMan): Added deletion of splitter and diskWriter.
  19097. * src/DownloadEngine.h
  19098. (Commands): Use deque.
  19099. (clearQueue): New function.
  19100. * src/DownloadEngine.cc
  19101. (~DownloadEngine): Added deletion of segmentMan.
  19102. (cleanQueue): New function.
  19103. * src/TorrentDownloadEngine.h
  19104. (TorrentDownloadEngine): The implementation was moved to
  19105. TorrentDownloadEngine.cc.
  19106. (~TorrentDownloadEngine): The implementation was moved to
  19107. TorrentDownloadEngine.cc.
  19108. * src/TorrentDownloadEngine.cc
  19109. (~TorrentDownloadEngine): Added deletion of torrentMan.
  19110. * src/main.cc
  19111. (clearRequest): Removed.
  19112. (handler): Added deletion of e.
  19113. (torrentHandler): Added deletion of te.
  19114. (main): Do not share splitter.
  19115. Use Deleter instead of clearRequest.
  19116. Deletion of classes were updated.
  19117. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19118. * src/main.cc (main): Fixed typo.
  19119. * src/message.h: Fixed typo.
  19120. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  19121. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19122. To add --select-file command-line option:
  19123. * src/Util.cc
  19124. (unfoldRange): New function.
  19125. (getNum): New function.
  19126. (unfoldSubRange): New function
  19127. * src/main.cc
  19128. (showUsage): Added help message.
  19129. (main): Added --select-file command-line option. Updated the layout of
  19130. file listing.
  19131. * src/common.h
  19132. (Integers): New definition.
  19133. * src/SocketCore.cc
  19134. (writeData): Removed timeout argument.
  19135. (readData): Removed timeout argument.
  19136. (peekData): Removed timeout argument.
  19137. * src/Socket.cc
  19138. (writeData): Removed timeout argument.
  19139. (readData): Removed timeout argument.
  19140. (peekData): Removed timeout argument.
  19141. * Release 0.4.1
  19142. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19143. To deploy upload rate based choking algorithm:
  19144. * src/PeerInteractionCommand.cc
  19145. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  19146. peer currently used.
  19147. (decideChoking): Deleted the choke/unchoke decision algorithm when
  19148. download completes. Simplified.
  19149. (receiveMessage): Updated.
  19150. * src/TorrentMan.h
  19151. (activePeers): New variable.
  19152. (addActivePeer): New function.
  19153. (getActivePeers): New function.
  19154. (deleteActivePeer): New function.
  19155. * src/TorrentMan.cc
  19156. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  19157. * src/PeerAbstractCommand.cc
  19158. (onAbort): Use peer->resetStatus().
  19159. * src/main.cc
  19160. (PeerChokeCommand.h): Included.
  19161. (main): Added the instance of ChokingCommand to the command queue.
  19162. * src/Peer.h
  19163. (amChoking): Renamed from amChocking
  19164. (chokingRequired): New variable.
  19165. (optUnchoking): New variable.
  19166. (deltaUpload): New variable.
  19167. (deltaDownload): New variable.
  19168. (addDeltaUpload): New function.
  19169. (resetDeltaUpload): New function.
  19170. (addDeltaDownload): New function.
  19171. (resetDeltaDownload): New function.
  19172. (addPeerUpload): Added a call to addDeltaUpload.
  19173. (addPeerDownload): Added a call to addDeltaDownload.
  19174. * src/Peer.cc
  19175. (shouldBeChoking): Renamed from shouldChoke.
  19176. (resetStatus): New function.
  19177. * src/PeerChokeCommand.h: New class.
  19178. * src/PeerChokeCommand.cc: New class.
  19179. To add lazy upload speed limiter:
  19180. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  19181. statistics calculation to TorrentDownloadEngine.
  19182. * src/TorrentConsoleDownloadEngine.cc
  19183. (sendStatistics): Renamed from printStatistics.
  19184. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  19185. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  19186. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  19187. * src/TorrentDownloadEngine.h: Added the variables for statistics
  19188. calculation.
  19189. (sendStatistics): New function as pure virtual function.
  19190. (getUploadSpeed): New function.
  19191. * src/TorrentDownloadEngine.cc
  19192. (initStatistics): New function.
  19193. (calculateSpeed): New function.
  19194. (calculateStatistics): New function.
  19195. * src/SendMessageQueue.h
  19196. (uploadLength): New variable.
  19197. (send): Added an argument.
  19198. (setUploadLimit): New function.
  19199. (getUploadLimit): New function.
  19200. * src/SendMessageQueue.cc
  19201. (send): Added upload speed limiter.
  19202. * src/prefs.h
  19203. (PREF_UPLOAD_LIMIT): New definition.
  19204. * src/PeerInteractionCommand.cc
  19205. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  19206. * src/main.cc
  19207. (main): Added --upload-limit option
  19208. For bug fixes:
  19209. * src/main.cc
  19210. (showUsage): Corrected --listen-port help
  19211. Other changes:
  19212. * src/TorrentMan.cc
  19213. (getPeer): Return nullPeer if connection is grather than
  19214. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  19215. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19216. To add some useful information to the exception message:
  19217. * src/SocketCore.cc : Updated messages.
  19218. * src/SegmentMan.cc :
  19219. * src/TorrentMan.cc : Updated messages.
  19220. * src/MultiDiskWriter.cc : Updated messages.
  19221. * src/Util.cc : Updated messages.
  19222. * src/AbstractDiskWriter.cc : Updated messages.
  19223. * src/PreAllocationDiskWriter.cc : Updated messages.
  19224. * src/message.cc : Added new messages. Updated some messages.
  19225. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  19226. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  19227. Updated threshold from 30 to 15.
  19228. * src/AbstractDiskWriter.h (filename): New variable.
  19229. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  19230. (createFile): Assigned filename.
  19231. * src/main.cc: Updated the help message for http-auth-scheme.
  19232. * Release 0.4.0
  19233. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19234. To add TrackerUpdateCommand with which replaces
  19235. CompactTrackerResponseProcessor:
  19236. * src/TrackerWatcherCommand.h (req): Removed.
  19237. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  19238. if the number of peer connections are less than 30.
  19239. * src/ByteArrayDiskWriter.h (readData): Implemented.
  19240. * src/SegmentMan.h (diskWriter): New function.
  19241. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  19242. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  19243. (main): Use TrackerUpdateCommand.
  19244. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  19245. (req): New variable.
  19246. (setTrackerResponseProcessor): Removed.
  19247. (getTrackerResponseProcessor): Removed.
  19248. (processTrackerResponse): Removed.
  19249. * src/DownloadEngine.h (diskWriter): Removed.
  19250. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  19251. to torrentMan->processTrackerResponse().
  19252. To add Util::expandBuffer:
  19253. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  19254. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  19255. * src/Util.h (expandBuffer): New function.
  19256. To fix the bug that causes segmentation fault when "-l ." is specified
  19257. in command-line option:
  19258. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  19259. (openFile): New function.
  19260. (closeFile): New function.
  19261. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  19262. (~SimpleLogger): Call closeFile();
  19263. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  19264. * src/main.cc (main): Added a check to see logger is configured
  19265. properly.
  19266. To enable HTTP authentication without specifying "--http-auth-scheme"
  19267. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  19268. * src/HttpConnection.cc (createRequest): Send Authorization header
  19269. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  19270. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  19271. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  19272. * src/Peer.cc (shouldChoke): Updated algorithm.
  19273. * src/message.h (EX_AUTH_FAILED): New definition.
  19274. (EX_FILE_OPEN): New definition.
  19275. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  19276. if status == 401.
  19277. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  19278. if req->isTorrent == true.
  19279. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  19280. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  19281. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  19282. (createFile): Updated message.
  19283. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19284. To add a readout of estimated remaining time to normal HTTP/FTP
  19285. downloads:
  19286. * src/ConsoleDownloadEngine.h (startup): New variable.
  19287. (startupLength): New variable.
  19288. (isStartupLengthSet): New variable.
  19289. (avgSpeed): New variable.
  19290. (eta): New variable.
  19291. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  19292. estimated remaining time.
  19293. (initStatistics): Initialized newly added variables.
  19294. (calculateStatistics): Calculate average speed and estimated remaining
  19295. time.
  19296. To decouple TorrentDownloadEngine from HttpResponseCommand:
  19297. * src/TrackerDownloadCommand.h: Removed.
  19298. * src/TrackerDownloadCommand.cc: Removed.
  19299. * src/TrackerInitCommand.h: Removed.
  19300. * src/TrackerInitCommand.cc: Removed.
  19301. * src/TrackerUpdateCommand.h: Removed.
  19302. * src/TrackerUpdateCommand.cc: Removed.
  19303. * src/TrackerWatcherCommand.cc (execute): The construction of request
  19304. url written in TrackerInitCommand was moved here. Do not create
  19305. tracker request command if torrentMan->trackers != 0.
  19306. * src/CompactTrackerResponseProcessor.h: New class.
  19307. * src/CompactTrackerResponseProcessor.cc: New class.
  19308. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  19309. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  19310. Decoupled TorrentDownloadEngine from this.
  19311. * src/SegmentMan.h (init): New function.
  19312. * src/SegmentMan.cc (init): New function.
  19313. * src/TorrentMan.h (responseProcessor): New variable.
  19314. (trackers): New variable.
  19315. (setTrackerResponseProcessor): New function.
  19316. (getTrackerResponseProcessor): New function.
  19317. (processTrackerResponse): New function.
  19318. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  19319. (processTrackerResponse): New function.
  19320. * src/main.cc (main): Use ByteArrayDiskWriter and
  19321. CompactTrackerResponseProcessor.
  19322. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  19323. processTrackerResponse().
  19324. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  19325. readout.
  19326. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  19327. which indicates download has completed.
  19328. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  19329. (closeFile): fd >= 0, not fd > 0
  19330. * src/main.cc (main): Added short cut for show-files.
  19331. Added short cut for torrent-file.
  19332. Added new command-line option listen-port.
  19333. Updated i18n messages.
  19334. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19335. To add LogFactory which creates singleton logger:
  19336. * src/LogFactory.h: New class.
  19337. * src/LogFactory.cc: New class.
  19338. * src/Command.h (logger): New variable.
  19339. (Constructor): Use LogFactory.
  19340. * src/AbstractCommand.cc: Use Command::logger
  19341. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  19342. Use LogFactory.
  19343. * src/SegmentSplitter.h : Made logger protected.
  19344. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  19345. * src/SegmentMan.cc (Constructor): Use LogFactory.
  19346. * src/DownloadEngine.h : Made logger protected.
  19347. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  19348. * src/PeerInteractionCommand.cc : Use Command::logger.
  19349. * src/HttpResponseCommand.cc : Use Command::logger.
  19350. * src/SegmentMan.h : Made logger private.
  19351. * src/TorrentMan.h : Made logger private.
  19352. * src/TorrentMan.cc : Use LogFactory.
  19353. * src/FtpNegotiateCommand.cc : Use Command::logger.
  19354. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  19355. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  19356. Use LogFactory.
  19357. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  19358. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  19359. Use LogFactory.
  19360. * src/DownloadCommand.cc : Use Command::logger.
  19361. * src/PeerAbstractCommand.cc : Use Command::logger.
  19362. * src/PeerListenCommand.cc : Use Command::logger.
  19363. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  19364. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  19365. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  19366. * src/TrackerWatcherCommand.cc : Use Command::logger.
  19367. * src/TrackerUpdateCommand.cc : Use Command::logger.
  19368. * src/TrackerDownloadCommand.cc : Use Command::logger.
  19369. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  19370. Use LogFactory.
  19371. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  19372. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  19373. Use LogFactory.
  19374. * src/main.cc (main): Use LogFactory.
  19375. * src/DiskAdaptor.h (logger): New variable.
  19376. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  19377. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  19378. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19379. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  19380. parameter to a tracker request.
  19381. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  19382. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  19383. * src/main.cc (setSignalHander): New function.
  19384. (main): Added a handler for SIGTERM.
  19385. (handler): Updated message.
  19386. (torrentHandler): Updated message.
  19387. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19388. * src/TorrentConsoleDownloadEngine.cc
  19389. (onPartialDownloadingCompletes): Renamed as
  19390. onSelectiveDownloadingCompletes.
  19391. (onSelectiveDownloadingCompletes): Updated message.
  19392. To add DiskAdaptor which abstract DiskWriter family:
  19393. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  19394. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  19395. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  19396. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  19397. MultiDiskAdaptor.h.
  19398. (readFileEntry): Changed its arguments.
  19399. (setup): setupDiskWriter is merged into this function.
  19400. (setupDiskWriter): Removed.
  19401. (setFileFilter): New function.
  19402. (readFileEntryFromMetaInfoFile): Updated according to the changes
  19403. made in readFileEntry.
  19404. (getFilePath): Removed.
  19405. (getTempFilePath): Removed.
  19406. (getSegmentFilePath): Updated due to the removal of getFilePath.
  19407. (fixFilename): Removed.
  19408. (copySingleFile): Removed.
  19409. (splitMultiFile): Removed.
  19410. (deleteTempFile): Removed.
  19411. (setFileEntriesToDownload): Removed.
  19412. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  19413. (isSelectiveDownloadingMode): New function.
  19414. (setAllMultiFileRequestedState): Removed.
  19415. (finishPartialDownloadingMode): Renamed as
  19416. finishSelectiveDownloadingMode.
  19417. (finishSelectiveDownloadingMode): New function.
  19418. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  19419. (getSelectedTotalLength): New function.
  19420. (onDownloadComplete): Use diskAdaptor.
  19421. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  19422. (Range): Removed.
  19423. (setMultiFileEntries): Renamed as setFileEntries.
  19424. (setFileEntries): New function.
  19425. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  19426. (pieceLength): New variable.
  19427. * src/main.cc (printDownloadCompeleteMessage): New function.
  19428. (torrentHandler): Use diskAdaptor instead of diskWriter.
  19429. (main): Renamed torrent-show-files to show-files.
  19430. Rewritten file contents listing.
  19431. * src/TorrentMan.h (FileEntry): Removed.
  19432. (multiFileTopDir): Removed.
  19433. (multiFileEntries): Removed.
  19434. (diskWriter): Removed.
  19435. (diskAdaptor): New variable.
  19436. * src/DefaultDiskWriter.h (totalLength): New variable.
  19437. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  19438. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  19439. diskWriter.
  19440. * src/TorrentConsoleDownloadEngine.h
  19441. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  19442. (partialTotalLength): Renamed as selectedTotalLength.
  19443. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  19444. openExistingFile, otherwise call initAndOpenFile.
  19445. (closeFile): fd > 0, not fd != 0.
  19446. * src/DirectDiskAdaptor.h: New class.
  19447. * src/DirectDiskAdaptor.cc: New class.
  19448. * src/MultiDiskAdaptor.h: New class.
  19449. * src/MultiDiskAdaptor.cc: New class.
  19450. * src/CopyDiskAdaptor.h: New class.
  19451. * src/CopyDiskAdaptor.cc: New class.
  19452. * src/DiskAdaptor.h: New class.
  19453. * src/DiskAdaptor.cc: New class.
  19454. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  19455. (PREF_SHOW_FILES): New definition.
  19456. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19457. To add the ability to download multi torrent into respective files
  19458. directly:
  19459. * src/DiskWriter.h (openFile): New function.
  19460. (seek): Removed.
  19461. * src/MultiDiskWriter.h: New class.
  19462. * src/MultiDiskWriter.cc: New class.
  19463. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  19464. protected.
  19465. (openFile): New function.
  19466. * src/AbstractDiskWriter.cc (openFile): New function.
  19467. * src/prefs.h (V_FALSE): New definition.
  19468. (PREF_DIRECT_FILE_MAPPING): New definition.
  19469. * src/TorrentMan.h (setupDiskWriter): New function.
  19470. (setAllMultiFileRequestedState): New function.
  19471. (onDownloadComplete): New function.
  19472. * src/TorrentMan.cc : Included MultiDiskWriter.h
  19473. (setupDiskWriter): New function.
  19474. (getFilePath): Updated.
  19475. (getTempFilePath): Updated.
  19476. (getSegmentFilePath): Updated.
  19477. (fixFilename): Updated.
  19478. (deleteTempFile): Updated.
  19479. (setAllMultiFileRequestedState): New function.
  19480. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  19481. (finishPartialDownloadingMode): Reset requested flags.
  19482. (onDownloadComplete): New function.
  19483. * src/main.cc: Added --direct-file-mapping option.
  19484. Use TorrentMan::setupDiskWriter().
  19485. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  19486. onDownloadComplete().
  19487. To fix ETA bug:
  19488. * src/Util.h (difftvsec): New function.
  19489. * src/Util.cc (difftvsec): New function.
  19490. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  19491. type of "elapsed" instead of long long int.
  19492. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  19493. The updates of statistics takes place every 1 seconds.
  19494. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  19495. (calculateSpeed): Changed its argument signature.
  19496. * src/PeerMessage.cc (toString): Fixed message.
  19497. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19498. To print ETA:
  19499. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  19500. completion handling when dealing with
  19501. TorrentMan::isPartialDownloadingMode() == true.
  19502. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  19503. New function.
  19504. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  19505. (sessionDownloadLength): New variable.
  19506. (avgSpeed): New variable.
  19507. (eta): New variable.
  19508. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  19509. new variables: eta, avgSpeed, startup.
  19510. (calculateSpeed): Calculate average speed and ETA.
  19511. (printStatistics): Added ETA.
  19512. * src/Util.h (secfmt): New function.
  19513. * src/Util.cc (secfmt): New function.
  19514. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19515. To detect "keep alive" flooding:
  19516. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  19517. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  19518. variable: keepAliveCount.
  19519. (detectMessageFlooding): Added "keep alive" flooding detection.
  19520. (receiveMessage): Increase keepAliveCount when "keep alive" message
  19521. received.
  19522. To add the ability to download only specified files in multi-file
  19523. torrent:
  19524. * src/BitfieldMan.h (filterBitfield): New variable.
  19525. (filterEnabled): New variable.
  19526. (setFilterBit): New function.
  19527. (enableFilter): New function.
  19528. (disableFilter): New function.
  19529. (isFilterEnabled): New function.
  19530. (getFilteredTotalLength): New function.
  19531. (getCompletedLength): New function.
  19532. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  19533. filterBitfield, filterEnabled.
  19534. (CopyConstructor): Added filterBitfield and filterEnabled.
  19535. (operator==): Added filterBitfield and filterEnabled.
  19536. (Destructor): Added filterBitfield.
  19537. (getMissingIndex): Use filterBitfield.
  19538. (getMissingUnusedIndex): Use filterBitfield.
  19539. (getFirstMissingUnusedIndex): Use filterBitfield.
  19540. (getFirstMissingUnusedIndex): Use filterBitfield.
  19541. (getAllMissingIndexes): Use filterBitfield.
  19542. (countMissingBlock): Use filterBitfield.
  19543. (countBlock): Use filterBitfield.
  19544. (setBitInternal): Added new argument on.
  19545. (setUseBit): Use setBitInternal.
  19546. (unsetUseBit): Use setBitInternal.
  19547. (setBit): Use setBitInternal.
  19548. (unsetBit): Use setBitInternal.
  19549. (isAllBitSet): Use filterBitfield.
  19550. (setFilterBit): New function.
  19551. (addFilter): New function.
  19552. (enableFilter): New function.
  19553. (disableFilter): New function.
  19554. (clearFilter): New function.
  19555. (isFilterEnabled): New function.
  19556. (getFilteredTotalLength): New function.
  19557. (getCompletedLength): New function.
  19558. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  19559. Initalized newly added variables.
  19560. [FileEntry](offset): New variable.
  19561. [FileEntry](extracted): New variable.
  19562. [FileEntry](requested): New variable.
  19563. (readFileEntry): New function.
  19564. (option): New variable.
  19565. (splitMultiFile): Removed const qualifier.
  19566. (fixFilename): Removed const qualifier.
  19567. (readFileEntryFromMetaInfoFile): New function.
  19568. (finishPartialDownloadingMode): New function.
  19569. (isPartialDownloadingMode): New function.
  19570. (setFileEntriesToDownload): New function.
  19571. (getCompletedLength): New function.
  19572. (getPartialTotalLength): New function.
  19573. * src/TorrentMan.cc (readFileEntry): New function.
  19574. (setup): Use readFileEntry. If no-preallocation option is specified,
  19575. use DefaultDiskWriter.
  19576. (readFileEntryFromMetaInfoFile): New function.
  19577. (fixFilename): Removed const qualifier.
  19578. (splitMultiFile): Removed const qualifier.
  19579. (setFileEntriesToDownload): New function.
  19580. (isPartialDownloadingMode): New function.
  19581. (finishPartialDownloadingMode): New function.
  19582. (getCompletedLength): New function.
  19583. (getPartialTotalLength): New function.
  19584. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  19585. New variable.
  19586. (partialTotalLength): New variable.
  19587. (downloadLength): New variable.
  19588. (totalLength): New variable.
  19589. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  19590. Added log.
  19591. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  19592. partialTotalLength, downloadLength, totalLength.
  19593. (calculate): Calculate downloadLength and totalLength.
  19594. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  19595. * src/main.cc (addCommand): Changed argument signature.
  19596. (main): Added new variable: args. Added new option "torrent-show-files"
  19597. "no-preallocation". Usage is not updated yet.
  19598. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19599. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  19600. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19601. Attempt to add the ability to listing file entries in a .torrent file.
  19602. This feature is not yet complete.
  19603. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  19604. * src/TorrentMan.cc (getMultiFileEntries): New function.
  19605. (getName): New function.
  19606. * src/TorrentMan.h (getMultiFileEntries): New function.
  19607. (getName): New function.
  19608. * src/main.cc (main): Use above 2 funtion.
  19609. * Release 0.3.2
  19610. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19611. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  19612. (detectMessageFlooding): Updated threshold value.
  19613. (checkLongTimePeerChoking): Updated timeout value.
  19614. (getNewPieceAndSendInterest): Added debug log.
  19615. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  19616. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  19617. (getPeer): Updated.
  19618. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  19619. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  19620. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  19621. is localhost.
  19622. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  19623. * src/PendingMessage.cc (processMessage): Not to send piece message
  19624. if peer is not interested in the pieces localhost has.
  19625. * src/Peer.cc (shouldChoke): Updated.
  19626. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  19627. * src/Util.cc (isPowerOf): New function.
  19628. * src/Util.h (isPowerOf): New function.
  19629. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  19630. whether or not it is power of 2.
  19631. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19632. Added new class SendMessageQueue that includes PendingMessages and
  19633. RequestSlotMan.
  19634. * src/SendMessageQueue.h: New class.
  19635. * src/SendMessageQueue.cc: New class.
  19636. * src/PendingMessage.h: Added new member variable blockIndex and its
  19637. accessors.
  19638. (createRequestMessage): Updated.
  19639. * src/PendingMessage.cc (createRequestMessage): Updated.
  19640. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  19641. SendMessageQueue.
  19642. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  19643. (receiveMessage): Updated with SendMessageQueue.
  19644. (deletePendingPieceMessage): Removed.
  19645. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  19646. (sendInterest): Updated with SendMessageQueue.
  19647. (createRequestPendingMessage): Updated with SendMessageQueue.
  19648. (sendMessages): Updated with SendMessageQueue.
  19649. (onAbort): Updated with SendMessageQueue.
  19650. (keepAlive): Updated with SendMessageQueue.
  19651. (beforeSocketCheck): Updated SendMessageQueue.
  19652. * src/PeerInteractionCommand (sendMessages): Shuffle
  19653. missingBLockIndexes before using it.
  19654. Added its own timeout for peer connection.
  19655. * src/PeerAbstractCommand.h: Added member variable timeout and its
  19656. setter.
  19657. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  19658. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  19659. Added setTimeout() call.
  19660. (executeInternal): Added setTimeout() call.
  19661. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  19662. Added timeout.
  19663. (isTimeoutDetected): Updated.
  19664. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  19665. option.
  19666. Added *simple* message flooding checker.
  19667. * src/PeerInteractionCommand.cc (executeInternal):
  19668. Added detectMessageFlooding() call.
  19669. (detectMessageFlooding): New function.
  19670. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  19671. (beforeSocketCheck): Added detectMessageFlooding() call.
  19672. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  19673. chokeUnchokeCount, haveCount, detectMessageFlooding().
  19674. Removed deletePendingPieceMessage(), getRequestSlot(),
  19675. deleteRequestSlot(), deleteAllRequestSlot().
  19676. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  19677. Added checkLongTimePeerChoking() call.
  19678. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  19679. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  19680. if duplicate == false.
  19681. The parameter "uploaded" and "downloaded" in the tracker request are
  19682. the size since the client sent the "started" event to the tracker.
  19683. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  19684. uploaded size to preDownloadedSize, preUploadedSize respectively.
  19685. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  19686. getSessionDownloadedSize(), getSessionUploadedSize().
  19687. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  19688. getSessionUploadedSize() instead of getDownloadedSize(),
  19689. getUploadedSize().
  19690. * src/PendingMessage.cc (processMessage): Do not send request message
  19691. if the peer is choking the client.
  19692. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  19693. less than interval.
  19694. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19695. * configure.in: Added gnutls support. Added several CPP macros.
  19696. * m4/openssl.m4: Added.
  19697. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  19698. readData(), peekData(). Added gnutls support.
  19699. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  19700. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  19701. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  19702. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  19703. Instead, added a check for whether setup method has executed
  19704. successfully.
  19705. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  19706. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  19707. * src/Makefile.am: Updated.
  19708. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  19709. using whether OpenSSL or gcrypt, depending on the result of configure
  19710. script.
  19711. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  19712. messageDigest.h.
  19713. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  19714. * src/PeerListenCommand.cc: Added log about port binded successfully.
  19715. Fixed memory leak.
  19716. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  19717. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  19718. Removed instantiation of TrackerInitCommand. Instead,
  19719. TrackerWatcherCommand is instantiated and pushed to the command queue.
  19720. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  19721. ENABLE_SSL.
  19722. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  19723. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  19724. If a piece is already acquired by another command, delete the request
  19725. slots for the piece.
  19726. * src/TrackerUpdateCommand.cc (execute):
  19727. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  19728. Added a check whether peer list is null.
  19729. Fixed the bug that causes sending completed event to the tracker
  19730. several times.
  19731. * src/TrackerInitCommand.cc (execute):
  19732. Fixed the bug that causes sending completed event to the tracker
  19733. several times.
  19734. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  19735. by using messageDigest.h.
  19736. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19737. * PeerConnection.cc: Replaced log message "keep-alive" with
  19738. "keep alive".
  19739. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  19740. localhost long time.
  19741. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  19742. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  19743. at most 100 failure entry from the list. If with duplicate = false,
  19744. MAX_PEER_LIST is not checked.
  19745. * PeerListenCommand.cc: Fixed the argument order of log message.
  19746. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19747. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  19748. Added warn().
  19749. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  19750. Implemented warn().
  19751. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  19752. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19753. * Request.h: Added AFTER_COMPLETED event.
  19754. * TorrentDownloadEngine.cc: Prints "Download complete" message
  19755. instead of downloaded size and progress(%) after download completes.
  19756. * PeerInteractionCommand.cc: After download completes, sends unchoke
  19757. message to the peer if it is interested in what localhost has
  19758. downloaded.
  19759. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  19760. destination instead of just renaming it.
  19761. * TorrentMan.cc: Added deleteTempFile().
  19762. * PeerAbstractCommand.cc: do not stop execution after download
  19763. completes. This makes localhost a seeder.
  19764. * Util.{h,cc}: Added fileCopy().
  19765. * PeerListenCommand.cc: do not stop execution after download completes.
  19766. This makes localhost a seeder.
  19767. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  19768. Added TorrentMan::deleteTempFile() to torrentHandler.
  19769. Initialized the variable dir as ".".
  19770. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  19771. Deleted renameSingleFile().
  19772. Added copySingleFile(), deleteTempFile().
  19773. * DownloadEngine.h: Added virtual function afterEachIteration().
  19774. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  19775. in onEndOfRun() to afterEachIteration().
  19776. In onEndOfRun(), changed if condition to check whether filenameFixed is
  19777. true.
  19778. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  19779. In rangedFileCopy(), added try-catch block to properly close file
  19780. descriptors.
  19781. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  19782. Added afterEachIteration(), isFilenameFixed().
  19783. * Peer.cc: Changed choking strategy.
  19784. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  19785. * TrackerInitCommand.cc: Send completed event only once.
  19786. * DownloadEngine.cc: Added a call to afterEachIteration().
  19787. * TrackerUpdateCommand.cc: Do not stop execution after download
  19788. completes.
  19789. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  19790. connect the peers at most MAX_PEER_UPDATE when a peer list is
  19791. received from a tracker.
  19792. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  19793. Decreased the number of failure peers to delete to 0(just comment out
  19794. the line).
  19795. * Release 0.3.1
  19796. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19797. * PeerInteractionCommand.cc: added a call to
  19798. TorrentMan::unadvertisePiece in Destructor.
  19799. * PeerInteractionCommand.cc: make have message sent immediately
  19800. if the size of pending message queue is zero.
  19801. * TorrentMan.cc: set the maximum size of peer list to 250.
  19802. * TorrentMan.h: changed the container type of Peers and UsedPieces
  19803. to deque.
  19804. * Util.cc: fixed rangedFileCopy.
  19805. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  19806. to Constructor. Also, moved digest cleanup to Destructor.
  19807. * MetaFileUtil.cc: fixed memory leak
  19808. * replaced std::vector with std::deque.
  19809. * AbstractCommand.cc: casted timeout value to long long int.
  19810. * ChunkedEncoding.cc: fixed memory leak.
  19811. * PeerInteractionCommand.cc: casted timeout value to long long int.
  19812. * SleepCommand.cc: casted timeout value to long long int.
  19813. * Data.cc: fixed memory leak.
  19814. * Data.cc: fixed toLLInt().
  19815. * BitfieldMan.cc: fixed memory leak.
  19816. * TorrentMan.cc: initialized storeDir to ".".
  19817. * TorrentMan.cc: fixed memory leak.
  19818. * TorrentMan.cc: corrected file paths of splitted files.
  19819. * PeerAbstractCommand.cc: casted timeout to long long int.
  19820. * main.cc: added delete(req) and delete(te->diskWriter).
  19821. * RequestSlot.cc: casted timeout value to long long int.
  19822. * Request.cc: fixed memory leak.
  19823. * PendingMessage.cc: make HAVE messages sent only when peer does not
  19824. have the piece.
  19825. * Peer.{h,cc}: added hasPiece(int index).
  19826. * main.cc: corrected addCommand.
  19827. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19828. * BitTorrent protocol support added.
  19829. * Release 0.3.0
  19830. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19831. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  19832. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19833. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  19834. decoding did not work properly.
  19835. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19836. * DownloadEngine.h: included sys/time.h
  19837. * DownloadEngine.cc: remove sys/time.h
  19838. * Makefile.am (SUBDIRS): Add intl.
  19839. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  19840. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19841. * main.cc: correct help message for --http-auth-scheme.
  19842. * main.cc: changed e-mail address for bug reports.
  19843. * ja.po: added japanese translation.
  19844. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19845. * SimpleLogger.cc: flush log file instead of stdout.
  19846. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19847. * main.cc: Fixed command-line option: max-tries
  19848. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  19849. does not equal to seg.sp.
  19850. * DownloadCommand.cc: If EOF is got from the server and the total size
  19851. of file is not zero, then throw DlRetryEx.
  19852. * main.cc: Set the minium value of min-segment-size to 1024.
  19853. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  19854. fails because of a regression since 0.2.0 release.
  19855. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19856. * HttpConnection.cc:
  19857. * common.h: defined the user agent name as macro
  19858. * DownloadEngine.{h, cc}:
  19859. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  19860. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  19861. * main.cc: Download complete/abort message is now generated by main.
  19862. * Makefile.am (SUBDIRS): Add m4.
  19863. (ACLOCAL_AMFLAGS): New variable.
  19864. (EXTRA_DIST): New variable.
  19865. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  19866. * gettext: added gettext functionality
  19867. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19868. * AbstractCommand.cc:
  19869. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  19870. unregister its cuid from SegmentMan.
  19871. * DownloadEngine.cc: .aria2 file was written when a downloading
  19872. failed with errors.
  19873. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  19874. Added "User-Agent" header to CONNECT proxy request.
  19875. Fixed "Proxy-Authorization" header. Now proxy authorization works
  19876. properly.
  19877. * Logger.h:
  19878. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  19879. * ChunkedEncoding.cc: Added #include directive for strings.h
  19880. * Release 0.2.1
  19881. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19882. * Util.{h,cc}: added startsWith().
  19883. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  19884. Util::endsWith().
  19885. * SocketCore.cc: struct addrinfo is now zero-initialized.
  19886. * common.h: added #include directive of limit.h.
  19887. * DownloadEngine.cc: added #include directive of sys/time.h and
  19888. algorithm.
  19889. * Exception.h: added #include directive of stdio.h.
  19890. * AbstractCommand.h: added #include directive of sys/time.h.
  19891. * DownloadCommand.h: added #include directive of sys/time.h.
  19892. * *.h: added #include directive of common.h to all base classes.
  19893. subclasses' one was removed.
  19894. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  19895. does not define these macros.
  19896. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19897. * Release 0.2.0
  19898. * main.cc:
  19899. * HttpInitiateConnectionCommand.{h,cc}:
  19900. * prefs.h:
  19901. * HttpConnection.{h,cc}: added --http-proxy-method option.
  19902. We can now use GET command in http proxy.
  19903. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19904. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  19905. that splits slowest segment of SegmentMan::commands vector.
  19906. This is the default split algorithm of aria2.
  19907. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  19908. that splits first segment of SegmentMan::commands vector.
  19909. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  19910. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  19911. * Segment.h:
  19912. * SegmentMan.cc: Added speed field to Segment.h
  19913. * main.cc: -s option now affects all URLs in command-line arguemtns.
  19914. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  19915. * message.h: Change file size related %d to %lld.
  19916. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19917. * FtpInitiateConnectionCommand.{h,cc}:
  19918. * FtpNegotiationCommand.{h,cc}:
  19919. * FtpDownloadCommand.{h,cc}:
  19920. * FtpConnection.{h,cc}: Added FTP support
  19921. * SimpleLogger.cc: Log message now includes time information.
  19922. * main.cc: The value of --http-auth-scheme option is chagned from
  19923. 'BASIC' to 'basic'
  19924. * main.cc: Added --timeout command-line option.
  19925. * main.cc: Added --min-segment-size command-line option.
  19926. * main.cc: Added --max-retries command-line option.
  19927. * prefs.h: option string constants are now defined in prefs.h
  19928. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19929. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  19930. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  19931. with version 0.1.0's one.
  19932. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  19933. * configure.in: Added --enable-ssl option to configure script.
  19934. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  19935. cannot permit absoluteURI as Request-URI.
  19936. * HttpConnection.cc: Added Referer support.
  19937. * main.cc: Added referer command-line option.
  19938. * main.cc: Added rety-wait command-line option.
  19939. * Exception.h: Fixed formating bug in Exception::setMsg()
  19940. * SocketCore.{h,cc}:
  19941. * Socket.{h, cc}:
  19942. * Request.cc:
  19943. * InitiateConnectionCommandFactory.cc:
  19944. * HttpRequestCommand.cc: Added HTTPS support.
  19945. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  19946. for SocketCore.
  19947. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  19948. size is wrong
  19949. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  19950. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  19951. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  19952. * Release 0.1.0