ChangeLog 706 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803
  1. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Enclosed log of DHTMessage::toString() with Logger::info().
  3. * src/DHTMessageDispatcherImpl.cc
  4. * src/DHTMessageReceiver.cc
  5. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Rewritten util::toHex().
  7. * src/util.cc
  8. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Removed SocketBuffer::feedAndSend(). Renamed
  10. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  11. * src/FtpConnection.cc
  12. * src/HttpConnection.cc
  13. * src/HttpServer.cc
  14. * src/MSEHandshake.cc
  15. * src/PeerConnection.cc
  16. * src/SocketBuffer.cc
  17. * src/SocketBuffer.h
  18. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  19. Removed unused PeerConnection::sendMessage(). Updated doc.
  20. * src/PeerConnection.cc
  21. * src/PeerConnection.h
  22. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  23. Reduced copying/std::string instantiation in sending/receiving
  24. BitTorrent messages.
  25. * src/BtBitfieldMessage.cc
  26. * src/BtBitfieldMessage.h
  27. * src/BtExtendedMessage.cc
  28. * src/BtExtendedMessage.h
  29. * src/BtHandshakeMessage.cc
  30. * src/BtHandshakeMessage.h
  31. * src/BtKeepAliveMessage.cc
  32. * src/BtKeepAliveMessage.h
  33. * src/BtPieceMessage.cc
  34. * src/BtPieceMessage.h
  35. * src/BtPortMessage.cc
  36. * src/BtPortMessage.h
  37. * src/BtUnchokeMessage.h
  38. * src/DefaultBtMessageReceiver.cc
  39. * src/IndexBtMessage.cc
  40. * src/IndexBtMessage.h
  41. * src/PeerConnection.cc
  42. * src/PeerConnection.h
  43. * src/RangeBtMessage.cc
  44. * src/RangeBtMessage.h
  45. * src/SimpleBtMessage.cc
  46. * src/SimpleBtMessage.h
  47. * src/SocketBuffer.cc
  48. * src/SocketBuffer.h
  49. * src/ZeroBtMessage.cc
  50. * src/ZeroBtMessage.h
  51. * test/BtAllowedFastMessageTest.cc
  52. * test/BtBitfieldMessageTest.cc
  53. * test/BtCancelMessageTest.cc
  54. * test/BtChokeMessageTest.cc
  55. * test/BtExtendedMessageTest.cc
  56. * test/BtHandshakeMessageTest.cc
  57. * test/BtHaveAllMessageTest.cc
  58. * test/BtHaveMessageTest.cc
  59. * test/BtHaveNoneMessageTest.cc
  60. * test/BtInterestedMessageTest.cc
  61. * test/BtKeepAliveMessageTest.cc
  62. * test/BtNotInterestedMessageTest.cc
  63. * test/BtPieceMessageTest.cc
  64. * test/BtPortMessageTest.cc
  65. * test/BtRejectMessageTest.cc
  66. * test/BtRequestMessageTest.cc
  67. * test/BtSuggestPieceMessageTest.cc
  68. * test/BtUnchokeMessageTest.cc
  69. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Rewritten SocketBuffer. Old implementation uses single std::string
  71. to store data and erase sent data, which is costly. New
  72. implementation uses deque to hold each data to avoid to mutate
  73. string.
  74. * src/SocketBuffer.cc
  75. * src/SocketBuffer.h
  76. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Removed unused FileEntry::extracted
  78. * src/FileEntry.cc
  79. * src/FileEntry.h
  80. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Wait until data arrives.
  82. * test/LpdMessageReceiverTest.cc
  83. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. In Metalink4, if size element contains invalid size, discard whole
  85. document. Added strict hash value check for metalink3/4.
  86. * src/MetalinkParserController.cc
  87. * src/MetalinkParserStateMachine.cc
  88. * src/MetalinkParserStateMachine.h
  89. * src/MetalinkParserStateV3Impl.cc
  90. * src/MetalinkParserStateV4Impl.cc
  91. * src/util.cc
  92. * src/util.h
  93. * test/MetalinkParserControllerTest.cc
  94. * test/MetalinkProcessorTest.cc
  95. * test/metalink4.xml
  96. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Added strict attribute validation for metalink4. When
  98. specification violation is found, discard the whole document.
  99. * src/ExpatMetalinkProcessor.cc
  100. * src/MetalinkParserStateMachine.cc
  101. * src/MetalinkParserStateMachine.h
  102. * src/MetalinkParserStateV4Impl.cc
  103. * src/XML2SAXMetalinkProcessor.cc
  104. * test/Makefile.am
  105. * test/MetalinkProcessorTest.cc
  106. * test/metalink4-attrs.xml: Removed
  107. * test/metalink4-dirtraversal.xml: Removed
  108. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Added test for Metaurl transaction.
  110. * src/MetalinkParserController.cc
  111. * test/MetalinkParserControllerTest.cc
  112. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  113. Avoid costly BtMessage::toString() if info level log is not
  114. required.
  115. * src/DefaultBtInteractive.cc
  116. * src/Logger.h
  117. * src/SimpleBtMessage.cc
  118. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. Reserved vector elements based on profiler results.
  120. * src/DefaultBtInteractive.cc
  121. * src/DefaultBtProgressInfoFile.cc
  122. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Avoid to calculate end() iterator in each loop. std::deque is
  124. particularly slow. Make sure that recalculate end iterator if
  125. element is erased during loop.
  126. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Use vector instead of deque for containers which is used for
  128. mostly read-only purpose.
  129. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Fixed typo
  131. * test/Makefile.am
  132. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  134. * test/Makefile.am
  135. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Small optimization: In updateTransferStatFor(), don't search peer
  137. ID twice.
  138. * src/DefaultPeerStorage.cc
  139. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Use vector instead of deque for MetalinkEntry and MetalinkResource
  141. objects.
  142. * src/Metalink2RequestGroup.cc
  143. * src/Metalink2RequestGroup.h
  144. * src/MetalinkEntry.cc
  145. * src/MetalinkEntry.h
  146. * src/MetalinkHelper.cc
  147. * src/MetalinkHelper.h
  148. * src/Metalinker.cc
  149. * src/Metalinker.h
  150. * src/main.cc
  151. * test/MetalinkEntryTest.cc
  152. * test/MetalinkHelperTest.cc
  153. * test/MetalinkProcessorTest.cc
  154. * test/MetalinkerTest.cc
  155. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Fixed the bug that grouped FileEntry objects are not used but
  157. instead all FileEntry objects are used for each metaurl group.
  158. * src/Metalink2RequestGroup.cc
  159. * test/Metalink2RequestGroupTest.cc
  160. * test/metalink4-groupbymetaurl.xml
  161. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Use vector instead of deque for ChunkChecksum.
  163. * src/ChunkChecksum.h
  164. * src/MetalinkParserController.cc
  165. * src/MetalinkParserController.h
  166. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  168. algorithm in Metalink properly
  169. * src/MetalinkParserController.cc
  170. * src/MetalinkParserController.h
  171. * src/messageDigest.cc
  172. * src/messageDigest.h
  173. * test/MetalinkProcessorTest.cc
  174. * test/metalink4.xml
  175. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Replaced null or control characters in file path with '_'. For
  177. MinGW32 build, additional characters which is not allowed in
  178. Windows kernel are also replaced. util::detectDirTraversal() now
  179. returns true if given string contains null or control characters.
  180. * src/DownloadContext.cc
  181. * src/DownloadContext.h
  182. * src/Metalink2RequestGroup.cc
  183. * src/MetalinkParserController.cc
  184. * src/bittorrent_helper.cc
  185. * src/util.cc
  186. * src/util.h
  187. * test/UtilTest.cc
  188. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  189. Discard metalink:file if its name attribute is empty string.
  190. Removed FileEntry instantiation in
  191. MetalinkParserController::setFileLengthOfEntry()
  192. * src/MetalinkParserController.cc
  193. * src/MetalinkParserStateV3Impl.cc
  194. * src/MetalinkParserStateV4Impl.cc
  195. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  196. Discard torrent file if path data in it contains directory
  197. traversal directives. Discard metalink:file element in Metalink3
  198. format if its name attribute contains directory traversal
  199. directives. Ignore name attribute of metalink:signature element
  200. in Metalink3 format if it contains directory traversal directives.
  201. * src/MetalinkParserStateV3Impl.cc
  202. * src/bittorrent_helper.cc
  203. * src/message.h
  204. * test/BittorrentHelperTest.cc
  205. * test/Makefile.am
  206. * test/MetalinkProcessorTest.cc
  207. * test/metalink3-dirtraversal.xml
  208. * test/test.xml
  209. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Removed useless comment
  211. * src/MetalinkParserStateV4Impl.cc
  212. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Supported name attribute of metalink::metaurl element and
  214. multi-file torrent with Metalink4. Files with same metaurl are
  215. grouped and downloaded in one RequestGroup.
  216. * src/BtDependency.cc
  217. * src/FileEntry.h
  218. * src/Metalink2RequestGroup.cc
  219. * src/Metalink2RequestGroup.h
  220. * src/MetalinkEntry.cc
  221. * src/MetalinkEntry.h
  222. * src/MetalinkHelper.cc
  223. * src/MetalinkHelper.h
  224. * src/MetalinkMetaurl.cc
  225. * src/MetalinkMetaurl.h
  226. * src/MetalinkParserController.cc
  227. * src/RequestGroup.cc
  228. * src/RequestGroup.h
  229. * src/bittorrent_helper.cc
  230. * test/BittorrentHelperTest.cc
  231. * test/BtDependencyTest.cc
  232. * test/MetalinkHelperTest.cc
  233. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  235. * src/MetalinkMetaurl.h
  236. * src/MetalinkParserController.cc
  237. * src/MetalinkParserController.h
  238. * src/MetalinkParserStateMachine.cc
  239. * src/MetalinkParserStateMachine.h
  240. * src/MetalinkParserStateV4Impl.cc
  241. * test/MetalinkProcessorTest.cc
  242. * test/metalink4-dirtraversal.xml
  243. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  244. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  245. element.
  246. * src/Makefile.am
  247. * src/Metalink2RequestGroup.cc
  248. * src/MetalinkEntry.cc
  249. * src/MetalinkEntry.h
  250. * src/MetalinkMetaurl.cc
  251. * src/MetalinkMetaurl.h
  252. * src/MetalinkParserController.cc
  253. * src/MetalinkParserController.h
  254. * src/MetalinkParserStateMachine.cc
  255. * src/MetalinkParserStateMachine.h
  256. * src/MetalinkParserStateV4Impl.cc
  257. * src/MetalinkParserStateV4Impl.h
  258. * test/MetalinkProcessorTest.cc
  259. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Added Metalink4 support. Currently, name attribute of
  261. metalink::metaurl is ignored and multi-file torrent cannot be used
  262. with Metalink4.
  263. * doc/aria2c.1.txt
  264. * src/DownloadHandlerConstants.cc
  265. * src/ExpatMetalinkProcessor.cc
  266. * src/Makefile.am
  267. * src/Metalink2RequestGroup.cc
  268. * src/MetalinkEntry.cc
  269. * src/MetalinkEntry.h
  270. * src/MetalinkParserController.cc
  271. * src/MetalinkParserController.h
  272. * src/MetalinkParserState.h
  273. * src/MetalinkParserStateImpl.cc
  274. * src/MetalinkParserStateImpl.h
  275. * src/MetalinkParserStateMachine.cc
  276. * src/MetalinkParserStateMachine.h
  277. * src/MetalinkParserStateV3Impl.cc
  278. * src/MetalinkParserStateV3Impl.h
  279. * src/MetalinkParserStateV4Impl.cc
  280. * src/MetalinkParserStateV4Impl.h
  281. * src/MetalinkResource.cc
  282. * src/MetalinkResource.h
  283. * src/Metalinker.cc
  284. * src/RequestGroup.cc
  285. * src/RequestGroup.h
  286. * src/XML2SAXMetalinkProcessor.cc
  287. * src/messageDigest.cc
  288. * src/util.cc
  289. * src/util.h
  290. * test/Makefile.am
  291. * test/MetalinkEntryTest.cc
  292. * test/MetalinkParserControllerTest.cc
  293. * test/MetalinkProcessorTest.cc
  294. * test/MetalinkerTest.cc
  295. * test/UtilTest.cc
  296. * test/metalink4-attrs.xml
  297. * test/metalink4-dirtraversal.xml
  298. * test/metalink4.xml
  299. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  300. Added aiFlags argument to getInterfaceAddress(). Use
  301. AI_NUMERICHOST to find interface specified using
  302. --bt-lpd-interface option to avoid time-consuming address lookup.
  303. * src/BtSetup.cc
  304. * src/SocketCore.cc
  305. * src/SocketCore.h
  306. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  307. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  308. is bad in LpdMessageReceiver.
  309. * src/LpdMessage.h
  310. * src/LpdMessageReceiver.cc
  311. * src/LpdMessageReceiver.h
  312. * src/LpdReceiveMessageCommand.cc
  313. * test/LpdMessageReceiverTest.cc
  314. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  315. Added --bt-lpd-interface option to specify the interface to use
  316. for Local Peer Discovery. LpdMessageDispatcher object now has its
  317. own socket. LpdMessageReceiver's socket is binded to multicast
  318. address to only receive multicast packets.
  319. * src/BtSetup.cc
  320. * src/LpdMessageDispatcher.cc
  321. * src/LpdMessageDispatcher.h
  322. * src/LpdMessageReceiver.cc
  323. * src/LpdMessageReceiver.h
  324. * src/LpdReceiveMessageCommand.cc
  325. * src/LpdReceiveMessageCommand.h
  326. * src/OptionHandlerFactory.cc
  327. * src/SocketCore.cc
  328. * src/SocketCore.h
  329. * src/prefs.cc
  330. * src/prefs.h
  331. * src/usage_text.h
  332. * test/LpdMessageDispatcherTest.cc
  333. * test/LpdMessageReceiverTest.cc
  334. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  335. Put the portion of code to get interface addresses in
  336. SocketCore::bindAddress() into newly added getInterfaceAddress().
  337. * src/SocketCore.cc
  338. * src/SocketCore.h
  339. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Rewritten util::parseInt() and parseUInt()
  341. * src/util.cc
  342. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Fixed compile error with mingw32 cross compiler. Defined
  344. a2_sockopt_t as void* for the target systems other than mingw32.
  345. * src/SocketCore.cc
  346. * src/a2netcompat.h
  347. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  348. Removed 'always true' condition
  349. * src/util.cc
  350. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  351. Documented --bt-enable-lpd option in man page.
  352. * doc/aria2c.1.txt
  353. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  354. Added Local Peer Discovery. It is disabled by default. Use
  355. --bt-enable-lpd to enable the function.
  356. * src/BtConstants.h
  357. * src/BtSetup.cc
  358. * src/LpdDispatchMessageCommand.cc
  359. * src/LpdDispatchMessageCommand.h
  360. * src/LpdMessage.h
  361. * src/LpdMessageDispatcher.cc
  362. * src/LpdMessageDispatcher.h
  363. * src/LpdMessageReceiver.cc
  364. * src/LpdMessageReceiver.h
  365. * src/LpdReceiveMessageCommand.cc
  366. * src/LpdReceiveMessageCommand.h
  367. * src/Makefile.am
  368. * src/OptionHandlerFactory.cc
  369. * src/Peer.cc
  370. * src/Peer.h
  371. * src/PeerInteractionCommand.cc
  372. * src/SocketCore.cc
  373. * src/SocketCore.h
  374. * src/prefs.cc
  375. * src/prefs.h
  376. * src/usage_text.h
  377. * src/util.cc
  378. * src/util.h
  379. * test/LpdMessageDispatcherTest.cc
  380. * test/LpdMessageReceiverTest.cc
  381. * test/Makefile.am
  382. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. User-defined custom request headers specified by --header option
  384. now override builtin headers if they have same name.
  385. * src/HttpRequest.cc
  386. * src/HttpRequest.h
  387. * test/HttpRequestTest.cc
  388. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  389. Rewirtten util::isNumber()
  390. * src/util.cc
  391. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  392. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  393. because without it localized error messages are not printed
  394. correctly.
  395. * src/Platform.cc
  396. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  397. Added unit tests for util::getContentDispositionFilename() from
  398. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  399. tests are passed.
  400. * src/util.cc
  401. * test/UtilTest.cc
  402. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  404. util.cc
  405. * src/Platform.cc
  406. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Support RFC2231 "Parameter Value Character Set and Language
  408. Information" in Content-Disposition header.
  409. * src/HttpResponse.cc
  410. * src/util.cc
  411. * src/util.h
  412. * test/UtilTest.cc
  413. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  414. Print CXXFLAGS
  415. * configure.ac
  416. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  417. Small optimization for A2_WOULDBLOCK(e)
  418. * src/SocketCore.cc
  419. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  420. Removed test file
  421. * test/CookieStorageTest.cc
  422. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  423. Check both EAGAIN and EWOULDBLOCK
  424. * src/SocketCore.cc
  425. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Removed ret == 0 checking for SSL_read(), SSL_write() and
  427. SSL_peek() because the checks are done in the caller. In
  428. SocketBuffer::send(), throw exception if nothing could be written
  429. and socket error was not EWOULDBLOCK
  430. * src/SocketBuffer.cc
  431. * src/SocketCore.cc
  432. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Fixed error code handling so that it can handle Winsock2 error
  434. code.
  435. * src/SocketCore.cc
  436. * src/SocketCore.h
  437. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Bump up version number to 1.9.0a
  439. * configure.ac
  440. * doc/aria2c.1.txt
  441. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  442. Fixed the bug that aria2 doesn't handle return value if error
  443. occurred before download begins.
  444. * src/MultiUrlRequestInfo.cc
  445. * src/main.cc
  446. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  447. Removed SegmentManFactory class.
  448. * src/AbstractSegmentManFactory.h
  449. * src/DefaultSegmentManFactory.cc
  450. * src/DefaultSegmentManFactory.h
  451. * src/Makefile.am
  452. * src/RequestGroup.cc
  453. * src/RequestGroup.h
  454. * src/SegmentManFactory.h
  455. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Destroyed digest context after getting calculated hash.
  457. * src/Piece.cc
  458. * src/Piece.h
  459. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Removed BitfieldManFactory class.
  461. * src/BitfieldManFactory.cc
  462. * src/BitfieldManFactory.h
  463. * src/DefaultPieceStorage.cc
  464. * src/Makefile.am
  465. * src/PeerSessionResource.cc
  466. * src/Piece.cc
  467. * src/main.cc
  468. * test/DefaultPieceStorageTest.cc
  469. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Removed unused methods from BitfieldMan class. Moved
  471. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  472. class.
  473. * src/BitfieldMan.cc
  474. * src/BitfieldMan.h
  475. * src/BitfieldManFactory.cc
  476. * src/BitfieldManFactory.h
  477. * src/bitfield.h
  478. * src/main.cc
  479. * test/BitfieldManTest.cc
  480. * test/DefaultPieceStorageTest.cc
  481. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  482. Moved getFirstNMissingIndex to bitfield.h and made it return the
  483. number of appended indexes.
  484. * src/BitfieldMan.cc
  485. * src/BitfieldMan.h
  486. * src/Piece.cc
  487. * src/Piece.h
  488. * src/bitfield.h
  489. * test/BitfieldManTest.cc
  490. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Added more tests.
  492. * test/BitfieldManTest.cc
  493. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  494. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  495. unused block indexes at once instead of calling
  496. getFirstMissingUnusedIndex() multiple times. Made use of it in
  497. Piece class and DefaultBtRequestFactory class via Piece class.
  498. * src/BitfieldMan.cc
  499. * src/BitfieldMan.h
  500. * src/DefaultBtRequestFactory.cc
  501. * src/Piece.cc
  502. * src/Piece.h
  503. * test/BitfieldManTest.cc
  504. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  505. Use std::make_pair(...)
  506. * src/DHTMessageTracker.cc
  507. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. Use std::make_pair(...)
  509. * src/bittorrent_helper.cc
  510. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. urlencode(removeFragment(...)) in parseUrl(...)
  512. * src/Request.cc
  513. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  515. * src/AbstractCommand.cc
  516. * src/AdaptiveURISelector.cc
  517. * src/BtPieceMessage.cc
  518. * src/BtPortMessage.cc
  519. * src/CreateRequestCommand.cc
  520. * src/DHTAbstractNodeLookupTask.cc
  521. * src/DHTBucket.cc
  522. * src/DHTGetPeersCommand.cc
  523. * src/DHTMessageDispatcherImpl.cc
  524. * src/DHTMessageFactoryImpl.cc
  525. * src/DHTMessageTracker.cc
  526. * src/DHTPeerAnnounceStorage.cc
  527. * src/DHTRoutingTable.cc
  528. * src/DHTSetup.cc
  529. * src/DefaultBtAnnounce.cc
  530. * src/DefaultBtInteractive.cc
  531. * src/DefaultBtMessageDispatcher.cc
  532. * src/DefaultBtMessageReceiver.cc
  533. * src/DefaultBtProgressInfoFile.cc
  534. * src/DefaultBtRequestFactory.cc
  535. * src/DefaultPeerStorage.cc
  536. * src/DefaultPieceStorage.cc
  537. * src/DownloadCommand.cc
  538. * src/DownloadEngine.cc
  539. * src/EpollEventPoll.cc
  540. * src/FileAllocationCommand.cc
  541. * src/FileEntry.cc
  542. * src/FtpNegotiationCommand.cc
  543. * src/HandshakeExtensionMessage.cc
  544. * src/HttpListenCommand.cc
  545. * src/HttpServer.cc
  546. * src/HttpSkipResponseCommand.cc
  547. * src/IteratableChunkChecksumValidator.cc
  548. * src/Logger.h
  549. * src/MSEHandshake.cc
  550. * src/MetalinkPostDownloadHandler.cc
  551. * src/MultiDiskAdaptor.cc
  552. * src/PeerAbstractCommand.cc
  553. * src/PeerConnection.cc
  554. * src/PeerListenCommand.cc
  555. * src/PeerReceiveHandshakeCommand.cc
  556. * src/RequestGroup.cc
  557. * src/RequestGroupMan.cc
  558. * src/SegmentMan.cc
  559. * src/SelectEventPoll.cc
  560. * src/ServerStat.cc
  561. * src/SimpleBtMessage.cc
  562. * src/SocketCore.cc
  563. * src/TrackerWatcherCommand.cc
  564. * src/UTMetadataDataExtensionMessage.cc
  565. * src/UTMetadataRequestFactory.cc
  566. * src/UTMetadataRequestTracker.cc
  567. * src/XmlRpcMethod.cc
  568. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. Changed log level from debug to info
  570. * src/BtDependency.cc
  571. * src/BtPostDownloadHandler.cc
  572. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Removed unused PeerSessionResource::_latency.
  574. * src/BtConstants.h
  575. * src/BtPieceMessage.cc
  576. * src/Peer.cc
  577. * src/Peer.h
  578. * src/PeerSessionResource.cc
  579. * src/PeerSessionResource.h
  580. * test/PeerSessionResourceTest.cc
  581. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Fixed the bug that --file-allocation=falloc doesn't work with
  583. single file download.
  584. * src/AbstractSingleDiskAdaptor.cc
  585. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Release 1.8.2
  587. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Added Portuguese translation. Updated Ukrainian and Spanish
  589. translation. Thanks to all translators.
  590. * po/LINGUAS
  591. * po/es.po
  592. * po/pt.po
  593. * po/uk.po
  594. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. Remove fragment from redirected URI.
  596. * src/Request.cc
  597. * test/RequestTest.cc
  598. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Updated po templates.
  600. * po/aria2.pot
  601. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  602. Drop legacy ifdef for ares support and code cleanup.
  603. * src/AsyncNameResolver.cc
  604. * src/AsyncNameResolver.h
  605. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. Call ares_library_init and ares_library_cleanup if they are
  607. available. Some code cleanups.
  608. * src/Platform.cc
  609. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  610. Call ares_process_fd() each time after epoll to handle timeout.
  611. * src/EpollEventPoll.cc
  612. * src/EpollEventPoll.h
  613. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Suppressed type-cast compiler warning
  615. * src/CookieStorage.cc
  616. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Fixed compile error on Mac OS X.
  618. * src/CookieStorage.h
  619. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Removed cookietest.txt from Makefile.am
  621. * test/Makefile.am
  622. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Updated version number in man page.
  624. * doc/aria2c.1.txt
  625. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Rewritten help message for --allow-overwrite option.
  627. * doc/aria2c.1.txt
  628. * src/usage_text.h
  629. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Added bittorrent key to the response of tellStatus XML-RPC method.
  631. The associated value of the key is a struct and contains data
  632. retrieved from .torrent file, such as name, announce-list,
  633. comment, etc.
  634. * doc/aria2c.1.txt
  635. * src/XmlRpcMethodImpl.cc
  636. * src/XmlRpcMethodImpl.h
  637. * test/XmlRpcMethodTest.cc
  638. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Removed parse(std::istream&) and parse(const std::string&) from
  640. CookieParser.
  641. * src/CookieParser.cc
  642. * src/CookieParser.h
  643. * test/CookieParserTest.cc
  644. * test/cookietest.txt: Removed
  645. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  646. Fixed the bug that cookie for domain a.b.c is not sent to the host
  647. a.b.c if no other cookies are stored. Fixed the bug that
  648. Cookie::markOriginServerOnly() is not called when cookies are
  649. loaded from file/sqlite3 database.
  650. * src/Cookie.h
  651. * src/CookieStorage.cc
  652. * src/NsCookieParser.cc
  653. * src/Sqlite3MozCookieParser.cc
  654. * test/CookieStorageTest.cc
  655. * test/NsCookieParserTest.cc
  656. * test/Sqlite3MozCookieParserTest.cc
  657. * test/cookies.sqlite
  658. * test/nscookietest.txt
  659. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  661. both _pieceStorage and _segmentMan are initialized or they are
  662. not.
  663. * src/RequestGroup.cc
  664. * src/RequestGroup.h
  665. * test/BtDependencyTest.cc
  666. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Bump up version number to 1.8.2
  668. * configure.ac
  669. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Replaced "." with A2STR::DOT_C
  671. * src/AbstractCommand.cc
  672. * src/Cookie.cc
  673. * src/DownloadContext.cc
  674. * src/FtpConnection.cc
  675. * src/RequestGroup.cc
  676. * src/util.cc
  677. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Replaced isNumberAndDotsNotation() with isNumericHost().
  679. isNumericHost() can handle IPv6 address.
  680. * src/Cookie.cc
  681. * src/CookieStorage.cc
  682. * src/util.cc
  683. * src/util.h
  684. * test/CookieTest.cc
  685. * test/UtilTest.cc
  686. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Included A2STR.h
  688. * src/CookieStorage.cc
  689. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Rewritten Cookie storage.
  691. * src/Cookie.cc
  692. * src/Cookie.h
  693. * src/CookieParser.cc
  694. * src/CookieStorage.cc
  695. * src/CookieStorage.h
  696. * src/a2functional.h
  697. * test/CookieParserTest.cc
  698. * test/CookieStorageTest.cc
  699. * test/CookieTest.cc
  700. * test/HttpResponseTest.cc
  701. * test/TestUtil.h
  702. * test/a2functionalTest.cc
  703. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Handle redirected URI which is not properly percent encoded.
  705. * src/Request.cc
  706. * test/RequestTest.cc
  707. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  709. not found' in the N times(N is where --max-file-not-found=N, N>0)
  710. in a row without single '200 OK' response.
  711. * src/RequestGroup.cc.
  712. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  714. readout by 80 characters in mingw32 build. Catch exception in
  715. DHTMessageReceiver::receiveMessage().
  716. * src/AbstractDiskWriter.cc
  717. * src/ConsoleStatCalc.cc
  718. * src/DHTMessageReceiver.cc
  719. * src/File.cc
  720. * src/RequestGroupMan.cc
  721. * src/a2io.h
  722. * test/FileTest.cc
  723. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Fixed compile error with intel compiler
  725. * src/XmlRpcMethodImpl.cc
  726. * src/XmlRpcMethodImpl.h
  727. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  728. Release 1.8.1
  729. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Updated Swedish, Russian and Italian translations. Thanks to all
  731. translators.
  732. * po/it.po
  733. * po/ru.po
  734. * po/sv.po
  735. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  736. Fixed broken OptionParser::findByName().
  737. * src/OptionParser.cc
  738. * test/OptionParserTest.cc
  739. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Fixed test error without BitTorrent support.
  741. * test/XmlRpcMethodTest.cc
  742. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  743. Fixed compile error without GNUTLS/OpenSSL.
  744. * src/util.cc
  745. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. Changed compression level to Z_DEFAULT_COMPRESSION.
  747. * src/GZipEncoder.cc
  748. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. Added missing command line options: --http-no-cache,
  750. --bt-save-metadata and --bt-metadata-only.
  751. * doc/xmlrpc/aria2rpc
  752. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  754. client accepts gzip content encoding.
  755. * src/A2STR.cc
  756. * src/A2STR.h
  757. * src/GZipEncoder.cc
  758. * src/GZipEncoder.h
  759. * src/HttpHeader.cc
  760. * src/HttpHeader.h
  761. * src/HttpServer.cc
  762. * src/HttpServer.h
  763. * src/HttpServerBodyCommand.cc
  764. * src/HttpServerCommand.cc
  765. * src/Makefile.am
  766. * src/XmlRpcResponse.cc
  767. * src/XmlRpcResponse.h
  768. * test/GZipEncoderTest.cc
  769. * test/Makefile.am
  770. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  771. Added XML-RPC client sample code in Python.
  772. * doc/aria2c.1.txt
  773. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  774. Updated po templates.
  775. * po/aria2.pot
  776. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  777. Bump up version number to 1.8.1
  778. * configure.ac
  779. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  780. Added version number to man page. Updated copyright year in man
  781. page.
  782. * doc/aria2c.1.txt
  783. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Rewritten toTagString
  785. * src/NameMatchOptionHandler.cc
  786. * test/OptionHandlerTest.cc
  787. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Added dir and files key to the response struct of aria2.tellStatus
  789. XML-RPC method. The value associated with files key is the list
  790. of files. Its element is the same struct used in aria2.getFiles
  791. XML-RPC method. Added uris key to the response struct of
  792. aria2.getFiles XML-RPC method. The value associated with uris key
  793. is the list of URIs. Its element is the same struct used in
  794. aria2.getUris XML-RPC method.
  795. * doc/aria2c.1.txt
  796. * src/XmlRpcMethodImpl.cc
  797. * test/XmlRpcMethodTest.cc
  798. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Added aria2.getSessionInfo XML-RPC method. This method returns a
  800. struct containing Session ID, which is generated each time when
  801. aria2 is invoked.
  802. * doc/aria2c.1.txt
  803. * doc/xmlrpc/aria2rpc
  804. * src/DownloadEngine.cc
  805. * src/DownloadEngine.h
  806. * src/XmlRpcMethodFactory.cc
  807. * src/XmlRpcMethodImpl.cc
  808. * src/XmlRpcMethodImpl.h
  809. * test/XmlRpcMethodTest.cc
  810. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Moved generateRandomKey() from bittorrent_helper to util.
  812. * src/DHTBucket.cc
  813. * src/DHTNode.cc
  814. * src/bittorrent_helper.cc
  815. * src/bittorrent_helper.h
  816. * src/util.cc
  817. * src/util.h
  818. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Updated doc about GID.
  820. * doc/aria2c.1.txt
  821. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  823. accepts a negative integer. 'offset' == -1 points last download
  824. in the waiting queue and 'offset' == -2 points the download before
  825. the last download, and so on. The downloads in the response are in
  826. reversed order.
  827. * doc/aria2c.1.txt
  828. * src/XmlRpcMethodImpl.cc
  829. * src/XmlRpcMethodImpl.h
  830. * test/XmlRpcMethodTest.cc
  831. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Added --human-readable option. This option, when true is given,
  833. prints sizes and speed in human readable format(e.g., 1.2Ki,
  834. 3.4Mi) in the console readout. The default value is true and it
  835. looks exactly the same as aria2-1.8.0. So the 'new feature'
  836. appears when false is given. In this case, sizes and speed are
  837. printed without in bytes. No Ki, Mi units conversion is used.
  838. This may be useful for a program to parse the output of aria2.
  839. * doc/aria2c.1.txt
  840. * src/ConsoleStatCalc.cc
  841. * src/ConsoleStatCalc.h
  842. * src/OptionHandlerFactory.cc
  843. * src/main.cc
  844. * src/prefs.cc
  845. * src/prefs.h
  846. * src/usage_text.h
  847. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  849. option accepts empty string "". When "" is given, it erases
  850. previously defined proxy.
  851. * doc/aria2c.1.txt
  852. * src/OptionHandlerImpl.h
  853. * src/usage_text.h
  854. * test/OptionHandlerTest.cc
  855. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Code cleanup for proxy URI handling.
  857. * src/AbstractCommand.cc
  858. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Added --bt-metadata-only option. If true is given to this option,
  860. aria2 downloads metadata only. The file(s) described in metadata
  861. will not be downloaded. This option has effect only when
  862. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  863. * doc/aria2c.1.txt
  864. * src/OptionHandlerFactory.cc
  865. * src/UTMetadataPostDownloadHandler.cc
  866. * src/download_helper.cc
  867. * src/prefs.cc
  868. * src/prefs.h
  869. * src/usage_text.h
  870. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  871. Fixed memory leak. Commands stored in std::deque<Command*> are not
  872. deleted when exception is thrown. Make sure that when passing
  873. std::deque<Command*> to function to store Commands, handle
  874. exception and delete these Commands.
  875. * src/AbstractCommand.cc
  876. * src/CheckIntegrityCommand.cc
  877. * src/FileAllocationCommand.cc
  878. * src/RequestGroup.cc
  879. * src/TrackerWatcherCommand.cc
  880. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  882. * src/A2STR.cc
  883. * src/A2STR.h
  884. * src/FtpNegotiationCommand.cc
  885. * src/HttpResponseCommand.cc
  886. * src/util.cc
  887. * src/util.h
  888. * test/UtilTest.cc
  889. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  890. Treat --dir="" as --dir="."
  891. * src/FtpNegotiationCommand.cc
  892. * src/HttpResponseCommand.cc
  893. * src/Metalink2RequestGroup.cc
  894. * src/UTMetadataPostDownloadHandler.cc
  895. * src/bittorrent_helper.cc
  896. * src/download_helper.cc
  897. * src/util.cc
  898. * src/util.h
  899. * test/UtilTest.cc
  900. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Code clean up.
  902. * src/main.cc
  903. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Reset GID to 1 when they reach maximum value. Rewritten
  905. CUIDCounter::newID()
  906. * src/CUIDCounter.h
  907. * src/RequestGroup.cc
  908. * src/RequestGroup.h
  909. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Documented --http-no-cache option in man page.
  911. * doc/aria2c.1.txt
  912. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  913. Added --http-no-cache option. When true is given, aria2 sends
  914. Cache-Control: no-cache and Pragma: no-cache header to avoid
  915. cached content. If false is given , these headers are not sent
  916. and you can add Cache-Control header with a directive you like
  917. using --header option.
  918. * src/HttpRequest.cc
  919. * src/HttpRequest.h
  920. * src/HttpRequestCommand.cc
  921. * src/OptionHandlerFactory.cc
  922. * src/download_helper.cc
  923. * src/prefs.cc
  924. * src/prefs.h
  925. * src/usage_text.h
  926. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  927. Removed Logger from OptionParser. When OptionParser is used to
  928. parse options at bootstrap, LogFactory is not configured yet
  929. properly. When LogFactory is used in OptionParser, it initializes
  930. itself to return a logger which has no ability to write log to the
  931. disk.
  932. * src/OptionParser.cc
  933. * src/OptionParser.h
  934. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  935. Added following sentance to the help message of --out option:
  936. --out option is ignored when -Z is used.
  937. * doc/aria2c.1.txt
  938. * src/usage_text.h
  939. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Added --bt-save-metadata option to -i list options.
  941. * doc/aria2c.1.txt
  942. * src/download_helper.cc
  943. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  945. additional libraries.
  946. * src/MultiUrlRequestInfo.cc
  947. * src/NameResolver.cc
  948. * src/SelectEventPoll.cc
  949. * src/SelectEventPoll.h
  950. * src/SocketCore.cc
  951. * src/SocketCore.h
  952. * src/a2netcompat.h
  953. * src/daemon.cc
  954. * src/main.cc
  955. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Fixed typo.
  957. * src/DHTMessageReceiver.cc
  958. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Fixed the bug that causes segmentation fault if unknown option is
  960. put in aria2.conf file. BUG#2928303
  961. * src/OptionParser.cc
  962. * src/OptionParser.h
  963. * src/option_processing.cc
  964. * test/OptionParserTest.cc
  965. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Ignore port message with port=0.
  967. * src/BtPortMessage.cc
  968. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  969. Run autoupdate
  970. * configure.ac
  971. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  972. Updated autoconf/automake auxiliary files.
  973. * INSTALL
  974. * config.guess
  975. * config.sub
  976. * depcomp
  977. * install-sh
  978. * m4/intldir.m4
  979. * missing
  980. * mkinstalldirs
  981. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  982. Removed unused function.
  983. * src/SharedHandle.h
  984. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Find pooled socket using all cached addresses.
  986. * src/DNSCache.h
  987. * src/DownloadEngine.cc
  988. * src/DownloadEngine.h
  989. * src/InitiateConnectionCommand.cc
  990. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  991. Updated copyright year.
  992. * src/version_usage.cc
  993. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Pool connection if _contentEncodingDecoder is used and server
  995. supports persistent connection.
  996. * src/HttpDownloadCommand.cc
  997. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  998. Updated doc.
  999. * src/DownloadCommand.cc
  1000. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1001. Untabify. Fixed one line in copyright which is longer than 80
  1002. columns.
  1003. * src
  1004. * test
  1005. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1006. Release 1.8.0
  1007. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Updated po templates.
  1009. * po/aria2.pot
  1010. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1011. Documented --bt-save-metadata option in man page.
  1012. * doc/aria2c.1.txt
  1013. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1014. Fixed usage of --bt-save-metadata option.
  1015. * src/usage_text.h
  1016. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1017. Updated po templates.
  1018. * po/aria2.pot
  1019. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1020. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1021. causes name resolution error when none of network interface has
  1022. IPv4 address.
  1023. * src/main.cc
  1024. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1025. Bump up version number to 1.8.0.
  1026. * configure.ac
  1027. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1028. Use info hash as a filename when saving BitTorrent metadata.
  1029. * src/UTMetadataPostDownloadHandler.cc
  1030. * test/UTMetadataPostDownloadHandlerTest.cc
  1031. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Documented system.multicall XML-RPC method in man page.
  1033. * doc/aria2c.1.txt
  1034. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Added signal handler for SIGHUP to save .aria2 file when terminal
  1036. is closed. The handler is the same one for SIGINT and SIGTERM.
  1037. * src/MultiUrlRequestInfo.cc
  1038. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1039. Defined method name in XmlRpcMethod subclasses.
  1040. * src/XmlRpcMethodFactory.cc
  1041. * src/XmlRpcMethodImpl.cc
  1042. * src/XmlRpcMethodImpl.h
  1043. * test/XmlRpcMethodTest.cc
  1044. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1045. Added system.multicall XML-RPC method.
  1046. * src/XmlRpcMethod.cc
  1047. * src/XmlRpcMethod.h
  1048. * src/XmlRpcMethodFactory.cc
  1049. * src/XmlRpcMethodImpl.cc
  1050. * src/XmlRpcMethodImpl.h
  1051. * test/XmlRpcMethodTest.cc
  1052. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Check structure depth when decoding.
  1054. * src/bencode.cc
  1055. * src/bencode.h
  1056. * test/BencodeTest.cc
  1057. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Documented tellStopped XML-RPC method in man page.
  1059. * doc/aria2c.1.txt
  1060. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Added tellStopped XML-RPC method to aria2rpc.
  1062. * doc/xmlrpc/aria2rpc
  1063. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Added tellStopped XML-RPC method. This method returns stopped
  1065. download in the specified range. It takes same parameters with
  1066. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1067. * src/XmlRpcMethodFactory.cc
  1068. * src/XmlRpcMethodImpl.cc
  1069. * src/XmlRpcMethodImpl.h
  1070. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1072. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1073. when conducting unit tests because they fail if networking
  1074. interface is not configured with IPv4 address.
  1075. * src/NameResolver.cc
  1076. * src/SocketCore.cc
  1077. * src/SocketCore.h
  1078. * src/a2netcompat.h
  1079. * test/AllTest.cc
  1080. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1081. Fixed unit test error
  1082. * test/UTMetadataPostDownloadHandlerTest.cc
  1083. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1084. Defined static string constants for efficiency.
  1085. * src/XmlRpcMethodImpl.cc
  1086. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1087. Added --bt-save-metadata option. When true is given, it saves
  1088. metadata as .torrent file. This option has effect only when
  1089. BitTorrent Magnet URI is used. The filename is name in metadata
  1090. with suffix .torrent. The directory to be saved is the same
  1091. directory where download file is saved. If the same file already
  1092. exists, metdata is not saved.
  1093. * src/OptionHandlerFactory.cc
  1094. * src/UTMetadataPostDownloadHandler.cc
  1095. * src/UTMetadataPostDownloadHandler.h
  1096. * src/message.h
  1097. * src/prefs.cc
  1098. * src/prefs.h
  1099. * src/usage_text.h
  1100. * test/UTMetadataDataExtensionMessageTest.cc
  1101. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1102. Added util::saveAs() function. Use it in Signature::save().
  1103. * src/Signature.cc
  1104. * src/util.cc
  1105. * src/util.h
  1106. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1107. Upcase info hash in Magnet URI.
  1108. * doc/aria2c.1.txt
  1109. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. Refactored RequestGroupMan::changeReservedGroupPosition()
  1111. * src/RequestGroupMan.cc
  1112. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1113. Updated the description for aria2.addTorrent XML-RPC method.
  1114. * doc/aria2c.1.txt
  1115. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. Added changePosition to aria2rpc.
  1117. * doc/xmlrpc/aria2rpc
  1118. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1119. Documented changePosition XML-RPC method in man page.
  1120. * doc/aria2c.1.txt
  1121. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1123. pos and how. This method changes the position of download denoted
  1124. by gid. If how is POS_SET, it moves the download to a position
  1125. relative to the beginning of the queue. If how is POS_CUR, it
  1126. moves the download to a position relative to the current
  1127. position. If how is POS_END, it moves the download to a position
  1128. relative to the end of the queue. If the destination position is
  1129. less than 0 or beyond the end of the queue, it moves the download
  1130. to the beginning or the end of the queue respectively. Returns
  1131. the destination position.
  1132. * src/RequestGroupMan.cc
  1133. * src/RequestGroupMan.h
  1134. * src/XmlRpcMethodFactory.cc
  1135. * src/XmlRpcMethodImpl.cc
  1136. * src/XmlRpcMethodImpl.h
  1137. * test/RequestGroupManTest.cc
  1138. * test/XmlRpcMethodTest.cc
  1139. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. Added getOption and getGlobalOption to aria2rpc.
  1141. * doc/xmlrpc/aria2rpc
  1142. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1143. Documented getOption and getGlobalOption XML-RPC method in man
  1144. page
  1145. * doc/aria2c.1.txt
  1146. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Added getOption and getGlobalOption XML-RPC method. getOption
  1148. takes GID as a parameter and returns its options as struct.
  1149. getGlobalOption takes no parameter and returns global
  1150. options. Because global option is used as a template for the
  1151. option of newly added downloads, it includes options returned by
  1152. getOption.
  1153. * src/Option.h
  1154. * src/XmlRpcMethodFactory.cc
  1155. * src/XmlRpcMethodImpl.cc
  1156. * src/XmlRpcMethodImpl.h
  1157. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. Sort _optionHandlers in OptionParser by name in ascending order.
  1159. Use vector instead of deque for efficiency.
  1160. * src/OptionHandler.h
  1161. * src/OptionHandlerFactory.h
  1162. * src/OptionParser.cc
  1163. * src/OptionParser.h
  1164. * src/version_usage.cc
  1165. * test/OptionParserTest.cc
  1166. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Code cleanup
  1168. * src/XmlRpcMethod.cc
  1169. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Documented about followedBy and belongsTo in man page.
  1171. * doc/aria2c.1.txt
  1172. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Added following 2 keys, followedBy and belongsTo, to the response
  1174. of tellStatus.
  1175. followedBy: List of GIDs which are generated by the consequence of
  1176. this download. For example, when aria2 downloaded Metalink file,
  1177. it generates downloads described in it(see *--follow-metalink*
  1178. option). This value is useful to track these auto generated
  1179. downloads. If there is no such downloads, this key will not be
  1180. included in the response.
  1181. belongsTo: GID of a parent download. Some downloads are a part of
  1182. another download. For example, if a file in Metalink has
  1183. BitTorrent resource, the download of .torrent is a part of that
  1184. file. If this download has no parent, this key will not be
  1185. included in the response.
  1186. * src/BtPostDownloadHandler.cc
  1187. * src/DownloadResult.h
  1188. * src/Metalink2RequestGroup.cc
  1189. * src/MetalinkPostDownloadHandler.cc
  1190. * src/RequestGroup.cc
  1191. * src/RequestGroup.h
  1192. * src/UTMetadataPostDownloadHandler.cc
  1193. * src/XmlRpcMethodImpl.cc
  1194. * src/XmlRpcMethodImpl.h
  1195. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1196. Assigned BObject in BDE() to avoid segmentation fault when calling
  1197. methods of BDE::none().
  1198. * src/BDE.cc
  1199. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Show info hash in Magnet URI in upper case letters in -S output.
  1201. * src/bittorrent_helper.cc
  1202. * test/BittorrentHelperTest.cc
  1203. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Removed old useless comment
  1205. * src/MultiUrlRequestInfo.cc
  1206. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1208. not properly used in configure script and failed to detect gnutls.
  1209. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1210. and the initialization of pkg-config is done in first occurrence
  1211. of PKG_CHECK_MODULES which is not executed because it is inside of
  1212. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1213. * configure.ac
  1214. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Release 1.7.2
  1216. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1218. true even if all downloads haven't finished, especially when
  1219. PostDownloadHandler is involved. Changed the condition so that it
  1220. only returns true if both _requestGroups and _reservedGroups are
  1221. empty.
  1222. * src/RequestGroupMan.cc
  1223. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Log listening port for BitTorrent/DHT in notice level.
  1225. * src/DHTConnectionImpl.cc
  1226. * src/PeerListenCommand.cc
  1227. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1228. Updated po templates.
  1229. * po/aria2.pot
  1230. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1231. Bump up version number to 1.7.2
  1232. * configure.ac
  1233. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Changed default value of --enable-dht from 'false' to 'true'.
  1235. * doc/aria2c.1.txt
  1236. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Enabled DHT by default because of Magnet URI support. To disable
  1238. DHT, use --enable-dht=false
  1239. * src/OptionHandlerFactory.cc
  1240. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Print Magnet URI in -S output.
  1242. * src/AnnounceList.cc
  1243. * src/bittorrent_helper.cc
  1244. * src/bittorrent_helper.h
  1245. * test/BittorrentHelperTest.cc
  1246. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Added --bt-prioritize-piece option to aria2rpc.
  1248. * doc/xmlrpc/aria2rpc
  1249. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1250. Refer Magnet URI in --help. Made some cosmetic changes.
  1251. * src/version_usage.cc
  1252. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Updated -T and -M option.
  1254. * doc/aria2c.1.txt
  1255. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Fixed typo
  1257. * doc/aria2c.1.txt
  1258. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1259. Fixed the bug that line separator is missing in horizontal bar.
  1260. * doc/xmlrpc/aria2mon
  1261. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1262. Updated usage text for --metalink-file option.
  1263. * src/usage_text.h
  1264. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. If '-' is given as an argument to --metalink-file option, aria2
  1266. reads Metalink file from stdin.
  1267. * src/OptionHandlerFactory.cc
  1268. * src/OptionHandlerImpl.h
  1269. * src/a2io.h
  1270. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Fixed the bug that aria2 listens wrong port if --interface option
  1272. is used.
  1273. * src/SocketCore.cc
  1274. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Fixed the bug that query parameter in magnet URI is not decoded.
  1276. * src/magnet.cc
  1277. * test/MagnetTest.cc
  1278. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Specified defaultSize as an argument for easy testing.
  1280. * src/util.cc
  1281. * src/util.h
  1282. * test/UtilTest.cc
  1283. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1284. Release 1.7.1
  1285. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1286. Bump up version number to 1.7.1
  1287. * configure.ac
  1288. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Fixed the bug --bt-prioritize-piece=tail is not working.
  1290. * src/util.cc
  1291. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1292. Release 1.7.0
  1293. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Updated po templates.
  1295. * po/aria2.pot
  1296. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1297. Updated help message for --bt-prioritize-piece. Some cosmetic
  1298. changes.
  1299. * doc/aria2c.1.txt
  1300. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1301. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1302. * src/usage_text.h
  1303. * src/util.cc
  1304. * test/UtilTest.cc
  1305. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Updated Russian, Ukrainian, German and French translations.
  1307. Thanks to all translators involved.
  1308. * po/de.po
  1309. * po/fr.po
  1310. * po/ru.po
  1311. * po/uk.po
  1312. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Mentioned about pkg-config
  1314. * README
  1315. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Fixed typo. Referred --index-out option in BitTorrent notes.
  1317. * README
  1318. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1320. bind, try all addresses until success
  1321. * src/SocketCore.cc
  1322. * src/SocketCore.h
  1323. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Updated po templates.
  1325. * po/aria2.pot
  1326. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Bump up version number to 1.7.0
  1328. * configure.ac
  1329. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1330. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1331. * src/DefaultPieceStorage.cc
  1332. * src/DefaultPieceStorage.h
  1333. * src/PieceStorage.h
  1334. * src/UnknownLengthPieceStorage.cc
  1335. * src/UnknownLengthPieceStorage.h
  1336. * test/MockPieceStorage.h
  1337. * test/ProtocolDetectorTest.cc
  1338. * test/XmlRpcMethodTest.cc
  1339. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. Documented in man page that if getifaddrs() is missing,
  1341. --interface option doesn't accept interface name.
  1342. * doc/aria2c.1.txt
  1343. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1344. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1345. * src/DefaultBtAnnounce.cc
  1346. * src/DefaultBtAnnounce.h
  1347. * test/DefaultBtAnnounceTest.cc
  1348. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1349. Fixed the bug that connection is always dropped if handshake
  1350. message in extension protocol don't have metadata_size.
  1351. src/HandshakeExtensionMessage.cc
  1352. * src/HandshakeExtensionMessage.cc
  1353. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1355. text saying DHT is recommended when Magnet URI is provided.
  1356. * doc/aria2c.1.txt
  1357. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1358. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1359. URI is supplied. Notify user that they should consider enabling
  1360. DHT if they use Magnet URI.
  1361. * src/RequestGroup.cc
  1362. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1363. Added --disable-ipv6 option to disable IPv6.
  1364. * doc/aria2c.1.txt
  1365. * src/InitiateConnectionCommand.cc
  1366. * src/NameResolver.cc
  1367. * src/NameResolver.h
  1368. * src/OptionHandlerFactory.cc
  1369. * src/main.cc
  1370. * src/prefs.cc
  1371. * src/prefs.h
  1372. * src/usage_text.h
  1373. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Updated usage text for --bt-prioritize-piece option.
  1375. * doc/aria2c.1.txt
  1376. * src/usage_text.h
  1377. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1379. given and PACKAGE is missing in the system or FEATURE cannot be
  1380. enabled, print error message and stop the script.
  1381. * configure.ac
  1382. * m4/aria2_arg.m4
  1383. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Halt metadata download immediately when metadata download is done.
  1385. Don't wait unresponsive tracker.
  1386. * src/ByteArrayDiskWriter.h
  1387. * src/DefaultBtInteractive.cc
  1388. * src/DefaultExtensionMessageFactory.cc
  1389. * src/DefaultExtensionMessageFactory.h
  1390. * src/PeerInteractionCommand.cc
  1391. * src/UTMetadataDataExtensionMessage.cc
  1392. * src/UTMetadataDataExtensionMessage.h
  1393. * src/UTMetadataRequestExtensionMessage.cc
  1394. * test/UTMetadataDataExtensionMessageTest.cc
  1395. * test/UTMetadataRequestExtensionMessageTest.cc
  1396. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Documented --interface option in man page.
  1398. * doc/aria2c.1.txt
  1399. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1400. Try resolved address in the order received from the resolver.
  1401. * src/DNSCache.h
  1402. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1403. Added debug logs.
  1404. * src/SocketCore.cc
  1405. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Fixed type of tail to uint64_t
  1407. * src/util.cc
  1408. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1409. Added --interface option. This feature binds sockets to given
  1410. interface. You can specify interface name, IP address and
  1411. hostname.
  1412. * configure.ac
  1413. * src/OptionHandlerFactory.cc
  1414. * src/SocketCore.cc
  1415. * src/SocketCore.h
  1416. * src/main.cc
  1417. * src/message.h
  1418. * src/prefs.cc
  1419. * src/prefs.h
  1420. * src/usage_text.h
  1421. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1422. Updated man page for bt-prioritize-piece option in -i list.
  1423. * doc/aria2c.1.txt
  1424. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1425. Added bt-prioritize-piece option to -i list.
  1426. * src/download_helper.cc
  1427. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Removed --http-auth-scheme option from man page.
  1429. * doc/aria2c.1.txt
  1430. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Removed --http-auth-scheme option since it doesn't do nothing.
  1432. * src/OptionHandlerFactory.cc
  1433. * src/prefs.cc
  1434. * src/prefs.h
  1435. * src/usage_text.h
  1436. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Adjusted the number of peer info which get_peers reply message can
  1438. carry.
  1439. * src/DHTGetPeersReplyMessage.cc
  1440. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1441. Added extension_message_test_helper.h to aria2c_SOURCES.
  1442. * test/Makefile.am
  1443. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1444. Documented --bt-prioritize-piece option in man page.
  1445. * doc/aria2c.1.txt
  1446. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Added option --bt-prioritize-piece. This option instruct aria2 to
  1448. try to download first and last pieces of each file first. The
  1449. argument can contain 2 keywords:head and tail. To include both
  1450. keywords, they must be separated by comma. These keywords can take
  1451. one parameter, SIZE. For example , if head=SIZE is specified,
  1452. pieces in the range of first SIZE bytes of each file get higher
  1453. priority. tail=SIZE means the range of last SIZE bytes of each
  1454. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1455. * src/DefaultPieceStorage.h
  1456. * src/Makefile.am
  1457. * src/OptionHandlerFactory.cc
  1458. * src/OptionHandlerImpl.h
  1459. * src/PriorityPieceSelector.cc
  1460. * src/PriorityPieceSelector.h
  1461. * src/RequestGroup.cc
  1462. * src/prefs.cc
  1463. * src/prefs.h
  1464. * src/usage_text.h
  1465. * src/util.cc
  1466. * src/util.h
  1467. * test/Makefile.am
  1468. * test/MockPieceSelector.h
  1469. * test/PriorityPieceSelectorTest.cc
  1470. * test/UtilTest.cc
  1471. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Fixed typo
  1473. * src/HttpRequest.h
  1474. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. In Magnet URI with tr parameter, put each announce URI in separate
  1476. tier.
  1477. * src/bittorrent_helper.cc
  1478. * test/BittorrentHelperTest.cc
  1479. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1480. Renamed ExtensionMessage::getBencodedData() as
  1481. ExtensionMessage::getPayload()
  1482. * src/BtExtendedMessage.cc
  1483. * src/ExtensionMessage.h
  1484. * src/HandshakeExtensionMessage.cc
  1485. * src/HandshakeExtensionMessage.h
  1486. * src/UTMetadataDataExtensionMessage.cc
  1487. * src/UTMetadataDataExtensionMessage.h
  1488. * src/UTMetadataRejectExtensionMessage.cc
  1489. * src/UTMetadataRejectExtensionMessage.h
  1490. * src/UTMetadataRequestExtensionMessage.cc
  1491. * src/UTMetadataRequestExtensionMessage.h
  1492. * src/UTPexExtensionMessage.cc
  1493. * src/UTPexExtensionMessage.h
  1494. * test/HandshakeExtensionMessageTest.cc
  1495. * test/MockExtensionMessage.h
  1496. * test/UTMetadataDataExtensionMessageTest.cc
  1497. * test/UTMetadataRejectExtensionMessageTest.cc
  1498. * test/UTMetadataRequestExtensionMessageTest.cc
  1499. * test/UTPexExtensionMessageTest.cc
  1500. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1501. Updated man page for BitTorrent Magnet URI.
  1502. * doc/aria2c.1.txt
  1503. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1504. Call DownloadContext::setOwnerRequestGroup() in
  1505. RequestGroup::setDownloadContext().
  1506. * src/BtDependency.cc
  1507. * src/RequestGroup.cc
  1508. * src/RequestGroup.h
  1509. * src/download_helper.cc
  1510. * test/DefaultBtMessageDispatcherTest.cc
  1511. * test/DefaultExtensionMessageFactoryTest.cc
  1512. * test/HandshakeExtensionMessageTest.cc
  1513. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1514. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1515. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1516. from metadata, use new metadata2Torrent() function.
  1517. * src/BtDependency.cc
  1518. * src/UTMetadataPostDownloadHandler.cc
  1519. * src/bittorrent_helper.cc
  1520. * src/bittorrent_helper.h
  1521. * test/BittorrentHelperTest.cc
  1522. * test/BtDependencyTest.cc
  1523. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1524. Use createRequestGroupForUri to create the download for torrent
  1525. file.
  1526. * src/Metalink2RequestGroup.cc
  1527. * test/Metalink2RequestGroupTest.cc
  1528. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Fixed typo
  1530. * src/DownloadContext.h
  1531. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1532. Use createRequestGroupForBitTorrent()
  1533. * src/BtPostDownloadHandler.cc
  1534. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1535. Added remove().
  1536. * src/Option.cc
  1537. * src/Option.h
  1538. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Removed options which is only valid for URIs specified in
  1540. command-line. If they are left, because op is used as a template
  1541. for new RequestGroup(such as created in XML-RPC command,
  1542. BtPostDownloadHandler etc), they causes unintentional effect.
  1543. * src/main.cc
  1544. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1545. Refer to option value of PREF_OUT only in download_helper.
  1546. * src/FtpNegotiationCommand.cc
  1547. * src/HttpResponseCommand.cc
  1548. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1550. * src/download_helper.cc
  1551. * src/download_helper.h
  1552. * src/XmlRpcMethodImpl.cc
  1553. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1554. Updated man page for changeOption XML-RPC method.
  1555. * doc/aria2c.1.txt
  1556. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Added --bt-max-peers option to changeOption XML-RPC method.
  1558. * src/XmlRpcMethod.cc
  1559. * src/XmlRpcMethodImpl.cc
  1560. * test/XmlRpcMethodTest.cc
  1561. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1562. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1563. * test/XmlRpcMethodTest.cc
  1564. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Removed redundant DownloadContext::hasAttribute(...) calls.
  1566. * src/ConsoleStatCalc.cc
  1567. * src/RequestGroup.cc
  1568. * src/XmlRpcMethodImpl.cc
  1569. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1570. Changed the number of tracker request attempt from 5 to 2.
  1571. * src/TrackerWatcherCommand.cc
  1572. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1573. Use host and protocol in original URI, because URI selector
  1574. selects URI based on original URI, not redirected one.
  1575. * src/Request.cc
  1576. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1577. Fixed the bug which causes segmentation fault with tellWaiting
  1578. XML-RPC method when BitTorrent download is waiting. The key of
  1579. BtRegistry is changed from info hash to GID, because it is
  1580. registered per RequestGroup, not info hash.
  1581. * src/BtRegistry.cc
  1582. * src/BtRegistry.h
  1583. * src/BtSetup.cc
  1584. * src/ConsoleStatCalc.cc
  1585. * src/InitiatorMSEHandshakeCommand.cc
  1586. * src/PeerInitiateConnectionCommand.cc
  1587. * src/PeerInteractionCommand.cc
  1588. * src/PeerInteractionCommand.h
  1589. * src/PeerReceiveHandshakeCommand.cc
  1590. * src/RequestGroup.cc
  1591. * src/XmlRpcMethodImpl.cc
  1592. * test/BtRegistryTest.cc
  1593. * test/XmlRpcMethodTest.cc
  1594. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Updated man page for changeOption XML-RPC method.
  1596. * doc/aria2c.1.txt
  1597. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1599. method.
  1600. * src/XmlRpcMethod.cc
  1601. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Documented about BitTorrent Magnet URI in man page.
  1603. * doc/aria2c.1.txt
  1604. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1606. inherited to generated RequestGroup.
  1607. * src/UTMetadataPostDownloadHandler.cc
  1608. * test/UTMetadataPostDownloadHandlerTest.cc
  1609. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Prepended "[METADATA]" before dn.
  1611. * src/bittorrent_helper.cc
  1612. * test/BittorrentHelperTest.cc
  1613. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Rewritten Magnet URI parser.
  1615. * src/Makefile.am
  1616. * src/ProtocolDetector.cc
  1617. * src/bittorrent_helper.cc
  1618. * src/bittorrent_helper.h
  1619. * src/download_helper.cc
  1620. * src/magnet.cc
  1621. * src/magnet.h
  1622. * test/BittorrentHelperTest.cc
  1623. * test/MagnetTest.cc
  1624. * test/Makefile.am
  1625. * test/ProtocolDetectorTest.cc
  1626. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1627. Use hton64
  1628. * src/base32.cc
  1629. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. Added Base32 encoded BitTorrent Magnet Link support.
  1631. * src/Makefile.am
  1632. * src/base32.cc
  1633. * src/base32.h
  1634. * src/bittorrent_helper.cc
  1635. * test/Base32Test.cc
  1636. * test/BittorrentHelperTest.cc
  1637. * test/Makefile.am
  1638. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1640. supported yet. Fixed typo in method name in RequestGroup. In
  1641. metadataGetMode, don't show "Your share ratio was ..." message.
  1642. * src/DefaultBtInteractive.cc
  1643. * src/DefaultBtInteractive.h
  1644. * src/DownloadHandlerFactory.cc
  1645. * src/DownloadHandlerFactory.h
  1646. * src/HandshakeExtensionMessage.cc
  1647. * src/Makefile.am
  1648. * src/Metalink2RequestGroup.cc
  1649. * src/PeerInteractionCommand.cc
  1650. * src/RequestGroup.cc
  1651. * src/RequestGroup.h
  1652. * src/UTMetadataPostDownloadHandler.cc
  1653. * src/UTMetadataPostDownloadHandler.h
  1654. * src/download_helper.cc
  1655. * test/HandshakeExtensionMessageTest.cc
  1656. * test/Makefile.am
  1657. * test/UTMetadataPostDownloadHandlerTest.cc
  1658. * test/UTMetadataRejectExtensionMessageTest.cc
  1659. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. In metadataGetMode, don't show SEEDING.
  1661. * src/ConsoleStatCalc.cc
  1662. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1663. Fixed ut_metadata data handling. Implemented
  1664. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1665. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1666. metadata_size is received.
  1667. * src/DefaultExtensionMessageFactory.cc
  1668. * src/DefaultExtensionMessageFactory.h
  1669. * src/HandshakeExtensionMessage.cc
  1670. * src/HandshakeExtensionMessage.h
  1671. * src/UTMetadataDataExtensionMessage.cc
  1672. * src/UTMetadataDataExtensionMessage.h
  1673. * src/UTMetadataRequestExtensionMessage.cc
  1674. * src/UTMetadataRequestFactory.cc
  1675. * src/UTMetadataRequestFactory.h
  1676. * src/UTMetadataRequestTracker.cc
  1677. * src/UTMetadataRequestTracker.h
  1678. * test/DefaultExtensionMessageFactoryTest.cc
  1679. * test/HandshakeExtensionMessageTest.cc
  1680. * test/MockBtMessage.h
  1681. * test/UTMetadataDataExtensionMessageTest.cc
  1682. * test/UTMetadataRequestExtensionMessageTest.cc
  1683. * test/UTMetadataRequestFactoryTest.cc
  1684. * test/UTMetadataRequestTrackerTest.cc
  1685. * test/extension_message_test_helper.h
  1686. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Drop connection if ut_metadata reject message is received.
  1688. * src/UTMetadataRejectExtensionMessage.cc
  1689. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1691. get high enough in that mode.
  1692. * src/ActivePeerConnectionCommand.cc
  1693. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Added BitTorrent magnet link support to ProtocolDetector.
  1695. * src/ProtocolDetector.cc
  1696. * src/ProtocolDetector.h
  1697. * test/ProtocolDetectorTest.cc
  1698. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Don't inject validator into BtMessage in metadataGetMode because
  1700. most of the checks depends on the total length of download but it
  1701. is unknown. Delegate metadataGetMode to BtMessage.
  1702. * src/DefaultBtMessageFactory.cc
  1703. * src/DefaultBtMessageFactory.h
  1704. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1705. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1706. * src/DefaultPieceStorage.h
  1707. * src/PieceStorage.h
  1708. * src/UnknownLengthPieceStorage.h
  1709. * test/MockPieceStorage.h
  1710. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1711. Added markTotalLengthIsKnown().
  1712. * src/DownloadContext.h
  1713. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1715. missing. If metadata is missing, always use DHT when it is ready.
  1716. * src/BtSetup.cc
  1717. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Added parseMagnetLink(). Hex encoded info hash is supported.
  1719. Base32 encoded info hash is not supported yet.
  1720. * src/bittorrent_helper.cc
  1721. * src/bittorrent_helper.h
  1722. * test/BittorrentHelperTest.cc
  1723. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1724. Added FromHex()
  1725. * src/util.cc
  1726. * src/util.h
  1727. * test/UtilTest.cc
  1728. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1729. Added _metadataGetMode member variable. It toggles the action when
  1730. messages are received: usually they almost do nothing if
  1731. _metadataGetMode is true.
  1732. * src/AbstractBtMessage.cc
  1733. * src/AbstractBtMessage.h
  1734. * src/BtAllowedFastMessage.cc
  1735. * src/BtBitfieldMessage.cc
  1736. * src/BtCancelMessage.cc
  1737. * src/BtChokeMessage.cc
  1738. * src/BtHaveAllMessage.cc
  1739. * src/BtHaveMessage.cc
  1740. * src/BtInterestedMessage.cc
  1741. * src/BtNotInterestedMessage.cc
  1742. * src/BtPieceMessage.cc
  1743. * src/BtRejectMessage.cc
  1744. * src/BtRequestMessage.cc
  1745. * src/BtUnchokeMessage.cc
  1746. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1747. Added bencode::decode overload functions. They have extra argument
  1748. 'end', passed by reference. 'end' points to the beyond the last
  1749. position of data used in decoding process.
  1750. * src/bencode.cc
  1751. * src/bencode.h
  1752. * test/BencodeTest.cc
  1753. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1754. Initial support of Extension for Peers to Send Metadata
  1755. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1756. metadata from swarm.
  1757. * src/BtConstants.h
  1758. * src/DefaultBtInteractive.cc
  1759. * src/DefaultExtensionMessageFactory.cc
  1760. * src/DefaultExtensionMessageFactory.h
  1761. * src/ExtensionMessage.h
  1762. * src/ExtensionMessageRegistry.h
  1763. * src/HandshakeExtensionMessage.cc
  1764. * src/HandshakeExtensionMessage.h
  1765. * src/Makefile.am
  1766. * src/PeerConnection.h
  1767. * src/PeerInteractionCommand.cc
  1768. * src/UTMetadataDataExtensionMessage.cc
  1769. * src/UTMetadataDataExtensionMessage.h
  1770. * src/UTMetadataExtensionMessage.cc
  1771. * src/UTMetadataExtensionMessage.h
  1772. * src/UTMetadataRejectExtensionMessage.cc
  1773. * src/UTMetadataRejectExtensionMessage.h
  1774. * src/UTMetadataRequestExtensionMessage.cc
  1775. * src/UTMetadataRequestExtensionMessage.h
  1776. * src/bittorrent_helper.cc
  1777. * src/bittorrent_helper.h
  1778. * test/BittorrentHelperTest.cc
  1779. * test/DefaultExtensionMessageFactoryTest.cc
  1780. * test/HandshakeExtensionMessageTest.cc
  1781. * test/Makefile.am
  1782. * test/UTMetadataDataExtensionMessageTest.cc
  1783. * test/UTMetadataRejectExtensionMessageTest.cc
  1784. * test/UTMetadataRequestExtensionMessageTest.cc
  1785. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Cancel segment in prepareForRetry() because there is a chance that
  1787. the command has segments.
  1788. * src/CreateRequestCommand.cc
  1789. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Fixed the bug that slow server is not knocked down in favor of
  1791. faster one.
  1792. * src/AbstractCommand.cc
  1793. * src/DefaultPieceStorage.cc
  1794. * src/DefaultPieceStorage.h
  1795. * src/PieceStorage.h
  1796. * src/UnknownLengthPieceStorage.cc
  1797. * src/UnknownLengthPieceStorage.h
  1798. * test/MockPieceStorage.h
  1799. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Fixed the bug that Request object is not added to
  1801. _inFlightRequests in findFasterRequest().
  1802. * src/FileEntry.cc
  1803. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Changed the strategry of how to increase the number of outstanding
  1805. requests. Now the number is doubled if there are no outstanding
  1806. requests after receiving messages.
  1807. * src/BtConstants.h
  1808. * src/DefaultBtInteractive.cc
  1809. * src/DefaultBtInteractive.h
  1810. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1811. Check socket for reading if there are outstanding requests.
  1812. * src/PeerInteractionCommand.cc
  1813. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1814. Moved frequently called methods to header file so they get
  1815. inlined.
  1816. * src/RequestSlot.cc
  1817. * src/RequestSlot.h
  1818. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1819. Copied in_addr instead of just casting from char* which might
  1820. violate strict aliasing rules.
  1821. * src/AsyncNameResolver.cc
  1822. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Use dynamic_pointer_cast
  1824. * test/BtPieceMessageTest.cc
  1825. * test/BtRequestMessageTest.cc
  1826. * test/DefaultBtRequestFactoryTest.cc
  1827. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1828. Added testSetUrl20()
  1829. * test/RequestTest.cc
  1830. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1831. Code cleanup
  1832. * src/bittorrent_helper.cc
  1833. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1834. Use C++ style cast
  1835. * src/AsyncNameResolver.cc
  1836. * src/Base64.h
  1837. * src/BtBitfieldMessage.cc
  1838. * src/BtHandshakeMessage.cc
  1839. * src/DefaultBtMessageFactory.cc
  1840. * src/DefaultBtProgressInfoFile.cc
  1841. * src/EpollEventPoll.cc
  1842. * src/ExpatMetalinkProcessor.cc
  1843. * src/IteratableChecksumValidator.cc
  1844. * src/IteratableChunkChecksumValidator.cc
  1845. * src/MessageDigestHelper.cc
  1846. * src/Platform.cc
  1847. * src/RequestGroupMan.cc
  1848. * src/SingleFileAllocationIterator.cc
  1849. * src/Sqlite3MozCookieParser.cc
  1850. * src/XML2SAXMetalinkProcessor.cc
  1851. * src/Xml2XmlRpcRequestProcessor.cc
  1852. * src/util.cc
  1853. * src/util.h
  1854. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1855. Fixed integer potential alignment problem.
  1856. * src/bitfield.h
  1857. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1858. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1859. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1860. include file ordering.
  1861. * src/PeerListProcessor.h
  1862. * src/bittorrent_helper.cc
  1863. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1865. * src/Request.cc
  1866. * src/util.cc
  1867. * src/util.h
  1868. * test/RequestTest.cc
  1869. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Rewritten util::uitos()
  1871. * src/util.h
  1872. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1873. Code cleanup
  1874. * src/Request.cc
  1875. * src/Request.h
  1876. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Rewritten Request::parseUrl()
  1878. * src/Request.cc
  1879. * test/RequestTest.cc
  1880. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1881. Removed unused macro SAFE_CHARS
  1882. * src/Request.cc
  1883. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1884. Updated doc
  1885. * src/DHTRoutingTableDeserializer.cc
  1886. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Release 1.6.3
  1888. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Removed unused function.
  1890. * test/DHTPeerAnnounceStorageTest.cc
  1891. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1892. Only decrement cols if cols > 0
  1893. * src/ConsoleStatCalc.cc
  1894. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1895. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1896. translations. Thanks to all translators.
  1897. * po/ca.po
  1898. * po/fr.po
  1899. * po/it.po
  1900. * po/ja.po
  1901. * po/pl.po
  1902. * po/ru.po
  1903. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. Updated translation template
  1905. * po
  1906. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1907. Fixed compile error without ssl library.
  1908. * src/util.cc
  1909. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1910. Logged received nodes in get_peers reply message.
  1911. * src/DHTAbstractNodeLookupTask.cc
  1912. * src/DHTAbstractNodeLookupTask.h
  1913. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1914. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1915. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1916. * src/DHTMessageDispatcherImpl.cc
  1917. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1918. Don't reuse URI if Request pool is not empty.
  1919. * src/CreateRequestCommand.cc
  1920. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1921. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1922. receive get_peers request for torrent which the client is now
  1923. downloading.
  1924. * src/BtSetup.cc
  1925. * src/DHTPeerAnnounceEntry.cc
  1926. * src/DHTPeerAnnounceEntry.h
  1927. * src/DHTPeerAnnounceStorage.cc
  1928. * src/DHTPeerAnnounceStorage.h
  1929. * src/RequestGroup.cc
  1930. * test/DHTPeerAnnounceEntryTest.cc
  1931. * test/DHTPeerAnnounceStorageTest.cc
  1932. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1933. Fixed the bug that in Windows environment new blank line is
  1934. inserted when console readout is updated.
  1935. * src/ConsoleStatCalc.cc
  1936. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1937. Throw exception if binding listening port is failed. Removed
  1938. RequestGroupMan::getInitialCommand(). Use
  1939. fillRequestGroupFromReserver() instead. Delete commands for
  1940. RequestGroup which has errors when it is being added.
  1941. * src/BtSetup.cc
  1942. * src/DownloadEngine.cc
  1943. * src/DownloadEngine.h
  1944. * src/DownloadEngineFactory.cc
  1945. * src/MultiUrlRequestInfo.cc
  1946. * src/RequestGroupMan.cc
  1947. * src/RequestGroupMan.h
  1948. * test/RequestGroupManTest.cc
  1949. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1950. Fixed the bug that when downloading more than one torrent,
  1951. listening port is not reported properly to tracker for 2nd or
  1952. later torrents.
  1953. * src/BtSetup.cc
  1954. * src/PeerListenCommand.cc
  1955. * src/PeerListenCommand.h
  1956. * src/RequestGroup.cc
  1957. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1958. Bump up version number to 1.6.3
  1959. * configure.ac
  1960. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1961. Removed Util.cc from POTFILES.in
  1962. * po/POTFILES.in
  1963. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1964. Updated man page for previous change.
  1965. * doc/aria2c.1.txt
  1966. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. If user name is embedded but password is missing in URI, first
  1968. resolve password using .netrc. If password is found in .netrc,
  1969. then use it as password. If not, use the password specified in
  1970. --ftp-passwd.
  1971. * src/AuthConfigFactory.cc
  1972. * src/Request.cc
  1973. * src/Request.h
  1974. * test/AuthConfigFactoryTest.cc
  1975. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1976. Fixed typo
  1977. * doc/aria2c.1.txt
  1978. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1979. Fixed typo
  1980. * src/usage_text.h
  1981. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1982. Added missing bitfield.cc
  1983. * src/bitfield.cc
  1984. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1985. Renamed Util.{cc,h} as util.{cc,h}
  1986. * src/Util.cc
  1987. * src/Util.h
  1988. * src/util.cc
  1989. * src/util.h
  1990. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1991. Moved static functions in Util class to namespace util.
  1992. * src
  1993. * test
  1994. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1996. Moved generateRandomKey to bittorrent_helper.cc.
  1997. * src/DHTBucket.cc
  1998. * src/DHTGetPeersMessage.cc
  1999. * src/DHTGetPeersReplyMessage.cc
  2000. * src/DHTMessage.cc
  2001. * src/DHTNode.cc
  2002. * src/DHTTokenTracker.cc
  2003. * src/DHTUtil.cc: Removed.
  2004. * src/DHTUtil.h: Removed.
  2005. * src/Makefile.am
  2006. * src/Util.cc
  2007. * src/Util.h
  2008. * src/bitfield.h
  2009. * src/bittorrent_helper.cc
  2010. * src/bittorrent_helper.h
  2011. * test/ARC4Test.cc
  2012. * test/BNodeTest.cc
  2013. * test/DHTAnnouncePeerMessageTest.cc
  2014. * test/DHTAnnouncePeerReplyMessageTest.cc
  2015. * test/DHTFindNodeMessageTest.cc
  2016. * test/DHTFindNodeReplyMessageTest.cc
  2017. * test/DHTGetPeersMessageTest.cc
  2018. * test/DHTGetPeersReplyMessageTest.cc
  2019. * test/DHTPingMessageTest.cc
  2020. * test/DHTPingReplyMessageTest.cc
  2021. * test/DHTTokenTrackerTest.cc
  2022. * test/DHTUtilTest.cc: Removed.
  2023. * test/Makefile.am
  2024. * test/UtilTest.cc
  2025. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Removed the call to trim() because trim() is called for each
  2027. element in split().
  2028. * src/CookieParser.cc
  2029. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Replaced Util::slice() with split()
  2031. * src/AbstractCommand.cc
  2032. * src/CookieParser.cc
  2033. * src/File.cc
  2034. * src/HttpHeaderProcessor.cc
  2035. * src/HttpRequest.cc
  2036. * src/Metalink2RequestGroup.cc
  2037. * src/MetalinkParserController.cc
  2038. * src/Netrc.cc
  2039. * src/NsCookieParser.cc
  2040. * src/ParameterizedStringParser.cc
  2041. * src/ServerStatMan.cc
  2042. * src/UriListParser.cc
  2043. * src/Util.cc
  2044. * src/Util.h
  2045. * src/bittorrent_helper.cc
  2046. * test/UtilTest.cc
  2047. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. Use request->getDir() instead of "/" for embedded user/pass in
  2049. URI.
  2050. * src/AuthConfigFactory.cc
  2051. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Fixed wrong insertion point for BasicCred.
  2053. * src/AuthConfigFactory.cc
  2054. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. Allowed non-regular file in LocalFilePathOptionHandler
  2056. * src/OptionHandlerImpl.h
  2057. * src/message.h
  2058. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2059. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2060. * src/Netrc.cc
  2061. * src/Util.h
  2062. * test/NetrcTest.cc
  2063. * test/sample.netrc
  2064. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2065. Fixed typo
  2066. * src/BtDependency.cc
  2067. * src/BtRejectMessage.cc
  2068. * src/FtpConnection.cc
  2069. * src/HttpHeaderProcessor.h
  2070. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2071. Fixed lintian report in man page
  2072. * doc/aria2c.1.txt
  2073. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Release 1.6.2
  2075. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2076. Updated Ukrainian translation. Thanks to all translators.
  2077. * po/uk.po
  2078. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2079. Updated translation template
  2080. * po
  2081. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2082. Bump up version number to 1.6.2
  2083. * configure.ac
  2084. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2085. Updated licence message in -v output.
  2086. * src/version_usage.cc
  2087. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2088. Replaced aria2 with aria2c in help message.
  2089. * src/version_usage.cc
  2090. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2091. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2092. * src/version_usage.cc
  2093. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2094. Quoted localedir
  2095. * src/Makefile.am
  2096. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2097. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2098. utime. Check header for utime.h.
  2099. * configure.ac
  2100. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2102. * configure.ac
  2103. * src/daemon.cc
  2104. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2105. Don't set localedir manually. Leave it to autoconf.
  2106. * configure.ac
  2107. * src/Makefile.am
  2108. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. Added --install to ACLOCAL_AMFLAGS.
  2110. Removed m4 from SUBDIRS.
  2111. Updated automake 1.11 and autoconf 2.64.
  2112. Replaced some obsolute macros with new one.
  2113. * Makefile.am
  2114. * configure.ac
  2115. * m4/aria2_arg.m4
  2116. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Removed Makefile.am in m4 directory.
  2118. * configure.ac
  2119. * m4/ChangeLog
  2120. * m4/Makefile.am
  2121. * m4/Makefile.in
  2122. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Removed unused m4 macros.
  2124. * m4/intldir.m4
  2125. * m4/inttypes.m4
  2126. * m4/isc-posix.m4
  2127. * m4/libgnutls-extra.m4
  2128. * m4/ulonglong.m4
  2129. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2130. Fixed the bug that causes segmentation fault if
  2131. req->getCurrentUrl() contains printf formatting characters such as
  2132. %d. The statement that causes this bug is useless and removed.
  2133. * src/AbstractCommand.cc
  2134. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2135. * Release 1.6.1
  2136. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Updated Simplified Chinese translation. Thanks to translators.
  2138. * po/zh_CN.po
  2139. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2140. Updated translation template
  2141. * po
  2142. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2143. Bump up version number to 1.6.1
  2144. * configure.ac
  2145. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Changed interval from 120 to 60 for dropping inactive peer.
  2147. * src/DefaultBtInteractive.cc
  2148. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Updated man page for --user-agent and --peer-id-prefix option.
  2150. * doc/aria2c.1.txt
  2151. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2152. Code clean up
  2153. * src/BtPostDownloadHandler.cc
  2154. * src/ContentTypeRequestGroupCriteria.cc
  2155. * src/ContentTypeRequestGroupCriteria.h
  2156. * src/DownloadHandlerConstants.cc
  2157. * src/DownloadHandlerConstants.h
  2158. * src/DownloadHandlerFactory.cc
  2159. * src/MetalinkPostDownloadHandler.cc
  2160. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Don't save control file when aria2 exists while checking piece
  2162. hash(behavior of -V option). If control file doesn't exist when
  2163. aria2 launched, the completed length in saved control file will be
  2164. 0 byte and this confuses user. disableSaveControlFile() is called
  2165. in RequestGroup::processCheckIntegrityEntry().
  2166. enableSaveControlFile() will be called after hash checking is
  2167. done. See CheckIntegrityCommand.
  2168. * src/CheckIntegrityCommand.cc
  2169. * src/RequestGroup.cc
  2170. * src/RequestGroup.h
  2171. * src/RequestGroupMan.cc
  2172. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Included version number in Peer ID and client version. Peer ID
  2174. now starts with "aria2/VERSION-", where VERSION is
  2175. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2176. * src/DefaultBtInteractive.cc
  2177. * src/OptionHandlerFactory.cc
  2178. * src/bittorrent_helper.cc
  2179. * src/bittorrent_helper.h
  2180. * src/main.cc
  2181. * src/usage_text.h
  2182. * test/BittorrentHelperTest.cc
  2183. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Fixed memory leak.
  2185. * src/DownloadCommand.cc
  2186. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2187. Removed server, port, user and passwd key from options before
  2188. XMLRPC::Client.call since they are not options of aria2.
  2189. * doc/xmlrpc/aria2mon
  2190. * doc/xmlrpc/aria2rpc
  2191. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2192. Included version number in user-agent string.
  2193. * src/OptionHandlerFactory.cc
  2194. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Fixed the bug that the option values changed by XML-RPC
  2196. method(changeOption and changeGlobalOption) are overwritten to the
  2197. previous value by the next these request which doesn't contain
  2198. that option value. Supporse max-download-limit is initially 0. You
  2199. changed this value to 100K by changeOption. Then you issue
  2200. changeOption request to change max-upload-limit to 50K. This
  2201. second request doesn't contain xml-download-limit, so it is back
  2202. to initial value, 0. Another improvement is that exception is
  2203. thrown when changeOption and changeGlobalOption request contains
  2204. option name which doesn't allowed in each request.
  2205. * src/DownloadEngine.h
  2206. * src/XmlRpcMethod.cc
  2207. * src/XmlRpcMethod.h
  2208. * src/XmlRpcMethodImpl.cc
  2209. * src/download_helper.cc
  2210. * src/download_helper.h
  2211. * test/XmlRpcMethodTest.cc
  2212. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2213. Added missing MetalinkParserStateImpl.{cc,h}
  2214. * src/MetalinkParserStateImpl.cc
  2215. * src/MetalinkParserStateImpl.h
  2216. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2217. Put all MetalinkParserState subclasses into
  2218. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2219. * src/FileMetalinkParserState.cc: Removed
  2220. * src/FileMetalinkParserState.h: Removed
  2221. * src/FilesMetalinkParserState.cc: Removed
  2222. * src/FilesMetalinkParserState.h: Removed
  2223. * src/FinMetalinkParserState.cc: Removed
  2224. * src/FinMetalinkParserState.h: Removed
  2225. * src/HashMetalinkParserState.cc: Removed
  2226. * src/HashMetalinkParserState.h: Removed
  2227. * src/InitialMetalinkParserState.cc: Removed
  2228. * src/InitialMetalinkParserState.h: Removed
  2229. * src/LanguageMetalinkParserState.cc: Removed
  2230. * src/LanguageMetalinkParserState.h: Removed
  2231. * src/Makefile.am
  2232. * src/MetalinkMetalinkParserState.cc: Removed
  2233. * src/MetalinkMetalinkParserState.h: Removed
  2234. * src/MetalinkParserState.h
  2235. * src/MetalinkParserStateMachine.cc
  2236. * src/MetalinkParserStateMachine.h
  2237. * src/OSMetalinkParserState.cc: Removed
  2238. * src/OSMetalinkParserState.h: Removed
  2239. * src/PieceHashMetalinkParserState.cc: Removed
  2240. * src/PieceHashMetalinkParserState.h: Removed
  2241. * src/PiecesMetalinkParserState.cc: Removed
  2242. * src/PiecesMetalinkParserState.h: Removed
  2243. * src/ResourcesMetalinkParserState.cc: Removed
  2244. * src/ResourcesMetalinkParserState.h: Removed
  2245. * src/SignatureMetalinkParserState.cc: Removed
  2246. * src/SignatureMetalinkParserState.h: Removed
  2247. * src/SizeMetalinkParserState.cc: Removed
  2248. * src/SizeMetalinkParserState.h: Removed
  2249. * src/SkipTagMetalinkParserState.cc: Removed
  2250. * src/SkipTagMetalinkParserState.h: Removed
  2251. * src/URLMetalinkParserState.cc: Removed
  2252. * src/URLMetalinkParserState.h: Removed
  2253. * src/VerificationMetalinkParserState.cc: Removed
  2254. * src/VerificationMetalinkParserState.h: Removed
  2255. * src/VersionMetalinkParserState.cc: Removed
  2256. * src/VersionMetalinkParserState.h: Removed
  2257. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Move all functions in PeerMessageUtil to bittorrent_helper.
  2259. * src/BtBitfieldMessage.cc
  2260. * src/BtBitfieldMessageValidator.h
  2261. * src/BtExtendedMessage.cc
  2262. * src/BtHandshakeMessage.cc
  2263. * src/BtHandshakeMessageValidator.h
  2264. * src/BtPieceMessage.cc
  2265. * src/BtPieceMessageValidator.h
  2266. * src/BtPortMessage.cc
  2267. * src/DHTFindNodeReplyMessage.cc
  2268. * src/DHTGetPeersReplyMessage.cc
  2269. * src/DHTMessageFactoryImpl.cc
  2270. * src/DHTRoutingTableDeserializer.cc
  2271. * src/DHTRoutingTableSerializer.cc
  2272. * src/DHTTokenTracker.cc
  2273. * src/DefaultBtMessageFactory.cc
  2274. * src/IndexBtMessage.cc
  2275. * src/IndexBtMessage.h
  2276. * src/IndexBtMessageValidator.h
  2277. * src/Makefile.am
  2278. * src/PeerMessageUtil.cc: Removed.
  2279. * src/PeerMessageUtil.h: Removed.
  2280. * src/RangeBtMessage.cc
  2281. * src/RangeBtMessage.h
  2282. * src/RangeBtMessageValidator.h
  2283. * src/UTPexExtensionMessage.cc
  2284. * src/ZeroBtMessage.cc
  2285. * src/ZeroBtMessage.h
  2286. * src/bittorrent_helper.cc
  2287. * src/bittorrent_helper.h
  2288. * test/BittorrentHelperTest.cc
  2289. * test/BtAllowedFastMessageTest.cc
  2290. * test/BtBitfieldMessageTest.cc
  2291. * test/BtCancelMessageTest.cc
  2292. * test/BtChokeMessageTest.cc
  2293. * test/BtExtendedMessageTest.cc
  2294. * test/BtHandshakeMessageTest.cc
  2295. * test/BtHaveAllMessageTest.cc
  2296. * test/BtHaveMessageTest.cc
  2297. * test/BtHaveNoneMessageTest.cc
  2298. * test/BtInterestedMessageTest.cc
  2299. * test/BtNotInterestedMessageTest.cc
  2300. * test/BtPieceMessageTest.cc
  2301. * test/BtPortMessageTest.cc
  2302. * test/BtRejectMessageTest.cc
  2303. * test/BtRequestMessageTest.cc
  2304. * test/BtSuggestPieceMessageTest.cc
  2305. * test/BtUnchokeMessageTest.cc
  2306. * test/DHTFindNodeReplyMessageTest.cc
  2307. * test/DHTGetPeersReplyMessageTest.cc
  2308. * test/DHTMessageFactoryImplTest.cc
  2309. * test/DHTRoutingTableDeserializerTest.cc
  2310. * test/DHTRoutingTableSerializerTest.cc
  2311. * test/DefaultBtMessageFactoryTest.cc
  2312. * test/DefaultExtensionMessageFactoryTest.cc
  2313. * test/Makefile.am
  2314. * test/PeerListProcessorTest.cc
  2315. * test/PeerMessageUtilTest.cc: Removed.
  2316. * test/UTPexExtensionMessageTest.cc
  2317. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2318. Limit the size of values list when sending get_peers reply.
  2319. * src/DHTGetPeersReplyMessage.cc
  2320. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2321. Updated banner
  2322. * doc/xmlrpc/aria2rpc
  2323. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2324. Added missing help message for remove command.
  2325. * doc/xmlrpc/aria2rpc
  2326. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2327. Generated configure and config.h.in
  2328. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2329. Add check for fork(), which is missing on MinGW
  2330. * src/daemon.cc
  2331. * configure.ac
  2332. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2333. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2334. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2335. Util::httpGMT().
  2336. * src/Util.cc
  2337. * src/Util.h
  2338. * test/UtilTest.cc
  2339. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. * Release 1.6.0
  2341. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Fixed a path to xmlrpc/README.txt
  2343. * doc/Makefile.am
  2344. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2345. Added XML-RPC in -v Configuration output.
  2346. * src/FeatureConfig.cc
  2347. * src/FeatureConfig.h
  2348. * test/FeatureConfigTest.cc
  2349. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2350. Updated Bulgarian, Russian, Slovak and Japanese
  2351. translations. Thanks to all translators.
  2352. * po/bg.po
  2353. * po/ja.po
  2354. * po/ru.po
  2355. * po/sk.po
  2356. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Removed --retry-wait option from aria2rpc
  2358. * doc/xmlrpc/aria2rpc
  2359. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2360. Removed --retry-wait option from man page.
  2361. * doc/aria2c.1.txt
  2362. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2363. Removed --retry-wait option since the current architecture doesn't
  2364. allow sleep for particular URI.
  2365. * src/AbstractCommand.cc
  2366. * src/OptionHandlerFactory.cc
  2367. * src/download_helper.cc
  2368. * src/prefs.cc
  2369. * src/prefs.h
  2370. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2371. Removed Retry-After header support. Since the current architecture
  2372. doesn't allow sleep for particular URI.
  2373. * src/HttpSkipResponseCommand.cc
  2374. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Updated the help message for --daemon option.
  2376. * doc/aria2c.1.txt
  2377. * src/usage_text.h
  2378. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2379. Added our own daemon() function for systems which desn't have
  2380. daemon(3).
  2381. * configure.ac
  2382. * src/Makefile.am
  2383. * src/daemon.cc
  2384. * src/daemon.h
  2385. * src/option_processing.cc
  2386. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Simplified File::getCurrentDir()
  2388. * src/File.cc
  2389. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Use exit() instead of _exit
  2391. * src/RequestGroupMan.cc
  2392. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2393. Replaced "CATEGORY" with "TAGS".
  2394. * src/usage_text.h
  2395. * doc/aria2c.1.txt
  2396. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2397. Updated the help message for --help option.
  2398. * src/usage_text.h
  2399. * doc/aria2c.1.txt
  2400. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2401. Updated man page for added help tags.
  2402. * doc/aria2c.1.txt
  2403. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2404. Added help category #file. Added #file tag to the options related
  2405. to downloaded file.
  2406. * src/OptionHandlerFactory.cc
  2407. * src/help_tags.h
  2408. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2409. Added help categories: #cookie and #hook. Added #https tag to
  2410. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2411. * src/OptionHandlerFactory.cc
  2412. * src/help_tags.h
  2413. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2414. Made MSG_NOT_FILE translatable.
  2415. * src/message.h
  2416. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2417. Updated man page for --help option.
  2418. * doc/aria2c.1.txt
  2419. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2420. Updated doc.
  2421. * src/XmlRpcMethod.h
  2422. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2423. Help category now starts with "#" to distinguish a category from
  2424. keyword search. For example, "http" categroy is now "#http". You
  2425. can type "--help=#http" to get explanation of options related to
  2426. http. If '#' is omitted, then the argument is treated as a keyword
  2427. and aria2 searches options whose name includes the keyword and
  2428. print matched ones. For example, "--help=http" will show options
  2429. whose name includes "http".
  2430. * src/OptionHandlerFactory.cc
  2431. * src/help_tags.h
  2432. * src/usage_text.h
  2433. * src/version_usage.cc
  2434. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Documented missing experimental tag and newly added xml-rpc tag in
  2436. man page.
  2437. * doc/aria2c.1.txt
  2438. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Added xml-rpc help tag. Tagged xml-rpc related options with
  2440. xml-rpc tag.
  2441. * src/OptionHandlerFactory.cc
  2442. * src/help_tags.h
  2443. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Updated message when a path is not a file. Updated common message
  2445. for wrong option.
  2446. * src/OptionHandlerException.cc
  2447. * src/message.h
  2448. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2449. Use File::isFile() instead of File::exists(). Updated message when
  2450. a path is not a file.
  2451. * src/OptionHandlerImpl.cc
  2452. * src/message.h
  2453. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2454. Fixed the bug that server performence profile is not updated when
  2455. aria2c was terminated by emergency shutdown.
  2456. * src/TrackerWatcherCommand.cc
  2457. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2458. Use LocalFilePathOptionHandler for -T and -M option.
  2459. Updated message of MSG_FILE_NOT_EXIST.
  2460. * src/OptionHandlerFactory.cc
  2461. * src/message.h
  2462. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Added LocalFilePathOptionHandler which check whether the specified
  2464. file path does exist or not.
  2465. * src/OptionHandlerImpl.cc
  2466. * src/message.h
  2467. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2468. Updated wiki page URI.
  2469. * README
  2470. * doc/aria2c.1.txt
  2471. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. Added README.txt for xmlrpc directory.
  2473. * doc/Makefile.am
  2474. * doc/xmlrpc/README.txt
  2475. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2476. Bump up version number to 1.6.0.
  2477. * configure.ac
  2478. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2479. Added XML-RPC client scripts written in ruby.
  2480. * doc/Makefile.am
  2481. * doc/xmlrpc/aria2mon
  2482. * doc/xmlrpc/aria2rpc
  2483. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Added support for IPv6 literal address in URI. Now aria2 can
  2485. handle URI such as http://[::1]/
  2486. * src/HttpRequest.cc
  2487. * src/HttpRequest.h
  2488. * src/Request.cc
  2489. * src/Request.h
  2490. * test/HttpRequestTest.cc
  2491. * test/OptionHandlerTest.cc
  2492. * test/RequestTest.cc
  2493. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2494. Fixed the bug that HTTP request header for XML-RPC request is not
  2495. parsed properly.
  2496. * src/HttpHeader.cc
  2497. * src/HttpHeaderProcessor.cc
  2498. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2499. Fixed the bug that XML-RPC authorization might be done before HTTP
  2500. request header is fully received.
  2501. * src/HttpServerCommand.cc
  2502. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. Documented --xml-rpc-listen-all option in man page.
  2504. * doc/aria2c.1.txt
  2505. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2506. Added --xml-rpc-listen-all option. If true is given to this
  2507. option, aria2 listens incoming XML-RPC requests on all network
  2508. interfaces. If false is given, listens only on local loopback
  2509. interface. The default value is false.
  2510. * src/HttpListenCommand.cc
  2511. * src/OptionHandlerFactory.cc
  2512. * src/SocketCore.cc
  2513. * src/SocketCore.h
  2514. * src/prefs.cc
  2515. * src/prefs.h
  2516. * src/usage_text.h
  2517. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2518. * Release 1.5.2
  2519. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2520. Updated Ukrainian and Russian translations. Thanks to all
  2521. translators.
  2522. * po/ru.po
  2523. * po/uk.po
  2524. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Bump up version number to 1.5.2
  2526. * configure.ac
  2527. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2528. Get comment, comment.utf-8, created by and creation date from
  2529. .torrent file and print them in -S output.
  2530. * src/bittorrent_helper.cc
  2531. * src/bittorrent_helper.h
  2532. * test/BittorrentHelperTest.cc
  2533. * test/test.torrent
  2534. * test/utf8.torrent
  2535. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Show exact file size along in -S option output.
  2537. * src/Util.h
  2538. * src/bittorrent_helper.cc
  2539. * test/UtilTest.cc
  2540. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2541. Avoided unnecessary memory allocation in
  2542. BitfieldMan::getCompletedLength().
  2543. * src/BitfieldMan.cc
  2544. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Fixed the bug that download fails if
  2546. SocketCore::establishConnection() throws exception and aria2
  2547. doesn't try another address.
  2548. * src/AbstractCommand.cc
  2549. * src/InitiateConnectionCommand.cc
  2550. * src/message.h
  2551. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2552. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2553. detected properly.
  2554. * m4/sqlite3.m4
  2555. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2556. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2557. because it causes compile error if PARAMS macro is defined.
  2558. * src/XmlRpcElements.cc
  2559. * src/XmlRpcElements.h
  2560. * src/XmlRpcRequestParserStateImpl.cc
  2561. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2562. * Release 1.5.1
  2563. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2564. Bump up version number to 1.5.1
  2565. * configure.ac
  2566. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2567. Fixed compile error without BitTorrent support
  2568. * src/DefaultBtProgressInfoFile.cc
  2569. * src/DownloadEngine.cc
  2570. * src/DownloadEngine.h
  2571. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2572. Added missing '=' in Download Results
  2573. * src/RequestGroupMan.cc
  2574. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2575. Fixed compiler warning
  2576. * src/DefaultBtProgressInfoFile.cc
  2577. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Fixed compiler warning on 32bit systems.
  2579. * src/DownloadCommand.cc
  2580. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Call flush from ServerStatMan::save()
  2582. * src/ServerStatMan.cc
  2583. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Check stream status after file is opened.
  2585. * src/CookieStorage.cc
  2586. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2587. Rewritten Signature::save()
  2588. * src/Signature.cc
  2589. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2590. Rewritten RequestGroupMan::saveServerStat()
  2591. * src/RequestGroupMan.cc
  2592. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2593. Rewritten stream error handling
  2594. * src/DHTAutoSaveCommand.cc
  2595. * src/DHTRoutingTableDeserializer.cc
  2596. * src/DHTRoutingTableSerializer.cc
  2597. * src/DHTSetup.cc
  2598. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Check stream status after file is opened.
  2600. * src/DefaultBtProgressInfoFile.cc
  2601. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2602. Rewritten stream error handling
  2603. * src/DefaultBtProgressInfoFile.cc
  2604. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2605. Make sure that stream is closed before renaming file. Unit test
  2606. fails on mingw32 in the previous implementation.
  2607. * src/CookieStorage.cc
  2608. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2609. Fixed the unit test error without sqlite3
  2610. * test/CookieStorageTest.cc
  2611. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2612. Fixed the undefined reference error
  2613. * test/HttpResponseTest.cc
  2614. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2615. * Release 1.5.0
  2616. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2618. Ukrainian translations. Thanks to all translators.
  2619. * po/ru.po
  2620. * po/it.po
  2621. * po/da.po
  2622. * po/bg.po
  2623. * po/ja.po
  2624. * po/uk.po
  2625. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2626. Added missing src/Logger.cc
  2627. * src/Logger.cc
  2628. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Rewritten Logger to avoiding constly virtual call.
  2630. * src/LogFactory.cc
  2631. * src/LogFactory.h
  2632. * src/Logger.h
  2633. * src/Makefile.am
  2634. * src/Makefile.in
  2635. * src/NullLogger.h: Removed.
  2636. * src/SimpleLogger.cc
  2637. * src/SimpleLogger.h
  2638. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2639. Updated doc
  2640. * src/main.cc
  2641. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2642. Updated debug log message
  2643. * src/AbstractCommand.cc
  2644. * src/message.h
  2645. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Avoid to create zombie process when commands specified in
  2647. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2648. X and NetBSD.
  2649. * src/main.cc
  2650. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2651. Fixed typo
  2652. * src/usage_text.h
  2653. * doc/aria2c.1.txt
  2654. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Documented 'errorCode' of tellStatus in man page.
  2656. * doc/aria2c.1.txt
  2657. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2659. This key is only available for stopped/completed downloads and its
  2660. value is the error code defined in EXIT STATUS in man page.
  2661. * src/XmlRpcMethodImpl.cc
  2662. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2663. Fixed the bug that session download length is not updated when
  2664. PeerStat is not fastest one.
  2665. * src/SegmentMan.cc
  2666. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Updated doc.
  2668. * doc/aria2c.1.txt
  2669. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2670. Updated doc.
  2671. * src/AbstractCommand.cc
  2672. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2673. Handle the case when DownloadContext has no FileEntry.
  2674. * src/XmlRpcMethodImpl.cc
  2675. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2676. Handle the situation where struct option.name is char *.
  2677. * configure.ac
  2678. * src/OptionParser.cc
  2679. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Code cleanup
  2681. * src/AbstractCommand.cc
  2682. * src/DownloadCommand.cc
  2683. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2684. Use option of each download to create AuthConfig instead of global
  2685. option.
  2686. * src/AuthConfigFactory.cc
  2687. * src/AuthConfigFactory.h
  2688. * src/FtpNegotiationCommand.cc
  2689. * src/HttpRequest.cc
  2690. * src/HttpRequest.h
  2691. * src/HttpRequestCommand.cc
  2692. * src/HttpSkipResponseCommand.cc
  2693. * src/MultiUrlRequestInfo.cc
  2694. * test/AuthConfigFactoryTest.cc
  2695. * test/FtpConnectionTest.cc
  2696. * test/HttpRequestTest.cc
  2697. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2698. Don't call prepareForRetry(1) if all segments are ignored in
  2699. SegmentMan.
  2700. * src/AbstractCommand.cc
  2701. * src/BitfieldMan.cc
  2702. * src/BitfieldMan.h
  2703. * src/SegmentMan.cc
  2704. * src/SegmentMan.h
  2705. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2706. Removed FileEntry::getAssociatedUris()
  2707. * src/FileEntry.h
  2708. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2709. Updated doc: TODO1.5 -> TODO
  2710. * src/FileEntry.cc
  2711. * src/HttpResponseCommand.cc
  2712. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2713. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2714. involved.
  2715. * src/RequestGroup.cc
  2716. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2717. Eliminated duplicated filterBitfield initialization code.
  2718. * src/BitfieldMan.cc
  2719. * src/BitfieldMan.h
  2720. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2721. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2722. relatively naive approach, though). For DownloadFailureException,
  2723. we handle the case when req is null properly.
  2724. * src/AbstractCommand.cc
  2725. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. Added function returning suffix of control file to
  2727. DefaultBtProgressInfoFile.
  2728. * src/DefaultBtProgressInfoFile.cc
  2729. * src/DefaultBtProgressInfoFile.h
  2730. * src/RequestGroup.cc
  2731. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Documented getVersion in man page.
  2733. * doc/aria2c.1.txt
  2734. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Documented type of offset and num for tellWaiting xml-rpc method.
  2736. * doc/aria2c.1.txt
  2737. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2738. Implemented getVersion xml-rpc method. This method returns struct
  2739. which has 2 key-value pairs: "version" key is associated to the
  2740. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2741. associated to the list of enabled features, such as "Async DNS",
  2742. "BitTorrent".
  2743. * src/FeatureConfig.h
  2744. * src/XmlRpcMethodFactory.cc
  2745. * src/XmlRpcMethodImpl.cc
  2746. * src/XmlRpcMethodImpl.h
  2747. * test/XmlRpcMethodTest.cc
  2748. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2749. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2750. for compatibility issue.
  2751. * src/SocketCore.cc
  2752. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2753. Fixed compile error with openSSL
  2754. * src/bittorrent_helper.cc
  2755. * src/messageDigest.h
  2756. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2757. Removed bad code: setting certificate type priority to key
  2758. exchange priority.
  2759. * src/SocketCore.cc
  2760. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Disconnect seeder if client is also in seed state.
  2762. * src/BtBitfieldMessage.cc
  2763. * src/BtHaveAllMessage.cc
  2764. * src/BtHaveMessage.cc
  2765. * src/message.h
  2766. * test/BtBitfieldMessageTest.cc
  2767. * test/BtHaveAllMessageTest.cc
  2768. * test/BtHaveMessageTest.cc
  2769. * test/MockPieceStorage.h
  2770. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. Keep CreateRequestCommand in queue when no segment is available so
  2772. that they can pick up pieces which slow BitTorrent peers are
  2773. downloading.
  2774. * src/AbstractCommand.cc
  2775. * src/CreateRequestCommand.cc
  2776. * src/CreateRequestCommand.h
  2777. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2778. --bt-stop-timeout now only checks download speed.
  2779. * src/BtStopDownloadCommand.cc
  2780. * src/BtStopDownloadCommand.h
  2781. * src/BtSetup.cc
  2782. * src/usage_text.h
  2783. * doc/aria2c.1.txt
  2784. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2785. Fixed compile error regarding BUFSIZE.
  2786. * src/DownloadCommand.cc
  2787. * src/DownloadCommand.h
  2788. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2789. Documented tellWaiting xml-rpc method in man page.
  2790. * doc/aria2c.1.txt
  2791. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2792. Bump up version number to 1.5.0
  2793. * configure.ac
  2794. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2795. Removed resolved TODO1.5
  2796. * src/AbstractCommand.cc
  2797. * src/DownloadCommand.cc
  2798. * src/RequestGroup.cc
  2799. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2800. Release pooled and in-flight Request objectsand URIResult objects
  2801. in FileEntry after download completed.
  2802. * src/DownloadContext.cc
  2803. * src/DownloadContext.h
  2804. * src/FileEntry.cc
  2805. * src/FileEntry.h
  2806. * src/RequestGroup.cc
  2807. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2808. Set manual and source attribute in aria2c.1.txt
  2809. * doc/aria2c.1.txt
  2810. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2811. Documented that the default value of --use-head is 'false' in man
  2812. page.
  2813. * doc/aria2c.1.txt
  2814. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2815. Added bt-stop-timeout option to -i list.
  2816. * doc/aria2c.1.txt
  2817. * src/download_helper.cc
  2818. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2819. Fixed typo
  2820. * doc/aria2c.1.txt
  2821. * src/usage_text.h
  2822. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2823. Removed peer-id-prefix option from -i list.
  2824. * doc/aria2c.1.txt
  2825. * src/download_helper.cc
  2826. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. Fixed typo
  2828. * doc/aria2c.1.txt
  2829. * src/usage_text.h
  2830. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2831. Documented --bt-stop-timeout option in man page.
  2832. * doc/aria2c.1.txt
  2833. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. Updated README regarding multi-file torrent web-seeding.
  2835. * doc/README.txt
  2836. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Updated man page regarding multi-file torrent web-seeding.
  2838. * doc/aria2c.1.txt
  2839. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Updated doc
  2841. * src/version_usage.cc
  2842. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2843. Winsock select() doesn't work if no socket is in FD_SET. To
  2844. overcome this problem, a dummy socket is added to FD_SET and it is
  2845. given to select().
  2846. * src/SelectEventPoll.cc
  2847. * src/SelectEventPoll.h
  2848. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2849. Disabled --use-head option by default because --use-head=true
  2850. causes problems on some web sites.
  2851. * src/OptionHandlerFactory.cc
  2852. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2853. Print URL List in -S option for torrent.
  2854. * src/bittorrent_helper.cc
  2855. * src/bittorrent_helper.h
  2856. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. Allocate buffer in ctor of DownloadCommand.
  2858. * src/DownloadCommand.cc
  2859. * src/DownloadCommand.h
  2860. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2861. Removed DiskAdaptor::onDownloadComplete()
  2862. * src/DirectDiskAdaptor.cc
  2863. * src/DirectDiskAdaptor.h
  2864. * src/DiskAdaptor.h
  2865. * src/MultiDiskAdaptor.cc
  2866. * src/MultiDiskAdaptor.h
  2867. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2868. Committed missing BtStopDownloadCommand.{cc,h}
  2869. * src/BtStopDownloadCommand.cc
  2870. * src/BtStopDownloadCommand.h
  2871. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2872. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2873. download if the download speed is 0 and the number of seeder is 0
  2874. in consecutive SEC seconds. By default, this function is disabled.
  2875. * src/BtSetup.cc
  2876. * src/Makefile.am
  2877. * src/OptionHandlerFactory.cc
  2878. * src/prefs.cc
  2879. * src/prefs.h
  2880. * src/usage_text.h
  2881. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2882. Removed the call to DiskAdaptor::onDownloadComplete() from
  2883. BtCheckIntegrityEntry and DefaultPieceStorage.
  2884. * src/BtCheckIntegrityEntry.cc
  2885. * src/DefaultPieceStorage.cc
  2886. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2887. Commented out throw statements when number of piece is 0 to
  2888. download 0 length torrent.
  2889. * src/bittorrent_helper.cc
  2890. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2891. Call RequestGroup::createNextCommandWithAdj() from
  2892. BtFileAllocationEntry if at least one FileEntry has URI. The
  2893. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2894. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2895. * src/BtFileAllocationEntry.cc
  2896. * src/FileEntry.h
  2897. * src/RequestGroup.cc
  2898. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2899. Generate peer ID after SimpleRandomizer is initialized.
  2900. * src/main.cc
  2901. * src/option_processing.cc
  2902. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Removed unused method argument.
  2904. * src/CreateRequestCommand.cc
  2905. * src/RequestGroup.cc
  2906. * src/RequestGroup.h
  2907. * src/RequestGroupMan.cc
  2908. * src/TrackerWatcherCommand.cc
  2909. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2910. Made URI reusing function work.
  2911. * src/CreateRequestCommand.cc
  2912. * src/FileEntry.cc
  2913. * src/FileEntry.h
  2914. * test/FileEntryTest.cc
  2915. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2916. Add formerly fastest PeerStat's sessionDownloadLength to new
  2917. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2918. bytes in a session.
  2919. * src/PeerStat.cc
  2920. * src/SegmentMan.cc
  2921. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. If pipelining is enabled, we can always pool socket.
  2923. * src/HttpDownloadCommand.cc
  2924. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. In a single file download, file size becomes known just after
  2926. downloading, set total length to FileEntry object when download
  2927. completed.
  2928. * src/DownloadCommand.cc
  2929. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2930. Use std::vector::reserve() for fileEntries and pieceHashes in
  2931. bittorrent_helper
  2932. * src/bittorrent_helper.cc
  2933. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2934. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2935. Removed hidden option PREF_RESET_URI.
  2936. * src/AbstractCommand.cc
  2937. * src/OptionHandlerFactory.cc
  2938. * src/prefs.cc
  2939. * src/prefs.h
  2940. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2941. Removed unused variable/function.
  2942. * src/PeerStat.h
  2943. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2944. Show first URL in Download Results if file path is not available.
  2945. * src/FileEntry.h
  2946. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2947. Throw exception if file path doesn't exist in FTP URL.
  2948. * src/InitiateConnectionCommandFactory.cc
  2949. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2950. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2951. * src/BitfieldMan.cc
  2952. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2953. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2954. of PeerStat in SegmentMan. peerStats is used for calculating
  2955. download speed. Therefore all active PeerStats should be in
  2956. there. Another one is _fastestPeerStats and it only contains
  2957. fastest PeerStat for each hostname/protocol pair. They are used
  2958. for updating ServerStat.
  2959. * src/DownloadCommand.cc
  2960. * src/Request.h
  2961. * src/RequestGroupMan.cc
  2962. * src/SegmentMan.cc
  2963. * src/SegmentMan.h
  2964. * test/SegmentManTest.cc
  2965. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2966. Try all available addresses returned by DNS until it gets
  2967. connected in HTTP(S)/FTP download
  2968. * src/AbstractCommand.cc
  2969. * src/AbstractCommand.h
  2970. * src/AbstractProxyRequestCommand.cc
  2971. * src/AbstractProxyRequestCommand.h
  2972. * src/DNSCache.h
  2973. * src/DownloadEngine.cc
  2974. * src/DownloadEngine.h
  2975. * src/FtpInitiateConnectionCommand.cc
  2976. * src/FtpInitiateConnectionCommand.h
  2977. * src/FtpNegotiationCommand.cc
  2978. * src/FtpNegotiationCommand.h
  2979. * src/HttpInitiateConnectionCommand.cc
  2980. * src/HttpInitiateConnectionCommand.h
  2981. * src/HttpRequestCommand.cc
  2982. * src/HttpRequestCommand.h
  2983. * src/InitiateConnectionCommand.cc
  2984. * src/InitiateConnectionCommand.h
  2985. * test/DNSCacheTest.cc
  2986. * test/Makefile.am
  2987. * test/SimpleDNSCacheTest.cc
  2988. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2989. Updated doc
  2990. * src/download_helper.cc
  2991. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Refactored fieldMan ctor.
  2993. * src/BitfieldMan.cc
  2994. * src/BitfieldMan.h
  2995. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. Don't print "No files to download." message if -S is given.
  2997. * src/main.cc
  2998. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2999. Set referer and method to newly created Request object.
  3000. * src/CreateRequestCommand.cc
  3001. * src/FileEntry.cc
  3002. * src/FileEntry.h
  3003. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3004. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3005. * src/AbstractCommand.cc
  3006. * src/AbstractCommand.h
  3007. * src/CreateRequestCommand.cc
  3008. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3009. Get proxy download working
  3010. * src/AbstractProxyRequestCommand.cc
  3011. * src/AbstractProxyRequestCommand.h
  3012. * src/AbstractProxyResponseCommand.cc
  3013. * src/AbstractProxyResponseCommand.h
  3014. * src/FtpInitiateConnectionCommand.cc
  3015. * src/FtpTunnelRequestCommand.cc
  3016. * src/FtpTunnelRequestCommand.h
  3017. * src/FtpTunnelResponseCommand.cc
  3018. * src/FtpTunnelResponseCommand.h
  3019. * src/HttpInitiateConnectionCommand.cc
  3020. * src/HttpProxyRequestCommand.cc
  3021. * src/HttpProxyRequestCommand.h
  3022. * src/HttpProxyResponseCommand.cc
  3023. * src/HttpProxyResponseCommand.h
  3024. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. Use SegmentMan::getSegment(cuid) for single file download.
  3026. * src/AbstractCommand.cc
  3027. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3028. Fixed bufSize calculation
  3029. * src/DownloadCommand.cc
  3030. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3031. Don't append "/" if base URI ends with "/".
  3032. * src/bittorrent_helper.cc
  3033. * test/url-list-multiFile.torrent
  3034. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. HTTP pipelining is now working. Fixed Segmention fault in
  3036. BitfieldMan's copy ctor.
  3037. * src/AbstractCommand.cc
  3038. * src/BitfieldMan.cc
  3039. * src/BitfieldMan.h
  3040. * src/DownloadCommand.cc
  3041. * src/HttpDownloadCommand.cc
  3042. * src/HttpRequest.cc
  3043. * src/SegmentMan.cc
  3044. * src/SegmentMan.h
  3045. * test/BitfieldManTest.cc
  3046. * test/SegmentManTest.cc
  3047. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3048. Removed ServerHost. Same functionality is implemented using
  3049. FileEntry's in-flight Request objects.
  3050. * src/AbstractCommand.cc
  3051. * src/BtDependency.cc
  3052. * src/CreateRequestCommand.cc
  3053. * src/FileEntry.cc
  3054. * src/FileEntry.h
  3055. * src/FtpNegotiationCommand.cc
  3056. * src/HttpResponseCommand.cc
  3057. * src/Makefile.am
  3058. * src/Metalink2RequestGroup.cc
  3059. * src/RequestGroup.cc
  3060. * src/RequestGroup.h
  3061. * src/ServerHost.cc: Removed
  3062. * src/ServerHost.h: Removed
  3063. * test/BtDependencyTest.cc
  3064. * test/FileEntryTest.cc
  3065. * test/RequestGroupTest.cc
  3066. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3067. Rewritten PeerStat handling. In the previous implementation,
  3068. faster command tries to find slower command. In this new
  3069. implementation, slower command tries to find faster command.
  3070. PeerStat is now created in each HTTP/FTP request to get download
  3071. rate correctly. If the download range is small, the download rate
  3072. tends to small and this will occur at the later stage of download.
  3073. * src/AbstractCommand.cc
  3074. * src/DownloadCommand.cc
  3075. * src/FileEntry.cc
  3076. * src/FileEntry.h
  3077. * src/Request.cc
  3078. * src/Request.h
  3079. * src/RequestGroup.h
  3080. * src/RequestGroupMan.cc
  3081. * src/SegmentMan.cc
  3082. * src/SegmentMan.h
  3083. * test/SegmentManTest.cc
  3084. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Removed _uris from RequestGroup. All functions that refer to _uris
  3086. were moved to FileEntry. Exit status code are now defined in
  3087. DownloadResultCode.h.
  3088. * src/AbstractCommand.cc
  3089. * src/AdaptiveURISelector.cc
  3090. * src/AdaptiveURISelector.h
  3091. * src/AutoSaveCommand.cc
  3092. * src/BtPostDownloadHandler.cc
  3093. * src/CheckIntegrityDispatcherCommand.cc
  3094. * src/CookieStorage.cc
  3095. * src/DHTAutoSaveCommand.cc
  3096. * src/DHTBucketRefreshCommand.cc
  3097. * src/DHTEntryPointNameResolveCommand.cc
  3098. * src/DHTInteractionCommand.cc
  3099. * src/DHTPeerAnnounceCommand.cc
  3100. * src/DHTTokenUpdateCommand.cc
  3101. * src/DlAbortEx.h
  3102. * src/DlRetryEx.h
  3103. * src/DownloadCommand.cc
  3104. * src/DownloadContext.h
  3105. * src/DownloadFailureException.h
  3106. * src/DownloadResult.h
  3107. * src/DownloadResultCode.h
  3108. * src/FeedbackURISelector.cc
  3109. * src/FeedbackURISelector.h
  3110. * src/FileEntry.cc
  3111. * src/FileEntry.h
  3112. * src/FtpNegotiationCommand.cc
  3113. * src/HttpListenCommand.cc
  3114. * src/HttpResponseCommand.cc
  3115. * src/HttpServerResponseCommand.cc
  3116. * src/HttpSkipResponseCommand.cc
  3117. * src/InOrderURISelector.cc
  3118. * src/InOrderURISelector.h
  3119. * src/Makefile.am
  3120. * src/Makefile.in
  3121. * src/Metalink2RequestGroup.cc
  3122. * src/MultiUrlRequestInfo.cc
  3123. * src/MultiUrlRequestInfo.h
  3124. * src/OptionHandlerFactory.cc
  3125. * src/PeerListenCommand.cc
  3126. * src/RecoverableException.h
  3127. * src/RequestGroup.cc
  3128. * src/RequestGroup.h
  3129. * src/RequestGroupMan.cc
  3130. * src/RequestGroupMan.h
  3131. * src/TimedHaltCommand.cc
  3132. * src/TrackerWatcherCommand.cc
  3133. * src/URIResult.cc
  3134. * src/URIResult.h
  3135. * src/URISelector.h
  3136. * src/XmlRpcMethodImpl.cc
  3137. * src/bittorrent_helper.cc
  3138. * src/bittorrent_helper.h
  3139. * src/download_helper.cc
  3140. * src/main.cc
  3141. * src/option_processing.cc
  3142. * test/BtDependencyTest.cc
  3143. * test/BtPostDownloadHandlerTest.cc
  3144. * test/CookieStorageTest.cc
  3145. * test/DefaultBtMessageDispatcherTest.cc
  3146. * test/DownloadHandlerFactoryTest.cc
  3147. * test/DownloadHelperTest.cc
  3148. * test/FeedbackURISelectorTest.cc
  3149. * test/FileEntryTest.cc
  3150. * test/InOrderURISelectorTest.cc
  3151. * test/Metalink2RequestGroupTest.cc
  3152. * test/MetalinkPostDownloadHandlerTest.cc
  3153. * test/RequestGroupManTest.cc
  3154. * test/RequestGroupTest.cc
  3155. * test/XmlRpcMethodTest.cc
  3156. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3157. Removed MockBtContext.h
  3158. * test/Makefile.am
  3159. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. Removed _currentRequest from StreamCheckIntegrityEntry and
  3161. StreamFileAllocationEntry.
  3162. * src/AbstractCommand.cc
  3163. * src/HttpResponseCommand.cc
  3164. * src/RequestGroup.cc
  3165. * src/StreamCheckIntegrityEntry.cc
  3166. * src/StreamCheckIntegrityEntry.h
  3167. * src/StreamFileAllocationEntry.cc
  3168. * src/StreamFileAllocationEntry.h
  3169. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3170. Rewritten DownloadContext and removed SingleFileDownloadContext
  3171. and BtContext and its derived classes. BitTorrent specific
  3172. attributes are now set by DownloadContext::setAttribute() with key
  3173. bittorrent::BITTORRENT.
  3174. * src/AbstractBtMessage.cc
  3175. * src/AbstractBtMessage.h
  3176. * src/AbstractCommand.cc
  3177. * src/AbstractCommand.h
  3178. * src/AbstractProxyRequestCommand.cc
  3179. * src/AbstractProxyResponseCommand.cc
  3180. * src/ActivePeerConnectionCommand.cc
  3181. * src/ActivePeerConnectionCommand.h
  3182. * src/AnnounceList.cc
  3183. * src/BtCheckIntegrityEntry.cc
  3184. * src/BtConstants.h
  3185. * src/BtContext.h: Removed
  3186. * src/BtDependency.cc
  3187. * src/BtExtendedMessage.cc
  3188. * src/BtPieceMessage.cc
  3189. * src/BtPieceMessage.h
  3190. * src/BtPostDownloadHandler.cc
  3191. * src/BtRegistry.cc
  3192. * src/BtRegistry.h
  3193. * src/BtSetup.cc
  3194. * src/CheckIntegrityCommand.cc
  3195. * src/CheckIntegrityEntry.cc
  3196. * src/ChecksumCheckIntegrityEntry.cc
  3197. * src/ConsoleStatCalc.cc
  3198. * src/ContentTypeRequestGroupCriteria.cc
  3199. * src/DHTGetPeersCommand.cc
  3200. * src/DHTGetPeersCommand.h
  3201. * src/DHTPeerLookupTask.cc
  3202. * src/DHTPeerLookupTask.h
  3203. * src/DHTTaskFactory.h
  3204. * src/DHTTaskFactoryImpl.cc
  3205. * src/DHTTaskFactoryImpl.h
  3206. * src/DefaultBtAnnounce.cc
  3207. * src/DefaultBtAnnounce.h
  3208. * src/DefaultBtContext.cc: Removed
  3209. * src/DefaultBtContext.h: Removed
  3210. * src/DefaultBtInteractive.cc
  3211. * src/DefaultBtInteractive.h
  3212. * src/DefaultBtMessageDispatcher.cc
  3213. * src/DefaultBtMessageDispatcher.h
  3214. * src/DefaultBtMessageFactory.cc
  3215. * src/DefaultBtMessageFactory.h
  3216. * src/DefaultBtMessageReceiver.cc
  3217. * src/DefaultBtMessageReceiver.h
  3218. * src/DefaultBtProgressInfoFile.cc
  3219. * src/DefaultBtRequestFactory.cc
  3220. * src/DefaultBtRequestFactory.h
  3221. * src/DefaultExtensionMessageFactory.cc
  3222. * src/DefaultExtensionMessageFactory.h
  3223. * src/DefaultPeerStorage.cc
  3224. * src/DefaultPeerStorage.h
  3225. * src/DefaultPieceStorage.cc
  3226. * src/DefaultSegmentManFactory.cc
  3227. * src/DiskAdaptor.cc
  3228. * src/DiskAdaptor.h
  3229. * src/DownloadContext.cc
  3230. * src/DownloadContext.h
  3231. * src/DownloadEngine.cc
  3232. * src/DownloadEngineFactory.cc
  3233. * src/DownloadHandler.cc
  3234. * src/DownloadResult.h
  3235. * src/FileAllocationCommand.cc
  3236. * src/FileAllocationDispatcherCommand.cc
  3237. * src/FileAllocationEntry.cc
  3238. * src/FileEntry.h
  3239. * src/FillRequestGroupCommand.cc
  3240. * src/FtpDownloadCommand.cc
  3241. * src/FtpFinishDownloadCommand.cc
  3242. * src/FtpInitiateConnectionCommand.cc
  3243. * src/FtpNegotiationCommand.cc
  3244. * src/FtpTunnelRequestCommand.cc
  3245. * src/FtpTunnelResponseCommand.cc
  3246. * src/HandshakeExtensionMessage.cc
  3247. * src/HandshakeExtensionMessage.h
  3248. * src/HaveEraseCommand.cc
  3249. * src/HttpDownloadCommand.cc
  3250. * src/HttpInitiateConnectionCommand.cc
  3251. * src/HttpProxyRequestCommand.cc
  3252. * src/HttpProxyResponseCommand.cc
  3253. * src/HttpRequest.cc
  3254. * src/HttpRequest.h
  3255. * src/HttpRequestCommand.cc
  3256. * src/HttpResponseCommand.cc
  3257. * src/HttpServerBodyCommand.cc
  3258. * src/HttpServerCommand.cc
  3259. * src/HttpSkipResponseCommand.cc
  3260. * src/InitiateConnectionCommandFactory.cc
  3261. * src/InitiatorMSEHandshakeCommand.cc
  3262. * src/InitiatorMSEHandshakeCommand.h
  3263. * src/IteratableChecksumValidator.cc
  3264. * src/IteratableChecksumValidator.h
  3265. * src/IteratableChunkChecksumValidator.cc
  3266. * src/MSEHandshake.cc
  3267. * src/MSEHandshake.h
  3268. * src/Makefile.am
  3269. * src/Makefile.in
  3270. * src/Metalink2RequestGroup.cc
  3271. * src/MetalinkPostDownloadHandler.cc
  3272. * src/MultiDiskAdaptor.cc
  3273. * src/MultiDiskAdaptor.h
  3274. * src/MultiFileAllocationIterator.cc
  3275. * src/MultiUrlRequestInfo.cc
  3276. * src/PeerChokeCommand.cc
  3277. * src/PeerChokeCommand.h
  3278. * src/PeerInitiateConnectionCommand.cc
  3279. * src/PeerInitiateConnectionCommand.h
  3280. * src/PeerInteractionCommand.cc
  3281. * src/PeerInteractionCommand.h
  3282. * src/PeerReceiveHandshakeCommand.cc
  3283. * src/PieceHashCheckIntegrityEntry.cc
  3284. * src/RealtimeCommand.cc
  3285. * src/ReceiverMSEHandshakeCommand.cc
  3286. * src/RequestGroup.cc
  3287. * src/RequestGroup.h
  3288. * src/RequestGroupEntry.cc
  3289. * src/RequestGroupMan.cc
  3290. * src/SeedCheckCommand.cc
  3291. * src/SeedCheckCommand.h
  3292. * src/SegmentMan.cc
  3293. * src/ShareRatioSeedCriteria.h
  3294. * src/SingleFileDownloadContext.cc: Removed
  3295. * src/SingleFileDownloadContext.h: Removed
  3296. * src/SleepCommand.cc
  3297. * src/StreamCheckIntegrityEntry.cc
  3298. * src/TrackerWatcherCommand.cc
  3299. * src/TrackerWatcherCommand.h
  3300. * src/UnknownLengthPieceStorage.cc
  3301. * src/Util.cc
  3302. * src/Util.h
  3303. * src/XmlRpcMethodImpl.cc
  3304. * src/bittorrent_helper.cc
  3305. * src/bittorrent_helper.h
  3306. * src/download_helper.cc
  3307. * src/main.cc
  3308. * src/option_processing.cc
  3309. * test/BitfieldManTest.cc
  3310. * test/BittorrentHelperTest.cc
  3311. * test/BtCancelMessageTest.cc
  3312. * test/BtChokeMessageTest.cc
  3313. * test/BtDependencyTest.cc
  3314. * test/BtPieceMessageTest.cc
  3315. * test/BtPostDownloadHandlerTest.cc
  3316. * test/BtRegistryTest.cc
  3317. * test/BtRejectMessageTest.cc
  3318. * test/BtRequestMessageTest.cc
  3319. * test/DHTPeerAnnounceStorageTest.cc
  3320. * test/DefaultBtAnnounceTest.cc
  3321. * test/DefaultBtContextTest.cc: Removed
  3322. * test/DefaultBtMessageDispatcherTest.cc
  3323. * test/DefaultBtMessageFactoryTest.cc
  3324. * test/DefaultBtProgressInfoFileTest.cc
  3325. * test/DefaultBtRequestFactoryTest.cc
  3326. * test/DefaultExtensionMessageFactoryTest.cc
  3327. * test/DefaultPeerStorageTest.cc
  3328. * test/DefaultPieceStorageTest.cc
  3329. * test/DirectDiskAdaptorTest.cc
  3330. * test/DownloadContextTest.cc
  3331. * test/DownloadHandlerFactoryTest.cc
  3332. * test/DownloadHelperTest.cc
  3333. * test/HandshakeExtensionMessageTest.cc
  3334. * test/HttpRequestTest.cc
  3335. * test/HttpResponseTest.cc
  3336. * test/IteratableChecksumValidatorTest.cc
  3337. * test/IteratableChunkChecksumValidatorTest.cc
  3338. * test/MSEHandshakeTest.cc
  3339. * test/Makefile.am
  3340. * test/Makefile.in
  3341. * test/Metalink2RequestGroupTest.cc
  3342. * test/MetalinkPostDownloadHandlerTest.cc
  3343. * test/MockBtContext.h: Removed
  3344. * test/MockDHTTaskFactory.h
  3345. * test/MockDownloadContext.h: Removed
  3346. * test/MockPieceStorage.h
  3347. * test/MultiDiskAdaptorTest.cc
  3348. * test/MultiFileAllocationIteratorTest.cc
  3349. * test/RequestGroupManTest.cc
  3350. * test/RequestGroupTest.cc
  3351. * test/SegmentManTest.cc
  3352. * test/ShareRatioSeedCriteriaTest.cc
  3353. * test/SingleFileDownloadContextTest.cc: Removed
  3354. * test/UtilTest.cc
  3355. * test/XmlRpcMethodTest.cc
  3356. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3357. Added experimental support of WEB-Seeding for multi-file torrent.
  3358. Due to fundamental changes in file handling in HTTP/FTP code, many
  3359. functions are not working: PeerStat, ServerHost, proxy..etc
  3360. * src/AbstractCommand.cc
  3361. * src/AbstractCommand.h
  3362. * src/BitfieldMan.cc
  3363. * src/BitfieldMan.h
  3364. * src/CreateRequestCommand.cc
  3365. * src/CreateRequestCommand.h
  3366. * src/DefaultPieceStorage.cc
  3367. * src/DefaultPieceStorage.h
  3368. * src/DownloadCommand.cc
  3369. * src/DownloadCommand.h
  3370. * src/DownloadContext.cc
  3371. * src/DownloadContext.h
  3372. * src/FileEntry.cc
  3373. * src/FileEntry.h
  3374. * src/FtpDownloadCommand.cc
  3375. * src/FtpDownloadCommand.h
  3376. * src/FtpFinishDownloadCommand.cc
  3377. * src/FtpFinishDownloadCommand.h
  3378. * src/FtpInitiateConnectionCommand.cc
  3379. * src/FtpInitiateConnectionCommand.h
  3380. * src/FtpNegotiationCommand.cc
  3381. * src/FtpNegotiationCommand.h
  3382. * src/FtpTunnelResponseCommand.cc
  3383. * src/HttpDownloadCommand.cc
  3384. * src/HttpDownloadCommand.h
  3385. * src/HttpInitiateConnectionCommand.cc
  3386. * src/HttpInitiateConnectionCommand.h
  3387. * src/HttpProxyResponseCommand.cc
  3388. * src/HttpRequest.cc
  3389. * src/HttpRequest.h
  3390. * src/HttpRequestCommand.cc
  3391. * src/HttpRequestCommand.h
  3392. * src/HttpResponseCommand.cc
  3393. * src/HttpResponseCommand.h
  3394. * src/HttpSkipResponseCommand.cc
  3395. * src/HttpSkipResponseCommand.h
  3396. * src/InitiateConnectionCommand.cc
  3397. * src/InitiateConnectionCommand.h
  3398. * src/InitiateConnectionCommandFactory.cc
  3399. * src/InitiateConnectionCommandFactory.h
  3400. * src/Makefile.am
  3401. * src/PieceStorage.h
  3402. * src/RequestGroup.cc
  3403. * src/RequestGroup.h
  3404. * src/RequestGroupMan.cc
  3405. * src/SegmentMan.cc
  3406. * src/SegmentMan.h
  3407. * src/SingleFileDownloadContext.h
  3408. * src/StreamFileAllocationEntry.cc
  3409. * src/TrackerWatcherCommand.cc
  3410. * src/UnknownLengthPieceStorage.cc
  3411. * src/UnknownLengthPieceStorage.h
  3412. * src/array_fun.h
  3413. * src/bitfield.h
  3414. * src/download_helper.cc
  3415. * test/DownloadContextTest.cc
  3416. * test/Makefile.am
  3417. * test/MockDownloadContext.h
  3418. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3419. Added tellWaiting XML-RPC method.
  3420. * src/SingleFileDownloadContext.cc
  3421. * src/XmlRpcMethodFactory.cc
  3422. * src/XmlRpcMethodImpl.cc
  3423. * src/XmlRpcMethodImpl.h
  3424. * test/XmlRpcMethodTest.cc
  3425. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3426. Updated CookieStorageTest
  3427. * test/CookieStorageTest.cc
  3428. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3429. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3430. handle excepion inside these functions.
  3431. * src/LibgnutlsTLSContext.cc
  3432. * src/LibgnutlsTLSContext.h
  3433. * src/LibsslTLSContext.cc
  3434. * src/LibsslTLSContext.h
  3435. * src/MultiUrlRequestInfo.cc
  3436. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3437. Added comment
  3438. * src/RequestGroup.cc
  3439. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3440. In CookieStorage::load() and saveNsFormat(), handle exception
  3441. inside the functions. When saving Cookies, first write temporary
  3442. file and after successful writes, then renames it to final
  3443. destination.
  3444. * src/CookieStorage.cc
  3445. * src/CookieStorage.h
  3446. * src/MultiUrlRequestInfo.cc
  3447. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3448. The default value of --dir option is the absolute path to the
  3449. current directory. If getcwd() is failed, then it is ".", which is
  3450. the same value with old implementation. This change is necessary
  3451. because after daemon() call, the current working directory is
  3452. changed to /.
  3453. * src/File.cc
  3454. * src/File.h
  3455. * src/OptionHandlerFactory.cc
  3456. * src/option_processing.cc
  3457. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3458. Call daemon() with arguments(0,0), which means daemon() changes
  3459. current working directory to / and redirects stdin, stdout and
  3460. stderr to /dev/null.
  3461. * src/option_processing.cc
  3462. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3463. Small performance optimizations.
  3464. * src/RequestGroupMan.cc
  3465. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3466. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3467. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3468. * src/RequestGroupMan.cc
  3469. * src/RequestGroupMan.h
  3470. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3471. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3472. setNoWiat(true) if newly created command calls
  3473. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3474. * src/HttpListenCommand.cc
  3475. * src/HttpServerBodyCommand.cc
  3476. * src/HttpServerCommand.cc
  3477. * src/HttpServerResponseCommand.cc
  3478. * src/InitiateConnectionCommand.cc
  3479. * src/RequestGroup.cc
  3480. * src/StreamFileAllocationEntry.cc
  3481. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3482. Removed include vector
  3483. * src/BtRegistry.h
  3484. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3485. Rewritten BtRegistry
  3486. * src/BtRegistry.cc
  3487. * src/BtRegistry.h
  3488. * src/BtSetup.cc
  3489. * src/ConsoleStatCalc.cc
  3490. * src/PeerInteractionCommand.cc
  3491. * src/PeerReceiveHandshakeCommand.cc
  3492. * src/ReceiverMSEHandshakeCommand.cc
  3493. * src/RequestGroup.cc
  3494. * src/XmlRpcMethodImpl.cc
  3495. * test/BtRegistryTest.cc
  3496. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3497. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3498. * src/DefaultBtProgressInfoFile.cc
  3499. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3500. Throw an exception if position is less than 0.
  3501. * src/XmlRpcMethodImpl.cc
  3502. * test/XmlRpcMethodTest.cc
  3503. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3504. Use writeFilePath() in ConsoleStatCalc.cc
  3505. * src/ConsoleStatCalc.cc
  3506. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3507. Receive the return value as const reference from
  3508. DownloadContext::getFileEntries().
  3509. * src/DefaultPieceStorage.cc
  3510. * src/RequestGroupMan.cc
  3511. * src/XmlRpcMethodImpl.cc
  3512. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3513. DownloadContext now has _fileEntries so that
  3514. DownloadContext::getFileEntries() can returns its const reference.
  3515. * src/DefaultBtContext.cc
  3516. * src/DefaultBtContext.h
  3517. * src/DownloadContext.cc
  3518. * src/DownloadContext.h
  3519. * src/SingleFileDownloadContext.cc
  3520. * src/SingleFileDownloadContext.h
  3521. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3523. writeFilePath() function template from RequestGroupMan.cc to
  3524. FileEntry.h
  3525. * src/FileEntry.h
  3526. * src/RequestGroupMan.cc
  3527. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3528. Documented 'position' parameter is starting from 0 in man page.
  3529. * doc/aria2c.1.txt
  3530. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3531. Updated doc.
  3532. * src/MSEHandshake.cc
  3533. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3534. Removed _acceptFeatures and its accessor functions from
  3535. RequestGroup since they are not used practically.
  3536. * src/HttpRequestCommand.cc
  3537. * src/RequestGroup.cc
  3538. * src/RequestGroup.h
  3539. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3540. Removed member _maxTries from RequestGroup class to avoid
  3541. duplicate option value. Those classes who refer this variable
  3542. should use option value of PREF_MAX_TRIES directly.
  3543. * src/AbstractCommand.cc
  3544. * src/RequestGroup.cc
  3545. * src/RequestGroup.h
  3546. * src/TrackerWatcherCommand.cc
  3547. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3548. * Release 1.4.1
  3549. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3550. Fixed compiler warnings on netbsd
  3551. * src/DHTConnectionImpl.cc
  3552. * src/PeerListenCommand.cc
  3553. * src/PeerSessionResource.cc
  3554. * src/SegmentMan.cc
  3555. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3556. Updated Ukrainian translation. Thanks to all translators.
  3557. * po/uk.po
  3558. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3559. Bump up version number to 1.4.1.
  3560. * configure.ac
  3561. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3562. Added unit tests for strjoin, strconcat and strappend.
  3563. * test/a2functionalTest.cc
  3564. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3565. Rewritten strconcat and strappend using operator+ instead of
  3566. append().
  3567. * src/a2functional.h
  3568. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3569. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3570. is enabled.
  3571. * src/Makefile.am
  3572. * test/Makefile.am
  3573. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3574. Added countSeeder() function which counts seeder in the given
  3575. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3576. * src/ConsoleStatCalc.cc
  3577. * src/Peer.h
  3578. * src/XmlRpcMethodImpl.cc
  3579. * test/PeerTest.cc
  3580. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Documented missing seeder in getPeers xml-rpc method.
  3582. Documented uploadLength and numSeeders.
  3583. * doc/aria2c.1.txt
  3584. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3585. Added uploadLength and numSeeders to the response of tellStatus
  3586. xml-rpc method. Assert that PeerStorage instance is not null
  3587. instead of checking if statement. It should be non-null in this
  3588. context.
  3589. * src/XmlRpcMethodImpl.cc
  3590. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3592. * src/XmlRpcResponse.cc
  3593. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3594. Avoid intermediate object during string concatenation.
  3595. * src/HttpRequest.cc
  3596. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3597. Added strjoin function template. Use it in pathJoin()
  3598. * src/Util.h
  3599. * src/a2functional.h
  3600. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3601. Avoid intermediate object during string concatenation. Replaced
  3602. post-increment unary operator with pre-increment one in for loop.
  3603. * src/AdaptiveURISelector.cc
  3604. * src/AnnounceList.cc
  3605. * src/AuthConfig.h
  3606. * src/BtBitfieldMessage.cc
  3607. * src/BtExtendedMessage.cc
  3608. * src/BtHandshakeMessage.cc
  3609. * src/BtPieceMessage.cc
  3610. * src/BtPortMessage.cc
  3611. * src/Cookie.cc
  3612. * src/DHTAnnouncePeerMessage.cc
  3613. * src/DHTAutoSaveCommand.cc
  3614. * src/DHTGetPeersReplyMessage.cc
  3615. * src/DHTNode.cc
  3616. * src/DHTQueryMessage.cc
  3617. * src/DHTResponseMessage.cc
  3618. * src/DHTUnknownMessage.cc
  3619. * src/DefaultBtAnnounce.cc
  3620. * src/DefaultBtContext.cc
  3621. * src/DefaultBtInteractive.cc
  3622. * src/DefaultBtProgressInfoFile.cc
  3623. * src/DefaultPeerStorage.cc
  3624. * src/DownloadEngine.cc
  3625. * src/FeatureConfig.cc
  3626. * src/File.cc
  3627. * src/FtpConnection.cc
  3628. * src/FtpNegotiationCommand.cc
  3629. * src/HandshakeExtensionMessage.cc
  3630. * src/HttpConnection.cc
  3631. * src/HttpRequest.cc
  3632. * src/HttpResponseCommand.cc
  3633. * src/HttpServer.cc
  3634. * src/IndexBtMessage.cc
  3635. * src/Metalink2RequestGroup.cc
  3636. * src/OptionHandlerImpl.h
  3637. * src/PStringBuildVisitor.cc
  3638. * src/Peer.cc
  3639. * src/PeerListenCommand.cc
  3640. * src/Piece.cc
  3641. * src/RangeBtMessage.cc
  3642. * src/Request.cc
  3643. * src/Request.h
  3644. * src/RequestGroup.cc
  3645. * src/RequestGroupMan.cc
  3646. * src/ServerStat.cc
  3647. * src/ServerStatMan.cc
  3648. * src/UTPexExtensionMessage.cc
  3649. * src/Util.cc
  3650. * src/a2functional.h
  3651. * src/download_helper.cc
  3652. * src/messageDigest.cc
  3653. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3654. Unchoke a peer randomly at first and second choke round in seed
  3655. state.
  3656. * src/BtSeederStateChoke.cc
  3657. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3658. Added (sock_t) to quiet compiler warnings in MinGW
  3659. * src/SocketCore.cc
  3660. * src/SocketCore.h
  3661. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3662. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3663. * src/EpollEventPoll.h
  3664. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3665. Added fork() emulation using CreateProcess() in MinGW
  3666. * src/RequestGroupMan.cc
  3667. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3668. * Release 1.4.0
  3669. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3670. Added utf8.torrent to EXTRA_DIST
  3671. * test/Makefile.am
  3672. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3673. Fixed docs of aria2.addMetalink xml-rpc method.
  3674. * doc/aria2c.1.txt
  3675. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3676. Added Slovak translation. Updated Ukrainian and Brazilian
  3677. Portuguese translation. Thanks to all translators.
  3678. * po/sk.po
  3679. * po/uk.po
  3680. * po/pt_BR.po
  3681. * po/LINGUAS
  3682. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3683. Added test case for XmlRpcProcessor to fail to parse malformed
  3684. document.
  3685. * test/XmlRpcRequestProcessorTest.cc
  3686. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3687. Removed *.gmo files in po because they are generated on 'make
  3688. dist'
  3689. * po/*.gmo
  3690. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3691. Documented max-concurrent-downloads of changeGlobalOption method
  3692. in man page.
  3693. * doc/aria2c.1.txt
  3694. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3695. Added max-concurrent-downloads option to changeGlobalOption
  3696. xml-rpc method. Rewritten loop conditional in
  3697. RequestGroupMan::fillRequestGroupFromReserver().
  3698. * src/RequestGroupMan.cc
  3699. * src/RequestGroupMan.h
  3700. * src/XmlRpcMethod.cc
  3701. * src/XmlRpcMethodImpl.cc
  3702. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3703. Documented position parameter in man page.
  3704. * doc/aria2c.1.txt
  3705. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. Added 'position' parameter to addUri, addTorrent and addMetalink
  3707. xml-rpc method.
  3708. * src/RequestGroupMan.cc
  3709. * src/RequestGroupMan.h
  3710. * src/XmlRpcMethodImpl.cc
  3711. * test/XmlRpcMethodTest.cc
  3712. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Removed Peer.cc from compile source list when --disable-bittorrent
  3714. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3715. takes Peer.
  3716. * src/DefaultPieceStorage.cc
  3717. * src/DefaultPieceStorage.h
  3718. * src/Makefile.am
  3719. * src/PieceStorage.h
  3720. * src/UnknownLengthPieceStorage.cc
  3721. * src/UnknownLengthPieceStorage.h
  3722. * test/MockPieceStorage.h
  3723. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3724. Implemented getter methods in header files to give them more
  3725. chance of optimization.
  3726. Return const reference for SharadHandle if possible.
  3727. * src/AbstractAuthResolver.cc
  3728. * src/AbstractAuthResolver.h
  3729. * src/AbstractBtMessage.cc
  3730. * src/AbstractBtMessage.h
  3731. * src/AbstractSingleDiskAdaptor.cc
  3732. * src/AbstractSingleDiskAdaptor.h
  3733. * src/AsyncNameResolver.cc
  3734. * src/AsyncNameResolver.h
  3735. * src/BNode.cc
  3736. * src/BNode.h
  3737. * src/BitfieldMan.cc
  3738. * src/BitfieldMan.h
  3739. * src/BtAbortOutstandingRequestEvent.h
  3740. * src/BtExtendedMessage.cc
  3741. * src/BtExtendedMessage.h
  3742. * src/BtSeederStateChoke.cc
  3743. * src/BtSeederStateChoke.h
  3744. * src/Cookie.cc
  3745. * src/Cookie.h
  3746. * src/DHTBucket.cc
  3747. * src/DHTBucket.h
  3748. * src/DHTConnectionImpl.cc
  3749. * src/DHTConnectionImpl.h
  3750. * src/DHTFindNodeReplyMessage.cc
  3751. * src/DHTFindNodeReplyMessage.h
  3752. * src/DHTGetPeersReplyMessage.cc
  3753. * src/DHTGetPeersReplyMessage.h
  3754. * src/DHTInteractionCommand.cc
  3755. * src/DHTMessage.cc
  3756. * src/DHTMessage.h
  3757. * src/DHTMessageDispatcherImpl.cc
  3758. * src/DHTMessageEntry.cc
  3759. * src/DHTMessageReceiver.cc
  3760. * src/DHTMessageReceiver.h
  3761. * src/DHTMessageTrackerEntry.cc
  3762. * src/DHTMessageTrackerEntry.h
  3763. * src/DHTPeerAnnounceEntry.cc
  3764. * src/DHTPeerAnnounceEntry.h
  3765. * src/DHTPeerLookupTask.cc
  3766. * src/DHTPeerLookupTask.h
  3767. * src/DHTRoutingTableDeserializer.cc
  3768. * src/DHTRoutingTableDeserializer.h
  3769. * src/DefaultBtAnnounce.cc
  3770. * src/DefaultBtAnnounce.h
  3771. * src/DefaultBtMessageDispatcher.cc
  3772. * src/DefaultBtMessageDispatcher.h
  3773. * src/DefaultBtRequestFactory.cc
  3774. * src/DefaultBtRequestFactory.h
  3775. * src/DiskAdaptor.cc
  3776. * src/DiskAdaptor.h
  3777. * src/DownloadContext.cc
  3778. * src/DownloadContext.h
  3779. * src/DownloadEngine.cc
  3780. * src/DownloadEngine.h
  3781. * src/EpollEventPoll.cc
  3782. * src/EpollEventPoll.h
  3783. * src/FtpConnection.cc
  3784. * src/FtpConnection.h
  3785. * src/HttpConnection.cc
  3786. * src/HttpConnection.h
  3787. * src/HttpHeader.cc
  3788. * src/HttpHeader.h
  3789. * src/HttpRequest.cc
  3790. * src/HttpRequest.h
  3791. * src/HttpResponse.cc
  3792. * src/HttpResponse.h
  3793. * src/LibsslTLSContext.cc
  3794. * src/LibsslTLSContext.h
  3795. * src/MSEHandshake.cc
  3796. * src/MSEHandshake.h
  3797. * src/MetalinkEntry.cc
  3798. * src/MetalinkEntry.h
  3799. * src/MetalinkParserController.cc
  3800. * src/MetalinkParserController.h
  3801. * src/MetalinkParserStateMachine.cc
  3802. * src/MetalinkParserStateMachine.h
  3803. * src/MultiDiskAdaptor.cc
  3804. * src/MultiDiskAdaptor.h
  3805. * src/NetrcAuthResolver.cc
  3806. * src/NetrcAuthResolver.h
  3807. * src/Peer.cc
  3808. * src/Peer.h
  3809. * src/PeerSessionResource.cc
  3810. * src/PeerSessionResource.h
  3811. * src/Piece.cc
  3812. * src/Piece.h
  3813. * src/PieceStatMan.cc
  3814. * src/PieceStatMan.h
  3815. * src/Request.cc
  3816. * src/Request.h
  3817. * src/RequestGroup.cc
  3818. * src/RequestGroup.h
  3819. * src/RequestGroupMan.cc
  3820. * src/RequestGroupMan.h
  3821. * src/RequestSlot.cc
  3822. * src/RequestSlot.h
  3823. * src/SegmentMan.cc
  3824. * src/SegmentMan.h
  3825. * src/SelectEventPoll.cc
  3826. * src/SelectEventPoll.h
  3827. * src/ServerStat.cc
  3828. * src/ServerStat.h
  3829. * src/Signature.cc
  3830. * src/Signature.h
  3831. * src/URIResult.cc
  3832. * src/URIResult.h
  3833. * src/UTPexExtensionMessage.cc
  3834. * src/UTPexExtensionMessage.h
  3835. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3836. Fixed compile error without BitTorrent and Metalink support.
  3837. * src/XmlRpcMethod.cc
  3838. * src/XmlRpcMethodFactory.cc
  3839. * src/XmlRpcMethodImpl.cc
  3840. * src/XmlRpcMethodImpl.h
  3841. * test/XmlRpcMethodTest.cc
  3842. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3843. Rewritten the help message for --allow-overwrite option.
  3844. * doc/aria2c.1.txt
  3845. * src/usage_text.h
  3846. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3847. Fixed typo
  3848. * doc/aria2c.1.txt
  3849. * src/usage_text.h
  3850. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3851. Updated README for 1.4.0 release. Use new table syntax of
  3852. asciidoc.
  3853. * README
  3854. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3855. Documented --xml-rpc-max-request-size option in man page.
  3856. * doc/aria2c.1.txt
  3857. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3858. Moved C_* constants from BtContext to DefaultBtContext.
  3859. * src/BtContext.cc: Removed.
  3860. * src/BtContext.h
  3861. * src/DefaultBtContext.cc
  3862. * src/DefaultBtContext.h
  3863. * src/Makefile.am
  3864. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3865. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3866. path key respectively when persing .torrent file.
  3867. * src/BtContext.cc
  3868. * src/BtContext.h
  3869. * src/DefaultBtContext.cc
  3870. * test/DefaultBtContextTest.cc
  3871. * test/utf8.torrent
  3872. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3873. Added --xml-rpc-max-request-size option to limit the size of
  3874. XML-RPC request.
  3875. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3876. Documented XML-RPC API in man page.
  3877. * doc/aria2c.1.txt
  3878. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3879. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3880. will break strict-aliasing rules
  3881. * src/PeerConnection.cc
  3882. * test/DHTRoutingTableSerializerTest.cc
  3883. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3884. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3885. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3886. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3887. PKG_CHECK_MODULES macro uses latter name.
  3888. * m4/sqlite3.m4
  3889. * src/Makefile.am
  3890. * test/Makefile.am
  3891. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3892. Fixed typo
  3893. * configure.ac
  3894. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3895. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3896. presence of libgnutls using pkg-config first. If it fails, fall
  3897. back to old macro libgnutls.m4.
  3898. * configure.ac
  3899. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3900. Use s itself instead of !s.bad()
  3901. * src/CookieStorage.cc
  3902. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Documented --on-download-* option and --save-cookies option in man
  3904. page.
  3905. * doc/aria2c.1.txt
  3906. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3907. Set possible values for --load-cookie option to "/path/to/file".
  3908. * src/OptionHandlerFactory.cc
  3909. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3910. Added --save-cookies option.
  3911. * src/Cookie.cc
  3912. * src/Cookie.h
  3913. * src/CookieStorage.cc
  3914. * src/CookieStorage.h
  3915. * src/MultiUrlRequestInfo.cc
  3916. * src/OptionHandlerFactory.cc
  3917. * src/prefs.cc
  3918. * src/prefs.h
  3919. * src/usage_text.h
  3920. * test/CookieStorageTest.cc
  3921. * test/CookieTest.cc
  3922. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. Removed tellAll XML-RPC command because its reponse tends to be
  3924. big if stopped/waiting downloads pile up.
  3925. * src/XmlRpcMethodFactory.cc
  3926. * src/XmlRpcMethodImpl.cc
  3927. * src/XmlRpcMethodImpl.h
  3928. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3929. Added the ability to execute command when download starts and
  3930. stops. You can also specify command for particular cases such as
  3931. complete/error download. Added --on-download-start,
  3932. --on-download-stop, --on-download-complete and --on-download-error
  3933. option.
  3934. * src/OptionHandlerFactory.cc
  3935. * src/RequestGroupMan.cc
  3936. * src/prefs.cc
  3937. * src/prefs.h
  3938. * src/usage_text.h
  3939. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3940. Fixed test error
  3941. * test/BencodeTest.cc
  3942. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3943. Added unit tests.
  3944. * test/XmlRpcMethodTest.cc
  3945. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3946. Made exception message more verbose.
  3947. * src/bencode.cc
  3948. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3950. space in console readout. Also they are now shown in MiB/s if
  3951. speed > 1024KiB/s.
  3952. * src/ConsoleStatCalc.cc
  3953. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3954. Added SEED to console output, which represents the number of
  3955. seeders currently the client is connecting to.
  3956. * src/ConsoleStatCalc.cc
  3957. * src/ConsoleStatCalc.h
  3958. * src/DownloadEngine.cc
  3959. * src/NullStatCalc.h
  3960. * src/StatCalc.h
  3961. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3962. Added source filename(__FILE__) and line number(__LINE__) to
  3963. exception message.
  3964. * src/AbstractCommand.cc
  3965. * src/AbstractDiskWriter.cc
  3966. * src/AbstractProxyResponseCommand.cc
  3967. * src/BDE.h
  3968. * src/BtAllowedFastMessage.cc
  3969. * src/BtHandshakeMessageValidator.h
  3970. * src/BtHaveAllMessage.cc
  3971. * src/BtHaveNoneMessage.cc
  3972. * src/BtPieceMessage.cc
  3973. * src/BtRejectMessage.cc
  3974. * src/ChunkedDecoder.cc
  3975. * src/CookieStorage.cc
  3976. * src/DHTAnnouncePeerMessage.cc
  3977. * src/DHTEntryPointNameResolveCommand.cc
  3978. * src/DHTMessageFactoryImpl.cc
  3979. * src/DHTMessageTracker.cc
  3980. * src/DHTRoutingTableDeserializer.cc
  3981. * src/DHTRoutingTableSerializer.cc
  3982. * src/DHTSetup.cc
  3983. * src/DHTTokenTracker.cc
  3984. * src/DefaultBtAnnounce.cc
  3985. * src/DefaultBtContext.cc
  3986. * src/DefaultBtInteractive.cc
  3987. * src/DefaultBtMessageFactory.cc
  3988. * src/DefaultBtProgressInfoFile.cc
  3989. * src/DefaultExtensionMessageFactory.cc
  3990. * src/DlAbortEx.h
  3991. * src/DlRetryEx.h
  3992. * src/DownloadCommand.cc
  3993. * src/DownloadEngineFactory.cc
  3994. * src/DownloadFailureException.h
  3995. * src/Exception.cc
  3996. * src/Exception.h
  3997. * src/ExpatMetalinkProcessor.cc
  3998. * src/ExpatXmlRpcRequestProcessor.cc
  3999. * src/FallocFileAllocationIterator.cc
  4000. * src/FatalException.h
  4001. * src/FtpConnection.cc
  4002. * src/FtpFinishDownloadCommand.cc
  4003. * src/FtpInitiateConnectionCommand.cc
  4004. * src/FtpNegotiationCommand.cc
  4005. * src/GZipDecoder.cc
  4006. * src/HandshakeExtensionMessage.cc
  4007. * src/HttpConnection.cc
  4008. * src/HttpHeaderProcessor.cc
  4009. * src/HttpInitiateConnectionCommand.cc
  4010. * src/HttpResponse.cc
  4011. * src/HttpResponseCommand.cc
  4012. * src/HttpServer.cc
  4013. * src/HttpSkipResponseCommand.cc
  4014. * src/InitiateConnectionCommandFactory.cc
  4015. * src/IteratableChunkChecksumValidator.cc
  4016. * src/LibgcryptARC4Context.h
  4017. * src/LibgcryptARC4Decryptor.h
  4018. * src/LibgcryptARC4Encryptor.h
  4019. * src/LibgcryptDHKeyExchange.h
  4020. * src/LibgnutlsTLSContext.cc
  4021. * src/LibsslARC4Context.h
  4022. * src/LibsslARC4Decryptor.h
  4023. * src/LibsslARC4Encryptor.h
  4024. * src/LibsslDHKeyExchange.h
  4025. * src/LibsslTLSContext.cc
  4026. * src/MSEHandshake.cc
  4027. * src/MessageDigestHelper.cc
  4028. * src/MetalinkHelper.cc
  4029. * src/MultiDiskAdaptor.cc
  4030. * src/NameMatchOptionHandler.h
  4031. * src/NameResolver.cc
  4032. * src/Netrc.cc
  4033. * src/NsCookieParser.cc
  4034. * src/OptionHandlerException.cc
  4035. * src/OptionHandlerException.h
  4036. * src/OptionHandlerImpl.h
  4037. * src/OptionParser.cc
  4038. * src/ParameterizedStringParser.cc
  4039. * src/PeerAbstractCommand.cc
  4040. * src/PeerConnection.cc
  4041. * src/PeerMessageUtil.cc
  4042. * src/PeerReceiveHandshakeCommand.cc
  4043. * src/Platform.cc
  4044. * src/ReceiverMSEHandshakeCommand.cc
  4045. * src/RecoverableException.h
  4046. * src/RequestGroup.cc
  4047. * src/SimpleLogger.cc
  4048. * src/SocketCore.cc
  4049. * src/Sqlite3MozCookieParser.cc
  4050. * src/UTPexExtensionMessage.cc
  4051. * src/Util.cc
  4052. * src/XML2SAXMetalinkProcessor.cc
  4053. * src/Xml2XmlRpcRequestProcessor.cc
  4054. * src/XmlRpcMethodImpl.cc
  4055. * src/bencode.cc
  4056. * src/download_helper.cc
  4057. * src/messageDigest.h
  4058. * test/ExceptionTest.cc
  4059. * test/TestUtil.cc
  4060. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4061. Bump up version number to 1.4.0
  4062. * configure.ac
  4063. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4064. Added 2files.metalink to EXTRA_DIST
  4065. * test/Makefile.am
  4066. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4067. Added missing 2files.metalink
  4068. * test/2files.metalink
  4069. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4070. Show "[MEMORY]" prefix before filename in download summary if it
  4071. is downloaded into memory.
  4072. * src/DownloadResult.h
  4073. * src/RequestGroup.cc
  4074. * src/RequestGroupMan.cc
  4075. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4076. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4077. * src/ExpatXmlRpcRequestProcessor.cc
  4078. * src/Xml2XmlRpcRequestProcessor.cc
  4079. * src/message.h
  4080. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4081. Defined const BDEs to avoid duplicate instantiation.
  4082. Defined MSG_GID_NOT_PROVIDED.
  4083. * src/XmlRpcMethodImpl.cc
  4084. * src/message.h
  4085. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4086. Code cleanup
  4087. * src/Xml2XmlRpcRequestProcessor.cc
  4088. * src/Xml2XmlRpcRequestProcessor.h
  4089. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4090. Defined ENABLE_XML_RPC
  4091. * configure.ac
  4092. * configure
  4093. * config.h.in
  4094. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4095. Added ExpatXmlRpcRequestProcessor
  4096. * src/ExpatXmlRpcRequestProcessor.cc
  4097. * src/ExpatXmlRpcRequestProcessor.h
  4098. * src/Makefile.am
  4099. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4100. Added tests for addTorrent and addMetalink command.
  4101. * test/TestUtil.cc
  4102. * test/TestUtil.h
  4103. * test/XmlRpcMethodTest.cc
  4104. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4105. Corrected the description of --file-allocation option.
  4106. * doc/aria2c.1.txt
  4107. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4108. Added tellAll command.
  4109. * src/XmlRpcMethodFactory.cc
  4110. * src/XmlRpcMethodImpl.cc
  4111. * src/XmlRpcMethodImpl.h
  4112. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4113. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4114. * src/XmlRpcMethodImpl.cc
  4115. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4116. Added changeGlobalOption command. Currently,
  4117. max-overall-download-limit and max-overall-upload-limit option are
  4118. available.
  4119. * src/RequestGroupMan.h
  4120. * src/XmlRpcMethod.cc
  4121. * src/XmlRpcMethod.h
  4122. * src/XmlRpcMethodFactory.cc
  4123. * src/XmlRpcMethodImpl.cc
  4124. * src/XmlRpcMethodImpl.h
  4125. * test/XmlRpcMethodTest.cc
  4126. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4127. Added changeOption command. Currently, max-download-limit,
  4128. max-upload-limit option are available in this command.
  4129. * src/RequestGroup.h
  4130. * src/XmlRpcMethod.cc
  4131. * src/XmlRpcMethod.h
  4132. * src/XmlRpcMethodFactory.cc
  4133. * src/XmlRpcMethodImpl.cc
  4134. * src/XmlRpcMethodImpl.h
  4135. * test/XmlRpcMethodTest.cc
  4136. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4137. Added purgeDownloadResult command.
  4138. * src/RequestGroupMan.cc
  4139. * src/RequestGroupMan.h
  4140. * src/XmlRpcMethodFactory.cc
  4141. * src/XmlRpcMethodImpl.cc
  4142. * src/XmlRpcMethodImpl.h
  4143. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4144. Refactored.
  4145. * src/XmlRpcMethod.cc
  4146. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4147. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4148. XmlRpcResponse.
  4149. * src/HttpServerBodyCommand.cc
  4150. * src/Makefile.am
  4151. * src/XmlRpcMethod.cc
  4152. * src/XmlRpcMethod.h
  4153. * src/XmlRpcMethodImpl.cc
  4154. * src/XmlRpcResponse.cc
  4155. * src/XmlRpcResponse.h
  4156. * test/XmlRpcMethodTest.cc
  4157. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4158. In XML-RPC option struct, header and index-out option can take
  4159. array as value.
  4160. * src/XmlRpcMethod.cc
  4161. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4162. Removed unused option member from PeerConnection.
  4163. * src/InitiatorMSEHandshakeCommand.cc
  4164. * src/PeerConnection.cc
  4165. * src/PeerConnection.h
  4166. * src/PeerInteractionCommand.cc
  4167. * src/PeerReceiveHandshakeCommand.cc
  4168. * src/ReceiverMSEHandshakeCommand.cc
  4169. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4170. Added "seeder" key to getPeers response.
  4171. * src/XmlRpcMethodImpl.cc
  4172. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4173. Added addMetalink XML-RPC command.
  4174. * src/XmlRpcMethodFactory.cc
  4175. * src/XmlRpcMethodImpl.cc
  4176. * src/XmlRpcMethodImpl.h
  4177. * src/download_helper.cc
  4178. * src/download_helper.h
  4179. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4180. Fixed the bug that POU peers are never choked in seeding.
  4181. * src/BtSeederStateChoke.cc
  4182. * src/BtSeederStateChoke.h
  4183. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4184. Added web-seeding URI handling in addTorrent command.
  4185. * src/XmlRpcMethodImpl.cc
  4186. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4187. Added "length" key to getFiles response.
  4188. * src/XmlRpcMethodImpl.cc
  4189. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4190. Moved --no-netrc option from ftp option section to http/ftp option
  4191. section.
  4192. * doc/aria2c.1.txt
  4193. * src/OptionHandlerFactory.cc
  4194. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4195. Removed garbage "\" character before '
  4196. * doc/aria2c.1.txt
  4197. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4198. Removed garbage "\" character before http.
  4199. * doc/aria2c.1.txt
  4200. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4201. Documented additional options that can be specified in -i list.
  4202. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4203. and --xml-rpc-passwd. Removed --enable-http-server and
  4204. --http-server-listen-port.
  4205. * doc/aria2c.1.txt
  4206. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4207. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4208. * src/DefaultPeerStorage.cc
  4209. * src/DefaultPeerStorage.h
  4210. * src/PeerStorage.h
  4211. * src/XmlRpcMethodImpl.cc
  4212. * test/MockPeerStorage.h
  4213. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4214. Put a call to Socket::isReadable() in try block.
  4215. * src/HttpServerBodyCommand.cc
  4216. * src/HttpServerCommand.cc
  4217. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4218. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4219. exception , so it is now in try block.
  4220. * src/HttpServerResponseCommand.cc
  4221. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4222. Added "amChoking" and "peerChoking" key in getPeers response.
  4223. * src/XmlRpcMethodImpl.cc
  4224. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4225. Added test case for zero-length filter.
  4226. * test/BitfieldManTest.cc
  4227. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4228. getFiles command now returns file data for finished/stopped
  4229. downloads.
  4230. * src/XmlRpcMethodImpl.cc
  4231. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4232. DownloadResult now has the list of FileEntry. The download
  4233. summary displays the path of first selected file and the number of
  4234. remaining files for multi-file torrent.
  4235. * src/DownloadResult.h
  4236. * src/RequestGroup.cc
  4237. * src/RequestGroupMan.cc
  4238. * test/RequestGroupTest.cc
  4239. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4240. Fixed segmentation fault error when no file is selected in
  4241. multi-file torrent.
  4242. * src/BitfieldMan.cc
  4243. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Escaped <,>,& character in XML-RPC response.
  4245. * src/XmlRpcMethod.cc
  4246. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4247. Throw DlAbortEx instead of FatalException during parsing options
  4248. because we don't want for aria2 to quit when bad option is passed
  4249. via XML-RPC.
  4250. * src/OptionHandlerException.cc
  4251. * src/OptionHandlerException.h
  4252. * src/OptionHandlerImpl.h
  4253. * src/OptionParser.cc
  4254. * src/OptionParser.h
  4255. * src/PStringSegment.cc
  4256. * src/ParameterizedStringParser.cc
  4257. * src/download_helper.cc
  4258. * test/ParameterizedStringParserTest.cc
  4259. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4260. Selecting files are now done in
  4261. DefaultBtContext::setFileFileter().
  4262. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4263. functions are removed because they are no longer used. Creating
  4264. filter in BitfieldMan is done in new funtion
  4265. PieceStorage::setupFileFilter()
  4266. * src/BtContext.cc
  4267. * src/BtContext.h
  4268. * src/DefaultBtContext.cc
  4269. * src/DefaultBtContext.h
  4270. * src/DefaultPieceStorage.cc
  4271. * src/DefaultPieceStorage.h
  4272. * src/DiskAdaptor.cc
  4273. * src/DiskAdaptor.h
  4274. * src/PieceStorage.h
  4275. * src/RequestGroup.cc
  4276. * src/UnknownLengthPieceStorage.h
  4277. * src/XmlRpcMethodImpl.cc
  4278. * test/DefaultBtContextTest.cc
  4279. * test/MockBtContext.h
  4280. * test/MockPieceStorage.h
  4281. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4282. Fixed compile error on Mac OS X
  4283. * src/HttpServer.cc
  4284. * src/XmlRpcMethod.h
  4285. * src/XmlRpcMethodImpl.cc
  4286. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4287. Use std::binary_search instead of std::find
  4288. * src/DefaultPieceStorage.cc
  4289. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4290. Removed unnecessary BDE() call; leave them to implicit conversion.
  4291. * src/XmlRpcMethodImpl.cc
  4292. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4293. Return connections and gid in string
  4294. * src/XmlRpcMethodImpl.cc
  4295. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Renamed addURI as addUri
  4297. * src/XmlRpcMethodFactory.cc
  4298. * src/XmlRpcMethodImpl.cc
  4299. * src/XmlRpcMethodImpl.h
  4300. * test/XmlRpcMethodTest.cc
  4301. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4302. Renamed addTorrentFile as addTorrent
  4303. * src/XmlRpcMethodFactory.cc
  4304. * src/XmlRpcMethodImpl.cc
  4305. * src/XmlRpcMethodImpl.h
  4306. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4307. The information for files, URIs, peers are removed from the
  4308. reponse of TellaActive, TellStatus command because they tend to be
  4309. large. Instead they can be retrieved by the dedicated commands:
  4310. getFiles, getUris and getPeers respectively.
  4311. * src/XmlRpcMethodFactory.cc
  4312. * src/XmlRpcMethodImpl.cc
  4313. * src/XmlRpcMethodImpl.h
  4314. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4315. Removed --max-overall-upload-limit and
  4316. --max-overall-download-limit option from listRequestOptions.
  4317. * src/download_helper.cc
  4318. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4319. Log incoming host in HttpListenCommand.
  4320. * src/HttpListenCommand.cc
  4321. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4322. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4323. --xml-rpc-passwd option.
  4324. * src/HttpServer.cc
  4325. * src/HttpServer.h
  4326. * src/HttpServerCommand.cc
  4327. * src/OptionHandlerFactory.cc
  4328. * src/prefs.cc
  4329. * src/prefs.h
  4330. * src/usage_text.h
  4331. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4332. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4333. processing 0 length request.
  4334. * src/HttpServerBodyCommand.cc
  4335. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4336. Removed --enable-http-server and --http-server-listen-port
  4337. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4338. instead. The original feature for --enable-http-server that
  4339. reports download progress in HTML was officially removed. Persist
  4340. XML-RPC connection if client supports keep-alive.
  4341. * src/DownloadEngineFactory.cc
  4342. * src/HttpServerCommand.cc
  4343. * src/HttpServerResponseCommand.cc
  4344. * src/Makefile.am
  4345. * src/Makefile.in
  4346. * src/OptionHandlerFactory.cc
  4347. * src/RequestGroupMan.cc
  4348. * src/main.cc
  4349. * src/option_processing.cc
  4350. * src/prefs.cc
  4351. * src/prefs.h
  4352. * src/usage_text.h
  4353. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4354. Added "uris" key to the response of tellStatus command. Added
  4355. "connections" key to the response of tellStatus and tellActive
  4356. command.
  4357. * src/XmlRpcMethodImpl.cc
  4358. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4359. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4360. Added TellStatusXmlRpcMethod. Remove command can now remove
  4361. waiting RequestGroup.
  4362. * src/RequestGroupMan.cc
  4363. * src/RequestGroupMan.h
  4364. * src/XmlRpcMethodFactory.cc
  4365. * src/XmlRpcMethodImpl.cc
  4366. * src/XmlRpcMethodImpl.h
  4367. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4368. Initialized _peerId
  4369. * src/Peer.cc
  4370. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4371. Return fault structure for error. FailXmlRpcMethod is renamed as
  4372. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4373. in non-torrent download. Return single param value.
  4374. * src/XmlRpcMethod.cc
  4375. * src/XmlRpcMethodFactory.cc
  4376. * src/XmlRpcMethodImpl.cc
  4377. * src/XmlRpcMethodImpl.h
  4378. * test/XmlRpcMethodTest.cc
  4379. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4380. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4381. command.
  4382. * src/RequestGroup.cc
  4383. * src/RequestGroup.h
  4384. * src/RequestGroupMan.cc
  4385. * src/XmlRpcMethodImpl.cc
  4386. * test/RequestGroupTest.cc
  4387. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4388. Added more options that can be specified in -i list and xml-rpc
  4389. add* command.
  4390. * src/download_helper.h
  4391. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4392. The available options in -i list should be listed in
  4393. listRequestOptions().
  4394. * src/download_helper.cc
  4395. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4396. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4397. command.
  4398. * src/XmlRpcMethodImpl.cc
  4399. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4400. Now RequestGroup has its own copy of Option object. This will help
  4401. to give custom option for each RequestGroup.
  4402. addTorrentFile command now takes options.
  4403. * src/AbstractCommand.cc
  4404. * src/AbstractCommand.h
  4405. * src/AbstractProxyRequestCommand.cc
  4406. * src/ActivePeerConnectionCommand.cc
  4407. * src/ActivePeerConnectionCommand.h
  4408. * src/AdaptiveURISelector.cc
  4409. * src/BtCheckIntegrityEntry.cc
  4410. * src/BtDependency.cc
  4411. * src/BtDependency.h
  4412. * src/BtFileAllocationEntry.cc
  4413. * src/BtPostDownloadHandler.cc
  4414. * src/CheckIntegrityEntry.cc
  4415. * src/DownloadCommand.cc
  4416. * src/FtpDownloadCommand.cc
  4417. * src/FtpFinishDownloadCommand.cc
  4418. * src/FtpInitiateConnectionCommand.cc
  4419. * src/FtpNegotiationCommand.cc
  4420. * src/HttpInitiateConnectionCommand.cc
  4421. * src/HttpRequestCommand.cc
  4422. * src/HttpResponseCommand.cc
  4423. * src/HttpSkipResponseCommand.cc
  4424. * src/InitiateConnectionCommand.cc
  4425. * src/InitiateConnectionCommandFactory.cc
  4426. * src/InitiatorMSEHandshakeCommand.cc
  4427. * src/InitiatorMSEHandshakeCommand.h
  4428. * src/Metalink2RequestGroup.cc
  4429. * src/Metalink2RequestGroup.h
  4430. * src/MetalinkPostDownloadHandler.cc
  4431. * src/MultiUrlRequestInfo.cc
  4432. * src/MultiUrlRequestInfo.h
  4433. * src/PeerAbstractCommand.cc
  4434. * src/PeerInteractionCommand.cc
  4435. * src/PeerInteractionCommand.h
  4436. * src/PeerReceiveHandshakeCommand.cc
  4437. * src/PeerReceiveHandshakeCommand.h
  4438. * src/RequestGroup.cc
  4439. * src/RequestGroup.h
  4440. * src/TrackerWatcherCommand.cc
  4441. * src/TrackerWatcherCommand.h
  4442. * src/XmlRpcMethod.cc
  4443. * src/XmlRpcMethod.h
  4444. * src/XmlRpcMethodImpl.cc
  4445. * src/download_helper.cc
  4446. * src/download_helper.h
  4447. * src/main.cc
  4448. * test/BtDependencyTest.cc
  4449. * test/BtPostDownloadHandlerTest.cc
  4450. * test/DefaultBtMessageDispatcherTest.cc
  4451. * test/DownloadHandlerFactoryTest.cc
  4452. * test/DownloadHelperTest.cc
  4453. * test/Metalink2RequestGroupTest.cc
  4454. * test/MetalinkPostDownloadHandlerTest.cc
  4455. * test/RequestGroupManTest.cc
  4456. * test/RequestGroupTest.cc
  4457. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4458. Added tellActiveStatus xml-rpc command which reports download
  4459. status of active downloads.
  4460. * src/XmlRpcMethodFactory.cc
  4461. * src/XmlRpcMethodImpl.cc
  4462. * src/XmlRpcMethodImpl.h
  4463. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4464. Added addTorrentFile xml-rpc command which receives uploaded
  4465. torrent file and add download for it.
  4466. * src/RequestGroupMan.cc
  4467. * src/XmlRpcMethodFactory.cc
  4468. * src/XmlRpcMethodImpl.cc
  4469. * src/XmlRpcMethodImpl.h
  4470. * src/download_helper.cc
  4471. * src/download_helper.h
  4472. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4473. Added remove xml-rpc command which removes specified download.
  4474. There is a known issue: the removed unfinished downloads are
  4475. reported ERR when aria2 exits. They should be reported as INPR.
  4476. * src/RequestGroupMan.cc
  4477. * src/RequestGroupMan.h
  4478. * src/XmlRpcMethodFactory.cc
  4479. * src/XmlRpcMethodImpl.cc
  4480. * src/XmlRpcMethodImpl.h
  4481. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4482. If --enable-http-server is enabled, don't stop aria2 when all
  4483. download finished and don't quit when no files to download at
  4484. start up.
  4485. * src/RequestGroupMan.cc
  4486. * src/main.cc
  4487. * src/option_processing.cc
  4488. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4489. Added missing AM_CONDITIONAL
  4490. * configure.ac
  4491. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4492. Added xml-rpc functionality. Currently only addURI commad is
  4493. supported. To enable xml-rpc, run aria2 with
  4494. --enable-http-server. This option name is temporal and will be
  4495. changed. The feature that reports download progress in html format
  4496. is temporarily disabled.
  4497. * src/HttpServer.cc
  4498. * src/HttpServer.h
  4499. * src/HttpServerBodyCommand.cc
  4500. * src/HttpServerBodyCommand.h
  4501. * src/HttpServerCommand.cc
  4502. * src/HttpServerResponseCommand.cc
  4503. * src/Makefile.am
  4504. * src/OptionParser.cc
  4505. * src/OptionParser.h
  4506. * src/RequestGroupMan.cc
  4507. * src/RequestGroupMan.h
  4508. * src/XmlRpcMethod.cc
  4509. * src/XmlRpcMethod.h
  4510. * src/XmlRpcMethodFactory.cc
  4511. * src/XmlRpcMethodFactory.h
  4512. * src/XmlRpcMethodImpl.cc
  4513. * src/XmlRpcMethodImpl.h
  4514. * src/download_helper.cc
  4515. * src/download_helper.h
  4516. * test/Makefile.am
  4517. * test/XmlRpcMethodTest.cc
  4518. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4519. Added xml-rpc request parser. The supported value types are:
  4520. i4/int, string, double, struct, array, base64. Currently only
  4521. libxml2 version is provided.
  4522. * src/Xml2XmlRpcRequestProcessor.cc
  4523. * src/Xml2XmlRpcRequestProcessor.h
  4524. * src/XmlRpcElements.cc
  4525. * src/XmlRpcElements.h
  4526. * src/XmlRpcRequest.h
  4527. * src/XmlRpcRequestParserController.cc
  4528. * src/XmlRpcRequestParserController.h
  4529. * src/XmlRpcRequestParserState.h
  4530. * src/XmlRpcRequestParserStateImpl.cc
  4531. * src/XmlRpcRequestParserStateImpl.h
  4532. * src/XmlRpcRequestParserStateMachine.cc
  4533. * src/XmlRpcRequestParserStateMachine.h
  4534. * src/XmlRpcRequestProcessor.h
  4535. * test/XmlRpcRequestParserControllerTest.cc
  4536. * test/XmlRpcRequestProcessorTest.cc
  4537. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4538. * Release 1.3.3
  4539. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4540. Fixed compile error since r1202.
  4541. * src/ExpatMetalinkProcessor.cc
  4542. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4543. Updated Ukrainian, Russian and Simplified Chinese
  4544. translations. Thanks to all translators.
  4545. * po/ru.po
  4546. * po/uk.po
  4547. * po/zh_CN.po
  4548. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4549. Pass reference of Option object instead of pointer.
  4550. * src/download_helper.cc
  4551. * src/download_helper.h
  4552. * src/main.cc
  4553. * test/DownloadHelperTest.cc
  4554. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4555. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4556. from option directly. Instead, get them from RequestGroup.
  4557. * src/ActivePeerConnectionCommand.cc
  4558. * src/ActivePeerConnectionCommand.h
  4559. * src/PeerReceiveHandshakeCommand.cc
  4560. * src/RequestGroup.h
  4561. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4562. Removed unused uploadLimitCheck and uploadLimit from
  4563. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4564. PeerInteractionCommand.
  4565. * src/PeerAbstractCommand.cc
  4566. * src/PeerAbstractCommand.h
  4567. * src/PeerInteractionCommand.cc
  4568. * src/PeerInteractionCommand.h
  4569. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4570. Fixed broken file renaming feature since r1202.
  4571. * src/FtpNegotiationCommand.cc
  4572. * src/FtpNegotiationCommand.h
  4573. * src/HttpResponseCommand.cc
  4574. * src/RequestGroup.cc
  4575. * src/RequestGroup.h
  4576. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4577. Removed unused debug log
  4578. * src/SocketCore.cc
  4579. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4580. Generated configure and Makefile.in using autoconf 2.63 and
  4581. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4582. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4583. * configure.ac
  4584. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4585. Moved piece statistics stuff to new PieceStatMan class.
  4586. Refactored PieceSelector interface.
  4587. * src/DefaultPieceStorage.cc
  4588. * src/DefaultPieceStorage.h
  4589. * src/LongestSequencePieceSelector.cc
  4590. * src/LongestSequencePieceSelector.h
  4591. * src/Makefile.am
  4592. * src/PieceSelector.h
  4593. * src/PieceStatMan.cc
  4594. * src/PieceStatMan.h
  4595. * src/RarestPieceSelector.cc
  4596. * src/RarestPieceSelector.h
  4597. * src/RequestGroup.cc
  4598. * test/DefaultPieceStorageTest.cc
  4599. * test/InOrderPieceSelector.h
  4600. * test/Makefile.am
  4601. * test/PieceStatManTest.cc
  4602. * test/RarestPieceSelectorTest.cc
  4603. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4604. Added static member _protocolFamily to SocketCore. By default,
  4605. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4606. address. Sometime SocketCore::bind() and
  4607. SocketCore::establishConnection() use difference protocl family
  4608. and latter cannot connect to former. To avoid this situation, we
  4609. limit protocol family to AF_INET for unit tests.
  4610. * src/SocketCore.cc
  4611. * src/SocketCore.h
  4612. * test/AllTest.cc
  4613. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4614. Avoid std::bad_alloc for negative bencode string length.
  4615. * src/bencode.cc
  4616. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4617. Supported segmented downloading with chunked transfer encoding and
  4618. content-length.
  4619. * src/DownloadCommand.cc
  4620. * src/HttpResponseCommand.cc
  4621. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4622. Bump up version number to 1.3.3
  4623. * configure.ac
  4624. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4625. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4626. from 4096 to 65536 (for insanely large ftp login banners)
  4627. * src/FtpConnection.h
  4628. * test/FtpConnectionTest.cc
  4629. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4630. In DefaultBtContext::getActualBasePath(), return first
  4631. FileEntry::getPath() for single file torrent.
  4632. * src/DefaultBtContext.cc
  4633. * test/DefaultBtContextTest.cc
  4634. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4635. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4636. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4637. Removed _directIOAllowed member from DiskWriter.
  4638. * src/AbstractDiskWriter.cc
  4639. * src/AbstractDiskWriter.h
  4640. * src/AbstractSingleDiskAdaptor.cc
  4641. * src/AbstractSingleDiskAdaptor.h
  4642. * src/BinaryStream.h
  4643. * src/ByteArrayDiskWriter.h
  4644. * src/DefaultPieceStorage.cc
  4645. * src/DiskWriter.h
  4646. * src/MultiDiskAdaptor.cc
  4647. * src/MultiDiskAdaptor.h
  4648. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4649. Now the constructor of AbstractDiskWriter takes filename as an
  4650. argument and filename argument is removed from openFile(),
  4651. initAndOpenFile(), openExistingFile() interface. storeDir member
  4652. and its accessor functions are removed from DiskAdaptor because it
  4653. is not used anymore. size() member function of DefaultDiskWriter,
  4654. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4655. opening file.
  4656. * src/AbstractDiskWriter.cc
  4657. * src/AbstractDiskWriter.h
  4658. * src/AbstractSingleDiskAdaptor.cc
  4659. * src/AbstractSingleDiskAdaptor.h
  4660. * src/ByteArrayDiskWriter.cc
  4661. * src/ByteArrayDiskWriter.h
  4662. * src/ByteArrayDiskWriterFactory.cc
  4663. * src/ByteArrayDiskWriterFactory.h
  4664. * src/DefaultDiskWriter.cc
  4665. * src/DefaultDiskWriter.h
  4666. * src/DefaultDiskWriterFactory.cc
  4667. * src/DefaultDiskWriterFactory.h
  4668. * src/DefaultPieceStorage.cc
  4669. * src/DirectDiskAdaptor.cc
  4670. * src/DirectDiskAdaptor.h
  4671. * src/DiskAdaptor.h
  4672. * src/DiskWriter.h
  4673. * src/DiskWriterFactory.h
  4674. * src/MessageDigestHelper.cc
  4675. * src/MultiDiskAdaptor.cc
  4676. * src/RequestGroup.cc
  4677. * src/UnknownLengthPieceStorage.cc
  4678. * src/Util.cc
  4679. * test/DefaultDiskWriterTest.cc
  4680. * test/DirectDiskAdaptorTest.cc
  4681. * test/FallocFileAllocationIteratorTest.cc
  4682. * test/MessageDigestHelperTest.cc
  4683. * test/MetalinkProcessorTest.cc
  4684. * test/MultiDiskAdaptorTest.cc
  4685. * test/MultiFileAllocationIteratorTest.cc
  4686. * test/SingleFileAllocationIteratorTest.cc
  4687. * test/UtilTest.cc
  4688. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4689. Fixed the bug that aria2 aborts when --select-file is used. This
  4690. bug was introduced in r1199.
  4691. * src/MultiDiskAdaptor.cc
  4692. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4693. Code cleanup
  4694. * test/MockPieceStorage.cc
  4695. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4696. Fixed the bug that read-only file with wrong file size will cause
  4697. error because it cannot be truncated to the correct size. Now if
  4698. file size is different than the expected one, re-open file in
  4699. writable mode.
  4700. * src/AbstractSingleDiskAdaptor.cc
  4701. * src/AbstractSingleDiskAdaptor.h
  4702. * src/BtCheckIntegrityEntry.cc
  4703. * src/DiskAdaptor.h
  4704. * src/MultiDiskAdaptor.h
  4705. * src/RequestGroup.cc
  4706. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4707. Fixed the bug that with --check-integrity option aria2 reports
  4708. downloaded file size is 0 even if some parts of file is correctly
  4709. downloaded. This bug is reproducible for the download that a file
  4710. includes last piece is missing. This bug doesn't reveal for
  4711. single-torrent with file allocation on.
  4712. * src/IteratableChecksumValidator.cc
  4713. * test/IteratableChecksumValidatorTest.cc
  4714. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4715. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4716. * src/RequestGroupMan.cc
  4717. * src/AdaptiveURISelector.cc
  4718. * src/AdaptiveURISelector.h
  4719. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4720. * Release 1.3.2
  4721. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4722. Updated README
  4723. * README
  4724. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4725. Updated Ukrainian translations. Thanks to Alexander10.
  4726. * po/uk.po
  4727. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4728. Code cleanup
  4729. * src/MetalinkParserStateMachine.cc
  4730. * src/MetalinkParserStateMachine.h
  4731. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4732. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4733. and expat simultaneously, MetalinkProcessor is now not base class
  4734. and it is directly implemented in XML2SAXMetalinkProcessor and
  4735. ExpatMetalinkProcessor.
  4736. * src/ExpatMetalinkProcessor.cc
  4737. * src/ExpatMetalinkProcessor.h
  4738. * src/Makefile.am
  4739. * src/MetalinkHelper.cc
  4740. * src/MetalinkProcessor.h
  4741. * src/MetalinkProcessorFactory.cc: Removed.
  4742. * src/MetalinkProcessorFactory.h: Removed
  4743. * src/XML2SAXMetalinkProcessor.cc
  4744. * src/XML2SAXMetalinkProcessor.h
  4745. * test/MetalinkProcessorTest.cc
  4746. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4747. Bump up version number to 1.3.2
  4748. * configure.ac
  4749. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4750. Added missing file.
  4751. * test/Makefile.am
  4752. * test/url-list-singleFileEndsWithSlash.torrent
  4753. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4754. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4755. request.
  4756. * src/AnnounceList.cc
  4757. * src/AnnounceList.h
  4758. * src/BDE.cc: Added
  4759. * src/BDE.h: Added
  4760. * src/DHTAbstractMessage.cc
  4761. * src/DHTAbstractMessage.h
  4762. * src/DHTAnnouncePeerMessage.cc
  4763. * src/DHTAnnouncePeerMessage.h
  4764. * src/DHTAnnouncePeerReplyMessage.cc
  4765. * src/DHTAnnouncePeerReplyMessage.h
  4766. * src/DHTFindNodeMessage.cc
  4767. * src/DHTFindNodeMessage.h
  4768. * src/DHTFindNodeReplyMessage.cc
  4769. * src/DHTFindNodeReplyMessage.h
  4770. * src/DHTGetPeersMessage.cc
  4771. * src/DHTGetPeersMessage.h
  4772. * src/DHTGetPeersReplyMessage.cc
  4773. * src/DHTGetPeersReplyMessage.h
  4774. * src/DHTMessageFactory.h
  4775. * src/DHTMessageFactoryImpl.cc
  4776. * src/DHTMessageFactoryImpl.h
  4777. * src/DHTMessageReceiver.cc
  4778. * src/DHTMessageTracker.cc
  4779. * src/DHTMessageTracker.h
  4780. * src/DHTPingMessage.cc
  4781. * src/DHTPingMessage.h
  4782. * src/DHTPingReplyMessage.cc
  4783. * src/DHTPingReplyMessage.h
  4784. * src/DHTQueryMessage.cc
  4785. * src/DHTQueryMessage.h
  4786. * src/DHTResponseMessage.cc
  4787. * src/DHTResponseMessage.h
  4788. * src/DefaultBtAnnounce.cc
  4789. * src/DefaultBtContext.cc
  4790. * src/DefaultBtContext.h
  4791. * src/HandshakeExtensionMessage.cc
  4792. * src/Makefile.am
  4793. * src/PeerListProcessor.h
  4794. * src/UTPexExtensionMessage.cc
  4795. * src/bencode.cc
  4796. * src/bencode.h
  4797. * test/AnnounceListTest.cc
  4798. * test/BDETest.cc: Added
  4799. * test/BencodeTest.cc
  4800. * test/DHTAnnouncePeerMessageTest.cc
  4801. * test/DHTAnnouncePeerReplyMessageTest.cc
  4802. * test/DHTFindNodeMessageTest.cc
  4803. * test/DHTFindNodeReplyMessageTest.cc
  4804. * test/DHTGetPeersMessageTest.cc
  4805. * test/DHTGetPeersReplyMessageTest.cc
  4806. * test/DHTMessageFactoryImplTest.cc
  4807. * test/DHTMessageTrackerTest.cc
  4808. * test/DHTPingMessageTest.cc
  4809. * test/DHTPingReplyMessageTest.cc
  4810. * test/Makefile.am
  4811. * test/MockDHTMessageFactory.h
  4812. * test/PeerListProcessorTest.cc
  4813. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4814. Use url-list (web-seeding) only for single-file torrent. This is
  4815. basically the same behavior with Metalink file with torrent and
  4816. URIs.
  4817. * src/RequestGroup.cc
  4818. * src/DefaultBtContext.cc
  4819. * test/DefaultBtContextTest.cc
  4820. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4821. Rewritten expr
  4822. * src/array_fun.h
  4823. * test/array_funTest.cc
  4824. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4825. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4826. * src/DefaultBtMessageDispatcher.cc
  4827. * src/a2algo.h
  4828. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4829. Removed ExtendedMessagingAware. Instead of using inheritance,
  4830. added ExtensionMessageRegistry and it is passed to
  4831. DefaultExtensionMessageFactory.
  4832. * src/DefaultBtInteractive.cc
  4833. * src/DefaultBtInteractive.h
  4834. * src/DefaultExtensionMessageFactory.cc
  4835. * src/DefaultExtensionMessageFactory.h
  4836. * src/ExtendedMessagingAware.h: Removed.
  4837. * src/ExtensionMessageFactory.h
  4838. * src/ExtensionMessageRegistry.h: Added.
  4839. * src/Makefile.am
  4840. * src/PeerInteractionCommand.cc
  4841. * test/DefaultExtensionMessageFactoryTest.cc
  4842. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4843. Fixed typo in log messages
  4844. * src/MSEHandshake.cc
  4845. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4846. Fixed the bug that prevents torrent download from finishing. The
  4847. bug doesn't reveal for all torrents. The torrents affected this
  4848. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4849. of pieces.
  4850. * src/bitfield.h
  4851. * test/bitfieldTest.cc
  4852. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4853. Code cleanup
  4854. * src/PeerListProcessor.h
  4855. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4856. Removed RequestGroupAware
  4857. * src/AbstractCommand.cc
  4858. * src/AbstractCommand.h
  4859. * src/ActivePeerConnectionCommand.cc
  4860. * src/ActivePeerConnectionCommand.h
  4861. * src/DHTGetPeersCommand.cc
  4862. * src/DHTGetPeersCommand.h
  4863. * src/InitiatorMSEHandshakeCommand.cc
  4864. * src/InitiatorMSEHandshakeCommand.h
  4865. * src/Makefile.am
  4866. * src/PeerInitiateConnectionCommand.cc
  4867. * src/PeerInitiateConnectionCommand.h
  4868. * src/PeerInteractionCommand.cc
  4869. * src/PeerInteractionCommand.h
  4870. * src/RealtimeCommand.cc
  4871. * src/RealtimeCommand.h
  4872. * src/RequestGroupAware.cc: Removed
  4873. * src/RequestGroupAware.h: Removed
  4874. * src/SeedCheckCommand.cc
  4875. * src/SeedCheckCommand.h
  4876. * src/SleepCommand.cc
  4877. * src/TrackerWatcherCommand.cc
  4878. * src/TrackerWatcherCommand.h
  4879. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4880. Rewritten PeerListProcessor
  4881. * src/PeerListProcessor.h
  4882. * src/CompactPeerListProcessor.h: Removed
  4883. * src/CompactPeerListProcessor.cc: Removed
  4884. * src/DelegatingPeerListProcessor.cc: Removed.
  4885. * src/DefaultBtAnnounce.cc
  4886. * src/Makefile.am
  4887. * src/UTPexExtensionMessage.cc
  4888. * src/DefaultPeerListProcessor.h: Removed.
  4889. * src/DefaultPeerListProcessor.cc: Removed.
  4890. * src/DelegatingPeerListProcessor.h: Removed.
  4891. * test/Makefile.am
  4892. * test/PeerListProcessorTest.cc
  4893. * test/DefaultPeerListProcessorTest.cc: Removed.
  4894. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4895. Rewritten RequestGroupMan::calculateStat()
  4896. * src/RequestGroupMan.cc
  4897. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4898. Removed unnecessary virtual destructor for Request class.
  4899. * src/Request.cc
  4900. * src/Request.h
  4901. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4902. Avoid dynamic_pointer_cast.
  4903. * src/DHTGetPeersCommand.cc
  4904. * src/DHTGetPeersCommand.h
  4905. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4906. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4907. BtEvent.
  4908. * src/AbstractBtEventListener.h: Removed.
  4909. * src/AbstractBtMessage.cc
  4910. * src/AbstractBtMessage.h
  4911. * src/BtAbortOutstandingRequestEvent.h
  4912. * src/BtCancelSendingPieceEvent.h
  4913. * src/BtChokedEvent.h: Removed.
  4914. * src/BtChokingEvent.h
  4915. * src/BtEvent.h: Removed
  4916. * src/BtEventListener.h: Removed.
  4917. * src/BtMessage.h
  4918. * src/BtPieceMessage.cc
  4919. * src/BtPieceMessage.h
  4920. * src/BtRequestMessage.cc
  4921. * src/BtRequestMessage.h
  4922. * src/DefaultBtMessageDispatcher.cc
  4923. * src/Makefile.am
  4924. * src/a2functional.h
  4925. * test/BtPieceMessageTest.cc
  4926. * test/BtRequestMessageTest.cc
  4927. * test/DefaultBtMessageDispatcherTest.cc
  4928. * test/MockBtMessage.h
  4929. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4930. Code cleanup
  4931. * src/RequestGroupMan.cc
  4932. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4933. Code cleanup
  4934. * src/DownloadCommand.cc
  4935. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4936. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4937. byte.
  4938. * src/DownloadCommand.cc
  4939. * src/bitfield.h
  4940. * test/bitfieldTest.cc
  4941. Fixed the bug that causes infinite loop if broken web server
  4942. returns chunked response without last "0" chunk-size marker and
  4943. closes connection.
  4944. * src/DownloadCommand.cc
  4945. Instantiate properly configured HttpDownloadCommand for
  4946. non-resumable downlaods.
  4947. * src/HttpResponseCommand.cc
  4948. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4949. Rewritten array operation functions.
  4950. * src/BitfieldMan.cc
  4951. * src/array_fun.h
  4952. * test/array_funTest.cc
  4953. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4954. Removed unused variable 'query'
  4955. * src/Request.cc
  4956. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4957. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4958. accidentally set to false in r1162.
  4959. * configure.ac
  4960. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4961. Code cleanup
  4962. * src/BNode.cc
  4963. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4964. Increase prefixLength for the bucket which doesn't own local node
  4965. ID when splitting bucket.
  4966. * src/DHTBucket.cc
  4967. * test/DHTBucketTest.cc
  4968. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4969. * Release 1.3.1
  4970. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4971. Bump up version number to 1.3.1
  4972. * configure.ac
  4973. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4974. Removed unused variable checkPoint. Also removed include directive
  4975. for TimeA2.h.
  4976. * src/SeedCheckCommand.h
  4977. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4978. Fixed the bug that upload limit exceeds the value specified in
  4979. --seed-ratio option depending on the timing of the execution of
  4980. SeedCheckCommand.
  4981. * src/SeedCheckCommand.cc
  4982. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4983. Fixed the bug that removed peer's session upload/download length
  4984. are counted twice in _cachedTransferStat before it is
  4985. re-calculated. This affected the calculation of shara ratio,
  4986. resulting aria2 wrongly determines that specified share ratio is
  4987. reached. Also fixed the typo in calculateStatFor function name.
  4988. * src/BtSetup.cc
  4989. * src/DefaultPeerStorage.cc
  4990. * src/ShareRatioSeedCriteria.h
  4991. * test/ShareRatioSeedCriteriaTest.cc
  4992. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4993. * Release 1.3.0
  4994. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4995. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4996. Nynorsk translations. Thanks to all translators.
  4997. * po/es.po
  4998. * po/ja.po
  4999. * po/nn.po
  5000. * po/ru.po
  5001. * po/uk.po
  5002. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5003. Rewritten isInRange()
  5004. * src/DHTBucket.cc
  5005. * test/DHTBucketTest.cc
  5006. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5007. Fixed typo
  5008. * doc/aria2c.1.txt
  5009. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5010. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5011. malloc/realloc is not used.
  5012. * src/configure.ac
  5013. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5014. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5015. char* bitfield instead of stl container for efficiency.
  5016. PieceSelector::select now takes this
  5017. bitfield. RarestPieceSelector::select now also performs
  5018. efficiently for this change. bitfield namespace is introduced and
  5019. it has several helper functions to handle basic bitfield
  5020. operations such as test, count set bits, etc.
  5021. * src/BitfieldMan.cc
  5022. * src/BitfieldMan.h
  5023. * src/DefaultBtRequestFactory.cc
  5024. * src/DefaultPieceStorage.cc
  5025. * src/DefaultPieceStorage.h
  5026. * src/LongestSequencePieceSelector.cc
  5027. * src/LongestSequencePieceSelector.h
  5028. * src/Makefile.am
  5029. * src/Piece.cc
  5030. * src/Piece.h
  5031. * src/PieceSelector.h
  5032. * src/RarestPieceSelector.cc
  5033. * src/RarestPieceSelector.h
  5034. * src/Util.cc
  5035. * src/Util.h
  5036. * src/bitfield.h
  5037. * test/BitfieldManTest.cc
  5038. * test/LongestSequencePieceSelectorTest.cc
  5039. * test/Makefile.am
  5040. * test/RarestPieceSelectorTest.cc
  5041. * test/UtilTest.cc
  5042. * test/bitfieldTest.cc
  5043. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5044. Made accepted socket non-block.
  5045. * src/FtpNegotiationCommand.cc
  5046. * src/HttpListenCommand.cc
  5047. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5048. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5049. * src/AbstractSingleDiskAdaptor.cc
  5050. * src/DefaultPieceStorage.cc
  5051. * src/DiskAdaptor.h
  5052. * src/DiskAdaptor.h
  5053. * src/MultiFileAllocationIterator.cc
  5054. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5055. Run
  5056. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5057. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5058. it doesn't need to be called every time when
  5059. DefaultBtInteractive::doInteractionProcessing() is called.
  5060. * src/DefaultBtInteractive.cc
  5061. * src/DefaultBtInteractive.h
  5062. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5063. Documented 'falloc' in man page.
  5064. * doc/aria2c.1.txt
  5065. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5066. Updated doc
  5067. * src/usage_text.h
  5068. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5069. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5070. allocation mode uses posix_fallocate() system call to allocate
  5071. file on disk. If you are using newer file systems such as ext4
  5072. (with extents support), btrfs or xfs, 'falloc' is your best
  5073. choice. It allocates large(few GiB) files almost instantly. Don't
  5074. use 'falloc' with legacy file systems such as ext3 because it
  5075. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5076. until allocation finishes. 'falloc' may not be available if your
  5077. system doesn't have posix_fallocate() system call.
  5078. * configure.ac
  5079. * src/AbstractDiskWriter.cc
  5080. * src/AbstractDiskWriter.h
  5081. * src/AbstractSingleDiskAdaptor.cc
  5082. * src/BinaryStream.h
  5083. * src/BtCheckIntegrityEntry.cc
  5084. * src/ByteArrayDiskWriter.h
  5085. * src/CheckIntegrityEntry.cc
  5086. * src/CheckIntegrityEntry.h
  5087. * src/DefaultPieceStorage.cc
  5088. * src/DiskAdaptor.cc
  5089. * src/DiskAdaptor.h
  5090. * src/DiskWriter.h
  5091. * src/FallocFileAllocationIterator.cc
  5092. * src/FallocFileAllocationIterator.h
  5093. * src/FileAllocationEntry.cc
  5094. * src/FileAllocationEntry.h
  5095. * src/Makefile.am
  5096. * src/MultiFileAllocationIterator.cc
  5097. * src/MultiFileAllocationIterator.h
  5098. * src/OptionHandlerFactory.cc
  5099. * src/RequestGroup.cc
  5100. * src/StreamCheckIntegrityEntry.cc
  5101. * src/prefs.cc
  5102. * src/prefs.h
  5103. * src/usage_text.h
  5104. * test/FallocFileAllocationIteratorTest.cc
  5105. * test/Makefile.am
  5106. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5107. Removed duplicate enableDirectIO() call.
  5108. * src/MultiFileAllocationIterator.cc
  5109. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5110. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5111. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5112. cost of std::rotate().
  5113. * src/RarestPieceSelector.cc
  5114. * src/RarestPieceSelector.h
  5115. * test/RarestPieceSelectorTest.cc
  5116. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5117. Updated usage doc for --bt-tracker-interval option.
  5118. * src/usage_text.h
  5119. * doc/aria2c.1.txt
  5120. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5121. Documented --bt-tracker-interval option in man page.
  5122. * doc/aria2c.1.txt
  5123. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5124. Added an option to specify the interval between tracker requests.
  5125. If non-zero value is specified, aria2 uses it and ignores the
  5126. interval value in the response of tracker. If zero is specified,
  5127. aria2 determines the inteval value based on the tarcker response
  5128. and download progress.
  5129. * src/DefaultBtAnnounce.cc
  5130. * src/DefaultBtAnnounce.h
  5131. * src/OptionHandlerFactory.cc
  5132. * src/RequestGroup.cc
  5133. * src/prefs.cc
  5134. * src/prefs.h
  5135. * src/usage_text.h
  5136. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5137. Added operator+=, operator-=, operator-
  5138. * src/TransferStat.cc
  5139. * src/TransferStat.h
  5140. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5141. Refactored RarestPieceSelector to reduce CPU load, especially for
  5142. addPieceStats.
  5143. * src/RarestPieceSelector.cc
  5144. * src/RarestPieceSelector.h
  5145. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5146. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5147. getAllMissingBlockIndexes to reduce a call to
  5148. array_function_base::operator[].
  5149. * src/BitfieldMan.cc
  5150. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5151. Cached TransferStat/download speed to avoid to sum them up in each
  5152. call.
  5153. * src/DefaultPeerStorage.cc
  5154. * src/DefaultPeerStorage.h
  5155. * src/SegmentMan.cc
  5156. * src/SegmentMan.h
  5157. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5158. Typedefed cuid_t as int32_t in Command.h
  5159. * src/CUIDCounter.h
  5160. * src/Command.cc
  5161. * src/Command.h
  5162. * src/DownloadEngine.cc
  5163. * src/DownloadEngine.h
  5164. * src/PeerStat.h
  5165. * src/SegmentMan.cc
  5166. * src/SegmentMan.h
  5167. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5168. Reduced the number of calls to PeerStorage::calculateStat() and
  5169. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5170. transfer rate.
  5171. * src/DefaultBtInteractive.cc
  5172. * src/DefaultBtMessageDispatcher.cc
  5173. * src/DefaultPeerStorage.cc
  5174. * src/DefaultPeerStorage.h
  5175. * src/DownloadCommand.cc
  5176. * src/DownloadEngine.cc
  5177. * src/PeerStorage.h
  5178. * src/SegmentMan.cc
  5179. * src/SegmentMan.h
  5180. * test/MockPeerStorage.h
  5181. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5182. Prepended _dir+"/" after joining path elements in torrent file.
  5183. * src/DefaultBtContext.cc
  5184. * test/DefaultBtContextTest.cc
  5185. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5186. Added missing IndexBtMessageValidator.h
  5187. * src/Makefile.am
  5188. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5189. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5190. Chinese translations. Thank you for contributing our project.
  5191. * po/id.po
  5192. * po/it.po
  5193. * po/ru.po
  5194. * po/uk.po
  5195. * po/zh_CN.po
  5196. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5197. Updated README
  5198. * README
  5199. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5200. Bump up version number to 1.3.0
  5201. * configure.ac
  5202. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5203. Updated doc
  5204. * src/DefaultBtContext.h
  5205. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5206. Slice/joinPath for name of single torrent.
  5207. * src/DefaultBtContext.cc
  5208. * test/DefaultBtContextTest.cc
  5209. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5210. Updated man page: Documented --dry-run and --index-out
  5211. options. Changed the default value of --uri-selector and
  5212. --http-auth-challenge options. Removed --direct-file-mapping
  5213. option. Added example for --index-out
  5214. * doc/aria2c.1.txt
  5215. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5216. Updated TEXT_DRY_RUN
  5217. * src/usage_text.h
  5218. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5219. Changed the default value of --uri-selector option from 'inorder'
  5220. to 'feedback'
  5221. * src/OptionHandlerFactory.cc
  5222. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5223. Included current URI in exception message.
  5224. * src/AbstractCommand.cc
  5225. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5226. Renamed ServerStatURISelector as FeedbackURISelector.
  5227. * src/FeedbackURISelector.cc
  5228. * src/FeedbackURISelector.h
  5229. * src/Makefile.am
  5230. * src/RequestGroupMan.cc
  5231. * src/ServerStatURISelector.cc
  5232. * src/ServerStatURISelector.h
  5233. * test/FeedbackURISelectorTest.cc
  5234. * test/Makefile.am
  5235. * test/ServerStatURISelectorTest.cc
  5236. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5237. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5238. all URIs are tested and their timeout is not reached.
  5239. * src/AdaptiveURISelector.cc
  5240. * src/AdaptiveURISelector.h
  5241. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5242. Changed the default value of --http-auth-challenge option to false.
  5243. * src/OptionHandlerFactory.cc
  5244. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5245. Reuse URIs when all unused URIs run out.
  5246. * src/OptionHandlerFactory.cc
  5247. * src/RequestGroup.cc
  5248. * src/prefs.cc
  5249. * src/prefs.h
  5250. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5251. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5252. and BtRejectMessage are derived from RangeBtMessage class.
  5253. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5254. derived from IndexBtMessage class. BtChokeMessage,
  5255. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5256. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5257. ZeroBtMessage class.
  5258. * src/AbstractBtMessage.cc
  5259. * src/AbstractBtMessage.h
  5260. * src/BtAllowedFastMessage.cc
  5261. * src/BtAllowedFastMessage.h
  5262. * src/BtAllowedFastMessageValidator.h: Removed
  5263. * src/BtBitfieldMessage.cc
  5264. * src/BtBitfieldMessage.h
  5265. * src/BtCancelMessage.cc
  5266. * src/BtCancelMessage.h
  5267. * src/BtCancelMessageValidator.h: Removed
  5268. * src/BtChokeMessage.cc
  5269. * src/BtChokeMessage.h
  5270. * src/BtExtendedMessage.cc
  5271. * src/BtExtendedMessage.h
  5272. * src/BtHandshakeMessage.cc
  5273. * src/BtHandshakeMessage.h
  5274. * src/BtHaveAllMessage.cc
  5275. * src/BtHaveAllMessage.h
  5276. * src/BtHaveMessage.cc
  5277. * src/BtHaveMessage.h
  5278. * src/BtHaveMessageValidator.h: Removed
  5279. * src/BtHaveNoneMessage.cc
  5280. * src/BtHaveNoneMessage.h
  5281. * src/BtInterestedMessage.cc
  5282. * src/BtInterestedMessage.h
  5283. * src/BtKeepAliveMessage.cc
  5284. * src/BtKeepAliveMessage.h
  5285. * src/BtNotInterestedMessage.cc
  5286. * src/BtNotInterestedMessage.h
  5287. * src/BtPieceMessage.cc
  5288. * src/BtPieceMessage.h
  5289. * src/BtPortMessage.cc
  5290. * src/BtPortMessage.h
  5291. * src/BtRejectMessage.cc
  5292. * src/BtRejectMessage.h
  5293. * src/BtRejectMessageValidator.h: Removed
  5294. * src/BtRequestMessage.cc
  5295. * src/BtRequestMessage.h
  5296. * src/BtRequestMessageValidator.h: Removed
  5297. * src/BtSuggestPieceMessage.cc
  5298. * src/BtSuggestPieceMessage.h
  5299. * src/BtSuggestPieceMessageValidator.h: Removed
  5300. * src/BtUnchokeMessage.cc
  5301. * src/BtUnchokeMessage.h
  5302. * src/DefaultBtMessageFactory.cc
  5303. * src/IndexBtMessage.cc
  5304. * src/IndexBtMessage.h
  5305. * src/IndexBtMessageValidator.h
  5306. * src/Makefile.am
  5307. * src/PeerMessageUtil.cc
  5308. * src/PeerMessageUtil.h
  5309. * src/RangeBtMessage.cc
  5310. * src/RangeBtMessage.h
  5311. * src/RangeBtMessageValidator.h
  5312. * src/SimpleBtMessage.cc
  5313. * src/SimpleBtMessage.h
  5314. * src/ZeroBtMessage.cc
  5315. * src/ZeroBtMessage.h
  5316. * test/BtRequestMessageTest.cc
  5317. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5318. Reverted usage_text.h to r1093 to avoid to lose translated
  5319. messages.
  5320. * src/usage_text.h
  5321. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5322. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5323. declared as non-const previously is now const and defined in class
  5324. definition.
  5325. * src/AbstractBtMessage.cc
  5326. * src/AbstractBtMessage.h
  5327. * src/BtAllowedFastMessage.cc
  5328. * src/BtAllowedFastMessage.h
  5329. * src/BtBitfieldMessage.h
  5330. * src/BtCancelMessage.cc
  5331. * src/BtCancelMessage.h
  5332. * src/BtChokeMessage.cc
  5333. * src/BtChokeMessage.h
  5334. * src/BtExtendedMessage.cc
  5335. * src/BtExtendedMessage.h
  5336. * src/BtHandshakeMessage.cc
  5337. * src/BtHandshakeMessage.h
  5338. * src/BtHaveAllMessage.cc
  5339. * src/BtHaveAllMessage.h
  5340. * src/BtHaveMessage.cc
  5341. * src/BtHaveMessage.h
  5342. * src/BtHaveNoneMessage.cc
  5343. * src/BtHaveNoneMessage.h
  5344. * src/BtInterestedMessage.cc
  5345. * src/BtInterestedMessage.h
  5346. * src/BtKeepAliveMessage.cc
  5347. * src/BtKeepAliveMessage.h
  5348. * src/BtMessage.h
  5349. * src/BtNotInterestedMessage.cc
  5350. * src/BtNotInterestedMessage.h
  5351. * src/BtPieceMessage.h
  5352. * src/BtPortMessage.cc
  5353. * src/BtPortMessage.h
  5354. * src/BtRejectMessage.cc
  5355. * src/BtRejectMessage.h
  5356. * src/BtRequestMessage.cc
  5357. * src/BtRequestMessage.h
  5358. * src/BtSuggestPieceMessage.cc
  5359. * src/BtSuggestPieceMessage.h
  5360. * src/BtUnchokeMessage.cc
  5361. * src/BtUnchokeMessage.h
  5362. * src/SimpleBtMessage.cc
  5363. * src/SimpleBtMessage.h
  5364. * test/MockBtMessage.h
  5365. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5366. Use FileEntry::exists()
  5367. * src/MultiDiskAdaptor.cc
  5368. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5369. Added exists()
  5370. * src/FileEntry.cc
  5371. * src/FileEntry.h
  5372. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5373. Added missing prefix dir.
  5374. * src/download_helper.cc
  5375. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5376. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5377. * src/CopyDiskAdaptor.cc: Removed
  5378. * src/CopyDiskAdaptor.h: Removed
  5379. * src/DefaultPieceStorage.cc
  5380. * src/Makefile.am
  5381. * src/OptionHandlerFactory.cc
  5382. * src/prefs.cc
  5383. * src/prefs.h
  5384. * src/usage_text.h
  5385. * test/CopyDiskAdaptorTest.cc: Removed
  5386. * test/Makefile.am
  5387. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5388. Rewritten isSameFileBeingDownloaded()
  5389. * src/RequestGroupMan.cc
  5390. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5391. Removed getName() from DownloadContext. getName() is declared in
  5392. BtContext.
  5393. * src/BtContext.h
  5394. * src/DownloadContext.h
  5395. * src/SingleFileDownloadContext.cc
  5396. * src/SingleFileDownloadContext.h
  5397. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5398. in AbstractSingleDiskAdaptor.
  5399. * src/AbstractSingleDiskAdaptor.h
  5400. * src/DiskAdaptor.h
  5401. * src/MultiDiskAdaptor.h
  5402. * src/RequestGroup.cc
  5403. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5404. MultiDiskAdaptor.
  5405. * src/DefaultPieceStorage.cc
  5406. * src/MultiDiskAdaptor.cc
  5407. * src/MultiDiskAdaptor.h
  5408. * test/MultiDiskAdaptorTest.cc
  5409. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5410. FileEntry::getPath() contains store(top level) directory to
  5411. simplify path handling operation. In the previous implementation,
  5412. store directory is concatenated to FileEntry::getPath() in
  5413. DownloadContext.
  5414. * src/BtDependency.cc
  5415. * src/BtPostDownloadHandler.cc
  5416. * src/CopyDiskAdaptor.cc
  5417. * src/DefaultBtContext.cc
  5418. * src/DirectDiskAdaptor.cc
  5419. * src/FileEntry.cc
  5420. * src/FileEntry.h
  5421. * src/FtpNegotiationCommand.cc
  5422. * src/HttpResponse.cc
  5423. * src/HttpResponseCommand.cc
  5424. * src/Metalink2RequestGroup.cc
  5425. * src/MultiDiskAdaptor.cc
  5426. * src/MultiDiskAdaptor.h
  5427. * src/MultiFileAllocationIterator.cc
  5428. * src/RequestGroup.cc
  5429. * src/SingleFileDownloadContext.cc
  5430. * src/SingleFileDownloadContext.h
  5431. * src/download_helper.cc
  5432. * test/BtDependencyTest.cc
  5433. * test/CopyDiskAdaptorTest.cc
  5434. * test/DefaultBtContextTest.cc
  5435. * test/DefaultBtProgressInfoFileTest.cc
  5436. * test/DirectDiskAdaptorTest.cc
  5437. * test/DownloadHelperTest.cc
  5438. * test/FileEntryTest.cc
  5439. * test/MultiDiskAdaptorTest.cc
  5440. * test/MultiFileAllocationIteratorTest.cc
  5441. * test/RequestGroupTest.cc
  5442. * test/SingleFileDownloadContextTest.cc
  5443. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5444. Fixed compiler warning
  5445. * src/download_helper.cc
  5446. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5447. Throw exception if same infohash torrent is now downloading.
  5448. * src/RequestGroup.cc
  5449. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5450. Added --dry-run option. In this mode, aria2 just checks whether
  5451. the remote file is available and doesn't download data. This
  5452. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5453. are canceled in this mode.
  5454. * src/FtpNegotiationCommand.cc
  5455. * src/HttpResponseCommand.cc
  5456. * src/HttpResponseCommand.h
  5457. * src/OptionHandlerFactory.cc
  5458. * src/RequestGroup.cc
  5459. * src/RequestGroupMan.cc
  5460. * src/prefs.cc
  5461. * src/prefs.h
  5462. * src/usage_text.h
  5463. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5464. Fixed compiler waring
  5465. * test/UriListParserTest.cc
  5466. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5467. Parse options in -i list using OptionParser.
  5468. * src/UriListParser.cc
  5469. * src/UriListParser.h
  5470. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5471. Don't reset URI in retry to avoid additional round trips because
  5472. of redirects.
  5473. * src/AbstractCommand.cc
  5474. * src/OptionHandlerFactory.cc
  5475. * src/prefs.cc
  5476. * src/prefs.h
  5477. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5478. Declared hide() in OptionHandler.
  5479. * src/NameMatchOptionHandler.h
  5480. * src/OptionHandler.h
  5481. * src/OptionHandlerImpl.h
  5482. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5483. Updated doc
  5484. * src/Peer.h
  5485. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5486. Added log message in setStatusInternal()
  5487. * src/ServerStat.cc
  5488. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5489. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5490. effectively exclude failed server.
  5491. * src/AbstractCommand.cc
  5492. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5493. Added --index-out option to specify each file path for torrent.
  5494. Here index shown in --show-files option is used to specify which
  5495. file path should be altered. For example, to change the file path
  5496. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5497. option multiple times: --index-out=1=aria2.tar.bz2
  5498. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5499. available. This option can be specified in -i list.
  5500. * src/DefaultBtContext.cc
  5501. * src/DefaultBtContext.h
  5502. * src/MultiDiskAdaptor.cc
  5503. * src/MultiDiskAdaptor.h
  5504. * src/MultiFileAllocationIterator.cc
  5505. * src/OptionHandlerFactory.cc
  5506. * src/OptionHandlerImpl.h
  5507. * src/Util.cc
  5508. * src/Util.h
  5509. * src/download_helper.cc
  5510. * src/prefs.cc
  5511. * src/prefs.h
  5512. * src/usage_text.h
  5513. * test/DefaultBtContextTest.cc
  5514. * test/MultiDiskAdaptorTest.cc
  5515. * test/MultiFileAllocationIteratorTest.cc
  5516. * test/UtilTest.cc
  5517. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5518. Use Util::pathJoin()
  5519. * src/MetalinkParserController.cc
  5520. * test/test.xml
  5521. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5522. Use Util::pathJoin()
  5523. * src/DefaultBtContext.cc
  5524. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5525. Added Util::pathJoin()
  5526. * src/Util.h
  5527. * test/UtilTest.cc
  5528. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5529. Applied basename function to remove directory element in
  5530. content-disposition value.
  5531. Return empty string if content-disposition value is ".." or ".".
  5532. * src/Util.cc
  5533. * test/UtilTest.cc
  5534. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5535. Added --max-overall-download-limit in man page.
  5536. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5537. * doc/aria2c.1.txt
  5538. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5539. Added --max-overall-download-limit option. Now --max-upload-limit
  5540. option is not ignored when --max-overall-upload-limit option has
  5541. non-zero value. aria2 checks download(upload) speed in the order:
  5542. first checks overall speed limit and if it is not exceeded, then
  5543. checks speed limit per download. Thus you can specify both
  5544. value. For example, set --max-overall-download-limit=1M and
  5545. --max-download-limit=500K to prevent from one download from eating
  5546. all overall speed limit.
  5547. * src/DefaultBtInteractive.cc
  5548. * src/DefaultBtInteractive.h
  5549. * src/DefaultBtMessageDispatcher.cc
  5550. * src/DefaultBtMessageDispatcher.h
  5551. * src/DownloadCommand.cc
  5552. * src/DownloadCommand.h
  5553. * src/FtpNegotiationCommand.cc
  5554. * src/HttpResponseCommand.cc
  5555. * src/OptionHandlerFactory.cc
  5556. * src/PeerInteractionCommand.cc
  5557. * src/RequestGroup.cc
  5558. * src/RequestGroup.h
  5559. * src/RequestGroupMan.cc
  5560. * src/RequestGroupMan.h
  5561. * src/prefs.cc
  5562. * src/prefs.h
  5563. * src/usage_text.h
  5564. * test/DefaultBtMessageDispatcherTest.cc
  5565. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5566. Documented select-file option in Input File section.
  5567. Documented --http-auth-challenge option.
  5568. * doc/aria2c.1.txt
  5569. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5570. Now select-file can be specified in the uri list(-i list).
  5571. * src/BtContext.cc
  5572. * src/BtContext.h
  5573. * src/RequestGroup.cc
  5574. * src/Sequence.h
  5575. * src/download_helper.cc
  5576. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5577. Made the upper value of --max-concurrent-downloads options unlimited.
  5578. * src/OptionHandlerFactory.cc
  5579. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5580. Fixed the bug that disk writer is not created even if it shares
  5581. same piece with the preceding file if the length of previous file
  5582. is 0.
  5583. * src/MultiDiskAdaptor.cc
  5584. * test/MultiDiskAdaptorTest.cc
  5585. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5586. In BitTorrent, Open files in read-only mode for hash check. After
  5587. that, re-open file in read/write mode only when the download is
  5588. not finished.
  5589. * src/AbstractDiskWriter.cc
  5590. * src/AbstractDiskWriter.h
  5591. * src/AbstractSingleDiskAdaptor.cc
  5592. * src/AbstractSingleDiskAdaptor.h
  5593. * src/BtCheckIntegrityEntry.cc
  5594. * src/DiskAdaptor.h
  5595. * src/DiskWriter.h
  5596. * src/MultiDiskAdaptor.cc
  5597. * src/MultiDiskAdaptor.h
  5598. * src/RequestGroup.cc
  5599. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5600. Added --http-auth-challenge option. If it is set to true(by
  5601. default), aria2 sends HTTP authorization header only when it is
  5602. requested by the server. If false is set, then authorization
  5603. header is always sent to the server. This is useful for servers
  5604. that don't respond 401 code when authentication is required.
  5605. There is an exception: if username and password are embedded in
  5606. URI, authorization header is always sent to the server regardless
  5607. of this option.
  5608. * src/AuthConfigFactory.cc
  5609. * src/HttpSkipResponseCommand.cc
  5610. * src/OptionHandlerFactory.cc
  5611. * src/prefs.cc
  5612. * src/prefs.h
  5613. * src/usage_text.h
  5614. * test/AuthConfigFactoryTest.cc
  5615. * test/HttpRequestTest.cc
  5616. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5617. * Release 1.2.0
  5618. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5619. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5620. Thanks to all translators.
  5621. * po/es.po
  5622. * po/ja.po
  5623. * po/ru.po
  5624. * po/uk.po
  5625. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5626. Call deleteSocketForReadCheck() before socket is closed.
  5627. * src/HttpListenCommand.cc
  5628. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5629. Defined virtual destructor for BObject.
  5630. * src/bencode.h
  5631. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5632. Rewritten BDE to make it efficient.
  5633. * src/bencode.cc
  5634. * src/bencode.h
  5635. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5636. Removed function throw list.
  5637. * src/bencode.cc
  5638. * src/bencode.h
  5639. * test/BencodeTest.cc
  5640. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5641. Enclosed all URLs in double quotes in command-line examples.
  5642. * doc/aria2c.1.txt
  5643. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5644. Updated reference/see also section.
  5645. * README
  5646. * doc/aria2c.1.txt
  5647. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5648. Reorganized man page based on man man-pages.
  5649. * doc/aria2c.1.txt
  5650. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5651. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5652. because same documents are available in man page. Added
  5653. References section.
  5654. * README
  5655. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5656. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5657. PERFORMANCE PROFILE section.
  5658. * doc/aria2c.1.txt
  5659. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5660. Rewritten the section for configuration file.
  5661. * README
  5662. * doc/aria2c.1.txt
  5663. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5664. Fixed the segmentation fault during execution of choking algorithm
  5665. in leecher state because of broken compare operator
  5666. implementation.
  5667. * src/BtLeecherStateChoke.cc
  5668. * src/BtLeecherStateChoke.h
  5669. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5670. Open file in binary mode.
  5671. * src/CookieStorage.cc
  5672. * src/DHTSetup.cc
  5673. * src/DHTUtil.cc
  5674. * src/Netrc.cc
  5675. * src/NsCookieParser.cc
  5676. * src/ProtocolDetector.cc
  5677. * src/RequestGroupMan.cc
  5678. * src/Signature.cc
  5679. * src/bencode.cc
  5680. * src/download_helper.cc
  5681. * src/option_processing.cc
  5682. * test/CookieParserTest.cc
  5683. * test/DefaultBtProgressInfoFileTest.cc
  5684. * test/FileTest.cc
  5685. * test/GZipDecoderTest.cc
  5686. * test/RequestGroupManTest.cc
  5687. * test/SignatureTest.cc
  5688. * test/SingleFileAllocationIteratorTest.cc
  5689. * test/UriListParserTest.cc
  5690. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5691. Removed operator[] because it is ambiguous with built-in []
  5692. operator.
  5693. * src/array_fun.h
  5694. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5695. Fixed compile error
  5696. * src/OptionParser.cc
  5697. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5698. Added missing call to arrayWrapperConst
  5699. * test/array_funTest.cc
  5700. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5701. Use array_wrapper instead of array_ptr.
  5702. * src/DHTRoutingTableDeserializer.cc
  5703. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5704. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5705. * src/array_fun.h
  5706. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5707. Added array_wrapper template.
  5708. * src/array_fun.h
  5709. * test/array_funTest.cc
  5710. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5711. Use operator T* of array_ptr.
  5712. * src/OptionParser.cc
  5713. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5714. Use localhost instead of 127.0.0.1
  5715. * test/FtpConnectionTest.cc
  5716. * test/MSEHandshakeTest.cc
  5717. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5718. Added operator T*
  5719. * src/array_fun.h
  5720. * test/array_funTest.cc
  5721. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5722. Use dynamically allocated char array to detect memory access
  5723. violation.
  5724. * src/DHTRoutingTableDeserializer.cc
  5725. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5726. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5727. defined.
  5728. * src/PeerMessageUtil.cc
  5729. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5730. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5731. * configure.ac
  5732. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5733. Added a check to see struct sockaddr_in has sin_len member.
  5734. * configure.ac
  5735. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5736. Fixed buffer overrun.
  5737. * src/DHTRoutingTableDeserializer.cc
  5738. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5739. Added LL for long long int constant.
  5740. * test/FtpConnectionTest.cc
  5741. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5742. Casted to unsigned int to suppress compiler warning on netbsd.
  5743. * src/BtRuntime.h
  5744. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5745. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5746. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5747. type time_t.
  5748. * src/SimpleLogger.cc
  5749. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5750. Added test for FtpConnection::receiveSizeResponse().
  5751. * test/FtpConnectionTest.cc
  5752. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5753. Fix epoll error on the old kernel 2.6.8 or ealier.
  5754. * src/EpollEventPoll.cc
  5755. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5756. Use Util::parseLLInt instead of sscanf for portability. The
  5757. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5758. * src/FtpConnection.cc
  5759. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5760. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5761. block. It should not filter anything.
  5762. * src/BitfieldMan.cc
  5763. * src/ConsoleStatCalc.cc
  5764. * test/BitfieldManTest.cc
  5765. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5766. Fixed the bug that the boolean options that don't take arguments
  5767. don't work.
  5768. * src/OptionHandlerImpl.h
  5769. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5770. Fixed broken selected file BitTorrent download.
  5771. * src/MultiDiskAdaptor.cc
  5772. * test/MultiDiskAdaptorTest.cc
  5773. * test/MultiFileAllocationIteratorTest.cc
  5774. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5775. Fixed #define guard for EpollEventPoll
  5776. * src/EpollEventPoll.h
  5777. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5778. Wait 2 seconds. 1 second is sometimes not enough.
  5779. * test/TimeSeedCriteriaTest.cc
  5780. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5781. Use localhost instead of 127.0.0.1.
  5782. * test/DHTConnectionImplTest.cc
  5783. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5784. Suppressed compiler warning.
  5785. * src/AdaptiveURISelector.cc
  5786. * src/DefaultPieceStorage.cc
  5787. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5788. Defined virtual destructor.
  5789. * src/MetalinkParserState.h
  5790. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5791. Give NULL for second argument of getaddrinfo instead of "0".
  5792. * src/NameResolver.cc
  5793. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5794. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5795. included strptime doesn't parse data for this format.
  5796. * src/FtpConnection.cc
  5797. * test/FtpConnectionTest.cc
  5798. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5799. Removed tests giving -1 for unsigned argument.
  5800. * test/SingleFileDownloadContextTest.cc
  5801. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5802. Don't use sha256 in tests because it might not be supported by the
  5803. SSL library.
  5804. * test/MetalinkProcessorTest.cc
  5805. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5806. Removed tests giving -1 for unsigned argument.
  5807. * test/AlphaNumberDecoratorTest
  5808. * test/BitfieldManTest.cc
  5809. * test/DefaultBtContextTest.cc
  5810. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5811. Fixed compile error without libcares when epoll is available.
  5812. * src/EpollEventPoll.cc
  5813. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5814. Included fstream instead of iostream.
  5815. * test/SignatureTest.cc
  5816. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5817. Removed #include <algorithm>
  5818. * test/RequestGroupTest.cc
  5819. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5820. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5821. using RequestGroup::extractURIResult().
  5822. * src/AdaptiveURISelector.cc
  5823. * src/RequestGroup.cc
  5824. * src/RequestGroup.h
  5825. * test/RequestGroupTest.cc
  5826. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5827. Added tests for array_ptr.
  5828. * test/array_funTest.cc
  5829. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5830. Don't send ip parameter to a tracker if ip parameter is empty
  5831. string.
  5832. * src/DefaultBtAnnounce.cc
  5833. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5834. Adjusted line feed.
  5835. * src/version_usage.cc
  5836. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5837. Print tags, possible values when OptionHandlerException is caught.
  5838. * src/option_processing.cc
  5839. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5840. Changed the message for FatalException.
  5841. * src/OptionParser.cc
  5842. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5843. Documented --bt-external-ip option in man page. Updated man pages
  5844. for --proxy-method option.
  5845. * doc/aria2c.1.txt
  5846. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5847. Use GET method for FTP via HTTP proxy.
  5848. * src/FtpInitiateConnectionCommand.cc
  5849. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5850. Changed the default value of --proxy-method option from 'tunnel'
  5851. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5852. option.
  5853. * src/AbstractCommand.cc
  5854. * src/AbstractCommand.h
  5855. * src/FtpInitiateConnectionCommand.cc
  5856. * src/HttpDownloadCommand.cc
  5857. * src/HttpInitiateConnectionCommand.cc
  5858. * src/HttpInitiateConnectionCommand.h
  5859. * src/OptionHandlerFactory.cc
  5860. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5861. Initialized _logger
  5862. * src/SelectEventPoll.cc
  5863. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5864. Defined a copy constructor for the same type.
  5865. * src/SharedHandle.h
  5866. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5867. Added OptionParser::parseArg() which internally uses getopt_long
  5868. to parse command-line options. All command-line options are now
  5869. configured by OptionHandler. No manual editing of struct option*
  5870. is required any more.
  5871. * src/NameMatchOptionHandler.h
  5872. * src/OptionHandler.h
  5873. * src/OptionHandlerFactory.cc
  5874. * src/OptionHandlerImpl.h
  5875. * src/OptionParser.cc
  5876. * src/OptionParser.h
  5877. * src/array_fun.h
  5878. * src/main.cc
  5879. * src/option_processing.cc
  5880. * test/OptionHandlerTest.cc
  5881. * test/OptionParserTest.cc
  5882. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5883. Fixed configure error with --disable-epoll
  5884. * configure.ac
  5885. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5886. Fixed compile error when HAVE_EPOLL is not defined.
  5887. Fixed linker error on bigendian systems.
  5888. * src/SocketCore.cc
  5889. * src/SocketCore.h
  5890. * test/DefaultBtProgressInfoFileTest.cc
  5891. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5892. Added --bt-external-ip option. You can specify the external IP
  5893. address to report to a BitTorrent tracker. Although this function
  5894. is named 'external', it can accept any kind of IP addresses.
  5895. * src/DefaultBtAnnounce.cc
  5896. * src/OptionHandlerFactory.cc
  5897. * src/option_processing.cc
  5898. * src/prefs.cc
  5899. * src/prefs.h
  5900. * src/usage_text.h
  5901. * test/DefaultBtAnnounceTest.cc
  5902. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5903. Extracted the algorithm to find the longest incremental sequence
  5904. as max_sequence template.
  5905. * src/LongestSequencePieceSelector.cc
  5906. * src/a2algo.h
  5907. * test/Makefile.am
  5908. * test/a2algoTest.cc
  5909. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5910. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5911. * src/usage_text.h
  5912. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5913. Updated doc for --uri-selector, --http-server-listen-port and
  5914. --enable-http-server option. Documented --event-poll option.
  5915. * doc/aria2c.1.txt
  5916. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5917. Updated doc for --enable-http-server.
  5918. * src/usage_text.h
  5919. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5920. Documented --http-server-listen-port and --enable-http-server in
  5921. man page.
  5922. * doc/aria2c.1.txt
  5923. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5924. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5925. translations. Thanks to all translators.
  5926. * po/es.po
  5927. * po/id.po
  5928. * po/it.po
  5929. * po/ru.po
  5930. * po/uk.po
  5931. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5932. Bump up version number to 1.2.0
  5933. * configure.ac
  5934. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5935. BtContext::getAnnounceTiers() now returns const reference.
  5936. * src/BtContext.h
  5937. * src/DefaultBtContext.cc
  5938. * src/DefaultBtContext.h
  5939. * test/MockBtContext.h
  5940. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5941. Change the number of retries for tracker request based on the
  5942. number of available tracker in a torrent file.
  5943. * src/TrackerWatcherCommand.cc
  5944. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5945. Added _maxTries property to RequestGroup and assign the option
  5946. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5947. RequestGroup::getMaxTries() instead of
  5948. Option::getAsInt(PREF_MAX_TRIES).
  5949. * src/AbstractCommand.cc
  5950. * src/RequestGroup.cc
  5951. * src/RequestGroup.h
  5952. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5953. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5954. Mandriva. I modified the patch: make RequestGroup have the
  5955. timeout value and AdaptiveURISelector directly modifies that
  5956. value.
  5957. * src/AbstractCommand.cc
  5958. * src/AdaptiveURISelector.cc
  5959. * src/AdaptiveURISelector.h
  5960. * src/FtpNegotiationCommand.cc
  5961. * src/RequestGroup.cc
  5962. * src/RequestGroup.h
  5963. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5964. Fixed compiler warning
  5965. * test/IteratableChecksumValidatorTest.cc
  5966. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5967. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5968. integrated downloads. This PieceSelector subclass finds the
  5969. longest continuous sequence in the available missing pieces and
  5970. selects the last index of such sequence. This makes HTTP/FTP
  5971. connections less interrupted by the pieces obtained by BitTorrent
  5972. peers.
  5973. * src/DefaultPieceStorage.cc
  5974. * src/DefaultPieceStorage.h
  5975. * src/LongestSequencePieceSelector.cc
  5976. * src/LongestSequencePieceSelector.h
  5977. * src/Makefile.am
  5978. * src/PieceSelector.h
  5979. * src/RarestPieceSelector.h
  5980. * src/RequestGroup.cc
  5981. * test/BtDependencyTest.cc
  5982. * test/DefaultPieceStorageTest.cc
  5983. * test/IteratableChecksumValidatorTest.cc
  5984. * test/LongestSequencePieceSelectorTest.cc
  5985. * test/Makefile.am
  5986. * test/SegmentManTest.cc
  5987. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5988. Fixed the bug that the average speed is wrong in
  5989. http/ftp/BitTorrent integrated download. Only the download bytes
  5990. in BitTorrent were considered.
  5991. * src/RequestGroup.cc
  5992. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5993. Choose port for BitTorrent/DHT randomly from the specified range.
  5994. * src/DHTConnectionImpl.cc
  5995. * src/PeerListenCommand.cc
  5996. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5997. Send HTTP Authorization header only if it is requested by the
  5998. server(response 401). There are some exceptions. The authorization
  5999. header for proxy is always sent if it is available without request
  6000. by the server. If username/password is specified in the URI, it
  6001. is immediately sent to the server without request by the server.
  6002. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6003. SharedHandle<AuthConfig>().
  6004. NetrcAuthResolver::resolveAuthConfig() returns
  6005. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6006. * src/AbstractAuthResolver.cc
  6007. * src/AbstractProxyRequestCommand.cc
  6008. * src/AuthConfigFactory.cc
  6009. * src/AuthConfigFactory.h
  6010. * src/HttpConnection.cc
  6011. * src/HttpRequest.cc
  6012. * src/HttpRequest.h
  6013. * src/HttpResponse.cc
  6014. * src/HttpResponseCommand.cc
  6015. * src/HttpSkipResponseCommand.cc
  6016. * test/AuthConfigFactoryTest.cc
  6017. * test/HttpRequestTest.cc
  6018. * test/HttpResponseTest.cc
  6019. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6020. Remove leading "--" from help keyword and a substring after "="
  6021. from help keyword, so that one can query options by '-h--max-' or
  6022. '-hmax-peers=10'.
  6023. * src/option_processing.cc
  6024. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6025. Rewritten PStringVisitor and its implementation.
  6026. * src/PStringBuildVisitor.cc
  6027. * src/PStringBuildVisitor.h
  6028. * src/PStringDatum.h
  6029. * src/PStringNumLoop.h
  6030. * src/PStringSegment.cc
  6031. * src/PStringSegment.h
  6032. * src/PStringSelect.h
  6033. * src/PStringVisitor.h
  6034. * src/download_helper.cc
  6035. * test/PStringBuildVisitorTest.cc
  6036. * test/ParameterizedStringParserTest.cc
  6037. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6038. Persist connection between the built-in HTTP server and a client
  6039. if a client supports keep-alive. Fixed the bug that aria2 exits
  6040. when the HTTP server receives EOF from a client.
  6041. * src/HttpServer.cc
  6042. * src/HttpServer.h
  6043. * src/HttpServerCommand.cc
  6044. * src/HttpServerCommand.h
  6045. * src/HttpServerResponseCommand.cc
  6046. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6047. Added experimental built-in HTTP server. Currently, when a client
  6048. accesses to the server, it responds with the current download
  6049. progress. By default, it is disabled. To enable the server, give
  6050. --enable-http-server option. To change the default port number
  6051. for the server to listen to, use --http-server-listen-port option.
  6052. The response HTML is very simple and refreshes it self each 1
  6053. second. Because of this refresh, you see flicker in normal web
  6054. browser such as Firefox. I recommend to use console-based browser
  6055. such as elinks, w3m. To connect to the server, run 'elinks
  6056. http://localhost:6800/' while running aria2. Please replace port
  6057. number '6800'(which is default) with your preference.
  6058. * src/DownloadEngineFactory.cc
  6059. * src/HttpHeader.cc
  6060. * src/HttpHeader.h
  6061. * src/HttpHeaderProcessor.cc
  6062. * src/HttpHeaderProcessor.h
  6063. * src/HttpListenCommand.cc
  6064. * src/HttpListenCommand.h
  6065. * src/HttpServer.cc
  6066. * src/HttpServer.h
  6067. * src/HttpServerCommand.cc
  6068. * src/HttpServerCommand.h
  6069. * src/HttpServerResponseCommand.cc
  6070. * src/HttpServerResponseCommand.h
  6071. * src/Makefile.am
  6072. * src/OptionHandlerFactory.cc
  6073. * src/Util.cc
  6074. * src/Util.h
  6075. * src/help_tags.h
  6076. * src/option_processing.cc
  6077. * src/prefs.cc
  6078. * src/prefs.h
  6079. * src/usage_text.h
  6080. * test/HttpHeaderProcessorTest.cc
  6081. * test/UtilTest.cc
  6082. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6083. Removed.
  6084. * src/CheckIntegrityMan.cc
  6085. * src/FileAllocationMan.cc
  6086. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6087. Made (piece) hash check sequential for each RequestGroup because
  6088. simultaneous hash check is slower than sequential execution.
  6089. * src/CheckIntegrityCommand.cc
  6090. * src/CheckIntegrityDispatcherCommand.cc
  6091. * src/CheckIntegrityDispatcherCommand.h
  6092. * src/CheckIntegrityMan.h
  6093. * src/ConsoleStatCalc.cc
  6094. * src/DownloadCommand.cc
  6095. * src/DownloadEngine.cc
  6096. * src/DownloadEngine.h
  6097. * src/DownloadEngineFactory.cc
  6098. * src/Makefile.am
  6099. * src/Makefile.in
  6100. * src/RequestGroup.cc
  6101. * src/StatCalc.h
  6102. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6103. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6104. SequentialDispatcherCommand.
  6105. * src/FileAllocationDispatcherCommand.cc
  6106. * src/SequentialDispatcherCommand.h
  6107. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6108. Rewritten FileAllocationDispatcherCommand using brand new
  6109. SequentialDispatcherCommand.
  6110. * src/DownloadEngineFactory.cc
  6111. * src/FileAllocationCommand.cc
  6112. * src/FileAllocationDispatcherCommand.cc
  6113. * src/FileAllocationDispatcherCommand.h
  6114. * src/Makefile.am
  6115. * src/SequentialDispatcherCommand.h
  6116. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6117. Replaced FileAllocationMan with
  6118. SequentialPicker<FileAllocationEntry>.
  6119. * src/BtCheckIntegrityEntry.cc
  6120. * src/ConsoleStatCalc.cc
  6121. * src/DownloadEngine.cc
  6122. * src/DownloadEngine.h
  6123. * src/DownloadEngineFactory.cc
  6124. * src/FileAllocationCommand.cc
  6125. * src/FileAllocationDispatcherCommand.cc
  6126. * src/FileAllocationMan.h
  6127. * src/Makefile.am
  6128. * src/SequentialPicker.h
  6129. * src/StatCalc.h
  6130. * src/StreamCheckIntegrityEntry.cc
  6131. * test/Makefile.am
  6132. * test/SequentialPickerTest.cc
  6133. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6134. Added doc for adaptive URI selector.
  6135. * doc/aria2c.1.txt
  6136. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6137. Added doc for adaptive URI selector.
  6138. * src/usage_text.h
  6139. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6140. Added doc for --bt-max-peers option.
  6141. * doc/aria2c.1.txt
  6142. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6143. Added doc for --bt-hash-check-seed option.
  6144. * doc/aria2c.1.txt
  6145. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6146. Documented exit codes.
  6147. * doc/aria2c.1.txt
  6148. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6149. Added --bt-max-peers option to specify the maximum number of peers
  6150. per torrent. 0 means unlimited number of peers.
  6151. * src/ActivePeerConnectionCommand.cc
  6152. * src/BtRuntime.h
  6153. * src/DefaultPeerStorage.cc
  6154. * src/DefaultPeerStorage.h
  6155. * src/OptionHandlerFactory.cc
  6156. * src/RequestGroup.cc
  6157. * src/option_processing.cc
  6158. * src/prefs.cc
  6159. * src/prefs.h
  6160. * src/usage_text.h
  6161. * test/DefaultPeerStorageTest.cc
  6162. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6163. Added --bt-hash-check-seed option. If true is given to this
  6164. option, after hash check using --check-integrity option and file
  6165. is complete, continue to seed file. If you want to check file and
  6166. download it only when it is damaged or incomplete, set this option
  6167. to false. This option has effect only on BitTorrent download.
  6168. The default value is true(This is the same behavior with the
  6169. previous release).
  6170. * src/BtCheckIntegrityEntry.cc
  6171. * src/OptionHandlerFactory.cc
  6172. * src/option_processing.cc
  6173. * src/prefs.cc
  6174. * src/prefs.h
  6175. * src/usage_text.h
  6176. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6177. Updated copyright year.
  6178. * src/version_usage.cc
  6179. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6180. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6181. * doc/aria2c.1.txt
  6182. * src/usage_text.h
  6183. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6184. Made the max value of split option unlimited.
  6185. * doc/aria2c.1.txt
  6186. * src/OptionHandlerFactory.cc
  6187. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6188. Fixed compile warning/error.
  6189. * src/DownloadResult.h
  6190. * src/HttpDownloadCommand.cc
  6191. * src/ServerStat.cc
  6192. * test/RequestGroupTest.cc
  6193. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6194. Added --event-poll option to select the method for polling events.
  6195. The available methods are "select" and "epoll". "epoll" is
  6196. available on Linux only. The earlier release has the compile
  6197. option to choose from these methods.
  6198. * configure.ac
  6199. * src/RequestGroupMan.cc
  6200. * src/OptionHandlerFactory.cc
  6201. * src/EpollEventPoll.h
  6202. * src/StreamFileAllocationEntry.cc
  6203. * src/a2io.h
  6204. * src/SelectEventPoll.h
  6205. * src/option_processing.cc
  6206. * src/prefs.h
  6207. * src/EpollEventPoll.cc
  6208. * src/EventPoll.h
  6209. * src/SocketCore.h
  6210. * src/Makefile.am
  6211. * src/main.cc
  6212. * src/DownloadEngine.h
  6213. * src/SelectEventPoll.cc
  6214. * src/DownloadEngine.cc
  6215. * src/SocketCore.cc
  6216. * src/DownloadEngineFactory.cc
  6217. * src/Makefile.in
  6218. * src/prefs.cc
  6219. * src/usage_text.h
  6220. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6221. Included RecoverableException.h from main.cc
  6222. * src/main.cc
  6223. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6224. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6225. now returns last error encountered in the HTTP/FTP downloads as a
  6226. exit status value. If all downloads finished successfully, aria2
  6227. returns 0. The error code is defined in src/DownloadResult.h.
  6228. The error occurred in the download currently in progress is not
  6229. reported as a last error. If no error has encountered but there
  6230. are in progress or waiting downloads, aria2 returns 7.
  6231. * src/AbstractCommand.cc
  6232. * src/DlAbortEx.h
  6233. * src/DlRetryEx.h
  6234. * src/DownloadCommand.cc
  6235. * src/DownloadFailureException.h
  6236. * src/DownloadResult.h
  6237. * src/FtpNegotiationCommand.cc
  6238. * src/HttpSkipResponseCommand.cc
  6239. * src/Makefile.am
  6240. * src/MultiUrlRequestInfo.cc
  6241. * src/MultiUrlRequestInfo.h
  6242. * src/RecoverableException.h
  6243. * src/RequestGroup.cc
  6244. * src/RequestGroup.h
  6245. * src/RequestGroupMan.cc
  6246. * src/RequestGroupMan.h
  6247. * src/URIResult.cc
  6248. * src/URIResult.h
  6249. * src/main.cc
  6250. * src/option_processing.cc
  6251. * test/RequestGroupTest.cc
  6252. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6253. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6254. patch adds AdaptiveURISelector, which selects one of the bests
  6255. mirrors for first and reserved connections. For supplementary
  6256. ones, it returns mirrors which has not been tested yet, and if
  6257. each of them already tested, returns mirrors which has to be
  6258. tested again. Otherwise, it doesn't return anymore mirrors.
  6259. * src/AdaptiveURISelector.cc
  6260. * src/AdaptiveURISelector.h
  6261. * src/FtpNegotiationCommand.cc
  6262. * src/HttpResponseCommand.cc
  6263. * src/Makefile.am
  6264. * src/Makefile.in
  6265. * src/OptionHandlerFactory.cc
  6266. * src/RequestGroup.cc
  6267. * src/RequestGroup.h
  6268. * src/RequestGroupMan.cc
  6269. * src/ServerStat.cc
  6270. * src/ServerStat.h
  6271. * src/ServerStatMan.cc
  6272. * src/SpeedCalc.cc
  6273. * src/URISelector.h
  6274. * src/prefs.cc
  6275. * src/prefs.h
  6276. * test/RequestGroupManTest.cc
  6277. * test/ServerStatManTest.cc
  6278. * test/ServerStatTest.cc
  6279. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6280. Fixed unit test error.
  6281. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6282. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6283. * Release 1.1.2
  6284. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6285. Updated Russian translation. Thanks to the translators.
  6286. * po/ru.po
  6287. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6288. Added the description of --use-head option to man page.
  6289. * doc/aria2c.1.txt
  6290. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6291. Bump up version number to 1.1.2
  6292. * configure.ac
  6293. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6294. Added --use-head option to toggle whether HEAD method should be
  6295. used in the first HTTP request. By default aria2 uses HEAD method
  6296. as the first request. When the server doesn't recognize HEAD, then
  6297. give aria2 --use-head=false to force aria2 to use GET method
  6298. instead.
  6299. * src/OptionHandlerFactory.cc
  6300. * src/RequestGroupMan.cc
  6301. * src/option_processing.cc
  6302. * src/prefs.cc
  6303. * src/prefs.h
  6304. * src/usage_text.h
  6305. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6306. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6307. message is received before CHOKE message. The old implementation
  6308. doen't clear the use-bit of the piece when recieved REJECT
  6309. message.
  6310. * src/DefaultBtMessageDispatcher.cc
  6311. * test/DefaultBtMessageDispatcherTest.cc
  6312. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6313. * Release 1.1.1
  6314. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6315. Bump up version number to 1.1.1.
  6316. * configure.ac
  6317. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6318. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6319. is printed repeatedly.
  6320. * src/ConsoleStatCalc.cc
  6321. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6322. * Release 1.1.0
  6323. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6324. Added ifdef clause for conditional compilation.
  6325. * src/main.cc
  6326. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6327. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6328. translations. Thanks to all translators.
  6329. * po/ja.po
  6330. * po/ru.po
  6331. * po/uk.po
  6332. * po/zh_CN.po
  6333. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6334. Added the preceding ">>> " before the message "Printing the
  6335. contents of file..." to make the output more readable.
  6336. * src/main.cc
  6337. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6338. Added try-catch block in the loop in showFiles() to continue the
  6339. operation even if the exception occurred in one file.
  6340. * src/main.cc (showFiles)
  6341. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6342. Made messages in showFiles() translatable.
  6343. * po/aria2.pot
  6344. * src/main.cc
  6345. * src/message.h
  6346. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6347. Print the contents of Torrent/Metalink files are printed without
  6348. -T/-M options.
  6349. * src/main.cc
  6350. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6351. Escaped '--' with '\--'
  6352. * README
  6353. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6354. Updated "How to build" section in README. Mentioned about
  6355. --with-ca-bundle compile option.
  6356. * README
  6357. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6358. Bump up version number to 1.1.0.
  6359. * configure.ac
  6360. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6361. Added a note for --dht-listen-port option.
  6362. * doc/aria2c.1.txt
  6363. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6364. Update doc for --realtime-chunk-checksum option.
  6365. * doc/aria2c.1.txt
  6366. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6367. Update doc for --realtime-chunk-checksum option.
  6368. * src/usage_text.h
  6369. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6370. Updated French, Japanese, Russian and Ukrainian translations.
  6371. Thanks to all translators.
  6372. * po/fr.po
  6373. * po/ja.po
  6374. * po/ru.po
  6375. * po/uk.po
  6376. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6377. Renamed aria2c.pot to aria2.pot
  6378. * po/aria2.pot
  6379. * po/aria2c.pot: Removed.
  6380. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6381. Removed MetaEntry.h
  6382. * src/Makefile.am
  6383. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6384. Rename file by appending digits if a local file exists and its
  6385. file size is larger than that of remote file with --continue
  6386. option. The old implementation just throws exception in such case.
  6387. * src/RequestGroup.cc
  6388. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6389. Fixed the bug that download progress summary is not printed in the
  6390. interval specified by the option.
  6391. * src/ConsoleStatCalc.cc
  6392. * src/ConsoleStatCalc.h
  6393. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6394. Fixed compiler warning
  6395. * src/Cookie.cc
  6396. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6397. Fixed the cookie implementation based on RFC2965.
  6398. Now if a value in domain field is not started with dot, then
  6399. prepend dot. That means a cookie with domain=sf.net is sent to
  6400. wiki.sf.net.
  6401. * src/Cookie.cc
  6402. * test/CookieParserTest.cc
  6403. * test/CookieStorageTest.cc
  6404. * test/CookieTest.cc
  6405. * test/NsCookieParserTest.cc
  6406. * test/Sqlite3MozCookieParserTest.cc
  6407. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6408. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6409. is enabled and the server doesn't support keep-alive.
  6410. * src/AbstractCommand.cc
  6411. * src/DownloadCommand.cc
  6412. * src/HttpDownloadCommand.cc
  6413. * src/HttpDownloadCommand.h
  6414. * src/HttpResponseCommand.cc
  6415. * src/Request.cc
  6416. * src/Request.h
  6417. * test/RequestTest.cc
  6418. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6419. Removed Dictionary/List/Data and its related classes.
  6420. * src/BencodeVisitor.cc: Removed.
  6421. * src/BencodeVisitor.h: Removed.
  6422. * src/Data.cc: Removed.
  6423. * src/Data.h: Removed.
  6424. * src/Dictionary.cc: Removed.
  6425. * src/Dictionary.h: Removed.
  6426. * src/List.cc: Removed.
  6427. * src/List.h: Removed.
  6428. * src/Makefile.am
  6429. * src/MetaEntry.h: Removed.
  6430. * src/MetaEntryVisitor.h: Removed.
  6431. * src/MetaFileUtil.cc: Removed.
  6432. * src/MetaFileUtil.h: Removed.
  6433. * test/BencodeVisitorTest.cc: Removed.
  6434. * test/DataTest.cc: Removed.
  6435. * test/DictionaryTest.cc: Removed.
  6436. * test/ListTest.cc: Removed.
  6437. * test/Makefile.am
  6438. * test/MetaFileUtilTest.cc: Removed.
  6439. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6440. Removed include of MetaEntry.h
  6441. * test/DHTMessageTrackerEntryTest.cc
  6442. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6443. Use BDE instead of Dictionary/List/Data.
  6444. * src/AnnounceList.cc
  6445. * src/AnnounceList.h
  6446. * test/AnnounceListTest.cc
  6447. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6448. Use BDE instead of Dictionary/List/Data.
  6449. * src/DHTAbstractMessage.cc
  6450. * src/DHTAbstractMessage.h
  6451. * src/DHTAnnouncePeerMessage.cc
  6452. * src/DHTAnnouncePeerMessage.h
  6453. * src/DHTAnnouncePeerReplyMessage.cc
  6454. * src/DHTAnnouncePeerReplyMessage.h
  6455. * src/DHTFindNodeMessage.cc
  6456. * src/DHTFindNodeMessage.h
  6457. * src/DHTFindNodeReplyMessage.cc
  6458. * src/DHTFindNodeReplyMessage.h
  6459. * src/DHTGetPeersMessage.cc
  6460. * src/DHTGetPeersMessage.h
  6461. * src/DHTGetPeersReplyMessage.cc
  6462. * src/DHTGetPeersReplyMessage.h
  6463. * src/DHTMessageFactory.h
  6464. * src/DHTMessageFactoryImpl.cc
  6465. * src/DHTMessageFactoryImpl.h
  6466. * src/DHTMessageReceiver.cc
  6467. * src/DHTMessageTracker.cc
  6468. * src/DHTMessageTracker.h
  6469. * src/DHTPingMessage.cc
  6470. * src/DHTPingMessage.h
  6471. * src/DHTPingReplyMessage.cc
  6472. * src/DHTPingReplyMessage.h
  6473. * src/DHTQueryMessage.cc
  6474. * src/DHTQueryMessage.h
  6475. * src/DHTResponseMessage.cc
  6476. * src/DHTResponseMessage.h
  6477. * test/DHTAnnouncePeerMessageTest.cc
  6478. * test/DHTAnnouncePeerReplyMessageTest.cc
  6479. * test/DHTFindNodeMessageTest.cc
  6480. * test/DHTFindNodeReplyMessageTest.cc
  6481. * test/DHTGetPeersMessageTest.cc
  6482. * test/DHTGetPeersReplyMessageTest.cc
  6483. * test/DHTMessageFactoryImplTest.cc
  6484. * test/DHTMessageTrackerTest.cc
  6485. * test/DHTPingMessageTest.cc
  6486. * test/DHTPingReplyMessageTest.cc
  6487. * test/MockDHTMessageFactory.h
  6488. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6489. Added tests the case where length < 0 is specified.
  6490. * test/BencodeTest.cc
  6491. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6492. Fixed memory leak in decoderawstring()
  6493. * src/bencode.cc
  6494. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6495. Added missing #ifdef guard. Added uc() function for String and
  6496. removeKey() for Dict.
  6497. * src/bencode.cc
  6498. * src/bencode.h
  6499. * test/BencodeTest.cc
  6500. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6501. Use BDE instead of Dictionary/List/Data.
  6502. * src/HandshakeExtensionMessage.cc
  6503. * src/HandshakeExtensionMessage.h
  6504. * test/HandshakeExtensionMessageTest.cc
  6505. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6506. Added --max-overall-upload-limit option. This option limits the
  6507. overall upload speed. Stated in help message that the existing
  6508. --max-upload-limit option limits the upload speed per each
  6509. torrent. Man page is also updated.
  6510. * doc/aria2c.1.txt
  6511. * src/DefaultBtMessageDispatcher.cc
  6512. * src/DefaultBtMessageDispatcher.h
  6513. * src/OptionHandlerFactory.cc
  6514. * src/PeerInteractionCommand.cc
  6515. * src/option_processing.cc
  6516. * src/prefs.cc
  6517. * src/prefs.h
  6518. * src/usage_text.h
  6519. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6520. Use BDE instead of Dictionary/List/Data classes.
  6521. * src/CompactPeerListProcessor.cc
  6522. * src/CompactPeerListProcessor.h
  6523. * src/DefaultBtAnnounce.cc
  6524. * src/DefaultBtContext.cc
  6525. * src/DefaultBtContext.h
  6526. * src/DefaultPeerListProcessor.cc
  6527. * src/DefaultPeerListProcessor.h
  6528. * src/DelegatingPeerListProcessor.cc
  6529. * src/DelegatingPeerListProcessor.h
  6530. * src/PeerListProcessor.h
  6531. * src/UTPexExtensionMessage.cc
  6532. * src/Util.h
  6533. * src/message.h
  6534. * test/DefaultBtContextTest.cc
  6535. * test/DefaultPeerListProcessorTest.cc
  6536. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6537. Added bencode helper functions and BDE class.
  6538. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6539. * src/Makefile.am
  6540. * src/bencode.cc
  6541. * src/bencode.h
  6542. * test/BencodeTest.cc
  6543. * test/Makefile.am
  6544. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6545. Fixed the bug that bad URI is sent to the tracker when the announe
  6546. URI in torrent file includes query.
  6547. * src/DefaultBtAnnounce.cc
  6548. * test/DefaultBtAnnounceTest.cc
  6549. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6550. Added Option::blank().
  6551. Use !Option::blank(name) instead of Option::defined(name) for
  6552. the options that take filename.
  6553. * src/MultiUrlRequestInfo.cc
  6554. * src/Option.cc
  6555. * src/Option.h
  6556. * src/main.cc
  6557. * src/option_processing.cc
  6558. * test/OptionTest.cc
  6559. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6560. Documented the default value of --check-certificate option in man
  6561. page.
  6562. * doc/aria2c.1.txt
  6563. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6564. Enabled --check-certificate by default. Added compile
  6565. time(configure) option --with-ca-bundle to specify CA bundle.
  6566. Warn if --check-certificate=true and --ca-certificate is not
  6567. specified or loading CA certificate is failed.
  6568. * configure.ac
  6569. * src/MultiUrlRequestInfo.cc
  6570. * src/OptionHandlerFactory.cc
  6571. * src/message.h
  6572. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6573. Mentioned https tag in help option.
  6574. * doc/aria2c.1.txt
  6575. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6576. Added `https' tag to help option category. Added https tag to
  6577. --ca-certificate, --certificate, --check-certificate and
  6578. --private-key option.
  6579. * src/OptionHandlerFactory.cc
  6580. * src/help_tags.h
  6581. * src/option_processing.cc
  6582. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6583. Changed the package name from `aria2c' to `aria2' in order to fix
  6584. the packaging issue in Debian and Fedora. The name of the
  6585. executable is not changed.
  6586. * configure.ac
  6587. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6588. Fixed typos
  6589. * src/usage_text.h
  6590. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6591. Fixed typos and updated doc.
  6592. * README
  6593. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6594. Fixed typos
  6595. * doc/aria2c.1.txt
  6596. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6597. Fixed typos
  6598. * src/usage_text.h
  6599. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6600. Print a message when no files to download.
  6601. * src/download_helper.cc
  6602. * src/main.cc
  6603. * src/message.h
  6604. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6605. RFC3986 complied Percent-Encoding(urlencode).
  6606. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6607. ones.
  6608. * src/Request.cc
  6609. * src/Util.cc
  6610. * src/Util.h
  6611. * test/BtHandshakeMessageTest.cc
  6612. * test/DefaultBtAnnounceTest.cc
  6613. * test/DefaultBtContextTest.cc
  6614. * test/RequestTest.cc
  6615. * test/UtilTest.cc
  6616. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6617. Fixed the bug that prevents aria2 from downloading 0-length files
  6618. via HTTP/FTP.
  6619. * src/DefaultBtContext.cc
  6620. * src/DefaultBtContext.h
  6621. * src/DownloadContext.h
  6622. * src/FtpNegotiationCommand.cc
  6623. * src/HttpResponseCommand.cc
  6624. * src/HttpResponseCommand.h
  6625. * src/RequestGroup.cc
  6626. * src/SingleFileDownloadContext.cc
  6627. * src/SingleFileDownloadContext.h
  6628. * test/BtPostDownloadHandlerTest.cc
  6629. * test/MetalinkPostDownloadHandlerTest.cc
  6630. * test/MockBtContext.h
  6631. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6632. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6633. * src/option_processing.cc
  6634. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6635. Applied aria2-1.0.1-mingw.patch.
  6636. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6637. mingw.
  6638. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6639. * src/SocketCore.cc
  6640. * src/a2netcompat.h
  6641. * test/SocketCoreTest.cc
  6642. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6643. * Release 1.0.1
  6644. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6645. Updated Ukrainian and Norwegian Nynorsk translations.
  6646. Thanks to all translators.
  6647. * po/nn.po
  6648. * po/uk.po
  6649. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6650. Don't show download result when -S option is used.
  6651. * src/main.cc
  6652. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6653. Bump up version number to 1.0.1
  6654. * configure.ac
  6655. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6656. Closed files after the test cases in MultiDiskWriterTest::
  6657. testResetDiskWriterEntries(). This will fix the unit test error
  6658. in mingw32 build.
  6659. * test/MultiDiskWriterTest.cc
  6660. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6661. Use HEAD method to get file size from HTTP server for segmented
  6662. downloading.
  6663. The request to the BitTorrent Tracker always uses GET method because
  6664. the response of the tracker is small and it doesn't need segmented
  6665. download.
  6666. * src/FtpNegotiationCommand.cc
  6667. * src/HttpRequest.cc
  6668. * src/HttpResponseCommand.cc
  6669. * src/HttpSkipResponseCommand.cc
  6670. * src/RequestGroup.cc
  6671. * src/RequestGroup.h
  6672. * src/TrackerWatcherCommand.cc
  6673. * test/HttpRequestTest.cc
  6674. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6675. Fixed the bug that causes floating exception when -T option is used and
  6676. no URIs are given.
  6677. * src/download_helper.cc
  6678. * test/DownloadHelperTest.cc
  6679. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6680. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6681. errors in MinGW:
  6682. Closed file after saving server stats (RequestGroupMan.cc)
  6683. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6684. Ignored case & handled 2-digit years (strptime.c)
  6685. Added missing suseconds_t definition (a2time.h)
  6686. Fixed socket CLOSE() define (SocketCore.cc)
  6687. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6688. Changed utime() test values from x000 to x00000 as MinGW failed on
  6689. values less than timezone offset from Unix epoch
  6690. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6691. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6692. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6693. handle negative dates (CookieParserTest.cc)
  6694. * src/a2time.h
  6695. * src/FtpConnection.cc
  6696. * src/RequestGroupMan.cc
  6697. * src/SocketCore.cc
  6698. * src/strptime.c
  6699. * test/CookieParserTest.cc
  6700. * test/CopyDiskAdaptorTest.cc
  6701. * test/FileTest.cc
  6702. * test/FtpConnectionTest.cc
  6703. * test/MultiDiskAdaptorTest.cc
  6704. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6705. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6706. * doc/aria2c.1.txt
  6707. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6708. * Release 1.0.0
  6709. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6710. Added '~' to reserved characters.
  6711. * src/Util.cc
  6712. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6713. Do not urlencode Request::url in setUrl() because we want unmodified
  6714. URL using Request::getUrl()
  6715. * src/Request.cc
  6716. * src/Request.h
  6717. * test/RequestTest.cc
  6718. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6719. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6720. Thanks to all translators.
  6721. * po/bg.po
  6722. * po/fr.po
  6723. * po/ja.po
  6724. * po/ru.po
  6725. * po/uk.po
  6726. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6727. Bump up version number to 1.0.0
  6728. * configure.ac
  6729. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6730. Added nosqlite3 build to build_test.sh.
  6731. Renamed noxml as expat.
  6732. * build_test.sh
  6733. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6734. Updated INPUT FILE section.
  6735. * doc/aria2c.1.txt
  6736. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6737. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6738. on big endian systems because test .aria2 files are made for little
  6739. endian systems.
  6740. * test/DefaultBtProgressInfoFileTest.cc
  6741. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6742. Dropped ares support.
  6743. * README
  6744. * configure.ac
  6745. * m4/libares.m4: Removed.
  6746. * src/AsyncNameResolver.cc
  6747. * src/Makefile.am
  6748. * test/Makefile.am
  6749. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6750. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6751. Removed const qualifier from DiskWriter::size().
  6752. * src/AbstractDiskWriter.cc
  6753. * src/AbstractDiskWriter.h
  6754. * src/ByteArrayDiskWriter.cc
  6755. * src/ByteArrayDiskWriter.h
  6756. * src/DiskWriter.h
  6757. * test/ByteArrayDiskWriterTest.cc
  6758. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6759. Fixed the bug that causes segmentation fault/bus error during executing
  6760. choking algorithm while seeding. This is caused by improper
  6761. implementation of compare function which returns inconsistent results
  6762. depending on the timing of last unchoke.
  6763. * src/BtSeederStateChoke.cc
  6764. * src/BtSeederStateChoke.h
  6765. * src/DefaultPeerStorage.cc
  6766. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6767. Removed TODO
  6768. * TODO
  6769. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6770. Added a section that explains how to pass argument to options that
  6771. takes optional arguments with its short form.
  6772. * doc/aria2c.1.txt
  6773. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6774. Added -u for the short form of --max-upload-limit option.
  6775. * doc/aria2c.1.txt
  6776. * src/option_processing.cc
  6777. * src/usage_text.h
  6778. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6779. Added -V for the short form of --check-integrity option.
  6780. Now the argument of --check-integrity option is optional:
  6781. if it is omitted, it is evaluated as true.
  6782. * doc/aria2c.1.txt
  6783. * src/option_processing.cc
  6784. * src/usage_text.h
  6785. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6786. Made the default value of --ftp-pasv option set to true and it can take
  6787. true/false values.
  6788. * src/OptionHandlerFactory.cc
  6789. * src/option_processing.cc
  6790. * src/usage_text.h
  6791. * doc/aria2c.1.txt
  6792. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6793. Given custom random number generator to std::random_shuffle.
  6794. * src/AnnounceList.cc
  6795. * src/BtLeecherStateChoke.cc
  6796. * src/BtSeederStateChoke.cc
  6797. * src/DefaultBtRequestFactory.cc
  6798. * src/MetalinkEntry.cc
  6799. * src/RarestPieceSelector.cc
  6800. * src/SimpleRandomizer.cc
  6801. * src/SimpleRandomizer.h
  6802. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6803. Now the default value of --enable-direct-io is true.
  6804. * src/OptionHandlerFactory.cc
  6805. * doc/aria2c.1.txt
  6806. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6807. Erase peer before executing onReturningPeer and onErasingPeer
  6808. because choking algorithm called from onReturningPeer doesn't
  6809. like erasing peer in the active peer list.
  6810. * src/DefaultPeerStorage.cc
  6811. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6812. Instead of creating special filename in createDownloadResult() if
  6813. inMemoryDownload() is true, now it is done in getFilePath().
  6814. * src/RequestGroup.cc
  6815. * test/RequestGroupTest.cc
  6816. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6817. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6818. processed in memory. This is the fix for previous comment out.
  6819. * src/MemoryBufferPreDownloadHandler.cc
  6820. * src/RequestGroup.cc
  6821. * src/RequestGroup.h
  6822. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6823. Commented out the code which sets virtual directory path "[MEMORY]"
  6824. propagate directory to store to following RequestGroup.
  6825. * src/MemoryBufferPreDownloadHandler.cc
  6826. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6827. Bump up version number to 1.0.0b
  6828. * configure.ac
  6829. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6830. Added input_uris.txt to EXTRA_DIST
  6831. * test/Makefile.am
  6832. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6833. Removed PeerObject.h from Makefile.am
  6834. * src/Makefile.am
  6835. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6836. Avoid slow seeding
  6837. * src/PeerInteractionCommand.cc
  6838. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6839. Updated usage for -i option.
  6840. * src/usage_text.h (TEXT_INPUT_FILE)
  6841. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6842. Added INPUT FILE section to man page.
  6843. Escaped fake URLs.
  6844. * doc/aria2c.1.txt
  6845. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6846. Fixed wrong note position for -o option.
  6847. * doc/aria2c.1.txt
  6848. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6849. Fixed compile error without SSL/XML library.
  6850. * src/DefaultBtProgressInfoFile.cc
  6851. * src/DefaultBtProgressInfoFile.h
  6852. * src/FileMetalinkParserState.cc
  6853. * src/RequestGroup.h
  6854. * src/SocketCore.cc
  6855. * src/SocketCore.h
  6856. * src/VerificationMetalinkParserState.cc
  6857. * src/download_helper.h
  6858. * src/main.cc
  6859. * test/DefaultBtProgressInfoFileTest.cc
  6860. * test/DownloadHelperTest.cc
  6861. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6862. Rewritten URI handling functions. They are now provided as a testable
  6863. functions.
  6864. * src/Makefile.am
  6865. * src/RequestGroup.cc
  6866. * src/RequestGroup.h
  6867. * src/download_helper.cc
  6868. * src/download_helper.h
  6869. * src/main.cc
  6870. * test/DownloadHelperTest.cc
  6871. * test/Makefile.am
  6872. * test/input_uris.txt
  6873. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6874. Quickly terminate commands when ctrl-c is pressed.
  6875. * src/DownloadEngine.cc
  6876. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6877. Quickly terminate idle commands when download finished.
  6878. * src/AbstractCommand.cc
  6879. * src/DownloadCommand.cc
  6880. * src/DownloadEngine.cc
  6881. * src/DownloadEngine.h
  6882. * src/SleepCommand.cc
  6883. * src/SleepCommand.h
  6884. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6885. Added the ability to specify output filename and directory in input
  6886. file.
  6887. Additional parameters are added in the following line of URIs
  6888. with proceeding white space(s), 1 parameter in 1 line.
  6889. The parameter names are the same with the command-line option name
  6890. without proceeding "--". Not all the options are available here:
  6891. at the moment, 'dir' and 'out' options are avialable.
  6892. Please note that out option has no effect against Metalink or BitTorrent
  6893. downloads.
  6894. Example input file:
  6895. http://host/foo-1.1.tar.bz2
  6896. out=foo.tar.bz2
  6897. dir=/tmp/downloads
  6898. http://host/thundermonkey-2.0.tar.bz2
  6899. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6900. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6901. thundermonkey-2.0.tar.bz2 is saved as
  6902. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6903. * src/BtPostDownloadHandler.cc
  6904. * src/Metalink2RequestGroup.cc
  6905. * src/Metalink2RequestGroup.h
  6906. * src/MetalinkPostDownloadHandler.cc
  6907. * src/UriListParser.cc
  6908. * src/UriListParser.h
  6909. * src/main.cc
  6910. * test/Metalink2RequestGroupTest.cc
  6911. * test/UriListParserTest.cc
  6912. * test/filelist1.txt
  6913. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6914. Fixed error when SSL library is not found.
  6915. * configure.ac
  6916. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6917. Cross referenced among -s, -C and -j options.
  6918. Updated usage of -C and -s options.
  6919. * src/usage_text.h
  6920. * doc/aria2c.1.txt
  6921. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6922. Fixed bad cast in 32bit platforms.
  6923. * test/DefaultPieceStorageTest.cc
  6924. (DefaultPieceStorageTest::testGetCompletedLength)
  6925. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6926. Fixed unit test fails on 32bit platforms.
  6927. * test/CookieParserTest.cc
  6928. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6929. Show an average download speed in Download results.
  6930. * src/BtFileAllocationEntry.cc
  6931. * src/DefaultPieceStorage.cc
  6932. * src/DownloadContext.cc
  6933. * src/DownloadContext.h
  6934. * src/DownloadResult.h
  6935. * src/RequestGroup.cc
  6936. * src/RequestGroupMan.cc
  6937. * src/StreamFileAllocationEntry.cc
  6938. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6939. Fixed the bug that metalink file is not processed if Content-Type
  6940. field has a paramter.
  6941. * src/HttpResponse.cc
  6942. * src/HttpResponse.h
  6943. * test/HttpResponseTest.cc
  6944. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6945. Removed unused code.
  6946. * src/DefaultBtAnnounce.cc
  6947. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6948. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6949. the value larger than DefaultPieceStorage::getTotalLength() when
  6950. in flight pieces are involved.
  6951. * src/DefaultPieceStorage.cc
  6952. * test/DefaultPieceStorageTest.cc
  6953. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6954. Bump up version number to 1.0.0a.
  6955. * configure.ac
  6956. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6957. Updated configure.ac
  6958. * configure.ac
  6959. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6960. Added usege for proxy.
  6961. * doc/aria2c.1.txt
  6962. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6963. Added usage for --ca-certificate, --certificate, --private-key and
  6964. --check-certificate options.
  6965. * doc/aria2c.1.txt
  6966. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6967. Updated man page
  6968. * doc/aria2c.1.txt
  6969. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6970. Added --no-proxy option. It receives comman separated hostname or
  6971. domains to which proxy should not be used.
  6972. aria2 honors the environment variable no_proxy to override no-proxy
  6973. value in configuration file. The user can override the environment
  6974. variable no_proxy with --no-proxy command-line option.
  6975. * src/AbstractCommand.cc
  6976. * src/OptionHandlerFactory.cc
  6977. * src/option_processing.cc
  6978. * src/prefs.cc
  6979. * src/prefs.h
  6980. * src/usage_text.h
  6981. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6982. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6983. The CA certificates are specified in --ca-certificate option.
  6984. By default, the verification is disabled. Use --check-certificate
  6985. option to enable it.
  6986. * src/HttpRequestCommand.cc
  6987. * src/LibgnutlsTLSContext.cc
  6988. * src/LibgnutlsTLSContext.h
  6989. * src/LibsslTLSContext.cc
  6990. * src/LibsslTLSContext.h
  6991. * src/MultiUrlRequestInfo.cc
  6992. * src/OptionHandlerFactory.cc
  6993. * src/SocketCore.cc
  6994. * src/SocketCore.h
  6995. * src/a2functional.h
  6996. * src/message.h
  6997. * src/option_processing.cc
  6998. * src/prefs.cc
  6999. * src/prefs.h
  7000. * src/usage_text.h
  7001. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7002. Added client certificate authentication for SSL/TLS.
  7003. Currently a private key must be decrypted for use with aria2.
  7004. If a user accidentally gives encrypted file to aria2 then following
  7005. thing happens:
  7006. If encrypted private key is given to aria2, it behaves differently
  7007. depending on the ssl library it uses. If aria2 built with openssl then
  7008. openssl prompts the user for password. If aria2 build with gnutls then
  7009. aria2 exists with error at start up.
  7010. * src/DownloadEngineFactory.cc
  7011. * src/MultiUrlRequestInfo.cc
  7012. * src/OptionHandlerFactory.cc
  7013. * src/option_processing.cc
  7014. * src/prefs.cc
  7015. * src/prefs.h
  7016. * src/usage_text.h
  7017. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7018. Introduced TLSContext that holds TLS related data that can be shared
  7019. with multiple SSL connections.
  7020. * src/DownloadEngineFactory.cc
  7021. * src/LibgnutlsTLSContext.cc
  7022. * src/LibgnutlsTLSContext.h
  7023. * src/LibsslTLSContext.cc
  7024. * src/LibsslTLSContext.h
  7025. * src/Makefile.am
  7026. * src/SocketCore.cc
  7027. * src/SocketCore.h
  7028. * src/TLSContext.h
  7029. * src/message.h
  7030. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7031. Fixed the bug that the DiskWriter of the first FileEntry whose
  7032. `needsFileAllocation' property is false is not created
  7033. even if it shares a piece with next FileEntry which `requested' property
  7034. is true.
  7035. Fixed the bug that zero-length file is not created if pre file
  7036. allocation is not done.
  7037. * src/MultiDiskAdaptor.cc
  7038. * src/MultiDiskAdaptor.h
  7039. * test/MultiDiskAdaptorTest.cc
  7040. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7041. Added the ability to pool proxy connection.
  7042. The conneciton in FTP with proxy-method=GET is not pooled.
  7043. Proxy-Connection header will not be sent when sending CONNECT method.
  7044. * src/DownloadEngine.cc
  7045. * src/DownloadEngine.h
  7046. * src/FtpFinishDownloadCommand.cc
  7047. * src/FtpInitiateConnectionCommand.cc
  7048. * src/FtpNegotiationCommand.cc
  7049. * src/HttpDownloadCommand.cc
  7050. * src/HttpInitiateConnectionCommand.cc
  7051. * src/HttpRequest.cc
  7052. * src/HttpRequest.h
  7053. * src/HttpResponse.cc
  7054. * src/HttpSkipResponseCommand.cc
  7055. * test/HttpRequestTest.cc
  7056. * test/HttpResponseTest.cc
  7057. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7058. Handle date before epoch.
  7059. To create *bad* Time object, call Time::null().
  7060. * src/CookieParser.cc
  7061. * src/FtpConnection.cc
  7062. * src/FtpConnection.h
  7063. * src/FtpNegotiationCommand.cc
  7064. * src/RequestGroup.cc
  7065. * src/TimeA2.cc
  7066. * src/TimeA2.h
  7067. * test/CookieParserTest.cc
  7068. * test/FtpConnectionTest.cc
  7069. * test/TimeTest.cc
  7070. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Added support for following envrionment variables: http_proxy,
  7072. https_proxy, ftp_proxy and all_proxy.
  7073. Each variable is equivalent to the aria2 option whose name is the
  7074. variable name with '_' replaced with '-'.
  7075. They overrides options specified in aria2.conf file.
  7076. The envrionment variables can be overrode using command-line option.
  7077. * src/option_processing.cc
  7078. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. Renamed --http-proxy-method as --proxy-method.
  7080. * src/AbstractCommand.cc
  7081. * src/FtpInitiateConnectionCommand.cc
  7082. * src/HttpInitiateConnectionCommand.cc
  7083. * src/OptionHandlerFactory.cc
  7084. * src/option_processing.cc
  7085. * src/prefs.cc
  7086. * src/prefs.h
  7087. * src/usage_text.h
  7088. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7090. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7091. Above 3 options and --http-proxy option can handle proxy in URL format
  7092. like: http://user:passwd@host:port.
  7093. If a proxy requires user/password, they must be specified in a URL.
  7094. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7095. instead.
  7096. * src/AbstractCommand.cc
  7097. * src/AbstractCommand.h
  7098. * src/AbstractProxyRequestCommand.cc
  7099. * src/AbstractProxyRequestCommand.h
  7100. * src/AuthConfigFactory.cc
  7101. * src/AuthConfigFactory.h
  7102. * src/FtpFinishDownloadCommand.cc
  7103. * src/FtpInitiateConnectionCommand.cc
  7104. * src/FtpInitiateConnectionCommand.h
  7105. * src/FtpNegotiationCommand.cc
  7106. * src/FtpTunnelRequestCommand.cc
  7107. * src/FtpTunnelRequestCommand.h
  7108. * src/HttpDownloadCommand.cc
  7109. * src/HttpInitiateConnectionCommand.cc
  7110. * src/HttpInitiateConnectionCommand.h
  7111. * src/HttpProxyRequestCommand.cc
  7112. * src/HttpProxyRequestCommand.h
  7113. * src/HttpRequest.cc
  7114. * src/HttpRequest.h
  7115. * src/HttpRequestCommand.cc
  7116. * src/HttpRequestCommand.h
  7117. * src/HttpSkipResponseCommand.cc
  7118. * src/InitiateConnectionCommand.cc
  7119. * src/InitiateConnectionCommand.h
  7120. * src/OptionHandlerFactory.cc
  7121. * src/OptionHandlerImpl.h
  7122. * src/Request.cc
  7123. * src/option_processing.cc
  7124. * src/prefs.cc
  7125. * src/prefs.h
  7126. * src/usage_text.h
  7127. * test/AuthConfigFactoryTest.cc
  7128. * test/HttpRequestTest.cc
  7129. * test/OptionHandlerTest.cc
  7130. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. Execute choking algorithm when unchoked and interested peer is
  7132. disconected.
  7133. * src/DefaultPeerStorage.cc
  7134. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Added testcase for BtNotInterestedMessage from unchoked peer.
  7136. * test/BtNotInterestedMessageTest.cc
  7137. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7138. Execute choking algorithm when BtInterestedMessage arrives from
  7139. unchoked peer.
  7140. * src/BtInterestedMessage.cc
  7141. * src/BtInterestedMessage.h
  7142. * src/DefaultBtMessageFactory.cc
  7143. * test/BtInterestedMessageTest.cc
  7144. * test/MockPeerStorage.h
  7145. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7146. AuthConfigFactory is now part of DownloadEngine.
  7147. * src/AbstractProxyRequestCommand.cc
  7148. * src/AuthConfigFactory.h
  7149. * src/DownloadEngine.cc
  7150. * src/DownloadEngine.h
  7151. * src/FtpConnection.cc
  7152. * src/FtpConnection.h
  7153. * src/FtpNegotiationCommand.cc
  7154. * src/HttpConnection.cc
  7155. * src/HttpRequest.cc
  7156. * src/HttpRequest.h
  7157. * src/HttpRequestCommand.cc
  7158. * src/HttpResponse.cc
  7159. * src/HttpResponseCommand.cc
  7160. * src/HttpSkipResponseCommand.cc
  7161. * src/MultiUrlRequestInfo.cc
  7162. * src/main.cc
  7163. * test/FtpConnectionTest.cc
  7164. * test/HttpRequestTest.cc
  7165. * test/HttpResponseTest.cc
  7166. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Corrected catched exception type.
  7168. * src/ServerStatMan.cc
  7169. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7170. DNSCache is now part of DownloadEngine.
  7171. * src/DNSCache.h
  7172. * src/DownloadEngine.cc
  7173. * src/DownloadEngine.h
  7174. * src/InitiateConnectionCommand.cc
  7175. * src/MultiUrlRequestInfo.cc
  7176. * test/Makefile.am
  7177. * test/Makefile.in
  7178. * test/SimpleDNSCacheTest.cc
  7179. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7181. DownloadEngine.
  7182. * src/ActivePeerConnectionCommand.cc
  7183. * src/BtSetup.cc
  7184. * src/CUIDCounter.h
  7185. * src/DHTSetup.cc
  7186. * src/DownloadCommand.cc
  7187. * src/DownloadEngine.cc
  7188. * src/DownloadEngine.h
  7189. * src/DownloadEngineFactory.cc
  7190. * src/FileAllocationDispatcherCommand.cc
  7191. * src/InitiatorMSEHandshakeCommand.cc
  7192. * src/PeerInitiateConnectionCommand.cc
  7193. * src/PeerInteractionCommand.cc
  7194. * src/PeerListenCommand.cc
  7195. * src/RequestGroup.cc
  7196. * src/StreamFileAllocationEntry.cc
  7197. * src/TrackerWatcherCommand.cc
  7198. * src/main.cc
  7199. * test/RequestGroupManTest.cc
  7200. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7201. Implemented commented code in BtSeederStateChoke
  7202. * src/BtSeederStateChoke.cc
  7203. * src/Peer.cc
  7204. * src/Peer.h
  7205. * src/PeerInteractionCommand.cc
  7206. * src/PeerSessionResource.cc
  7207. * src/PeerSessionResource.h
  7208. * test/MockBtMessageDispatcher.h
  7209. * test/PeerSessionResourceTest.cc
  7210. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7211. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7212. its object.
  7213. * src/AbstractBtMessage.cc
  7214. * src/ActivePeerConnectionCommand.cc
  7215. * src/ActivePeerConnectionCommand.h
  7216. * src/BtContextAwareCommand.cc
  7217. * src/BtContextAwareCommand.h
  7218. * src/BtExtendedMessage.cc
  7219. * src/BtExtendedMessage.h
  7220. * src/BtInterestedMessage.cc
  7221. * src/BtInterestedMessage.h
  7222. * src/BtNotInterestedMessage.cc
  7223. * src/BtNotInterestedMessage.h
  7224. * src/BtRegistry.cc
  7225. * src/BtRegistry.h
  7226. * src/BtSeederStateChoke.cc
  7227. * src/BtSetup.cc
  7228. * src/DHTGetPeersCommand.cc
  7229. * src/DHTGetPeersCommand.h
  7230. * src/DHTPeerAnnounceEntry.cc
  7231. * src/DHTPeerAnnounceEntry.h
  7232. * src/DHTPeerAnnounceStorage.cc
  7233. * src/DHTPeerAnnounceStorage.h
  7234. * src/DHTPeerLookupTask.cc
  7235. * src/DHTPeerLookupTask.h
  7236. * src/DHTSetup.cc
  7237. * src/DHTSetup.h
  7238. * src/DHTTaskFactory.h
  7239. * src/DHTTaskFactoryImpl.cc
  7240. * src/DHTTaskFactoryImpl.h
  7241. * src/DefaultBtAnnounce.cc
  7242. * src/DefaultBtInteractive.cc
  7243. * src/DefaultBtInteractive.h
  7244. * src/DefaultBtMessageDispatcher.cc
  7245. * src/DefaultBtMessageDispatcher.h
  7246. * src/DefaultBtMessageFactory.cc
  7247. * src/DefaultBtMessageFactory.h
  7248. * src/DefaultBtMessageReceiver.cc
  7249. * src/DefaultBtProgressInfoFile.cc
  7250. * src/DefaultBtProgressInfoFile.h
  7251. * src/DefaultBtRequestFactory.cc
  7252. * src/DefaultBtRequestFactory.h
  7253. * src/DefaultExtensionMessageFactory.cc
  7254. * src/DefaultExtensionMessageFactory.h
  7255. * src/DefaultPeerStorage.cc
  7256. * src/DefaultPeerStorage.h
  7257. * src/DownloadEngine.cc
  7258. * src/DownloadEngine.h
  7259. * src/InitiatorMSEHandshakeCommand.cc
  7260. * src/InitiatorMSEHandshakeCommand.h
  7261. * src/MSEHandshake.cc
  7262. * src/MSEHandshake.h
  7263. * src/Makefile.am
  7264. * src/Makefile.in
  7265. * src/PeerChokeCommand.cc
  7266. * src/PeerChokeCommand.h
  7267. * src/PeerInitiateConnectionCommand.cc
  7268. * src/PeerInitiateConnectionCommand.h
  7269. * src/PeerInteractionCommand.cc
  7270. * src/PeerInteractionCommand.h
  7271. * src/PeerObject.h
  7272. * src/PeerReceiveHandshakeCommand.cc
  7273. * src/PeerReceiveHandshakeCommand.h
  7274. * src/ReceiverMSEHandshakeCommand.cc
  7275. * src/RequestGroup.cc
  7276. * src/RequestGroup.h
  7277. * src/RequestGroupMan.cc
  7278. * src/RequestGroupMan.h
  7279. * src/SeedCheckCommand.cc
  7280. * src/SeedCheckCommand.h
  7281. * src/ShareRatioSeedCriteria.h
  7282. * src/SimpleBtMessage.cc
  7283. * src/TrackerWatcherCommand.cc
  7284. * src/TrackerWatcherCommand.h
  7285. * src/UTPexExtensionMessage.cc
  7286. * src/UTPexExtensionMessage.h
  7287. * test/BtCancelMessageTest.cc
  7288. * test/BtChokeMessageTest.cc
  7289. * test/BtExtendedMessageTest.cc
  7290. * test/BtInterestedMessageTest.cc
  7291. * test/BtNotInterestedMessageTest.cc
  7292. * test/BtPieceMessageTest.cc
  7293. * test/BtPortMessageTest.cc
  7294. * test/BtRegistryTest.cc
  7295. * test/BtRejectMessageTest.cc
  7296. * test/BtRequestMessageTest.cc
  7297. * test/DHTPeerAnnounceEntryTest.cc
  7298. * test/DHTPeerAnnounceStorageTest.cc
  7299. * test/DefaultBtMessageDispatcherTest.cc
  7300. * test/DefaultBtMessageFactoryTest.cc
  7301. * test/DefaultBtProgressInfoFileTest.cc
  7302. * test/DefaultBtRequestFactoryTest.cc
  7303. * test/DefaultExtensionMessageFactoryTest.cc
  7304. * test/MSEHandshakeTest.cc
  7305. * test/MockDHTTaskFactory.h
  7306. * test/ShareRatioSeedCriteriaTest.cc
  7307. * test/UTPexExtensionMessageTest.cc
  7308. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Fixed compiler warning.
  7310. * test/UtilTest.cc
  7311. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7312. Treat Cookie object as session cookie if expiry = 0 is given.
  7313. With this change, you can specify session scoped cookies in an external
  7314. file setting expiry value to 0.
  7315. * src/Cookie.cc
  7316. * src/Cookie.h
  7317. * test/CookieParserTest.cc
  7318. * test/CookieStorageTest.cc
  7319. * test/CookieTest.cc
  7320. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. Changed signature of DHTMessageFactory::createResponseMessage().
  7322. Removed unused validateIDMatch.
  7323. * src/DHTMessageFactory.h
  7324. * src/DHTMessageFactoryImpl.cc
  7325. * src/DHTMessageFactoryImpl.h
  7326. * src/DHTMessageTracker.cc
  7327. * test/DHTMessageFactoryImplTest.cc
  7328. * test/MockDHTMessageFactory.h
  7329. Dropped DHT message coming from same ID of localhost.
  7330. * src/DHTMessageReceiver.cc
  7331. Rejected adding node whose ID is the same as localhost's.
  7332. * src/DHTRoutingTable.cc
  7333. * test/BtPortMessageTest.cc
  7334. * test/DHTRoutingTableTest.cc
  7335. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7336. Pool connection when redirection occurs with Content-Length = 0.
  7337. * src/HttpSkipResponseCommand.cc
  7338. * src/HttpSkipResponseCommand.h
  7339. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Fixed the bug that causes time out when redirection occurs with
  7341. content-length 0.
  7342. * src/HttpResponseCommand.cc
  7343. * src/HttpSkipResponseCommand.cc
  7344. * src/HttpSkipResponseCommand.h
  7345. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. Now each status legends is shown only when it appears in Download
  7347. Result. If Download Result has no item, then status legend will not
  7348. be printed.
  7349. * src/RequestGroupMan.cc
  7350. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7351. Removed duplicate creation of OptionHandlers.
  7352. * src/option_processing.cc
  7353. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7354. Fixed the bug that causes segmentation fault when accessing files which
  7355. don't exist or are not included in --select-file option while
  7356. validating chunk checksum.
  7357. * src/MultiDiskAdaptor.cc
  7358. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7359. Fixed compiler warning.
  7360. * test/UtilTest.cc
  7361. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7362. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7363. * src/IteratableChecksumValidator.cc
  7364. * src/IteratableChunkChecksumValidator.cc
  7365. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. * Release 0.16.2
  7367. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7368. Added Serbian translation. Updated Ukrainian translation.
  7369. Thanks to all translators.
  7370. * po/sr.po
  7371. * po/uk.po
  7372. * po/LINGUAS
  7373. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7374. Bump up version number to 0.16.2
  7375. * configure.ac
  7376. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7377. Added length equality test to operator== to drop a piece message
  7378. whose length does not match to the requested one.
  7379. * src/RequestSlot.cc
  7380. * test/DefaultBtMessageDispatcherTest.cc
  7381. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7382. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7383. recieved.
  7384. In this fix, if a request larger than 16KiB length is received, aria2
  7385. disconnects the peer.
  7386. * src/BtConstants.h
  7387. * src/PeerMessageUtil.cc
  7388. * src/PeerMessageUtil.h
  7389. * test/BtRequestMessageTest.cc
  7390. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. * Release 0.16.1
  7392. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7394. * doc/aria2c.1.txt
  7395. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7396. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7397. Updated French, Simplified Chinese and Japanese translations.
  7398. Thanks to all translators.
  7399. en@quot and en@boldquot are also added.
  7400. * po/LINGUAS
  7401. * po/fr.po
  7402. * po/ja.po
  7403. * po/uk.po
  7404. * po/vi.po
  7405. * po/zh_CN.po
  7406. * po/zh_TW.po
  7407. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7408. Bump up version number to 0.16.1.
  7409. * configure.ac
  7410. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7411. Updated README.
  7412. * README
  7413. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7414. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7415. not to replace '--' with em dash character.
  7416. * doc/aria2c.1.txt
  7417. * doc/makeman
  7418. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7419. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7420. every SEC seconds.
  7421. * src/DownloadEngineFactory.cc
  7422. * src/OptionHandlerFactory.cc
  7423. * src/option_processing.cc
  7424. * src/usage_text.h
  7425. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7426. Fixed compile warning on linux-amd64
  7427. * src/FtpConnection.cc
  7428. * src/IteratableChunkChecksumValidator.cc
  7429. * src/MultiDiskAdaptor.cc
  7430. Fixed the bug that unit test fails on linux-amd64
  7431. * test/UtilTest.cc
  7432. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7433. Added --dht-file-path option to change the path to dht.dat, which is a
  7434. serialized DHT routing table.
  7435. * src/OptionHandlerFactory.cc
  7436. * src/option_processing.cc
  7437. * src/usage_text.h
  7438. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7439. Fixed possible underflow.
  7440. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7441. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7442. Fixed the bug that last character in URI is not encoded.
  7443. * src/Request.cc
  7444. * test/RequestTest.cc
  7445. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7446. Fixed the bug that referer header field contains fragment.
  7447. Now Request class removes fragment part of URI and encodes it
  7448. in Request::setUri() and setReferer().
  7449. * src/Request.h
  7450. * src/Request.cc
  7451. * test/RequestTest.cc
  7452. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7453. Added missing m4 macros.
  7454. * m4/cppunit.m4
  7455. * m4/libgcrypt.m4
  7456. * m4/libgnutls-extra.m4
  7457. * m4/libgnutls.m4
  7458. * m4/libxml2.m4
  7459. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7460. Fixed compile error with gcc-4.4(snapshot)
  7461. * src/File.cc
  7462. * src/FtpConnection.cc
  7463. * src/OptionHandlerImpl.h
  7464. * src/Util.cc
  7465. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7466. Removed assert()
  7467. * src/SocketBuffer.cc (SocketBuffer::send)
  7468. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7469. Changed the type of _numNewConnection to unsigned int.
  7470. * src/ActivePeerConnectionCommand.cc
  7471. * src/ActivePeerConnectionCommand.h
  7472. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7473. * Release 0.16.0
  7474. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7475. Updated doc
  7476. * README
  7477. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7478. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7479. translations. Thanks to all translators.
  7480. * po/bg.po
  7481. * po/de.po
  7482. * po/fr.po
  7483. * po/ja.po
  7484. * po/zh_CN.po
  7485. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7486. Bump up version number to 0.16.0.
  7487. * configure.ac
  7488. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7489. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7490. int32_t.
  7491. Changed the type of count to int32_t.
  7492. * src/Metalink2RequestGroup.cc
  7493. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7494. Added test for Time::elapsed(time_t).
  7495. * test/TimeTest.cc
  7496. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7498. Util::difftv() should be used instead.
  7499. * src/TimeA2.cc
  7500. * src/TimeA2.h
  7501. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7502. Made socket for dht connections non-blocking
  7503. * src/DHTAbstractMessage.cc
  7504. * src/DHTAbstractMessage.h
  7505. * src/DHTConnection.h
  7506. * src/DHTConnectionImpl.cc
  7507. * src/DHTConnectionImpl.h
  7508. * src/DHTMessage.h
  7509. * src/DHTMessageDispatcherImpl.cc
  7510. * src/DHTMessageDispatcherImpl.h
  7511. * src/DHTUnknownMessage.cc
  7512. * src/DHTUnknownMessage.h
  7513. * src/SocketCore.cc
  7514. * src/SocketCore.h
  7515. * test/MockDHTMessage.h
  7516. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. Changed the type of offset to int.
  7518. * src/ParameterizedStringParser.cc
  7519. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7520. Made getAsInt() return int32_t
  7521. * src/Option.h
  7522. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7523. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7524. build.
  7525. * configure.ac
  7526. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7527. Use sqlite3_open if sqlite3_open_v2 is not available.
  7528. * src/Sqlite3MozCookieParser.cc
  7529. * src/Sqlite3MozCookieParser.h
  7530. * m4/sqlite3.m4
  7531. * test/Sqlite3MozCookieParserTest.cc
  7532. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7534. * src/BtPieceMessage.cc
  7535. * src/DHTPeerAnnounceStorage.cc
  7536. * src/DefaultPieceStorage.cc
  7537. * src/DownloadCommand.cc
  7538. * src/DownloadEngine.cc
  7539. * src/FtpConnection.cc
  7540. * src/PeerConnection.cc
  7541. * src/PeerMessageUtil.cc
  7542. * src/RequestGroup.cc
  7543. * src/RequestGroupMan.cc
  7544. * src/SimpleBtMessage.cc
  7545. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7546. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7547. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7548. * src/AbstractDiskWriter.cc
  7549. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7550. Don't set Request::supportsPersistentConnection() in HttpConnection
  7551. since this code is also used in AbstractProxyResponseCommand.
  7552. Moved those code to HttpResponse.
  7553. * src/HttpResponse.cc
  7554. * src/HttpResponse.h
  7555. * src/HttpConnection.cc
  7556. * src/HttpConnection.h
  7557. * src/HttpResponseCommand.cc
  7558. * test/HttpResponseTest.cc
  7559. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7561. The configuration is minimum: no torrent, no metalink, so there may be
  7562. other compile error on their code.
  7563. * src/a2netcompat.h
  7564. * src/File.cc
  7565. * src/File.h
  7566. * src/SocketCore.cc
  7567. * src/SocketCore.h
  7568. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. Made a socket of incoming peer non-blocking.
  7570. * src/PeerListenCommand.cc
  7571. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7573. whole message data is not sent in one send() call.
  7574. * src/BtPieceMessage.cc
  7575. * src/BtPieceMessage.h
  7576. * src/PeerConnection.cc
  7577. * src/PeerConnection.h
  7578. * src/SimpleBtMessage.cc
  7579. * src/SimpleBtMessage.h
  7580. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Fixed the bug that aria2 downloads faster than max-download-limit when
  7582. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7583. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7584. , instead of sum of them.
  7585. * src/ActivePeerConnectionCommand.cc
  7586. * src/DefaultBtInteractive.cc
  7587. * src/DownloadCommand.cc
  7588. * src/PeerInteractionCommand.cc
  7589. * src/PeerReceiveHandshakeCommand.cc
  7590. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7591. Fixed the bug that HTTPS download fails.
  7592. * src/AbstractCommand.cc
  7593. * src/AbstractCommand.h
  7594. * src/DownloadCommand.cc
  7595. * src/FtpConnection.cc
  7596. * src/HttpConnection.cc
  7597. * src/HttpRequestCommand.cc
  7598. * src/HttpResponseCommand.cc
  7599. * src/HttpSkipResponseCommand.cc
  7600. * src/MSEHandshake.cc
  7601. * src/PeerConnection.cc
  7602. * src/SocketCore.cc
  7603. * src/SocketCore.h
  7604. Fixed the bug that aria2 doesn't download whole content body and cannot
  7605. reuse connection if chunked transfer encoding and gzip content encoding
  7606. are set.
  7607. * src/DownloadCommand.cc
  7608. * src/HttpSkipResponseCommand.cc
  7609. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Updated man page.
  7611. * doc/aria2c.1.txt
  7612. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7613. When error occurred while aria2 was parsing an .aria2.conf file, print
  7614. the usage of the option that caused error.
  7615. * src/option_processing.cc
  7616. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. Fixed compile error on OptionHandlerException
  7618. * src/Makefile.am
  7619. * src/OptionHandlerException.cc
  7620. * src/OptionHandlerException.h
  7621. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7622. Moved message of the error to OptionHandlerException.h
  7623. * src/NameMatchOptionHandler.h
  7624. * src/OptionHandlerException.h
  7625. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7626. When error occurs while aria2 is parsing an command-line option, print
  7627. the usage of the option.
  7628. * src/Makefile.am
  7629. * src/NameMatchOptionHandler.h
  7630. * src/OptionHandlerException.h
  7631. * src/option_processing.cc
  7632. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7633. Reverted previous change.
  7634. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7635. username is not in URI.
  7636. * src/HttpRequest.cc
  7637. * src/Request.cc
  7638. * test/HttpRequestTest.cc
  7639. * test/RequestTest.cc
  7640. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7641. Now colon is required for username and password in FTP URL, like:
  7642. ftp://username:password@host.
  7643. If colon is not there, aria2 don't parse it as a username. For example,
  7644. aria2 don't retrieve username from ftp://username@host.
  7645. This fix was made in order to login FTP server via non-transparent ftp
  7646. proxy.
  7647. * src/Request.cc
  7648. * test/RequestTest.cc
  7649. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7650. Use netrc for HTTP.
  7651. Now FTP user/password is sent in Authorization header when
  7652. --ftp-via-http-proxy=get is given.
  7653. * src/AuthConfigFactory.cc
  7654. * src/HttpRequest.cc
  7655. * src/HttpRequest.h
  7656. * src/NetrcAuthResolver.cc
  7657. * src/NetrcAuthResolver.h
  7658. * src/OptionHandlerFactory.cc
  7659. * src/option_processing.cc
  7660. * src/prefs.cc
  7661. * src/prefs.h
  7662. * test/AuthConfigFactoryTest.cc
  7663. * test/HttpRequestTest.cc
  7664. * test/NetrcAuthResolverTest.cc
  7665. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7666. Issue PWD command first and get working directory and use it as a prefix
  7667. for CWD command.
  7668. * src/DownloadEngine.cc
  7669. * src/DownloadEngine.h
  7670. * src/FtpConnection.cc
  7671. * src/FtpConnection.h
  7672. * src/FtpFinishDownloadCommand.cc
  7673. * src/FtpInitiateConnectionCommand.cc
  7674. * src/FtpNegotiationCommand.cc
  7675. * src/FtpNegotiationCommand.h
  7676. * test/FtpConnectionTest.cc
  7677. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Removed default user/pass for FTP user/pass, since it should not have
  7679. precedence over netrc configuration by default.
  7680. * src/OptionHandlerFactory.cc
  7681. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. Added debug log for socket event.
  7683. * src/AbstractCommand.cc
  7684. * src/PeerAbstractCommand.cc
  7685. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Log microseconds.
  7687. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7688. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. Replaced HelpItem.cc with OptionHandler.cc.
  7690. * po/POTFILES.in
  7691. Updated po files with 'make update-po'
  7692. * po/aria2c.pot
  7693. * po/*.po
  7694. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7695. Removed possible values from the text.
  7696. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7697. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7698. Removed unused preferences:
  7699. PREF_NO_PREALLOCATION
  7700. PREF_STDOUT_LOG
  7701. PREF_TRACKER_MAX_TRIES
  7702. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7703. PREF_MIN_SEGMENT_SIZE
  7704. * src/option_processing.cc
  7705. * src/prefs.cc
  7706. * src/prefs.h
  7707. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Integrated HelpItem into OptionParser to ease the workload for adding
  7709. new options. Removed default value from usage text.
  7710. * src/HelpItem.cc: Removed.
  7711. * src/HelpItem.h: Removed.
  7712. * src/HelpItemFactory.cc: Removed.
  7713. * src/HelpItemFactory.h: Removed.
  7714. * src/Makefile.am
  7715. * src/Makefile.in
  7716. * src/NameMatchOptionHandler.h
  7717. * src/OptionHandler.cc
  7718. * src/OptionHandler.h
  7719. * src/OptionHandlerFactory.cc
  7720. * src/OptionHandlerImpl.h
  7721. * src/OptionParser.cc
  7722. * src/OptionParser.h
  7723. * src/TagContainer.cc: Removed.
  7724. * src/TagContainer.h: Removed.
  7725. * src/TaggedItem.cc: Removed.
  7726. * src/TaggedItem.h: Removed.
  7727. * src/main.cc
  7728. * src/option_processing.cc
  7729. * src/usage_text.h
  7730. * src/version_usage.cc
  7731. * test/HelpItemTest.cc: Removed.
  7732. * test/Makefile.am
  7733. * test/Makefile.in
  7734. * test/OptionHandlerTest.cc
  7735. * test/OptionParserTest.cc
  7736. * test/TagContainerTest.cc: Removed.
  7737. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7738. Moved `TransferStat stat = ...' to inside the `if' clause.
  7739. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7740. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Fixed the bug that a block in a piece is requested when same block is
  7742. already requested to the same peer in end game mode.
  7743. * src/BtRequestFactory.h
  7744. * src/DefaultBtInteractive.cc
  7745. * src/DefaultBtRequestFactory.cc
  7746. * src/DefaultBtRequestFactory.h
  7747. * src/DefaultPieceStorage.cc
  7748. * src/DefaultPieceStorage.h
  7749. * src/PieceStorage.h
  7750. * src/UnknownLengthPieceStorage.cc
  7751. * src/UnknownLengthPieceStorage.h
  7752. * test/DefaultBtRequestFactoryTest.cc
  7753. * test/DefaultPieceStorageTest.cc
  7754. * test/MockBtRequestFactory.h
  7755. * test/MockPieceStorage.h
  7756. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. Removed _uploadLength and _downloadLength from PeerSessionResource
  7758. and use PeerStat::_sessionUploadLength and
  7759. PeerStat::_sessionDownloadLength.
  7760. * src/PeerSessionResource.cc
  7761. * src/PeerSessionResource.h
  7762. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7763. Fixed the bug that prefixLength of split bucket which doesn't include
  7764. local node ID is incremented.
  7765. * src/DHTBucket.cc
  7766. * src/DHTBucket.h
  7767. * test/DHTBucketTest.cc
  7768. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7769. Added cookies.sqlite to EXTRA_DIST
  7770. * test/Makefile.am
  7771. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7772. Added Turkish translation. Updated French, German, Russian and
  7773. Simplified Chinese translations. Thanks to all translators.
  7774. * po/LINGUAS
  7775. * po/de.po
  7776. * po/fr.po
  7777. * po/ru.po
  7778. * po/tr.po
  7779. * po/zh_CN.po
  7780. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7781. Added deliminating text to the beginning of the log so that one can find
  7782. where the log starts easily.
  7783. * src/main.cc
  7784. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7785. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7786. to fix compile error when async DNS is not enabled by configuration.
  7787. * src/AbstractCommand.cc
  7788. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7789. If establishing conneciton to a server is failed, then mark error on
  7790. its ServerStat.
  7791. Added the cause of error to log when error event occurred.
  7792. Moved message string to message.h for translation.
  7793. * src/AbstractCommand.cc
  7794. * src/AbstractCommand.h
  7795. * src/FtpNegotiationCommand.cc
  7796. * src/HttpRequestCommand.cc
  7797. * src/PeerAbstractCommand.cc
  7798. * src/message.h
  7799. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7800. Added the function to get error message from socket.
  7801. * src/SocketCore.cc
  7802. * src/SocketCore.h
  7803. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7804. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7805. * src/RequestGroupMan.cc
  7806. * src/RequestGroupMan.h
  7807. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. If error event is received in epoll, then abort download immediately.
  7809. * src/AbstractCommand.cc
  7810. * src/Command.cc
  7811. * src/Command.h
  7812. * src/DownloadEngine.cc
  7813. * src/PeerAbstractCommand.cc
  7814. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Added usage message for --uri-selector, --server-stat-of,
  7816. --server-stat-in, --server-stat-timeout options.
  7817. * src/HelpItemFactory.cc
  7818. * src/usage_text.h
  7819. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7820. Added upper limit of FTP response buffer. The current implementation
  7821. uses 4096bytes as a limit.
  7822. * src/FtpConnection.cc
  7823. * src/FtpConnection.h
  7824. * test/FtpConnectionTest.cc
  7825. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Use non-blocking socket for TCP communication to avoid possible
  7827. blocking due to buffer full.
  7828. * src/AbstractProxyRequestCommand.cc
  7829. * src/FtpConnection.cc
  7830. * src/FtpConnection.h
  7831. * src/FtpNegotiationCommand.cc
  7832. * src/FtpNegotiationCommand.h
  7833. * src/HttpConnection.cc
  7834. * src/HttpConnection.h
  7835. * src/HttpRequestCommand.cc
  7836. * src/InitiatorMSEHandshakeCommand.cc
  7837. * src/InitiatorMSEHandshakeCommand.h
  7838. * src/MSEHandshake.cc
  7839. * src/MSEHandshake.h
  7840. * src/Makefile.am
  7841. * src/PeerConnection.cc
  7842. * src/PeerConnection.h
  7843. * src/PeerInteractionCommand.cc
  7844. * src/PeerListenCommand.cc
  7845. * src/ReceiverMSEHandshakeCommand.cc
  7846. * src/ReceiverMSEHandshakeCommand.h
  7847. * src/SocketBuffer.cc
  7848. * src/SocketBuffer.h
  7849. * src/SocketCore.cc
  7850. * src/SocketCore.h
  7851. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7852. Call setStatusRealtime() in constructor.
  7853. * src/RealtimeCommand.cc
  7854. * src/RealtimeCommand.h
  7855. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Call Download::setNoWait(true) to execute newly created command without
  7857. a pause.
  7858. * src/AbstractCommand.cc
  7859. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7861. found' error from HTTP/FTP server NUM times without getting single
  7862. bytes of data, then force the download to fail.
  7863. Basically aria2 tris all URIs available. So if long list of URIs are
  7864. specified in Metalink, then aria2 will take a long time to fail
  7865. eventually if all URIs are outdated. This option eases this situation
  7866. to limit the number of servers to try.
  7867. * src/FtpNegotiationCommand.cc
  7868. * src/HelpItemFactory.cc
  7869. * src/HttpResponseCommand.cc
  7870. * src/OptionHandlerFactory.cc
  7871. * src/PeerStat.h
  7872. * src/RequestGroup.cc
  7873. * src/RequestGroup.h
  7874. * src/SegmentMan.cc
  7875. * src/SegmentMan.h
  7876. * src/option_processing.cc
  7877. * src/prefs.cc
  7878. * src/prefs.h
  7879. * src/usage_text.h
  7880. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7882. response even if more than one response is in it.
  7883. * src/FtpConnection.cc
  7884. * src/FtpConnection.h
  7885. * test/FtpConnectionTest.cc
  7886. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. Merged from stable-0.15
  7888. * m4/libcares.m4
  7889. Use pkg-config
  7890. * m4/sqlite3.m4
  7891. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Removed unnecessary if statement.
  7893. * src/DefaultPieceStorage.cc (initPieceStorage)
  7894. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7895. Added --connect-timeout option to specify connect timeout in seconds.
  7896. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7897. connecting to BitTorrent peer is not controlled by this option.
  7898. * src/AbstractProxyRequestCommand.cc
  7899. * src/FtpNegotiationCommand.cc
  7900. * src/HelpItemFactory.cc
  7901. * src/HttpRequestCommand.cc
  7902. * src/OptionHandlerFactory.cc
  7903. * src/option_processing.cc
  7904. * src/prefs.cc
  7905. * src/prefs.h
  7906. * src/usage_text.h
  7907. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Added help message for -R option.
  7909. * src/HelpItemFactory.cc
  7910. * src/usage_text.h
  7911. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. Added the message that the time is in local time zone.
  7913. * src/RequestGroup.cc
  7914. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. Implemented the ability to get timestamp from remote FTP server using
  7916. MDTM command described in RFC3659.
  7917. * src/FtpConnection.cc
  7918. * src/FtpConnection.h
  7919. * src/FtpNegotiationCommand.cc
  7920. * src/FtpNegotiationCommand.h
  7921. * test/FtpConnectionTest.cc
  7922. * test/Makefile.am
  7923. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7924. Implemented the ability to get timestamp from remote HTTP server and
  7925. apply it to local file. To enable this feature, --remote-time option
  7926. is added. No usage text has been written yet.
  7927. If several servers returns difference timestamp, then aria2 uses latest
  7928. one.
  7929. * src/CopyDiskAdaptor.cc
  7930. * src/CopyDiskAdaptor.h
  7931. * src/DirectDiskAdaptor.cc
  7932. * src/DirectDiskAdaptor.h
  7933. * src/DiskAdaptor.h
  7934. * src/File.cc
  7935. * src/File.h
  7936. * src/HttpHeader.cc
  7937. * src/HttpHeader.h
  7938. * src/HttpResponse.cc
  7939. * src/HttpResponse.h
  7940. * src/HttpResponseCommand.cc
  7941. * src/HttpResponseCommand.h
  7942. * src/MultiDiskAdaptor.cc
  7943. * src/MultiDiskAdaptor.h
  7944. * src/OptionHandlerFactory.cc
  7945. * src/RequestGroup.cc
  7946. * src/RequestGroup.h
  7947. * src/RequestGroupMan.cc
  7948. * src/option_processing.cc
  7949. * src/prefs.cc
  7950. * src/prefs.h
  7951. * test/CopyDiskAdaptorTest.cc
  7952. * test/FileTest.cc
  7953. * test/Makefile.am
  7954. * test/Makefile.in
  7955. * test/MultiDiskAdaptorTest.cc
  7956. * test/TestUtil.cc
  7957. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7958. Fixed the bug that DiskWriterEntry is not created when its
  7959. FileEntry.isRequested() is false and it doesn't share a piece with
  7960. other FileEntries that are requested. This bug causes segmentation fault
  7961. in the end.
  7962. * src/MultiDiskAdaptor.cc
  7963. * src/MultiDiskAdaptor.h
  7964. * src/MultiFileAllocationIterator.cc
  7965. * test/MultiDiskAdaptorTest.cc
  7966. * test/MultiFileAllocationIteratorTest.cc
  7967. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7969. called if the number of file entries are greater than max open files.
  7970. * src/AbstractSingleDiskAdaptor.cc
  7971. * src/AbstractSingleDiskAdaptor.h
  7972. * src/DiskAdaptor.h
  7973. * src/MultiDiskAdaptor.cc
  7974. * src/MultiDiskAdaptor.h
  7975. * test/MultiDiskAdaptorTest.cc
  7976. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7977. Added a constuctor that receives struct timeval.
  7978. Added operator<.
  7979. * src/TimeA2.cc
  7980. * src/TimeA2.h
  7981. * test/TimeTest.cc
  7982. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7983. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7984. * src/CookieParser.cc
  7985. * test/CookieParserTest.cc
  7986. * test/HttpResponseTest.cc
  7987. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7988. Implmented the functions to parse date.
  7989. * src/TimeA2.cc
  7990. * src/TimeA2.h
  7991. * test/TimeTest.cc
  7992. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Added "Firefox3 Cookie" feature to FeatureConfig
  7994. * src/FeatureConfig.cc
  7995. * src/FeatureConfig.h
  7996. * test/FeatureConfigTest.cc
  7997. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7998. Bump up version number to 0.16.0b
  7999. * configure.ac
  8000. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. Use pkg-config if is is available.
  8002. * m4/openssl.m4
  8003. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8005. * src/BtAnnounce.h
  8006. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. If an error occurred with a URI, remove identical URI from remaining
  8008. URI list because it is likely that same error occurred in the end and it
  8009. is waste of time.
  8010. * src/AbstractCommand.cc
  8011. * src/RequestGroup.cc
  8012. * src/RequestGroup.h
  8013. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. Removed wrong comment.
  8015. * src/DefaultPeerStorage.cc
  8016. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8018. Added return value of getpid() to argument of srand() to achieve more
  8019. randomized value.
  8020. * src/SimpleRandomizer.cc
  8021. * src/SimpleRandomizer.h
  8022. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Contact tracker frequently when the number of connections are 0 and
  8024. download is not finished yet.
  8025. * src/ActivePeerConnectionCommand.cc
  8026. * src/BtAnnounce.h
  8027. * src/DefaultBtAnnounce.cc
  8028. * src/DefaultBtAnnounce.h
  8029. * test/MockBtAnnounce.h
  8030. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8031. Moved threshold values to UTPexExtensionMessage.
  8032. * src/DefaultBtInteractive.cc
  8033. * src/Peer.cc
  8034. * src/Peer.h
  8035. * src/UTPexExtensionMessage.cc
  8036. * src/UTPexExtensionMessage.h
  8037. * test/UTPexExtensionMessageTest.cc
  8038. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8039. Added _incoming member to Peer class and made it true if the peer
  8040. initiated connection. Don't add those peer to UTPex message.
  8041. If extended handshake is received, assign _incoming to false.
  8042. * src/DefaultBtInteractive.cc
  8043. * src/HandshakeExtensionMessage.cc
  8044. * src/Peer.cc
  8045. * src/Peer.h
  8046. * src/PeerListenCommand.cc
  8047. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8048. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8049. Encoding Decoder. Removed size threshold for turning off on the fly
  8050. inflation because resulting file may or may not be inflated depending
  8051. on the file size and I think it is not expected by users.
  8052. This change fixes segmentation fault when Metalink file contains gzipped
  8053. file and its filesize is provided.
  8054. * src/HttpResponseCommand.cc
  8055. * src/HttpResponseCommand.h
  8056. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8057. Made Cookie immutable.
  8058. * src/Cookie.cc
  8059. * src/Cookie.h
  8060. * src/CookieParser.cc
  8061. * src/CookieParser.h
  8062. * src/CookieStorage.cc
  8063. * test/CookieParserTest.cc
  8064. * test/CookieStorageTest.cc
  8065. * test/NsCookieParserTest.cc
  8066. * test/Sqlite3MozCookieParserTest.cc
  8067. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8068. Removed CookieBox, CookieBoxFactory.
  8069. * src/CookieBox.cc
  8070. * src/CookieBox.h
  8071. * src/CookieBoxFactory.cc
  8072. * src/CookieBoxFactory.h
  8073. * src/Makefile.am
  8074. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. Use CookieStorage class instead of CookieBox class.
  8076. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8077. * src/AbstractProxyRequestCommand.cc
  8078. * src/CookieStorage.cc
  8079. * src/DownloadEngine.cc
  8080. * src/DownloadEngine.h
  8081. * src/HttpConnection.cc
  8082. * src/HttpConnection.h
  8083. * src/HttpRequest.cc
  8084. * src/HttpRequest.h
  8085. * src/HttpRequestCommand.cc
  8086. * src/HttpResponse.cc
  8087. * src/HttpResponseCommand.cc
  8088. * src/HttpSkipResponseCommand.cc
  8089. * src/Makefile.am
  8090. * src/MultiUrlRequestInfo.cc
  8091. * src/Request.cc
  8092. * src/Request.h
  8093. * src/main.cc
  8094. * test/AllTest.cc
  8095. * test/CookieStorageTest.cc
  8096. * test/CookieTest.cc
  8097. * test/HttpRequestTest.cc
  8098. * test/HttpResponseTest.cc
  8099. * test/Makefile.am
  8100. * test/NsCookieParserTest.cc
  8101. * test/Sqlite3MozCookieParserTest.cc
  8102. * test/nscookietest.txt
  8103. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. Updated
  8105. * test/Cookies.sqlite
  8106. * test/nscookietest.txt
  8107. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. Added tests for CookieStorage::load()
  8109. * test/CookieStorageTest.cc
  8110. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Added CookieStorage class which is based on RFC2109 and manages cookies
  8112. more strictly than CookieBox and CookieBoxFactory class.
  8113. * src/CookieStorage.cc
  8114. * src/CookieStorage.h
  8115. * src/Cookie.cc
  8116. * src/Cookie.h
  8117. * test/CookieStorageTest.cc
  8118. * test/CookieTest.cc
  8119. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. Fixed the bug that commands are created more than the number of pieces.
  8121. * src/RequestGroup.cc
  8122. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. Fixed infinite loop bug in FTP when SIZE command failed.
  8124. * src/FtpNegotiationCommand.cc
  8125. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8126. Removed DirectDiskAdaptorTest.h
  8127. * test/Makefile.am
  8128. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. Fixed chunk checksum validation cannot detect trailing garbage data.
  8130. BUG#2074141
  8131. * src/AbstractSingleDiskAdaptor.cc
  8132. * src/AbstractSingleDiskAdaptor.h
  8133. * src/CheckIntegrityEntry.cc
  8134. * src/CheckIntegrityEntry.h
  8135. * src/DiskAdaptor.h
  8136. * src/MultiDiskAdaptor.cc
  8137. * src/MultiDiskAdaptor.h
  8138. * src/RequestGroup.cc
  8139. * test/DirectDiskAdaptorTest.cc
  8140. * test/MultiDiskAdaptorTest.cc
  8141. * test/TestUtil.cc
  8142. * test/TestUtil.h
  8143. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Bump up version number of dht.dat file to 3. In version 3 format, time
  8145. is stored in 64bit, network byte order.
  8146. New build can load old format(version 2) but it saves the file in new
  8147. format. It means once you used new build, your dht.dat becomes
  8148. incompatible with older build.
  8149. * src/DHTRoutingTableDeserializer.cc
  8150. * src/DHTRoutingTableSerializer.cc
  8151. * test/DHTRoutingTableSerializerTest.cc
  8152. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8154. * test/Makefile.am
  8155. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8156. Bump up version number of .aria2 control file to 0001.
  8157. New aria2 can still load version 0000 file but it saves the file in
  8158. version 0001 format. It means that new aria2 can resume download
  8159. started by old aria2 but the opposite is not true.
  8160. * src/DefaultBtProgressInfoFile.cc
  8161. * src/DefaultBtProgressInfoFile.h
  8162. * test/DefaultBtProgressInfoFileTest.cc
  8163. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8164. Added ntoh64 and hton64 as inline functions.
  8165. * src/Util.cc
  8166. * test/UtilTest.cc
  8167. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Added sqlite3 depenency and Firefox3 cookie support.
  8169. * README
  8170. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. State that firefox3 cookie is supported explicitly in the usage.
  8172. * src/usage_text.h
  8173. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8174. Externalized message.
  8175. * src/RequestGroupMan.cc
  8176. * src/message.h
  8177. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8178. Save temporary file first and rename to the destination on success.
  8179. Added test cases.
  8180. * src/RequestGroupMan.cc
  8181. * test/RequestGroupManTest.cc
  8182. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Fixed the bug that the number of connected peer is exceeding the limit
  8184. (55 by default) in seeding mode.
  8185. Multiplied 0.8 to _maxUploadSpeedLimit.
  8186. * src/ActivePeerConnectionCommand.cc
  8187. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8188. Clear table item.
  8189. * src/Dictionary.cc
  8190. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. Fixed error handling of lseek.
  8192. * src/AbstractDiskWriter.cc
  8193. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8195. style cookie file.
  8196. * src/usage_text.h
  8197. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8199. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8200. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8201. * src/Util.cc
  8202. * src/Util.h
  8203. * src/CookieParser.cc
  8204. * test/UtilTest.cc
  8205. * test/CookieParserTest.cc
  8206. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8207. Separate the implementation to load old mozilla format of cookie to
  8208. NsCookieParser class.
  8209. * src/CookieBoxFactory.cc
  8210. * src/CookieBoxFactory.h
  8211. * src/NsCookieParser.cc
  8212. * src/NsCookieParser.h
  8213. * test/NsCookieParserTest.cc
  8214. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8215. Made parse() const
  8216. * src/Sqlite3MozCookieParser.cc
  8217. * src/Sqlite3MozCookieParser.h
  8218. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8219. Added firefox3 cookie support based on the patch submitted by
  8220. tizianomueller.
  8221. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8222. this functionality.
  8223. * configure.ac
  8224. * m4/sqlite3.m4
  8225. * src/CookieBoxFactory.cc
  8226. * src/CookieBoxFactory.h
  8227. * src/Makefile.am
  8228. * src/Makefile.in
  8229. * src/Sqlite3MozCookieParser.cc
  8230. * src/Sqlite3MozCookieParser.h
  8231. * src/main.cc
  8232. * test/CookieBoxFactoryTest.cc
  8233. * test/Makefile.am
  8234. * test/Makefile.in
  8235. * test/Sqlite3MozCookieParserTest.cc
  8236. * test/badcookies.sqlite
  8237. * test/cookies.sqlite
  8238. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Added Danish and Greek translations.
  8240. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8241. Great thanks to all translators.
  8242. * po/LINGUAS
  8243. * po/el.po
  8244. * po/da.po
  8245. * po/es.po
  8246. * po/ca.po
  8247. * po/nn.po
  8248. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8249. Fixed man page: --follow-bittorrent should be --follow-torrent
  8250. * doc/aria2c.1.txt
  8251. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Fixed: numCommand is less than the value specified in -C option.
  8253. * src/RequestGroup.cc
  8254. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8255. Fixed occasional assertion failure in PieceSegment.
  8256. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8257. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8258. creation of duplicate segments and one of the segment was finished then
  8259. assertion failure was caused.
  8260. * src/SegmentMan.cc
  8261. * test/SegmentManTest.cc
  8262. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8263. Added options to load/save the server's performance/status to a file
  8264. and the timeout to drop their data.
  8265. --server-stat-of=FILE specifies the file to which performance data
  8266. is saved.
  8267. --server-stat-if=FILE specifies the file to read previously saved
  8268. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8269. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8270. TIMEOUT is specified in seconds and the default value is 24hours.
  8271. * src/MultiUrlRequestInfo.cc
  8272. * src/OptionHandlerFactory.cc
  8273. * src/RequestGroupMan.cc
  8274. * src/RequestGroupMan.h
  8275. * src/ServerStatMan.cc
  8276. * src/ServerStatMan.h
  8277. * src/option_processing.cc
  8278. * src/prefs.cc
  8279. * src/prefs.h
  8280. * test/ServerStatManTest.cc
  8281. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8282. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8283. * src/ServerStatMan.cc
  8284. * src/ServerStatMan.h
  8285. * test/ServerStatManTest.cc
  8286. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8287. Implemented ServerStatMan::load(...) function and its test case.
  8288. * src/ServerStat.cc
  8289. * src/ServerStat.h
  8290. * src/ServerStatMan.cc
  8291. * test/ServerStatManTest.cc
  8292. * test/ServerStatTest.cc
  8293. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8294. Use time_t instead of int32_t. Use int64_t where milli second is
  8295. expected.
  8296. * src/TimeA2.cc
  8297. * src/TimeA2.h
  8298. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8299. Implemented ServerStatMan::save(...) function and its test case.
  8300. * src/ServerStat.cc
  8301. * src/ServerStat.h
  8302. * src/ServerStatMan.cc
  8303. * src/ServerStatMan.h
  8304. * test/ServerStatManTest.cc
  8305. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8306. Now aria2 uses name attribute in Metalink as local filename in
  8307. BitTorrent downloads. BUG#2033999
  8308. * src/BtContext.h
  8309. * src/BtDependency.cc
  8310. * src/DefaultBtContext.cc
  8311. * src/DefaultBtContext.h
  8312. * src/SingleFileDownloadContext.cc
  8313. * src/SingleFileDownloadContext.h
  8314. * test/BtDependencyTest.cc
  8315. * test/DefaultBtContextTest.cc
  8316. * test/MockBtContext.h
  8317. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8318. Added AC_C_BIGENDIAN
  8319. * src/configure.ac
  8320. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8321. Limited numCommand less than or equal to the number of piece.
  8322. * src/RequestGroup.cc
  8323. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8325. directive.
  8326. * test/DefaultPieceStorageTest.cc
  8327. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8328. Fixed memory leak in test code
  8329. * test/AnnounceListTest.cc
  8330. * test/DefaultPeerListProcessorTest.cc
  8331. * test/DefaultPeerStorageTest.cc
  8332. * test/MetaFileUtilTest.cc
  8333. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8335. * src/DefaultPieceStorage.cc
  8336. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. Initialized _directIOAllowed
  8338. * src/MultiDiskAdaptor.cc
  8339. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8340. Fixed memory leak
  8341. * src/GZipDecoder.cc
  8342. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8343. Fixed memory leak
  8344. * src/MetalinkParserStateMachine.cc
  8345. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8346. Fixed memory leak
  8347. * src/Dictionary.cc
  8348. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. Fixed memory leak
  8350. * src/IteratableChunkChecksumValidator.h
  8351. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8352. Fixed unmatched malloc/free.
  8353. * src/IteratableChunkChecksumValidator.cc
  8354. * src/IteratableChecksumValidator.cc
  8355. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. Removed max chunk size check. This change fixes BUG#2040169
  8357. * src/ChunkedDecoder.cc
  8358. * src/ChunkedDecoder.h
  8359. * test/ChunkedDecoderTest.cc
  8360. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8361. Implemented download speed based URI selection algorithm.
  8362. Introduced new option --uri-selector.
  8363. If --uri-selector=feedback is given, aria2 uses download speed observed
  8364. in the previous downloads and chooses fastest server in the URI list.
  8365. Currently at most 10 URIs are considered to introduce randomeness for
  8366. finding better servers. The speed is average download speed in the
  8367. downloads.
  8368. On the other hand, if --uri-selector=inorder is given, which is default,
  8369. URI is tried in order in URI list.
  8370. The usage text for the new option has not been written yet.
  8371. * src/AbstractCommand.cc
  8372. * src/DownloadCommand.cc
  8373. * src/DownloadEngine.cc
  8374. * src/DownloadEngineFactory.cc
  8375. * src/InOrderURISelector.cc
  8376. * src/InOrderURISelector.h
  8377. * src/OptionHandlerFactory.cc
  8378. * src/PeerStat.h
  8379. * src/RequestGroup.cc
  8380. * src/RequestGroup.h
  8381. * src/RequestGroupMan.cc
  8382. * src/RequestGroupMan.h
  8383. * src/SegmentMan.cc
  8384. * src/SegmentMan.h
  8385. * src/ServerStat.cc
  8386. * src/ServerStat.h
  8387. * src/ServerStatMan.cc
  8388. * src/ServerStatMan.h
  8389. * src/ServerStatURISelector.cc
  8390. * src/ServerStatURISelector.h
  8391. * src/URISelector.h
  8392. * src/option_processing.cc
  8393. * src/prefs.cc
  8394. * src/prefs.h
  8395. * test/InOrderURISelectorTest.cc
  8396. * test/RequestGroupManTest.cc
  8397. * test/ServerStatManTest.cc
  8398. * test/ServerStatURISelectorTest.cc
  8399. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8400. * Release 0.15.1+2
  8401. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Bump up version number to 0.15.1+2
  8403. * configure.ac
  8404. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8405. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8406. * m4/aria2_arg.m4
  8407. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8408. * Release 0.15.1+1
  8409. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8410. Bump up version number to 0.15.1+1
  8411. * configure.ac
  8412. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8413. Fixed the bug that causes segmentaion fault when resuming download
  8414. using metalink without size tag. Reproducible only using HTTP URI.
  8415. * src/HttpResponseCommand.cc
  8416. * src/FtpNegotiationCommand.cc
  8417. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. * Release 0.15.1
  8419. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8420. Updated Bulgarian and French translations, thanks to all translators.
  8421. * po/bg.po
  8422. * po/fr.po
  8423. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8424. Bump up version number to 0.15.1
  8425. * configure.ac
  8426. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Avoid repeated call of gettimeofday() when calculating speed.
  8428. * src/SpeedCalc.cc
  8429. * src/SpeedCalc.h
  8430. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8431. Removed writable check when socket's send buffer is full in BitTorrent
  8432. downloads to lower CPU usage.
  8433. * src/PeerInteractionCommand.cc
  8434. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8435. Fixed broken gzip inflation.
  8436. Turn off segmented downloading if gzip content is smaller than or equal
  8437. to 1MiB and inflate the data on the fly, because HTTP response header
  8438. doesn't contain the length of inflated file we can't determin where
  8439. the chunk of data should be written.
  8440. On the other hand, if gzip content is larger than 1MB, then turn off
  8441. on the fly inflation, because some servers returns "content-type: gzip"
  8442. for *.tgz, *.gz files.
  8443. * src/DownloadCommand.cc
  8444. * src/HttpResponseCommand.cc
  8445. * src/HttpResponseCommand.h
  8446. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8447. Applied tizianomueller's patch to fix compile error.
  8448. * test/BitfieldManTest.cc
  8449. * test/BtRequestMessageTest.cc
  8450. * test/DefaultBtContextTest.cc
  8451. * test/DefaultDiskWriterTest.cc
  8452. * test/DefaultPieceStorageTest.cc
  8453. * test/HttpHeaderProcessorTest.cc
  8454. * test/HttpResponseTest.cc
  8455. * test/Metalink2RequestGroupTest.cc
  8456. * test/MetalinkParserControllerTest.cc
  8457. * test/MetalinkProcessorTest.cc
  8458. * test/PeerSessionResourceTest.cc
  8459. * test/UtilTest.cc
  8460. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. * Release 0.15.0
  8462. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8463. Reordered src files in POTFILES.in so that usage text appears first.
  8464. * po/POTFILES.in
  8465. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8466. Bump up version number to 0.15.0
  8467. * configure.ac
  8468. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8469. Added Bulgarian translation.
  8470. Updated Catalan, Spanish, French and Japanese translations.
  8471. Thanks to all translators.
  8472. * po/LINGUAS
  8473. * po/bg.po
  8474. * po/ca.po
  8475. * po/es.po
  8476. * po/fr.po
  8477. * po/ja.po
  8478. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Updated feature list. Added libz for dependency section.
  8480. Added a description about unit testing using CppUnit.
  8481. * README
  8482. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. Added a test for libz. Quoted where it is necessary.
  8484. * build_test.sh
  8485. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8486. Added GZip to `Enabled Features' list.
  8487. * src/FeatureConfig.cc
  8488. * src/FeatureConfig.h
  8489. * test/FeatureConfigTest.cc
  8490. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8491. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8492. the transfer has not yet started.
  8493. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8494. * src/SegmentMan.cc
  8495. * src/SegmentMan.h
  8496. * test/SegmentManTest.cc
  8497. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Cache last calculated average download/upload speed.
  8499. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8500. cached value.
  8501. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8502. * src/PeerStat.h
  8503. * src/SpeedCalc.cc
  8504. * src/SpeedCalc.h
  8505. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8506. Call parseUrl directly.
  8507. * src/Request.cc (resetUrl)
  8508. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8509. Supported absolute/relative path in Location header field.
  8510. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8511. * src/HttpHeader.cc
  8512. * src/HttpHeader.h
  8513. * src/HttpResponse.cc
  8514. * src/HttpSkipResponseCommand.cc
  8515. * src/Request.cc
  8516. * test/HttpHeaderTest.cc
  8517. * test/HttpResponseTest.cc
  8518. * test/RequestTest.cc
  8519. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8520. Changed help text for --load-cookie option.
  8521. * doc/aria2c.1.txt
  8522. * src/usage_text.h
  8523. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8524. Regenerated test/Makefile.in to remove stale ChangeLog.
  8525. * test/Makefile.in
  8526. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8527. Updated po files.
  8528. * po/aria2c.pot
  8529. * po/*.po
  8530. * po/*.gmo
  8531. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8532. Bump up version number to 0.15.0b
  8533. * configure.ac
  8534. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8535. Externalize messages.
  8536. * src/RequestGroupMan.cc
  8537. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8538. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8539. Use File::exists() instead of File::isFile() to allow non-regular file
  8540. such as block special files.
  8541. * src/AbstractDiskWriter.cc
  8542. * src/MultiDiskWriter.cc
  8543. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8545. * src/gai_strerror.h
  8546. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. Fixed compile error. Thanks gknauf for the patch.
  8548. * src/asctime_r.c
  8549. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. Included asctime_r.h from a2time.h.
  8551. * src/a2time.h
  8552. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Added a message "aria2 doesn't verify signature" to log message when
  8554. signature file is saved.
  8555. * src/RequestGroupMan.cc
  8556. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Added the ability to save signature when download is completed if
  8558. signature is available. The filename of signature file is the path to
  8559. download file followed by ".sig". If it already exists, then signature
  8560. will not be saved.
  8561. * src/RequestGroupMan.cc
  8562. * src/Signature.cc
  8563. * test/SignatureTest.cc
  8564. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8565. Updated the descriptions for --bt-seed-unverified.
  8566. * doc/aria2c.1
  8567. * doc/aria2c.1.html
  8568. * doc/aria2c.1.txt
  8569. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8570. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8571. that this is not going to verify files using piece hashes.
  8572. * src/HelpItemFactory.cc
  8573. * src/OptionHandlerFactory.cc
  8574. * src/RequestGroup.cc
  8575. * src/option_processing.cc
  8576. * src/prefs.cc
  8577. * src/prefs.h
  8578. * src/usage_text.h
  8579. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8580. Added the ability to retrieve signature from Metalink file.
  8581. A retrieved signature is stored in Signature class and it is held by
  8582. DownloadContext class. Note that aria2 doesn't verify signature.
  8583. * src/DownloadContext.cc
  8584. * src/DownloadContext.h
  8585. * src/Makefile.am
  8586. * src/Makefile.in
  8587. * src/Metalink2RequestGroup.cc
  8588. * src/MetalinkEntry.cc
  8589. * src/MetalinkEntry.h
  8590. * src/MetalinkParserController.cc
  8591. * src/MetalinkParserController.h
  8592. * src/MetalinkParserStateMachine.cc
  8593. * src/MetalinkParserStateMachine.h
  8594. * src/Signature.cc
  8595. * src/Signature.h
  8596. * src/SignatureMetalinkParserState.cc
  8597. * src/SignatureMetalinkParserState.h
  8598. * src/VerificationMetalinkParserState.cc
  8599. * src/VerificationMetalinkParserState.h
  8600. * test/Metalink2RequestGroupTest.cc
  8601. * test/MetalinkParserControllerTest.cc
  8602. * test/MetalinkProcessorTest.cc
  8603. * test/test.xml
  8604. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Close DiskAdaptor after renaming file.
  8606. * src/RequestGroup.cc
  8607. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8608. Corrected indentation
  8609. * src/DefaultBtProgressInfoFile.cc
  8610. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8611. Moved the calls of std::ios::exceptions() inside of try-catch block
  8612. because if an error occurred in constructor of std::fstream, then
  8613. exception is thrown immediately when std::ios::exceptions() is called
  8614. which results unhandled exception and aria2c aborts.
  8615. * src/DefaultBtProgressInfoFile.cc
  8616. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8617. Added the test for the previous change in DefaultBtContext.cc
  8618. * test/DefaultBtContextTest.cc
  8619. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8620. Fixed the bug that causes infinite loop when the number of pieces are
  8621. fewer than allowed fast set size which is 10 by default.
  8622. * src/DefaultBtContext.cc
  8623. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8624. Updated the descriptions for -j, -s. Added --bt-seed.
  8625. * doc/aria2c.1
  8626. * doc/aria2c.1.html
  8627. * doc/aria2c.1.txt
  8628. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8629. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8630. aria2 seeds previously downloaded files without validating piece hashs.
  8631. * src/HelpItemFactory.cc
  8632. * src/OptionHandlerFactory.cc
  8633. * src/RequestGroup.cc
  8634. * src/option_processing.cc
  8635. * src/prefs.cc
  8636. * src/prefs.h
  8637. * src/usage_text.h
  8638. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8639. Updated DESCRIPTION of man page.
  8640. * doc/aria2c.1
  8641. * doc/aria2c.1.html
  8642. * doc/aria2c.1.txt
  8643. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8644. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8645. Don't define `struct addrinfo' when __sun is defined.
  8646. * src/getaddrinfo.h
  8647. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8648. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8649. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8650. second argument is of type `struct _stati64'. Otherwise it is defined as
  8651. `struct stat'.
  8652. * src/AbstractDiskWriter.cc
  8653. * src/File.cc
  8654. * src/File.h
  8655. * src/a2io.h
  8656. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8657. Fixed the compile error in hurd-i386
  8658. See the original bug report:
  8659. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8660. * src/a2io.h
  8661. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8662. Code cleanup.
  8663. * src/PeerAbstractCommand.cc
  8664. * src/PeerAbstractCommand.h
  8665. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8666. Removed TransferEncoding.
  8667. * src/DownloadCommand.cc
  8668. * src/DownloadCommand.h
  8669. * src/HttpResponseCommand.cc
  8670. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8671. Updated po files.
  8672. * po/aria2c.pot
  8673. * po/*.po
  8674. * po/*.gmo
  8675. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8676. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8677. * src/A2STR.cc
  8678. * src/A2STR.h
  8679. * src/ChunkedDecoder.cc
  8680. * src/ChunkedDecoder.h
  8681. * src/ChunkedEncoding.cc: Removed
  8682. * src/ChunkedEncoding.h: Removed
  8683. * src/DownloadCommand.cc
  8684. * src/DownloadCommand.h
  8685. * src/HttpDownloadCommand.cc
  8686. * src/HttpResponse.cc
  8687. * src/HttpResponse.h
  8688. * src/HttpResponseCommand.cc
  8689. * src/HttpSkipResponseCommand.cc
  8690. * src/HttpSkipResponseCommand.h
  8691. * src/Makefile.am
  8692. * src/TransferEncoding.h: Removed
  8693. * test/ChunkedDecoderTest.cc
  8694. * test/ChunkedEncodingTest.cc: Removed
  8695. * test/HttpResponseTest.cc
  8696. * test/Makefile.am
  8697. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8698. Use append instead of insert.
  8699. * src/GZipDecoder.cc
  8700. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8701. Updated doc
  8702. * src/Decoder.h
  8703. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8704. Updated usage text for -s option.
  8705. * src/usage_text.h
  8706. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8707. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8708. * src/Request.cc
  8709. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8710. Cleaned up configure.ac.
  8711. * configure.ac
  8712. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8713. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8714. AC_ARG_ENABLE.
  8715. * configure.ac
  8716. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8717. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8718. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8719. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8720. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8721. fly and writes decoded data to a local disk.
  8722. * README
  8723. * README.html
  8724. * configure.ac
  8725. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8726. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8727. * m4/libz.m4
  8728. * src/Decoder.h
  8729. * src/DownloadCommand.cc
  8730. * src/DownloadCommand.h
  8731. * src/Exception.h
  8732. * src/GZipDecoder.cc
  8733. * src/GZipDecoder.h
  8734. * src/HttpHeader.cc
  8735. * src/HttpHeader.h
  8736. * src/HttpRequest.cc
  8737. * src/HttpRequest.h
  8738. * src/HttpResponse.cc
  8739. * src/HttpResponse.h
  8740. * src/HttpResponseCommand.cc
  8741. * src/Makefile.am
  8742. * test/GZipDecoderTest.cc
  8743. * test/HttpRequestTest.cc
  8744. * test/HttpResponseTest.cc
  8745. * test/Makefile.am
  8746. * test/Makefile.in
  8747. * test/gzip_decode_test.gz
  8748. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Clarified usage of -j option.
  8750. * src/usage_text.h
  8751. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. Disabled getting size from the response of RETR.
  8753. If SIZE command failed, then disable resuming and segmented downloading.
  8754. * src/FtpConnection.cc
  8755. * src/FtpConnection.h
  8756. * src/FtpNegotiationCommand.cc
  8757. * src/FtpNegotiationCommand.h
  8758. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8759. Use digits to find first byte of file size, which makes the intention
  8760. of the code clearer.
  8761. * src/FtpConnection.cc
  8762. Don't call validateTotalLength() when size is 0.
  8763. * src/FtpNegotiationCommand.cc
  8764. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8765. Updated po files.
  8766. * po/aria2c.pot
  8767. * po/*.gmo
  8768. * po/*.po
  8769. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8770. Clarified usage text for --split option.
  8771. * src/usage_text.h
  8772. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8773. Bump up version number to 0.15.0dev. "dev" means "development"
  8774. version, which means I started the development of the next release!
  8775. * src/configure.ac
  8776. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8777. If FTP server returns negative response with REST raw command and
  8778. requested range is not 0, throw exception. If requested range is 0,
  8779. continue download a file from 0 byte.
  8780. * src/FtpNegotiationCommand.cc
  8781. * src/FtpNegotiationCommand.h
  8782. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. Supported FTP server which don't recognize SIZE raw command.
  8784. If SIZE raw command is failed, aria2 will try to get file size
  8785. from the response of RETR raw command. If both attempts are failed,
  8786. then resuming and segmented downloading are disabled.
  8787. * src/FtpConnection.cc
  8788. * src/FtpConnection.h
  8789. * src/FtpNegotiationCommand.cc
  8790. * src/FtpNegotiationCommand.h
  8791. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8792. * Release 0.14.0+1
  8793. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8794. Bump up version number to 0.14.0+1
  8795. * src/configure.ac
  8796. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. Fixed the code that refers static member variable from non-static
  8798. context.
  8799. * src/DefaultPeerStorage.cc
  8800. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8801. * Release 0.14.0
  8802. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. Added build test script
  8804. * build_test.sh
  8805. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8806. Updated ja.po
  8807. * src/ja.po
  8808. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8809. Bump up version number to 0.14.0
  8810. * src/configure.ac
  8811. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8812. Updated ja.po and fr.po. Great thanks for french translators and
  8813. Sebastien WILLEMIJNS.
  8814. * po/fr.po
  8815. * po/ja.po
  8816. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8817. Added configure option to enable/disable epoll support.
  8818. * configure.ac
  8819. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8820. Updated man page.
  8821. * doc/aria2c.1.txt
  8822. * doc/aria2c.1
  8823. * doc/aria2c.1.html
  8824. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8825. Added missing default value '5' to the usage of --split option.
  8826. * src/HelpItemFactory.cc
  8827. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8828. Filled up pieces based on the number of missing blocks, rather than
  8829. simplay the number of piece * block length.
  8830. * src/BtRequestFactory.h
  8831. * src/DefaultBtInteractive.cc
  8832. * src/DefaultBtInteractive.h
  8833. * src/DefaultBtRequestFactory.cc
  8834. * src/DefaultBtRequestFactory.h
  8835. * src/Piece.cc
  8836. * src/Piece.h
  8837. * test/BitfieldManTest.cc
  8838. * test/DefaultBtRequestFactoryTest.cc
  8839. * test/MockBtRequestFactory.h
  8840. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8841. Made _epEvents a member variable.
  8842. * src/DownloadEngine.cc
  8843. * src/DownloadEngine.h
  8844. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Cancel download if http redirect is bounded more than 20 times.
  8846. * src/AbstractCommand.cc
  8847. * src/HttpSkipResponseCommand.cc
  8848. * src/Request.cc
  8849. * src/Request.h
  8850. * test/RequestTest.cc
  8851. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8852. Fixed unhandled exception(removed keyword `new').
  8853. * src/SocketCore.cc (initEPOLL)
  8854. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8855. Removed visit(const MetaEntry*)
  8856. * src/MetaEntryVisitor.h:
  8857. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8858. and made them virtual.
  8859. * src/BencodeVisitor.h
  8860. * src/BencodeVisitor.cc
  8861. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. Updated po files.
  8863. * po/aria2c.pot
  8864. * po/*.po
  8865. * po/*.gmo
  8866. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8868. the number of socket to watch out.
  8869. * src/PeerInteractionCommand.cc
  8870. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8871. When there is not enough space in disk when writing a chunk of data,
  8872. aria2 now prints the message to the console to warn user and aborts
  8873. its download. Not all downloads are canceled because some downloads
  8874. may use another disk or partition. BUG#1640332
  8875. * src/AbstractDiskWriter.cc
  8876. * src/PeerAbstractCommand.cc
  8877. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8878. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8879. setHaltRequested(true) to cancel download.
  8880. * src/PeerInteractionCommand.h
  8881. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8882. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8883. socket from int to sock_t as sockets are unsigned in Windows.
  8884. For AsyncNameResolver, DownloadEngine, I did additional modification
  8885. for the portion of the code changed according to epoll support.
  8886. I defined sock_t in a2netcompat.h to use sock_t without including
  8887. SocketCore.h.
  8888. * src/AsyncNameResolver.cc
  8889. * src/AsyncNameResolver.h
  8890. * src/DownloadEngine.cc
  8891. * src/DownloadEngine.h
  8892. * src/SocketCore.cc
  8893. * src/SocketCore.h
  8894. * src/a2netcompat.h
  8895. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8897. changes in the patch were applied.
  8898. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8899. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8900. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8901. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8902. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8903. a2io.h and common.h were modified.
  8904. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8905. MinGW.
  8906. * src/common.h: Changed off_t to 64 bit in MinGW.
  8907. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8908. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8909. only a2netcompat.h is modified.
  8910. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8911. directives.
  8912. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8914. only gai_strerror.h is modified.
  8915. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8916. winsock errors in MinGW.
  8917. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8918. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8919. follow sources are applied.
  8920. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8921. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8922. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8923. I included locale.h from Platform.cc.
  8924. * src/main.cc: Moved common setup/teardown code to Platform class.
  8925. * test/AllTest.cc: Use Platform class.
  8926. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8927. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8928. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8929. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8930. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8931. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8932. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8933. aria2-0.13.2+1-mingw-2.patch.
  8934. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8935. systems which don't have termious.h. I moved the directive inside of
  8936. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8937. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8938. anyway.
  8939. * src/asctime_r.h
  8940. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8941. I added 2nd argument to the prototype declaration.
  8942. * src/StringFormat.cc: Get rid of vasprintf.
  8943. * src/getaddrinfo.h: Fixed constants.
  8944. * configure.ac: Added the check for asctime_r function.
  8945. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8946. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8947. Added writable test for Socket when the sending message is in progress.
  8948. Usually the sending message is piece message. Without wriable check,
  8949. upload latency is dropped to more than 1sec.
  8950. * src/PeerInteractionCommand.cc
  8951. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8952. Create only requested files and files which shares a piece with
  8953. requested file in multi-torrent downloads. Directory structures are
  8954. also created in the same rule.
  8955. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8956. DiskWriterEntry as in the previous implementation.
  8957. * src/MultiDiskWriter.cc
  8958. * src/MultiFileAllocationIterator.cc
  8959. * src/MultiFileAllocationIterator.h
  8960. * test/MultiFileAllocationIteratorTest.cc
  8961. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8962. Commented out -lprofiler
  8963. * src/Makefile.am
  8964. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8965. Bump up version number to 0.14.0b.
  8966. * src/configure.ac
  8967. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. Actively establish connection to peers in seeding, when peer cache
  8969. is not full and max upload speed limit is not reached.
  8970. * src/ActivePeerConnectionCommand.cc
  8971. * src/ActivePeerConnectionCommand.h
  8972. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8974. to make room more fleshy, recently found peers.
  8975. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8976. it.
  8977. * src/DefaultPeerStorage.cc
  8978. * test/DefaultPeerStorageTest.cc
  8979. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Returns cached data only when the previous receiveHandshake() is called
  8981. with peek = true.
  8982. * src/PeerConnection.cc (receiveHandshake)
  8983. * src/PeerConnection.h (receiveHandshake)
  8984. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8985. Changed default value of -s option from 1 to 5.
  8986. Also max value of -s option is changed from 5 to 16.
  8987. * src/HelpItemFactory.cc
  8988. * src/OptionHandlerFactory.cc
  8989. * src/option_processing.cc
  8990. * src/usage_text.h
  8991. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Changed -s options behavior. Now it means the number of connections
  8993. made simultaneously in each http/ftp download.
  8994. If 1 URL is specified, the behavior is the same with old implementation.
  8995. If -s N is given and more than N URLs are specified, first N URLs are
  8996. used and remaining URLs are used for backup. If less than N URLs are
  8997. specified, some of URLs are used more than once so that totally N
  8998. connections are made simultaneously.
  8999. * src/main.cc
  9000. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9001. Included missing iosfwd or ostream header.
  9002. * src/RequestGroupMan.cc
  9003. * src/TaggedItem.cc
  9004. * src/TaggedItem.h
  9005. * src/Util.cc
  9006. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9007. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9008. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9009. * src/HttpConnection.cc: Included missing sstream.
  9010. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. Added --bt-max-open-files option.
  9012. * src/DefaultPieceStorage.cc
  9013. * src/HelpItemFactory.cc
  9014. * src/MultiDiskAdaptor.cc
  9015. * src/MultiDiskAdaptor.h
  9016. * src/OptionHandlerFactory.cc
  9017. * src/option_processing.cc
  9018. * src/prefs.cc
  9019. * src/prefs.h
  9020. * src/usage_text.h
  9021. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9022. Fixed the bug that aria2 aborts when a path to a directory is given
  9023. in command-line.
  9024. * src/ProtocolDetector.cc
  9025. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9026. Limited the number files opened in each BitTorrent download. The default
  9027. value is 100. The option to change this value will be added.
  9028. * src/MultiDiskAdaptor.cc
  9029. * src/MultiDiskAdaptor.h
  9030. * src/MultiFileAllocationIterator.cc
  9031. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9032. Fixed the bug that HTTP downloads don't start with old libraries.
  9033. * src/HttpHeaderProcessor.cc
  9034. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. Use empty() instead of size() > 0.
  9036. * src/HttpConnection.cc
  9037. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. Drop connection if the incoming peer ID is the same with localhost's
  9039. one. The previous implementation drops connection when incoming peer's
  9040. IP address is the same with localhost's one.
  9041. * src/PeerListenCommand.cc
  9042. * src/DefaultBtInteractive.cc
  9043. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9044. Returns cached data without checking whether socket is readable
  9045. if the cache is available.
  9046. * src/PeerConnection.cc (receiveHandshake)
  9047. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9048. Included stdint.h
  9049. * src/common.h
  9050. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Removed duplicate HAVE_GETTIMEOFDAY
  9052. * src/Makefile.am
  9053. * src/Makefile.in
  9054. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9055. Use interval as a minInterval when minInterval is not supplied.
  9056. * src/DefaultBtAnnounce.cc
  9057. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9058. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9059. attempt is failed, then 2nd attempt get kicked out more quickly.
  9060. And it is now static const member of DefaultBtAnnounce.
  9061. * src/DefaultBtAnnounce.h
  9062. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9064. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9065. * src/ActivePeerConnectionCommand.cc
  9066. * src/BtConstants.h
  9067. * src/BtRuntime.h
  9068. * src/DHTGetPeersCommand.cc
  9069. * src/DefaultBtAnnounce.cc
  9070. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9071. BtRuntime::MAX_PEERS.
  9072. * src/DefaultPeerStorage.h
  9073. * src/InitiatorMSEHandshakeCommand.cc
  9074. * src/PeerInitiateConnectionCommand.cc
  9075. * src/PeerInteractionCommand.cc
  9076. * src/PeerReceiveHandshakeCommand.cc
  9077. * src/TrackerWatcherCommand.cc
  9078. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9079. Always Connect to _numNewConnection
  9080. * src/ActivePeerConnectionCommand.cc
  9081. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. Made `begin' unsigned int.
  9083. * src/GrowSegment.h
  9084. * src/Piece.cc
  9085. * src/Piece.h
  9086. * src/PiecedSegment.cc
  9087. * src/PiecedSegment.h
  9088. * src/Segment.h
  9089. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9090. Calculate piece hash when data is arrived if the data is arrived in
  9091. order. This removes additional read operation for hash calculation.
  9092. If the data is arrived in out of order, the hash is calucated when the
  9093. piece is completed. This is the same behavior as the old implementation.
  9094. * src/BtPieceMessage.cc
  9095. * src/DefaultBtProgressInfoFile.cc
  9096. * src/DefaultPieceStorage.cc
  9097. * src/DownloadCommand.cc
  9098. * src/DownloadCommand.h
  9099. * src/DownloadEngine.cc
  9100. * src/GrowSegment.cc
  9101. * src/GrowSegment.h
  9102. * src/Piece.cc
  9103. * src/Piece.h
  9104. * src/PiecedSegment.cc
  9105. * src/PiecedSegment.h
  9106. * src/Segment.h
  9107. * test/PieceTest.cc
  9108. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9109. Try to keep the ordering of outgoing piece message.
  9110. * src/DefaultBtMessageDispatcher.cc
  9111. (DefaultBtMessageDispatcher::sendMessages)
  9112. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9113. Fixed busy loop when error/hup epoll events occur.
  9114. * src/AbstractCommand.cc
  9115. * src/PeerAbstractCommand.cc
  9116. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Added --bt-request-peer-speed-limit option, which was a constant
  9118. SLOW_SPEED_THRESHOLD.
  9119. * src/ActivePeerConnectionCommand.cc
  9120. * src/ActivePeerConnectionCommand.h
  9121. * src/BtConstants.h
  9122. * src/HelpItemFactory.cc
  9123. * src/OptionHandlerFactory.cc
  9124. * src/PeerReceiveHandshakeCommand.cc
  9125. * src/option_processing.cc
  9126. * src/prefs.cc
  9127. * src/prefs.h
  9128. * src/usage_text.h
  9129. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9130. Removed repeated call of getTopDirPath(). Instead, call it once and
  9131. cache the result.
  9132. * src/MultiDiskAdaptor.cc
  9133. * src/MultiDiskAdaptor.h
  9134. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9135. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9136. Fixed compile error on debian etch.
  9137. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9138. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9139. it is undefined.
  9140. * src/Util.cc (ULLONG_MAX)
  9141. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9142. Added epoll support. Use epoll if it is available. If not, use select.
  9143. When async dns is enabled in compile time, epoll support is enabled
  9144. only when aria2 is built with c-ares. This condition statement is
  9145. defined in a2io.h.
  9146. Currently aria2 supports both c-ares and ares, but ares is maintained
  9147. for quite a while and debian already has c-ares package, ares support
  9148. will be dropped in the future version.
  9149. * configure.ac
  9150. * src/AbstractCommand.cc
  9151. * src/AsyncNameResolver.cc
  9152. * src/AsyncNameResolver.h
  9153. * src/Command.cc
  9154. * src/Command.h
  9155. * src/DownloadEngine.cc
  9156. * src/DownloadEngine.h
  9157. * src/PeerAbstractCommand.cc
  9158. * src/SocketCore.cc
  9159. * src/SocketCore.h
  9160. * src/a2io.h
  9161. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9162. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9163. directive.
  9164. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Do not do write operation to /dev/null file.
  9166. * src/LogFactory.cc
  9167. * src/SimpleLogger.cc
  9168. Replaced vasprintf with vsnprintf
  9169. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9170. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. * src/BtRequestMessage.cc
  9172. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9173. for segmentation fault caused by previous commit.
  9174. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9175. Reduced the usage of gettimeofday().
  9176. * src/DefaultBtMessageDispatcher.cc
  9177. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9178. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9179. * src/RequestSlot.cc
  9180. * src/RequestSlot.h
  9181. (RequestSlot::isTimeout)
  9182. Made RequestSlot have a reference to Piece object to avoid find
  9183. Piece repeatedly.
  9184. * src/DefaultBtMessageDispatcher.cc
  9185. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9186. * src/RequestSlot.cc
  9187. * src/RequestSlot.h
  9188. (RequestSlot::getPiece)
  9189. * test/DefaultBtMessageDispatcherTest.cc
  9190. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9191. * src/TimeA2.cc
  9192. * src/TimeA2.h
  9193. (Time::difference): New function.
  9194. (Time::elapsed): Done optimization.
  9195. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9196. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9197. directive.
  9198. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9199. * src/option_processing.cc: Added missing `defined' keyword to #if
  9200. directive.
  9201. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9202. Bump up version number to 0.13.2+1
  9203. * src/configure.ac
  9204. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. Refactored broken outstanding piece handling.
  9206. * src/DefaultPieceStorage.cc
  9207. * src/DefaultPieceStorage.h
  9208. * src/Piece.cc
  9209. * src/Piece.h
  9210. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9211. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9212. name collision of static variable and predefined macro.
  9213. * src/BtContext.cc
  9214. * src/BtContext.h
  9215. * src/CookieBoxFactory.cc
  9216. * src/CookieBoxFactory.h
  9217. * src/CookieParser.cc
  9218. * src/CookieParser.h
  9219. * src/DefaultBtContext.cc
  9220. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9221. * src/RequestGroup.cc
  9222. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9223. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9224. * Release 0.13.2
  9225. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9226. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9227. * po/fr.po
  9228. * po/ja.po
  9229. * po/aria2c.pot
  9230. * po/*.po
  9231. * po/*.gmo
  9232. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9233. Bump up version number to 0.13.2
  9234. * src/configure.ac
  9235. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9236. Refactord.
  9237. * src/RequestGroupMan.cc
  9238. (removeStoppedGroup)
  9239. (fillRequestGroupFromReserver)
  9240. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9241. Fixed compile error on Ubuntu.
  9242. * src/BtPieceMessage.cc
  9243. * src/MessageDigestHelper.cc
  9244. * src/Util.cc
  9245. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. Fixed compile error when configured with --disable-bittorrent
  9247. * test/DownloadHandlerFactoryTest.cc
  9248. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9249. Done make update-po
  9250. * po/aria2c.pot
  9251. * po/*.po
  9252. * po/*.gmo
  9253. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9254. Bump up version number to 0.13.2rc.
  9255. * src/configure.ac
  9256. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Made option name bold. Updated SYNOPSIS to make it more readable.
  9258. * doc/aria2c.1.txt
  9259. * doc/aria2c.1
  9260. * doc/aria2c.1.html
  9261. * src/version_usage.cc
  9262. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9263. Refactored. Use std::string instead of size and char*.
  9264. * Data.cc
  9265. * Data.h
  9266. * test/Data.cc
  9267. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. Added trimSelf(). Rewritten trim() to use trimSelf().
  9269. * Util.cc
  9270. * Util.h
  9271. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9273. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9274. Fixed compile error when configured with --disable-metalink.
  9275. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9276. * test/FeatureConfigTest.cc
  9277. * test/DownloadHandlerFactoryTest.cc
  9278. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9279. Fixed compile error when configured with --without-gnutls
  9280. --without-openssl
  9281. * src/main.cc
  9282. * test/DefaultBtProgressInfoFileTest.cc
  9283. * test/SegmentManTest.cc
  9284. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9285. Fixed compile error with OpenSSL.
  9286. * src/IteratableChunkChecksumValidator.cc
  9287. * src/LibsslDHKeyExchange.h
  9288. * src/MessageDigestHelper.cc
  9289. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9290. Revert the default value of --max-concurrent-downloads to 5.
  9291. Revert the default value of --metalink-servers to 5.
  9292. Man pages was also updated.
  9293. * src/option_processing.cc
  9294. * doc/aria2c.1.txt
  9295. * doc/aria2c.1.html
  9296. * doc/aria2c.1
  9297. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9298. Returns const reference:
  9299. DownloadContext::getPieceHash, DownloadContext::getName,
  9300. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9301. BtContext::getInfoHashAsString,
  9302. * src/BtContext.h
  9303. * src/DefaultBtContext.cc
  9304. * src/DefaultBtContext.h
  9305. * src/DownloadContext.h
  9306. * src/SingleFileDownloadContext.h
  9307. * test/MockBtContext.h
  9308. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. * src/RequestGroup.h (getDir): Removed.
  9310. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9311. Returns const reference. The internal urlencode function was optimized
  9312. a little bit.
  9313. * src/Request.cc
  9314. * src/Request.h
  9315. * src/HttpRequest.cc
  9316. * src/HttpRequest.h
  9317. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9318. Defined option name and possible values as std::string to reduce
  9319. temporary string object creation in runtime.
  9320. * src/HelpItemFactory.cc
  9321. * src/LogFactory.cc
  9322. * src/Option.cc
  9323. * src/OptionHandlerFactory.cc
  9324. * src/option_processing.cc
  9325. * src/prefs.cc
  9326. * src/prefs.h
  9327. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. Return const reference.
  9329. * src/DownloadHandlerConstants.cc
  9330. * src/DownloadHandlerConstants.h
  9331. (getMetalinkExtensions)
  9332. (getMetalinkContentTypes)
  9333. (getBtExtensions)
  9334. (getBtContentTypes)
  9335. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9336. * src/HttpHeader.cc (get): Rewritten.
  9337. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9338. Make HttpHeader::getFirst(...) return const reference.
  9339. * src/HttpHeader.cc
  9340. * src/HttpHeader.h
  9341. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9342. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9343. it with V_TRUE.
  9344. * src/DefaultPieceStorage.cc
  9345. * src/DownloadCommand.cc
  9346. * src/FtpNegotiationCommand.cc
  9347. * src/HttpRequest.cc
  9348. * src/InitiateConnectionCommand.cc
  9349. * src/RequestGroup.cc
  9350. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9351. Made Option::get(...) return const reference of std::string.
  9352. * src/Option.cc
  9353. * src/Option.h
  9354. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9355. Replaced std:copy with insert.
  9356. * src/DefaultBtMessageDispatcher.cc
  9357. * src/DefaultPieceStorage.cc
  9358. * src/DownloadEngineFactory.cc
  9359. * src/RequestGroup.cc
  9360. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9361. Included SocketCore.h to fix compiler warning.
  9362. * src/InitiateConnectionCommand.cc
  9363. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9364. Put piece selection strategy algorithm to RarestPieceSelector class,
  9365. Added a switch to choose whether randomized selection so that unit
  9366. tests emit same results in, possibly, win32.
  9367. * src/DefaultPieceStorage.cc
  9368. * src/DefaultPieceStorage.h
  9369. * src/RarestPieceSelector.cc
  9370. * src/RarestPieceSelector.h
  9371. * test/DefaultPieceStorageTest.cc
  9372. * test/RarestPieceSelectorTest.cc
  9373. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9374. Don't pool connection if HTTP proxy is enabled.
  9375. * src/FtpFinishDownloadCommand.cc
  9376. * src/FtpNegotiationCommand.cc
  9377. * src/HttpSkipResponseCommand.cc
  9378. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9379. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9380. * src/AbstractCommand.cc
  9381. * src/AbstractCommand.h
  9382. * src/ActivePeerConnectionCommand.cc
  9383. * src/FtpInitiateConnectionCommand.cc
  9384. * src/HttpInitiateConnectionCommand.cc
  9385. * src/InitiateConnectionCommandFactory.cc
  9386. * src/PeerAbstractCommand.cc
  9387. * src/PeerAbstractCommand.h
  9388. * src/PeerInitiateConnectionCommand.cc
  9389. * src/TrackerWatcherCommand.cc
  9390. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9391. Sort RequestSlot in ascending order and manipulate them using
  9392. lower_bound.
  9393. * src/DefaultBtMessageDispatcher.cc
  9394. * src/DefaultBtMessageDispatcher.h
  9395. (getMessageQueue): Added const qualifier.
  9396. (getRequestSlots): Added const qualifier.
  9397. (sendMessages): Use empty() instead of size().
  9398. (doCancelSendingPieceAction): Use HandleEvent object.
  9399. (doAbortOutstandingRequestAction): Rewritten.
  9400. (doChokedAction): Rewritten.
  9401. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9402. (isOutstandingRequest): Rewritten.
  9403. (getOutstandingRequest): Rewritten.
  9404. (removeOutstandingRequest): Rewritten.
  9405. (addOutstandingRequest): Rewritten.
  9406. * src/RequestSlot.cc
  9407. * src/RequestSlot.h
  9408. (operator=): Rewritten.
  9409. (operator!=): New function.
  9410. (operator<): New function.
  9411. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9412. * src/DefaultBtRequestFactory.cc
  9413. (doChokedAction): Rewritten.
  9414. (removeCompletedPiece): Rewritten.
  9415. (removeTargetPiece): Rewritten.
  9416. (createRequestMessages): Added the debug log.
  9417. (createRequestMessagesOnEndGame: Added the debug log.
  9418. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9419. Added the debug log message.
  9420. * src/BtPieceMessage.cc (doReceivedAction)
  9421. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9423. used lower_bound to process them rather than linear search.
  9424. * src/DHTPeerAnnounceStorage.cc
  9425. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9427. peer has at least one completed piece.
  9428. * src/Peer.cc
  9429. * src/Peer.h
  9430. * src/PeerInteractionCommand.cc
  9431. * src/PeerSessionResource.cc
  9432. * src/PeerSessionResource.h
  9433. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9434. Removed unnecessary sorting
  9435. * src/DefaultPieceStorage (DefaultPieceStorage)
  9436. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9437. Rewritten the portion of the code that mangaes allowed fast indexes.
  9438. * src/PeerSessionResource.cc
  9439. * src/PeerSessionResource.h
  9440. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Removed the invalid string including '\r' from ru.po and
  9442. did make update-po.
  9443. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9444. Added --log-level and --summary-interval to man page.
  9445. * doc/aria2c.1.txt
  9446. * doc/aria2c.1.html
  9447. * doc/aria2c.1
  9448. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9449. Added --log-level option to specify log level. Log messages under
  9450. the specified level are not output. Default value is `debug'.
  9451. * src/HelpItemFactory.cc
  9452. * src/LogFactory.cc
  9453. * src/LogFactory.h
  9454. * src/Logger.h
  9455. * src/OptionHandlerFactory.cc
  9456. * src/SimpleLogger.cc
  9457. * src/SimpleLogger.h
  9458. * src/main.cc
  9459. * src/option_processing.cc
  9460. * src/prefs.h
  9461. * src/usage_text.h
  9462. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9463. Print download progress summary of all parallel downloads in specified
  9464. interval, default 60 secs. While aria2 could download several files
  9465. in parallel (see -j option), it displayed just first download progress,
  9466. and the other downloads are hidden from the users. This new feature
  9467. prints all downloads currently in-progress to the console so that you
  9468. can check the status of all downloads. The interval can be adjusted
  9469. by --summary-interval option.
  9470. The progress readout is now cut so that all fits in the one line of
  9471. console.
  9472. * src/ConsoleStatCalc.cc
  9473. * src/ConsoleStatCalc.h
  9474. * src/HelpItemFactory.cc
  9475. * src/OptionHandlerFactory.cc
  9476. * src/RequestGroupMan.cc
  9477. * src/RequestGroupMan.h
  9478. * src/main.cc
  9479. * src/option_processing.cc
  9480. * src/prefs.h
  9481. * src/usage_text.h
  9482. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9483. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9484. * src/DownloadEngine.cc (DownloadEngine)
  9485. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9487. defined.
  9488. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9489. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9490. Use erase+lower_bound+insert instead of sort.
  9491. * src/DefaultPieceStorage.cc (addPieceStats)
  9492. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9493. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9494. * src/A2STR.cc
  9495. * src/A2STR.h
  9496. * src/OptionParser.cc (parse)
  9497. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9498. Defined fake filename `[tracker.announce]' as static const std::string.
  9499. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9500. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. Defined default filename `index.html' as static const std::string
  9502. * src/SingleFileDownloadContext.cc
  9503. * src/SingleFileDownloadContext.h
  9504. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. Defined "[MEMORY]" as static const std::string.
  9506. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9507. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9508. Defined control file's version number as static const std::string.
  9509. * src/DefaultBtProgressInfoFile.cc
  9510. * src/DefaultBtProgressInfoFile.h
  9511. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Use Request::METHOD_GET
  9513. * src/RequestGroup.cc (createNextCommandWithAdj)
  9514. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9515. Defined "OK", "ERR", "INPR" as static const std::string
  9516. * src/RequestGroupMan.cc (showDownloadResults)
  9517. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9518. Defined default client used in extended handshake as static const
  9519. std::string
  9520. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9521. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9522. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9523. * src/HttpConnection.cc (eraseConfidentialInfo)
  9524. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9525. Defined default ftp user and password as static const std::string
  9526. * src/AuthConfigFactory.cc
  9527. * src/AuthConfigFactory.h
  9528. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9529. Defined strings used in netrc as static const std::string
  9530. * src/Netrc.cc
  9531. * src/Netrc.h
  9532. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. Defined HTTP status as static const std::string
  9534. * src/AbstractProxyResponseCommand.cc
  9535. * src/HttpHeader.cc
  9536. * src/HttpHeader.h
  9537. * src/HttpResponse.cc
  9538. * src/HttpResponseCommand.cc
  9539. * src/HttpSkipResponseCommand.cc
  9540. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. Defined "\r\n", "A", "I" as static const std::string
  9542. * src/A2STR.cc
  9543. * src/A2STR.h
  9544. * src/FtpConnection.cc
  9545. * src/FtpConnection.h
  9546. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9547. Added COLON_C(".") and used it in Request::parseUrl()
  9548. * src/A2STR.cc
  9549. * src/A2STR.h
  9550. * src/Request.cc (parseUrl)
  9551. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Changed the type of padName from `const std::string&' to `const char*'.
  9553. * src/MSEHandshake.cc (verifyPadLength)
  9554. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9555. Defined "sha1" as static const std::string.
  9556. * src/MetalinkParserController.cc
  9557. * src/MetalinkParserController.h
  9558. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9559. Defined message digest algorithm name as static const std::string
  9560. * src/DHTTokenTracker.cc
  9561. * src/DHTUtil.cc
  9562. * src/DefaultBtContext.cc
  9563. * src/MSEHandshake.cc
  9564. * src/MessageDigestHelper.cc
  9565. * src/Peer.cc
  9566. * src/messageDigest.cc
  9567. * src/messageDigest.h
  9568. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9569. Made string literals used in SAX parser static const std::string.
  9570. * src/FileMetalinkParserState.cc
  9571. * src/FileMetalinkParserState.h
  9572. * src/FilesMetalinkParserState.cc
  9573. * src/FilesMetalinkParserState.h
  9574. * src/InitialMetalinkParserState.cc
  9575. * src/InitialMetalinkParserState.h
  9576. * src/MetalinkMetalinkParserState.cc
  9577. * src/MetalinkMetalinkParserState.h
  9578. * src/PiecesMetalinkParserState.cc
  9579. * src/PiecesMetalinkParserState.h
  9580. * src/ResourcesMetalinkParserState.cc
  9581. * src/ResourcesMetalinkParserState.h
  9582. * src/VerificationMetalinkParserState.cc
  9583. * src/VerificationMetalinkParserState.h
  9584. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9585. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9586. * src/A2STR.cc
  9587. * src/A2STR.h
  9588. * src/File.cc
  9589. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9590. Defined static const std::string IP("ip"), PORT("port") and use them
  9591. instead of string literals.
  9592. * src/DefaultPeerListProcessor.cc
  9593. * src/DefaultPeerListProcessor.h
  9594. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9595. Made string literals for torrent file processing static const
  9596. std::string.
  9597. * src/BtContext.cc
  9598. * src/BtContext.h
  9599. * src/DefaultBtContext.cc
  9600. * src/DefaultBtContext.h
  9601. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9602. Made string literal for tracker response static const std::string
  9603. * src/BtAnnounce.cc
  9604. * src/BtAnnounce.h
  9605. * src/DefaultBtAnnounce.cc
  9606. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Use DHTMessage::T instead of "t".
  9608. * src/DHTMessageTracker.cc (messageArrived)
  9609. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9610. Made keyName static const. Made trimmed charset static const
  9611. std::string.
  9612. * src/Util.cc (getContentDispositionFilename)
  9613. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9614. Made USER_AGENT const. Made "/" static const std::string.
  9615. * src/A2STR.cc
  9616. * src/A2STR.h
  9617. * src/HttpRequest.cc
  9618. * src/HttpRequest.h
  9619. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9620. Made string listeral to static const std::string:
  9621. "Content-Range", "Content-Length"
  9622. * src/HttpHeader.cc
  9623. * src/HttpHeader.h
  9624. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9625. Made string listeral to static const std::string.
  9626. * src/HttpConnection.cc
  9627. * src/HttpHeader.cc
  9628. * src/HttpHeader.h
  9629. * src/HttpResponse.cc
  9630. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9631. Made string listeral to static const std::string.
  9632. * src/A2STR.cc
  9633. * src/A2STR.h
  9634. * src/SimpleLogger.cc
  9635. * src/SimpleLogger.h
  9636. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9637. Made string literal to static const std::string.
  9638. Rewritten CookieParser::setField.
  9639. * src/A2STR.cc
  9640. * src/A2STR.h
  9641. * src/CookieBoxFactory.cc
  9642. * src/CookieBoxFactory.h
  9643. * src/CookieParser.cc
  9644. * src/CookieParser.h
  9645. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9646. Made string literal to static const std::string
  9647. * src/DHTAbstractMessage.cc
  9648. * src/DHTAnnouncePeerMessage.cc
  9649. * src/DHTAnnouncePeerMessage.h
  9650. * src/DHTAnnouncePeerReplyMessage.cc
  9651. * src/DHTAnnouncePeerReplyMessage.h
  9652. * src/DHTFindNodeMessage.cc
  9653. * src/DHTFindNodeMessage.h
  9654. * src/DHTFindNodeReplyMessage.cc
  9655. * src/DHTFindNodeReplyMessage.h
  9656. * src/DHTGetPeersMessage.cc
  9657. * src/DHTGetPeersMessage.h
  9658. * src/DHTGetPeersReplyMessage.cc
  9659. * src/DHTGetPeersReplyMessage.h
  9660. * src/DHTMessage.cc
  9661. * src/DHTMessage.h
  9662. * src/DHTMessageFactoryImpl.cc
  9663. * src/DHTMessageReceiver.cc
  9664. * src/DHTPingMessage.cc
  9665. * src/DHTPingMessage.h
  9666. * src/DHTPingReplyMessage.cc
  9667. * src/DHTPingReplyMessage.h
  9668. * src/DHTQueryMessage.cc
  9669. * src/DHTQueryMessage.h
  9670. * src/DHTResponseMessage.cc
  9671. * src/DHTResponseMessage.h
  9672. * src/DHTUnknownMessage.cc
  9673. * src/DHTUnknownMessage.h
  9674. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9675. Made string literal to static const std::string
  9676. * src/BtChokeMessage.cc (toString)
  9677. * src/BtHaveAllMessage.cc (toString)
  9678. * src/BtHaveNoneMessage.cc (toString)
  9679. * src/BtInterestedMessage.cc (toString)
  9680. * src/BtNotInterestedMessage.cc (toString)
  9681. * src/BtUnchokeMessage.cc (toString)
  9682. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9683. Replaced "" with static const variable A2STR::NIL.
  9684. Replaced string comparison against "" with std::string::empty().
  9685. Added PROTO_* to Request class and use them as a protocol string
  9686. constant.
  9687. Made "started", "stopped", "completed" static const variable in
  9688. AnnounceList class.
  9689. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9690. Updated translations. Great thanks to translators.
  9691. * po/ca.po
  9692. * po/de.po
  9693. * po/fr.po
  9694. * po/it.po
  9695. * po/ja.po
  9696. * po/ru.po
  9697. * po/zh_CN.po
  9698. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. Updated man page; categorized options and fixed typo.
  9700. * doc/aria2c.1.txt
  9701. * doc/aria2c.1.html
  9702. * doc/aria2c.1
  9703. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9704. Removed const ref
  9705. * src/MetalinkEntry.cc (AddProtocolPreference)
  9706. * src/RequestGroup.cc (FindServerHostByHostname)
  9707. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9708. Rewritten Accept-Features handling.
  9709. * src/HttpRequestCommand.cc (createHttpRequest)
  9710. * src/a2functional.h
  9711. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9712. Changed method signature:
  9713. DHTAbstractNodeLookupTask::toEntries
  9714. * src/DHTAbstractNodeLookupTask.cc
  9715. * src/DHTAbstractNodeLookupTask.h
  9716. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9717. Changed method signature:
  9718. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9719. * src/BtContext.h
  9720. * src/DefaultBtContext.cc
  9721. * src/DefaultBtContext.h
  9722. * src/DefaultBtInteractive.cc
  9723. * test/DefaultBtContextTest.cc
  9724. * test/MockBtContext.h
  9725. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. Changed method signature:
  9727. MultiFileAllocationIterator::makeDiskWriterEntries
  9728. * src/MultiFileAllocationIterator.cc
  9729. * src/MultiFileAllocationIterator.h
  9730. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9731. Changed method sinature:
  9732. MetalinkEntry::toFileEntry,
  9733. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9734. Metalinker::queryEntry
  9735. * src/Metalink2RequestGroup.cc
  9736. * src/MetalinkEntry.cc
  9737. * src/MetalinkEntry.h
  9738. * src/MetalinkHelper.cc
  9739. * src/MetalinkHelper.h
  9740. * src/Metalinker.cc
  9741. * src/Metalinker.h
  9742. * src/main.cc
  9743. * test/MetalinkHelperTest.cc
  9744. * test/MetalinkerTest.cc
  9745. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9746. Changed method sinature:
  9747. RequestGroup::getURIs
  9748. * src/RequestGroup.cc
  9749. * src/RequestGroup.h
  9750. * test/Metalink2RequestGroupTest.cc
  9751. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9752. Changed method signature:
  9753. PeerListProcessor::extractPeer
  9754. * src/CompactPeerListProcessor.cc
  9755. * src/CompactPeerListProcessor.h
  9756. * src/DefaultBtAnnounce.cc
  9757. * src/DefaultPeerListProcessor.cc
  9758. * src/DefaultPeerListProcessor.h
  9759. * src/DelegatingPeerListProcessor.cc
  9760. * src/DelegatingPeerListProcessor.h
  9761. * src/PeerListProcessor.h
  9762. * src/UTPexExtensionMessage.cc
  9763. * test/DefaultPeerListProcessorTest.cc
  9764. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. Changed method signature:
  9766. BtRequestFactory::createRequestMessages,
  9767. BtRequestFactory::createRequestMessagesOnEndGame
  9768. * src/BtRequestFactory.h
  9769. * src/DefaultBtInteractive.cc
  9770. * src/DefaultBtRequestFactory.cc
  9771. * src/DefaultBtRequestFactory.h
  9772. * test/DefaultBtRequestFactoryTest.cc
  9773. * test/MockBtRequestFactory.h
  9774. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9775. Changed method signature:
  9776. PieceStorage::getInFlightPieces
  9777. * src/DefaultBtProgressInfoFile.cc
  9778. * src/DefaultPieceStorage.cc
  9779. * src/DefaultPieceStorage.h
  9780. * src/PieceStorage.h
  9781. * src/UnknownLengthPieceStorage.cc
  9782. * src/UnknownLengthPieceStorage.h
  9783. * test/DefaultBtProgressInfoFileTest.cc
  9784. * test/MockPieceStorage.h
  9785. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9786. Changed method signature:
  9787. PostDownloadHandler::getNextRequestGroups
  9788. Metalink2RequestGroup::generate
  9789. RequestGroup::postDownloadProcessing
  9790. * src/BtPostDownloadHandler.cc
  9791. * src/BtPostDownloadHandler.h
  9792. * src/Metalink2RequestGroup.cc
  9793. * src/Metalink2RequestGroup.h
  9794. * src/MetalinkPostDownloadHandler.cc
  9795. * src/MetalinkPostDownloadHandler.h
  9796. * src/PostDownloadHandler.h
  9797. * src/RequestGroup.cc
  9798. * src/RequestGroup.h
  9799. * src/RequestGroupMan.cc
  9800. * src/main.cc
  9801. * test/BtPostDownloadHandlerTest.cc
  9802. * test/Metalink2RequestGroupTest.cc
  9803. * test/MetalinkPostDownloadHandlerTest.cc
  9804. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Rewritten AccRequestGroup
  9806. * src/main.cc
  9807. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9808. Rewritten.
  9809. * src/TaggedItem.cc (toTagString)
  9810. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9811. Rewritten Accept-Features handling.
  9812. * src/HttpRequestCommand.cc (createHttpRequest)
  9813. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9814. Rewritten accept types handling.
  9815. * HttpRequest.cc (createRequest)
  9816. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9817. Rewritten
  9818. * src/FeatureConfig.cc (featureSummary)
  9819. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9820. Changed method signature:
  9821. PeerStorage::getActivePeers
  9822. * src/DHTPeerAnnounceEntry.cc
  9823. * src/DefaultPeerStorage.cc
  9824. * src/DefaultPeerStorage.h
  9825. * src/PeerStorage.h
  9826. * test/DefaultPeerStorageTest.cc
  9827. * test/MockPeerStorage.h
  9828. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Changed method signature:
  9830. DHTPeerAnnounceStorage::getPeers,
  9831. DHTPeerAnnounceEntry::getPeers
  9832. * src/DHTGetPeersMessage.cc
  9833. * src/DHTPeerAnnounceEntry.cc
  9834. * src/DHTPeerAnnounceEntry.h
  9835. * src/DHTPeerAnnounceStorage.cc
  9836. * src/DHTPeerAnnounceStorage.h
  9837. * test/DHTAnnouncePeerMessageTest.cc
  9838. * test/DHTPeerAnnounceEntryTest.cc
  9839. * test/DHTPeerAnnounceStorageTest.cc
  9840. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9841. Changed method signature:
  9842. NameResolver::resolve
  9843. * src/DHTEntryPointNameResolveCommand.cc
  9844. * src/InitiateConnectionCommand.cc
  9845. * src/NameResolver.cc
  9846. * src/NameResolver.h
  9847. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9848. Changed method signature:
  9849. PieceStorage::getAdvertisedPieceIndexes
  9850. * src/DefaultBtInteractive.cc
  9851. * src/DefaultPieceStorage.cc
  9852. * src/DefaultPieceStorage.h
  9853. * src/PieceStorage.h
  9854. * src/UnknownLengthPieceStorage.h
  9855. * test/MockPieceStorage.h
  9856. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9857. Changed method signature:
  9858. SegmentMan::getInFlightSegment
  9859. * src/AbstractCommand.cc
  9860. * src/SegmentMan.cc
  9861. * src/SegmentMan.h
  9862. * test/SegmentManTest.cc
  9863. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9864. Changed method signature:
  9865. DHTAbstractNodeLookupTask::getNodesFromMessage
  9866. * src/DHTAbstractNodeLookupTask.cc
  9867. * src/DHTAbstractNodeLookupTask.h
  9868. * src/DHTNodeLookupTask.cc
  9869. * src/DHTNodeLookupTask.h
  9870. * src/DHTPeerLookupTask.cc
  9871. * src/DHTPeerLookupTask.h
  9872. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9873. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9874. * src/AbstractCommand.cc
  9875. * src/BtCheckIntegrityEntry.cc
  9876. * src/BtCheckIntegrityEntry.h
  9877. * src/BtFileAllocationEntry.cc
  9878. * src/BtFileAllocationEntry.h
  9879. * src/BtSetup.cc
  9880. * src/BtSetup.h
  9881. * src/CheckIntegrityCommand.cc
  9882. * src/CheckIntegrityEntry.h
  9883. * src/ChecksumCheckIntegrityEntry.cc
  9884. * src/ChecksumCheckIntegrityEntry.h
  9885. * src/DHTSetup.cc
  9886. * src/DHTSetup.h
  9887. * src/DownloadEngine.cc
  9888. * src/FileAllocationCommand.cc
  9889. * src/FileAllocationEntry.h
  9890. * src/RequestGroup.cc
  9891. * src/RequestGroup.h
  9892. * src/RequestGroupMan.cc
  9893. * src/RequestGroupMan.h
  9894. * src/StreamCheckIntegrityEntry.cc
  9895. * src/StreamCheckIntegrityEntry.h
  9896. * src/StreamFileAllocationEntry.cc
  9897. * src/StreamFileAllocationEntry.h
  9898. * src/TrackerWatcherCommand.cc
  9899. * src/a2functional.h
  9900. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. Changed method signature:
  9902. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9903. DHTBucket::getGoodNodes,
  9904. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9905. * src/BNode.cc
  9906. * src/BNode.h
  9907. * src/DHTAbstractNodeLookupTask.cc
  9908. * src/DHTAutoSaveCommand.cc
  9909. * src/DHTBucket.cc
  9910. * src/DHTBucket.h
  9911. * src/DHTBucketRefreshTask.cc
  9912. * src/DHTFindNodeMessage.cc
  9913. * src/DHTGetPeersMessage.cc
  9914. * src/DHTRoutingTable.cc
  9915. * src/DHTRoutingTable.h
  9916. * test/BNodeTest.cc
  9917. * test/DHTBucketTest.cc
  9918. * test/DHTRoutingTableTest.cc
  9919. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9920. In piece selection functions, Pass std::deque<...> by reference rather
  9921. than returning it.
  9922. * src/BitfieldMan.cc
  9923. * src/BitfieldMan.h
  9924. * src/DefaultBtRequestFactory.cc
  9925. * src/DefaultPieceStorage.cc
  9926. * src/Piece.cc
  9927. * src/Piece.h
  9928. * test/BitfieldManTest.cc
  9929. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9930. Implemented rarest piece first piece selection strategy.
  9931. * src/AbstractBtMessage.cc
  9932. * src/AbstractBtMessage.h
  9933. * src/BitfieldMan.cc
  9934. * src/BitfieldMan.h
  9935. * src/BtBitfieldMessage.cc
  9936. * src/BtHaveAllMessage.cc
  9937. * src/BtHaveMessage.cc
  9938. * src/DefaultPieceStorage.cc
  9939. * src/DefaultPieceStorage.h
  9940. * src/PeerInteractionCommand.cc
  9941. * src/PieceStorage.h
  9942. * src/UnknownLengthPieceStorage.h
  9943. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9944. Rewritten readData and writeData.
  9945. * src/MultiDiskAdaptor.cc
  9946. * src/MultiDiskAdaptor.h
  9947. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9948. Move \n out of the message "Usage: ...".
  9949. * src/version_usage.cc
  9950. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9951. Bump up version number to 0.13.2b.
  9952. * configure.ac
  9953. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9954. Added const qualifier to argument Exception& e.
  9955. * src/Logger.h
  9956. * src/SimpleLogger.cc
  9957. * src/SimpleLogger.h
  9958. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9959. Pool connection when CWD, SIZE command fails.
  9960. * src/FtpNegotiationCommand.cc
  9961. * src/FtpNegotiationCommand.h
  9962. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9963. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9964. * src/HttpResponseCommand.cc
  9965. * src/HttpSkipResponseCommand.cc
  9966. * src/HttpSkipResponseCommand.h
  9967. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9968. Pool connection when a server returns 4xx, 5xx responses.
  9969. * src/HttpNullDownloadCommand.cc
  9970. * src/HttpNullDownloadCommand.h
  9971. * src/HttpResponse.cc
  9972. * src/HttpResponse.h
  9973. * src/HttpResponseCommand.cc
  9974. * src/HttpResponseCommand.h
  9975. * test/HttpResponseTest.cc
  9976. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9977. Print usage when no URL is specifed or bad command-line option is
  9978. specified.
  9979. * src/HelpItemFactory.cc
  9980. * src/help_tags.h
  9981. * src/option_processing.cc
  9982. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9983. Removed duplicate log message.
  9984. * src/AbstractCommand.cc (asyncResolveHostname)
  9985. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9986. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9987. Changed -j option's default value from 5 to 1.
  9988. Added new examples using protocol auto detection feature.
  9989. Removed -T, -M usage where it can be omitted.
  9990. * doc/aria2c.1.txt
  9991. * doc/aria2c.1.html
  9992. * doc/aria2c.1.txt
  9993. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9994. Updated command-line usage text, so that it tells users that they
  9995. can specify any number of torrent files and metalink files in
  9996. command-line.
  9997. * src/version_usage.cc
  9998. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9999. Changed the default value of -j option to 1.
  10000. * src/HelpItemFactory.cc
  10001. * src/option_processing.cc
  10002. * src/usage_text.h
  10003. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10004. Added the ability to reuse connection in FTP and it is enabled by
  10005. default. It can be disabled by --ftp-reuse-connection=false option.
  10006. * src/Command.cc
  10007. * src/DownloadCommand.cc
  10008. * src/FtpDownloadCommand.cc
  10009. * src/FtpDownloadCommand.h
  10010. * src/FtpFinishDownloadCommand.cc
  10011. * src/FtpFinishDownloadCommand.h
  10012. * src/FtpInitiateConnectionCommand.cc
  10013. * src/FtpNegotiationCommand.cc
  10014. * src/FtpNegotiationCommand.h
  10015. * src/HelpItemFactory.cc
  10016. * src/Makefile.am
  10017. * src/Makefile.in
  10018. * src/OptionHandlerFactory.cc
  10019. * src/option_processing.cc
  10020. * src/prefs.h
  10021. * src/usage_text.h
  10022. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. Call Command::transitStatus() before calling Command::execute(),
  10024. so that the status change made in execute() is not cleared.
  10025. * src/DownloadEngine.cc
  10026. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10027. Removed forward declaration of SocketCore class.
  10028. * src/HttpDownloadCommand.h
  10029. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10030. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10031. in InitiateConnectionCommandFactory. They should be set only when
  10032. the protocol is HTTP or HTTPS.
  10033. * src/InitiateConnectionCommandFactory.cc
  10034. * src/RequestGroup.cc
  10035. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10036. Fixed infinite loop in checksum checking.
  10037. * src/IteratableChecksumValidator.cc
  10038. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10039. Set _supportsPersistentConnection to true by default.
  10040. * src/Request.cc
  10041. * src/RequestGroup.cc
  10042. * test/HttpRequestTest.cc
  10043. * test/RequestTest.cc
  10044. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10045. Added timeout to socket pool. The default timeout is 15 seconds,
  10046. which is the same value Apache uses.
  10047. * src/DownloadEngine.cc
  10048. * src/DownloadEngine.h
  10049. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10050. Fixed misuse of multimap::find()
  10051. * src/HttpHeader.cc
  10052. * test/HttpHeaderTest.cc
  10053. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10054. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10055. option.
  10056. The asynchronous DNS is not capable of IPv6 yet.
  10057. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10058. least for HTTP download.
  10059. * src/AbstractCommand.cc
  10060. * src/AbstractCommand.h
  10061. * src/AsyncNameResolver.cc
  10062. * src/AsyncNameResolver.h
  10063. * src/DHTEntryPointNameResolveCommand.cc
  10064. * src/DHTEntryPointNameResolveCommand.h
  10065. * src/DownloadEngine.cc
  10066. * src/DownloadEngine.h
  10067. * src/FtpInitiateConnectionCommand.cc
  10068. * src/FtpInitiateConnectionCommand.h
  10069. * src/HelpItemFactory.cc
  10070. * src/HttpInitiateConnectionCommand.cc
  10071. * src/HttpInitiateConnectionCommand.h
  10072. * src/InitiateConnectionCommand.cc
  10073. * src/InitiateConnectionCommand.h
  10074. * src/Makefile.am
  10075. * src/Makefile.in
  10076. * src/NameResolver.cc
  10077. * src/NameResolver.h
  10078. * src/OptionHandlerFactory.cc
  10079. * src/SocketCore.cc
  10080. * src/SocketCore.h
  10081. * src/Util.cc
  10082. * src/Util.h
  10083. * src/option_processing.cc
  10084. * src/prefs.h
  10085. * src/usage_text.h
  10086. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10087. Updated man page: --quiet, --header were added.
  10088. --metalink-servers and --enable-http-keep-alive option were updated.
  10089. * doc/aria2c.1
  10090. * doc/aria2c.1.html
  10091. * doc/aria2c.1.txt
  10092. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10093. Enable HTTP keep-alive by default.
  10094. * src/HelpItemFactory.cc
  10095. * src/option_processing.cc
  10096. * src/usage_text.h
  10097. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10098. Disable http keep-alive if the remote server is not HTTP/1.1.
  10099. * src/HttpConnection.cc
  10100. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Receive content body of 302 response so that the connection can be
  10102. reused later when http keep-alive is enabled.
  10103. * src/HttpNullDownloadCommand.cc
  10104. * src/HttpNullDownloadCommand.h
  10105. * src/HttpResponseCommand.cc
  10106. * src/HttpResponseCommand.h
  10107. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10108. const SharedHandle<Request> -> const SharedHandle<Request>&
  10109. * src/FtpDowndloadCommand.cc
  10110. * src/FtpDowndloadCommand.h
  10111. * src/HttpDownloadCommand.cc
  10112. * src/HttpDownloadCommand.h
  10113. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. Fixed the bug that the control file(.aria2 file) is not renamed
  10115. according to tryAutoFileRenaming().
  10116. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10117. its control file exist, use them and continue download.
  10118. The old implementation didn't take into account of control file's
  10119. existence, so basically you couldn't continue download of renamed file.
  10120. * src/BtProgressInfoFile.h
  10121. * src/DefaultBtProgressInfoFile.cc
  10122. * src/DefaultBtProgressInfoFile.h
  10123. * src/NullProgressInfoFile.h
  10124. * src/RequestGroup.cc
  10125. * test/DefaultBtProgressInfoFileTest.cc
  10126. * test/MockBtProgressInfoFile.h
  10127. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10128. Change the default value of --metalink-servers option from `5' to `1'.
  10129. * src/HelpItemFactory.cc
  10130. * src/option_processing.cc
  10131. * src/usage_text.h
  10132. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10133. Reimplemented transparent metalink using Accept request header.
  10134. * src/HttpRequest.cc
  10135. * src/HttpRequest.h
  10136. * src/HttpRequestCommand.cc
  10137. * src/Metalink2RequestGroup.cc
  10138. * src/RequestGroup.cc
  10139. * src/RequestGroup.h
  10140. * test/HttpRequestTest.cc
  10141. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10142. Bump up version number to 0.13.2a
  10143. * configure.ac
  10144. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10145. Updated configure.ac using the result of autoscan.
  10146. * configure.ac
  10147. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10148. Fixed compilation error without gcrypt/openssl.
  10149. * src/DownloadCommand.cc
  10150. * src/DownloadCommand.h
  10151. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10152. Reorganized version information so that it can be displayed in a
  10153. standard terminal screen without scrolling.
  10154. Removed http, ftp from Configuration section, because they are always
  10155. enabled.
  10156. * src/FeatureConfig.cc
  10157. * src/FeatureConfig.h
  10158. * src/main.cc
  10159. * src/messageDigest.cc
  10160. * src/messageDigest.h
  10161. * src/version_usage.cc
  10162. * test/FeatureConfigTest.cc
  10163. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10164. Masked user ID in log.
  10165. * src/FtpConnection.cc (sendUser)
  10166. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10167. Removed query part from filename in HTTP download. The query part means
  10168. the substring after "?" in URL. Firefox seems do the same thing.
  10169. A query part is sometimes very long and not suitable to filename,
  10170. so I think it is better to remove it from filename.
  10171. * src/HttpRequest.cc
  10172. * src/HttpRequest.h
  10173. * src/Request.cc
  10174. * src/Request.h
  10175. * test/HttpRequestTest.cc
  10176. * test/RequestTest.cc
  10177. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10178. Rewritten Exception class. Throw exception object, not its pointer and
  10179. catch by reference, so that remove problematic delete operator for
  10180. catched exception.
  10181. * src/Exception.cc
  10182. * src/Exception.h
  10183. * test/ExceptionTest.cc
  10184. * src/*: All files throwing/catching exception.
  10185. * test/*: All files throwing/catching exception.
  10186. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10187. Now auto protocol detection is enabled without -Z option.
  10188. But there is a important difference between with/without -Z optoin.
  10189. For example, if you type:
  10190. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10191. then, aria2 interprets there are 3 request groups:
  10192. (1) http://host/file, http://mirror/file <-- multi-source download
  10193. (2) file1.torrent
  10194. (3) file2.metalink
  10195. On the other hand, if you invoke above command with -Z option, it is
  10196. interpreted as 4 request groups:
  10197. (1) http://host/file
  10198. (2) file1.torrent
  10199. (3) file2.metalink
  10200. (4) http://mirror/file
  10201. I think usually user don't mix multi-source URLs and torrent files, so
  10202. there is no big problem here.
  10203. * src/main.cc
  10204. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10205. Fixed the bug that causes segmentaion fault when reading XML containing
  10206. unescapsed character like '&'.
  10207. Also a modification was made which avoids adding unnecessary
  10208. characters stack and appending unused string.
  10209. * src/ExpatMetalinkProcessor.cc
  10210. * src/FileMetalinkParserState.h
  10211. * src/FilesMetalinkParserState.h
  10212. * src/FinMetalinkParserState.h
  10213. * src/HashMetalinkParserState.h
  10214. * src/InitialMetalinkParserState.h
  10215. * src/LanguageMetalinkParserState.h
  10216. * src/MetalinkMetalinkParserState.h
  10217. * src/MetalinkParserState.h
  10218. * src/MetalinkParserStateMachine.cc
  10219. * src/MetalinkParserStateMachine.h
  10220. * src/OSMetalinkParserState.h
  10221. * src/PieceHashMetalinkParserState.h
  10222. * src/PiecesMetalinkParserState.h
  10223. * src/ResourcesMetalinkParserState.h
  10224. * src/SizeMetalinkParserState.h
  10225. * src/SkipTagMetalinkParserState.h
  10226. * src/URLMetalinkParserState.h
  10227. * src/VerificationMetalinkParserState.h
  10228. * src/VersionMetalinkParserState.h
  10229. * src/XML2SAXMetalinkProcessor.cc
  10230. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10231. Added StringFormat class, which internally calls vasprintf.
  10232. operator<< is defined for this class, so it can be used with iostream
  10233. classes nicely. SimpleLogger and following functions are rewritten
  10234. using StringFormat class.
  10235. Besides, now Logger class's methods are non-const, many classes
  10236. that has a const Logger* as a member variable are modified to remove
  10237. const qualifier from the variable declaration.
  10238. * src/HelpItemFactory.cc
  10239. * src/Request.cc
  10240. * src/SimpleLogger.cc
  10241. * src/StringFormat.cc
  10242. * src/StringFormat.h
  10243. * src/Util.cc
  10244. * src/option_processing.cc
  10245. * src/version_usage.cc
  10246. * test/StringFormatTest.cc
  10247. * src/*.h: The classes that has const Logger* as a member variable.
  10248. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10249. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10250. failed. Also fixed memory link when exception is thrown there.
  10251. * src/main.cc (AccRequestGroup)
  10252. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10253. Added build-in "Accept-Features" support. For now only "metalink" is
  10254. used in this header field.
  10255. This "metalink" value is removed from the list when connecting URLs
  10256. fed by metalink file to avoid loop in "transparent" metlaink.
  10257. * src/HttpRequest.cc
  10258. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10259. header is also held in this variable. Also renamed setUserHeaders as
  10260. addHeader and it was rewritten to add header not just to clear the old
  10261. value.
  10262. * src/HttpRequestCommand.cc
  10263. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10264. from "Accept-Features" list.
  10265. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10266. default.
  10267. * src/RequestGroup.h
  10268. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10269. * src/a2functional.h: Included <string> because Concat class depends on
  10270. it.
  10271. * test/HttpRequestTest.cc
  10272. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10273. Added comment
  10274. * src/RequestGroup.cc (createNextCommand)
  10275. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10276. Capitalized METHOD_GET and METHOD_HEAD
  10277. * src/Request.cc
  10278. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10279. Added getDownloadResults() method
  10280. * src/RequestGroupMan.cc
  10281. * src/RequestGroupMan.h
  10282. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10283. Fixed the bug that aria2 exits when commands is empty() but
  10284. _routineCommands are not.
  10285. * src/DownloadEngine.cc
  10286. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10287. Use the default value pulled from Option object in HelpItemFactory.
  10288. except options whose defualt value is embedded in a usage text.
  10289. * src/HelpItemFactory.cc
  10290. * src/HelpItemFactory.h
  10291. * src/option_processing.cc
  10292. * src/version_usage.cc
  10293. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10294. Added --quiet option to make aria2 quiet (no console output).
  10295. --quiet option is tagged with ADVANCED.
  10296. * src/HelpItemFactory.cc
  10297. * src/LogFactory.cc
  10298. * src/LogFactory.h
  10299. * src/MultiUrlRequestInfo.cc
  10300. * src/MultiUrlRequestInfo.h
  10301. * src/NullStatCalc.h: New class. This class prints nothing.
  10302. * src/OptionHandlerFactory.cc
  10303. * src/main.cc
  10304. * src/option_processing.cc
  10305. * src/prefs.h
  10306. * src/usage_text.h
  10307. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10308. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10309. * src/HelpItemFactory.cc (createHelpItems):
  10310. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10311. Fixed compilation error in ExpatMetalinkProcessor.cc
  10312. * src/ExpatMetalinkProcessor.cc
  10313. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10314. Reuse socket if the origin server supports HTTP keep-alive and
  10315. --enable-http-keep-alive or --enable-http-pipelining is given.
  10316. The current implementation doesn't reuse the connections established
  10317. against proxy server.
  10318. * src/AbstractCommand.cc
  10319. * src/DownloadEngine.cc
  10320. * src/DownloadEngine.h
  10321. * src/HttpDownloadCommand.cc
  10322. * src/HttpInitiateConnectionCommand.cc
  10323. * src/HttpResponseCommand.cc
  10324. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10325. Rewritten HTTP keep-alive and pipelining routine.
  10326. * src/AbstractCommand.cc
  10327. * src/HttpConnection.cc
  10328. * src/HttpDownloadCommand.cc
  10329. * src/HttpRequest.cc
  10330. * src/HttpRequestCommand.cc
  10331. * src/HttpResponseCommand.cc
  10332. * src/Request.cc
  10333. * src/Request.h
  10334. * src/RequestGroup.cc
  10335. * test/HttpRequestTest.cc
  10336. * test/HttpResponseTest.cc
  10337. * test/RequestTest.cc
  10338. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10339. Added missing setUserHeaders call
  10340. * src/HttpRequestCommand.cc
  10341. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10342. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10343. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10344. waste of time because it is more likey false.
  10345. * src/FileAllocationDispatcherCommand.cc (execute)
  10346. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10347. Now HTTP status and version are a member variable of HttpHeader.
  10348. HTTP status is processed as a string, not integer.
  10349. * src/AbstractProxyResponseCommand.cc
  10350. * src/HttpConnection.cc
  10351. * src/HttpHeader.cc
  10352. * src/HttpHeader.h
  10353. * src/HttpHeaderProcessor.cc
  10354. * src/HttpHeaderProcessor.h
  10355. * src/HttpResponse.cc
  10356. * src/HttpResponse.h
  10357. * test/HttpHeaderProcessorTest.cc
  10358. * test/HttpResponseTest.cc
  10359. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10360. Added --header option. You can specify any number of additional HTTP headers
  10361. like:
  10362. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10363. Unlike other commad-line option, you can use --header option multiple times.
  10364. * src/HelpItemFactory.cc
  10365. * src/HttpRequest.{cc, h}
  10366. * src/HttpRequestCommand.cc
  10367. * src/OptionHandlerFactory.cc
  10368. * src/OptionHandlerImpl.h
  10369. * src/option_processing.cc
  10370. * src/prefs.h
  10371. * src/usage_text.h
  10372. * test/HttpRequestTest.cc (testUserHeaders)
  10373. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10374. Eliminates the time lag between sequential downloads and commands in
  10375. the same RequestGroup.
  10376. In old implementation, aria2 occasionally waits 1 seconds before
  10377. executing next command or RequestGroup.
  10378. This is really a waste of time, and new implementation eliminates
  10379. this unnecessary time lag.
  10380. * src/AbstractCommand.cc
  10381. * src/AutoSaveCommand.cc
  10382. * src/CheckIntegrityCommand.cc
  10383. * src/Command.{cc, h}
  10384. * src/DownloadEngine.{cc, h}
  10385. * src/DownloadEngineFactory.cc
  10386. * src/FileAllocationCommand.cc
  10387. * src/FileAllocationDispatcherCommand.cc
  10388. * src/FillRequestGroupCommand.cc
  10389. * src/FtpInitiateConnectionCommand.cc
  10390. * src/HaveEraseCommand.cc
  10391. * src/HttpInitiateConnectionCommand.cc
  10392. * src/HttpResponseCommand.cc
  10393. * src/RealtimeCommand.cc
  10394. * src/RequestGroup.cc
  10395. * src/RequestGroupMan.cc
  10396. * src/StreamFileAllocationEntry.cc
  10397. * src/TimeBasedCommand.{cc, h}
  10398. * src/TimedHaltCommand.cc
  10399. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10401. keyword explicit and SharedHandle's default constructor initializes
  10402. its internal obj to null, old implementation initializes it using
  10403. obj's default constructor.
  10404. To assign null, write SharedHandle<T> x(...); x.reset();
  10405. TODO: test/SharedHandleTest.cc needs more tests.
  10406. * src/SharedHandle.h
  10407. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10408. Fixed type in man page.
  10409. * doc/aria2c.1.txt
  10410. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10411. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10412. * src/SimpleLogger.{cc, h}
  10413. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10414. Implemented auto protocol detection.
  10415. Now you can do:
  10416. aria2c -Z http://host/file file1.torrent file2.metalink
  10417. (Note: -Z option is required for auto protcol detection.)
  10418. Then aria2c downloads 3 files simultaneously:
  10419. 1. http://host/file
  10420. 2. file1.torrent <-- read local torrent file
  10421. 3. file2.metalink <-- read local Metalink file.
  10422. Same thing goes with -i option. Assume your uris.txt contans:
  10423. http://host/file
  10424. file1.torrent
  10425. file2.metalink
  10426. Then you can do: aria2c -i uris.txt
  10427. (Note: -Z option is not needed if -i option is given.)
  10428. * src/main.cc
  10429. * src/ProtocolDetector.{cc, h}
  10430. * test/ProtocolDetectorTest.cc
  10431. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10432. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10433. installed
  10434. * src/ARC4Encryptor.h
  10435. * src/ARC4Decryptor.h
  10436. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10437. Renamed argument from 'errno' to 'err', since errno is confused with
  10438. errno defined in errno.h.
  10439. * src/LibgcryptARC4Decryptor.h
  10440. * src/LibgcryptARC4Context.h
  10441. * src/LibgcryptDHKeyExchange.h
  10442. * src/LibgcryptARC4Encryptor.h
  10443. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10444. Rewritten choking algorithm.
  10445. * src/PeerChokeCommand.{cc, h}
  10446. * src/BtInterestedMessage.cc
  10447. * src/PeerSessionResource.{cc, h}
  10448. * src/DefaultPeerStorage.{cc, h}
  10449. * src/BtNotInterestedMessage.cc
  10450. * src/DefaultBtMessageDispatcher.{cc, h}
  10451. * src/BtMessageDispatcher.h
  10452. * src/Peer.{cc, h}
  10453. * src/BtLeecherStateChoke.{cc, h}
  10454. * src/BtSetup.cc
  10455. * src/BtSeederStateChoke.{cc, h}
  10456. * src/PeerStorage.h
  10457. * test/MockPeerStorage.h
  10458. * test/MockBtMessageDispatcher.h
  10459. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10460. Fixed compilation error on x84-64 platform.
  10461. * src/AuthConfig.cc: Included ostream.
  10462. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10463. Rewritten getBasename() and getDirname(), without standard library
  10464. basename(), dirname().
  10465. * src/File.cc
  10466. * test/FileTest.cc
  10467. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10468. Added Simplified Chinese translation. Also updated the following
  10469. translations: Polish, Dutch, German. Great thanks to all translators.
  10470. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10471. Suppress content-range error when 'Content-Range' response header
  10472. doesn't contains bytes-unit specifier 'bytes'
  10473. * src/HttpHeader.cc (getRange)
  10474. * test/HttpHeaderTest.cc
  10475. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. Fixed compilation error with g++-4.3
  10477. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10478. Added missing include files for MinGW
  10479. * test/HttpHeaderProcessorTest.cc
  10480. * test/DHTRoutingTableSerializerTest.cc
  10481. * test/DHTRoutingTableDeserializerTest.cc
  10482. * test/UriListParserTest.cc
  10483. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10484. Now download line is printed nicely with no garbage at the end of
  10485. line. I use ioctl to get the columns of terminal.
  10486. If stdout is redirected to another device, instead of carriage return,
  10487. end of line '\n' character is used. This is feature request#1909659
  10488. * src/ConsoleStatCalc.cc (calculateStat)
  10489. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10490. Included a2time.h
  10491. * src/DHTMessageDispatcher.h
  10492. * src/DHTMessageEntry.h
  10493. * src/DHTReplaceNodeTask.h
  10494. * src/DHTMessageTracker.h
  10495. * src/Util.h
  10496. * src/CookieBox.h
  10497. * src/SocketCore.h
  10498. * src/DefaultBtMessageDispatcher.h
  10499. * src/SocketCore.cc
  10500. * src/Util.cc
  10501. * src/DHTPingTask.h
  10502. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10503. Fixed high memory footprint when DHT is enabled.
  10504. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10505. queued than it is processed and the queue is getting longer. As a
  10506. consequence, momory usage is increased.
  10507. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10508. replacement cache in DHTBucket which is described in Kademlia paper.
  10509. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10510. DHTReplaceNodeTask.
  10511. * src/DHTBucket.{h, cc}
  10512. (cacheNode): New function.
  10513. (getCachedNodes): New function.
  10514. (dropNode): Push back cached node to _nodes.
  10515. * test/DHTBucketTest.cc
  10516. (testCacheNode): New test
  10517. (testDropNode): New test
  10518. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10519. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10520. the unused 4KB memory when ssl is not used.
  10521. * src/SocketCore.cc
  10522. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10523. Added summary log for peer announce storage.
  10524. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10525. Removed cast
  10526. * src/DefaultPeerStorage.cc (addPeer)
  10527. Log exception message
  10528. * src/DHTMessageTracker.cc (handleTimeout)
  10529. Fixed casting
  10530. * test/HttpRequestTest.cc
  10531. * test/MetalinkProcessorTest.cc
  10532. * test/PieceTest.cc
  10533. * test/MetalinkEntryTest.cc
  10534. * test/SequenceTest.cc
  10535. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10536. * src/ParameterizedStringParser.cc (createLoop):
  10537. Removed unused variable sstep.
  10538. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10539. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10540. * src/Util.{h, cc}
  10541. (parseUInt): New function.
  10542. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10543. The actual range is uint32_t.
  10544. * test/UtilTest.cc
  10545. * src/ParameterizedStringParser.cc:
  10546. Use Util::parseUInt() for loop variables.
  10547. * test/ParameterizedStringParserTest.cc
  10548. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10549. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10550. Rewritten the functions for binding port.
  10551. * src/DHTConnectionImpl.{h, cc}
  10552. * src/PeerListenCommand.{h, cc}
  10553. * src/DHTSetup.cc
  10554. * src/BtSetup.cc
  10555. * test/DHTConnectionImplTest.cc
  10556. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10557. type cleanup for allmost all remaining files.
  10558. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10559. Type clarification
  10560. * src/PeerSessionResource.{h, cc}
  10561. * src/DefaultPieceStorage.{h, cc}
  10562. * src/Peer.{h, cc}
  10563. * test/PeerSessionResourceTest.cc
  10564. Use div function
  10565. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10566. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10567. Type clarification
  10568. * src/DefaultPeerStorage.{h, cc}
  10569. * test/DefaultPeerStorageTest.cc
  10570. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10571. Type clarification: size_t for length or size, uint64_t for file
  10572. length, off_t for file offset.
  10573. * src/DefaultBtProgressInfoFile.cc
  10574. * src/DefaultBtContext.{h, cc}
  10575. * src/DefaultBtInteractive.cc
  10576. * src/DownloadCommand.{h, cc}
  10577. * src/IteratableChunkChecksumValidator.{h, cc}
  10578. * src/SegmentMan.{h, cc}
  10579. * src/SingleFileDownloadContext.{h, cc}
  10580. * src/IteratableChecksumValidator.{h, cc}
  10581. * src/BtContext.h
  10582. * src/IteratableValidator.h
  10583. * src/DownloadContext.h
  10584. * test/SingleFileDownloadContextTest.cc
  10585. * test/DefaultBtContextTest.cc
  10586. * test/MockBtContext.h
  10587. * test/Metalink2RequestGroupTest.cc
  10588. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. Type clarification: size_t for length or size, uint64_t for file
  10590. length, off_t for file offset.
  10591. * src/PiecedSegment.cc
  10592. * src/GrowSegment.h
  10593. * src/DefaultBtRequestFactory.h
  10594. * src/DefaultBtProgressInfoFile.cc
  10595. * src/UnknownLengthPieceStorage.h
  10596. * src/DefaultPieceStorage.cc
  10597. * src/UnknownLengthPieceStorage.cc
  10598. * src/DefaultBtInteractive.cc
  10599. * src/GrowSegment.cc
  10600. * src/BitfieldMan.h
  10601. * src/DownloadCommand.cc
  10602. * src/BtRequestFactory.h
  10603. * src/PiecedSegment.h
  10604. * src/DefaultPieceStorage.h
  10605. * src/Piece.cc
  10606. * src/DefaultBtRequestFactory.cc
  10607. * src/PieceStorage.h
  10608. * src/Segment.h
  10609. * src/Piece.h
  10610. * src/BitfieldMan.cc
  10611. * src/Util.cc
  10612. * test/DefaultBtProgressInfoFileTest.cc
  10613. * test/DefaultPieceStorageTest.cc
  10614. * test/MockPieceStorage.h
  10615. * test/BtRequestMessageTest.cc
  10616. * test/DefaultBtMessageDispatcherTest.cc
  10617. * test/BitfieldManTest.cc
  10618. * test/GrowSegmentTest.cc
  10619. * test/PieceTest.cc
  10620. * test/SegmentTest.cc
  10621. * test/SegmentManTest.cc
  10622. * test/DefaultBtRequestFactoryTest.cc
  10623. * test/MockBtRequestFactory.h
  10624. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10625. Fixed compilation error with --disable-nls
  10626. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10627. in gettext.h causes the problem.
  10628. * src/common.h
  10629. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10630. Removed subPiece related functions.
  10631. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10632. * src/DefaultPieceStorage.{h, cc}
  10633. * test/PieceTest.cc
  10634. * test/DefaultPieceStorageTest.cc
  10635. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10636. Use unsigned char for data store.
  10637. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10638. Bump up version number to 0.13.0+1
  10639. * configure.ac
  10640. * Release 0.13.0+1
  10641. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. Changed inactive connection timeout to 120.
  10643. To accept more mulually interested peers, disconnect peer when there
  10644. is no interest between us after certain time passed.
  10645. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10646. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10647. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10648. when compiled with async DNS support.
  10649. * src/DownloadEngine.cc
  10650. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10651. value '10' will be a little bit short when some DNS servers are
  10652. offline and several DNS servers are tried. It should be configured
  10653. by command-line option.
  10654. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10655. Merged Ross's mingw patch.
  10656. * src/DHTRoutingTableDeserializer.cc
  10657. * src/DHTRoutingTableSerializer.cc
  10658. * src/Platform.{h, cc}
  10659. * src/timegm.h
  10660. * src/gettimeofday.h
  10661. * src/getaddrinfo.h
  10662. * src/SocketCore.h
  10663. * src/common.h
  10664. * src/inet_aton.h
  10665. * src/DownloadEngine.h
  10666. * src/gai_strerror.h
  10667. * src/a2netcompat.h
  10668. * configure.ac
  10669. * configure
  10670. * aclocal.m4
  10671. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10672. Included missing iostream.
  10673. * test/AllTest.cc
  10674. * test/BtDependencyTest.cc
  10675. * test/BtExtendedMessageTest.cc
  10676. * test/DHTConnectionImplTest.cc
  10677. * test/DHTMessageFactoryImplTest.cc
  10678. * test/DHTMessageTrackerEntryTest.cc
  10679. * test/DHTNodeTest.cc
  10680. * test/DHTRoutingTableSerializerTest.cc
  10681. * test/DefaultBtAnnounceTest.cc
  10682. * test/DefaultBtContextTest.cc
  10683. * test/DefaultBtMessageFactoryTest.cc
  10684. * test/DefaultExtensionMessageFactoryTest.cc
  10685. * test/HandshakeExtensionMessageTest.cc
  10686. * test/HttpResponseTest.cc
  10687. * test/MetalinkProcessorTest.cc
  10688. * test/MultiFileAllocationIteratorTest.cc
  10689. * test/SocketCoreTest.cc
  10690. * test/UTPexExtensionMessageTest.cc
  10691. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10692. Reorganized includes.
  10693. * src/NameResolver.cc
  10694. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10695. Fixed compilation error without ares/c-ares
  10696. * src/NameResolver.h:
  10697. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10698. Added a test for large file.
  10699. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10700. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10701. Fixed the bug that file size is ignored if size > INT32_MAX
  10702. * src/SizeMetalinkParserState.cc (endElement):
  10703. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10704. Bump up version number to 0.13.0
  10705. * configure.ac
  10706. * Release 0.13.0
  10707. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10708. Updated Makfefile.am to make 'make dist' work.
  10709. Now packaged filename is aria2c-VERSION.tar.bz2.
  10710. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10711. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10712. Large file support is now configured by configure script.
  10713. * configure.ac
  10714. Removed unsused source files
  10715. * src/
  10716. * test/
  10717. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10718. Peer.h and BtContext.h respectively.
  10719. * src/Peer.h
  10720. * src/BtContext.h
  10721. Updated translations.
  10722. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10723. translations. Great thanks to all translators!;)
  10724. * po/*.{po, gmo}
  10725. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10726. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10727. statically declared sha1 MessageDigestContext.
  10728. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10729. initialization of short-lived MessageDigestContext.
  10730. * src/MessageDigestHelper.{h, cc}
  10731. * src/main.cc
  10732. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10733. the initialization of MessageDigestContext every time in validating
  10734. chunk checksum.
  10735. * src/DownloadCommand.{h, cc}
  10736. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10737. Add a file descriptor which connected to fast peer(latency<1500) to
  10738. select(). This change reduced CPU load.
  10739. * src/PeerInteractionCommand.cc
  10740. * src/DefaultBtInteractive.{h, cc}
  10741. * src/BtInteractive.h
  10742. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10743. Fixed the previous insufficient fix for possible busy loop.
  10744. * src/MSEHandshake.cc (identifyHandshakeType)
  10745. Removed unused functions.
  10746. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10747. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10748. Fixed possible busy loop if first 20 bytes are not received for a few
  10749. minutes.
  10750. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10751. * src/ReceiverMSEHandshakeCommand.cc
  10752. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10753. Fixed compilation error
  10754. * src/ExpatMetalinkProcessor.cc
  10755. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10756. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10757. * src/DHTBucket.cc
  10758. Removed unnecessary cast.
  10759. * src/HandshakeExtensionMessage.cc
  10760. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10761. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10762. is missing.
  10763. * src/OptionHandlerFactory.cc
  10764. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10765. Fixed the bug that HAVE message is not sent for a piece they are
  10766. downloaded fom http/ftp server before any BitTorrent handshake is done
  10767. with peers.
  10768. * src/DefaultBtInteractive.cc
  10769. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10770. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10771. * src/Makefile.am
  10772. * src/Makefile.in
  10773. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10774. Updated README. Added html version of README and man page.
  10775. * README
  10776. * README.html
  10777. * readme2html: Shell script to generate README.html from README using
  10778. asciidoc.
  10779. * doc/aria2c.1.html
  10780. * doc/makeman: Added the line to generate aria2c.1.html
  10781. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10782. Fixed offset calculation.
  10783. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10784. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10785. Rewritten itos and uitos using template. llitos and ullitos are
  10786. replaced with itos and uitos respectively.
  10787. * src/Util.{h, cc}
  10788. * test/UtilTest.cc
  10789. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10790. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10791. of the number of bytes required for storing public key and shared
  10792. secret.
  10793. * src/LibgcryptDHKeyExchange.h
  10794. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10795. * src/MSEHandshake.cc
  10796. * test/DHKeyExchangeTest.cc
  10797. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10798. Removed since they are not used.
  10799. * src/Xml2MetalinkProcessor.{h, cc}
  10800. * src/Socket.cc
  10801. * src/SegmentSplitter.{h, cc}
  10802. * test/Xml2MetalinkProcessorTest.cc
  10803. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10804. Fixed the bug that prevents aria2 from stopping other than by pressing
  10805. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10806. option. aria2 doesn't stop even after --seed-time is satisfied and
  10807. continues to output blank lines in the console.
  10808. * src/ReceiverMSEHandshakeCommand.cc
  10809. * src/PeerReceiveHandshakeCommand.cc
  10810. * src/PeerListenCommand.cc
  10811. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10812. Bump up version number to 0.13.0rc
  10813. * configure.ac
  10814. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10815. Updated man page and some usage text.
  10816. * doc/aria2c.1.txt
  10817. * src/usage_text.h
  10818. * po/*.{po, gmo}
  10819. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10820. Updated translations. Added Finnish and Hebrew translations.
  10821. Great thanks to all translators!
  10822. * po/*.{po, gmo}
  10823. * po/LINGUAS
  10824. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10825. Log more detailed information about each message.
  10826. * src/DHTQueryMessage.{h, cc}
  10827. * src/DHTGetPeersMessage.{h, cc}
  10828. * src/DHTFindNodeReplyMessage.{h, cc}
  10829. * src/DHTGetPeersReplyMessage.{h, cc}
  10830. * src/DHTAnnouncePeerMessage.{h, cc}
  10831. * src/DHTResponseMessage.{h, cc}
  10832. * src/DHTFindNodeMessage.{h, cc}
  10833. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10834. Use constants defined in prefs.h
  10835. * src/option_processing.cc
  10836. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10837. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10838. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10839. Make room for future enchancements for IPv6 addresses.
  10840. Bump up version number of dht.dat file format to 2.
  10841. Not compatible with previous version.
  10842. * src/DHTRoutingTableSerializer.cc
  10843. * src/DHTRoutingTableDeserializer.cc
  10844. * test/DHTRoutingTableSerializerTest.cc
  10845. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10846. Added handling for the return values from
  10847. PeerMessageUtil::createcompact().
  10848. * src/DefaultBtContext.cc (computeFastSet):
  10849. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10850. Fixed abort when peer's ip address is IPv4-mapped address.
  10851. * src/DefaultBtContext.cc (computeFastSet)
  10852. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10853. cannot handle IPv4-mapped addresses.
  10854. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10855. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10856. Proper return value handling for OpenSSL functions.
  10857. * src/LibsslDHKeyExchange.h
  10858. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10859. Random bytes generation using libgcrypt and OpenSSL.
  10860. * src/DHTUtil.{h, cc}
  10861. * test/DHTUtilTest.cc
  10862. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10863. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10864. received.
  10865. * src/DHTMessageReceiver.cc (receiveMessage)
  10866. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10867. Fixed the bug that a return code is always 0. BUG#1897704
  10868. If error occurred during the download or there exist unfinished
  10869. downloads, aria2 returns with code 1.
  10870. * src/RequestGroupMan.{h, cc}
  10871. * src/MultiUrlRequestInfo.{h, cc}
  10872. * src/main.cc
  10873. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10874. IPv6 support for SocketCore class.
  10875. TODO: In SocketCore::establishConnection(), this is insufficient to
  10876. determin the failure of connect() here because the socket is
  10877. non-blocking state. The next addresses should be tried after select().
  10878. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10879. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10880. instead which address family independent.
  10881. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10882. information in a compact peer format which is for IPv4 only.
  10883. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10884. this is a spec of BitTorrent protocol.
  10885. * src/SocketCore.{h, cc}
  10886. * src/PeerMessageUtil.cc
  10887. * test/SocketCoreTest.cc
  10888. * test/PeerMessageUtilTest.cc
  10889. * test/DHTConnectionImplTest.cc
  10890. Handle IPv4-mapped addresses.
  10891. * src/DHTNode.cc: Now identity is determined by node id.
  10892. * src/DHTMessageTrackerEntry.cc
  10893. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10894. should handle it.
  10895. * src/DHTRoutingTableDeserializer.cc
  10896. * src/DHTMessageFactoryImpl.cc
  10897. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10898. Change the unit of --stop option from a minute to a second.
  10899. * src/usage_text.h
  10900. * src/DownloadEngineFactory.cc
  10901. * src/OptionHandlerFactory.cc
  10902. * src/message.h
  10903. * src/TimedHaltCommand.cc
  10904. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10905. Make listening socket non-block mode.
  10906. * src/FtpConnection.cc
  10907. * src/FtpNegotiationCommand.{h, cc}
  10908. * src/PeerListenCommand.cc
  10909. Fixed the bug that cause slow ftp negotiation.
  10910. * src/FtpNegotiationCommand.{h, cc}
  10911. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10912. Added basic tag to --enable-dht, --dht-listen-port option.
  10913. * src/HelpItemFactory.cc (createHelpItems)
  10914. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10915. Updated text.
  10916. * src/usage_text.h
  10917. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10918. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10919. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10920. Determin _threadtholdSpeed in each constructor for
  10921. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10922. * src/ActivePeerConnectionCommand.{h, cc}
  10923. * src/PeerReceiveHandshakeCommand.{h, cc}
  10924. * src/BtSetup.cc
  10925. * src/BtConstants.h
  10926. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10927. Added --bt-min-crypto-level and --bt-require-crypto options.
  10928. * src/OptionHandlerFactory.cc
  10929. * src/MSEHandshake.cc
  10930. * src/HelpItemFactory.cc
  10931. * src/option_processing.cc
  10932. * src/ReceiverMSEHandshakeCommand.cc
  10933. * src/prefs.h
  10934. * src/DefaultBtAnnounce.cc
  10935. * src/InitiatorMSEHandshakeCommand.cc
  10936. * src/usage_text.h
  10937. * test/MSEHandshakeTest.cc
  10938. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10939. Bump version number to 0.13.0b
  10940. * configure.ac
  10941. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10942. Updated doc.
  10943. * src/MessageDigestHelper.h:
  10944. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10945. Use raw message digest as a token instead of its hexadecimal
  10946. representation.
  10947. * src/DHTTokenTracker.cc (generateToken)
  10948. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10949. Added Message Stream Encryption(MSE) support.
  10950. Currently, aria2 accepts incoming connections with Obfuscation Header
  10951. and legacy BitTorrent Header and establishes connections with
  10952. Obfuscation Header first and if failed then retry with legacy
  10953. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10954. choose ARC4. The new option to change the default behavior is planned.
  10955. For tracker extension, "supportcrypto=1" is added statically.
  10956. * src/PeerInitiateConnectionCommand.{h, cc}
  10957. * src/PeerConnection.{h, cc}
  10958. * src/HandleRegistry.h
  10959. * src/SocketCore.h
  10960. * src/PeerReceiveHandshakeCommand.{h, cc}
  10961. * src/BtRegistry.{h, cc}
  10962. * src/PeerListenCommand.cc
  10963. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10964. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10965. * src/MSEHandshake.{h, cc}
  10966. * src/ARC4Encryptor.h
  10967. * src/ARC4Decryptor.h
  10968. * src/LibgcryptARC4Encryptor.h
  10969. * src/LibgcryptARC4Decryptor.h
  10970. * src/LibgcryptARC4Context.h
  10971. * src/LibsslARC4Encryptor.h
  10972. * src/LibsslARC4Decryptor.h
  10973. * src/LibsslARC4Context.h
  10974. * src/DHKeyExchange.h
  10975. * src/LibgcryptDHKeyExchange.h
  10976. * src/LibsslDHKeyExchange.h
  10977. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10978. * test/DefaultBtAnnounceTest.cc
  10979. * test/ARC4Test.cc
  10980. * test/DHKeyExchangeTest.cc
  10981. Removed prepareForRetry() because it is not used.
  10982. * src/PeerAbstractCommand.{h, cc}
  10983. * src/PeerInteractionCommand.{h, cc}
  10984. * src/PeerInitiateConnectionCommand.{h, cc}
  10985. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10986. Added the ability to load nodes from torrent file. These nodes are
  10987. added to the routing table when downloading that torrent.
  10988. * src/BtContext.h
  10989. * src/DefaultBtContext.{h, cc}
  10990. * src/DHTSetup.cc
  10991. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10992. hostname and port pair, and resolves all of them.
  10993. * src/NameResolver.{h, cc}: Added reset().
  10994. * src/RequestGroup.cc
  10995. * test/DefaultBtContextTest.cc
  10996. * test/MockBtContext.h
  10997. Removed assert() from DefaultBtContext and throw exception instead.
  10998. * src/DefaultBtContext.cc
  10999. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11000. Fixed segmentation fault bug when exiting if dht is disabled.
  11001. * src/RequestGroup.cc
  11002. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11003. Fixed typo in log message and define the message in message.h
  11004. * src/TimedHaltCommand.cc
  11005. * src/message.h
  11006. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11007. Included RecoverableException.h to fix compilation error.
  11008. * test/DHTMessageFactoryImplTest.cc
  11009. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11010. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11011. * test/DHTPingMessageTest.cc
  11012. * test/DHTGetPeersMessageTest.cc
  11013. * test/DHTFindNodeMessageTest.cc
  11014. * test/DHTAnnouncePeerMessageTest.cc
  11015. * test/MockDHTMessage.h
  11016. * test/MockDHTMessageFactory.h
  11017. * test/MockDHTMessageDispatcher.h: New class.
  11018. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11019. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11020. virtual.
  11021. * src/DHTMessageDispatcher.h
  11022. * src/DHTMessageDispatcherImpl.{h, cc}
  11023. * src/DHTSetup.cc
  11024. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11025. Adding handling of DHT error message. Just log error message and
  11026. throw exception.
  11027. * src/DHTMessageFactoryImpl.cc
  11028. * test/DHTMessageFactoryImplTest.cc
  11029. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11030. Added handling of dynamic cast failure.
  11031. * src/DHTNodeLookupTask.cc
  11032. * src/DHTPeerLookupTask.cc
  11033. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11034. Added the ability to stop aria2 itself when given time has passed
  11035. from start. Use --stop option to specify time in minutes.
  11036. When 0 is given, this feature is disabled.
  11037. * src/OptionHandlerFactory.cc
  11038. * src/TimeBasedCommand.h: Make _interval protected scope.
  11039. * src/HelpItemFactory.cc
  11040. * src/option_processing.cc
  11041. * src/prefs.h
  11042. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11043. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11044. Without this modification, the result list shows "ERR" when aria2 is
  11045. stopped by --stop option. It should be "INPR".
  11046. * src/DownloadEngine.{h, cc}
  11047. * src/DownloadEngineFactory.cc
  11048. * src/usage_text.h
  11049. * src/TimedHaltCommand.{h, cc}: New class.
  11050. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11051. Bootstrap through node added by port message.
  11052. Currently bootstrap is executed if the number of buckets in routing
  11053. table is 1.
  11054. * src/BtPortMessage.{h, cc}
  11055. * src/DefaultBtMessageFactory.{h, cc}
  11056. * src/PeerInteractionCommand.cc
  11057. * test/BtPortMessageTest.cc
  11058. * test/MockDHTTask.h
  11059. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11060. Extract the Peer class's member variables, which are only needed after
  11061. PeerInteractionCommand, into PeerSessionResource class.
  11062. This class is instantiated in PeerInteractionCommand class's ctor and
  11063. released in its dtor.
  11064. This will make Peer class lightweight and uses less memory for peers
  11065. which are not connected and wait in the queue.
  11066. * src/PeerChokeCommand.cc
  11067. * src/PeerSessionResource.{h, cc}
  11068. * src/PeerInteractionCommand.cc
  11069. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11070. * src/DefaultBtInteractive.cc
  11071. * src/BtPieceMessage.cc
  11072. * src/BtInterestedMessage.cc
  11073. * src/BtUnchokeMessage.cc
  11074. * src/DefaultPeerStorage.{h, cc}
  11075. * src/PeerInitiateConnectionCommand.cc
  11076. * src/ActivePeerConnectionCommand.cc
  11077. * src/BtNotInterestedMessage.cc
  11078. * src/DefaultBtMessageDispatcher.cc
  11079. * src/BtChokeMessage.cc
  11080. * src/BtRequestMessage.cc
  11081. * src/Peer.{h, cc}
  11082. * src/BtRegistry.h
  11083. * src/TrackerWatcherCommand.cc
  11084. * src/PeerReceiveHandshakeCommand.cc
  11085. * test/BtExtendedMessageTest.cc
  11086. * test/BtAllowedFastMessageTest.cc
  11087. * test/BtCancelMessageTest.cc
  11088. * test/DefaultPieceStorageTest.cc
  11089. * test/BtBitfieldMessageTest.cc
  11090. * test/BtHaveMessageTest.cc
  11091. * test/BtNotInterestedMessageTest.cc
  11092. * test/BtRequestMessageTest.cc
  11093. * test/PeerSessionResourceTest.cc
  11094. * test/DefaultBtMessageDispatcherTest.cc
  11095. * test/PeerTest.cc
  11096. * test/BtInterestedMessageTest.cc
  11097. * test/BtRejectMessageTest.cc
  11098. * test/BtChokeMessageTest.cc
  11099. * test/DefaultPeerStorageTest.cc
  11100. * test/BtHaveNoneMessageTest.cc
  11101. * test/BtHaveAllMessageTest.cc
  11102. * test/DefaultExtensionMessageFactoryTest.cc
  11103. * test/BtUnchokeMessageTest.cc
  11104. * test/DefaultBtMessageFactoryTest.cc
  11105. * test/HandshakeExtensionMessageTest.cc
  11106. * test/UTPexExtensionMessageTest.cc
  11107. * test/DefaultBtRequestFactoryTest.cc
  11108. * test/BtPieceMessageTest.cc
  11109. Removed typedef PeerStats.
  11110. * src/PeerStat.h
  11111. * src/SegmentMan.cc
  11112. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11113. Added std namespace to copy, remove_copy, back_inserter,
  11114. front_inserter.
  11115. * src/RequestGroupMan.cc
  11116. * src/DefaultPieceStorage.cc
  11117. * src/StreamFileAllocationEntry.cc
  11118. * src/BtFileAllocationEntry.cc
  11119. * src/RequestGroup.cc
  11120. * src/MetalinkEntry.cc
  11121. * src/DelegatingPeerListProcessor.cc
  11122. * src/DefaultBtRequestFactory.cc
  11123. * src/DefaultBtMessageDispatcher.cc
  11124. * src/version_usage.cc: Included <algorithm>
  11125. * src/main.cc
  11126. * src/MetalinkParserController.cc
  11127. * src/DefaultBtContext.cc
  11128. * src/DownloadEngineFactory.cc
  11129. * src/a2algo.h
  11130. Removed.
  11131. * test/StreamUriListParserTest.cc
  11132. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11133. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11134. ActivePeerConnectionCommand when it is given and
  11135. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11136. * src/ActivePeerConnectionCommand.{h, cc}
  11137. * src/BtSetup.cc
  11138. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11139. Only add socket to DownloadEngine's select routine when peer or
  11140. localhost is unchoked and interested. This lowers CPU usage a
  11141. little bit.
  11142. * src/PeerInteractionCommand.cc
  11143. * src/PeerAbstractCommand.{h, cc}
  11144. * src/BtInteractive.h
  11145. * src/DefaultBtInteractive.{h, cc}
  11146. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11147. Revert previous change because get_peers message is needed for
  11148. announce_peer anyway.
  11149. * src/DHTGetPeersCommand.cc
  11150. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11151. Request peers thought DHT only when download hasn't finished.
  11152. * src/DHTGetPeersCommand.cc
  11153. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11154. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11155. * src/DHTBucketRefreshTask.{h, cc}
  11156. * src/DHTSetup.cc
  11157. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11158. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11159. standard classes.
  11160. Included string.h where mem* function are used.
  11161. Added namespace aria2.
  11162. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11163. Create directory before saving DHT routing table.
  11164. Now ios::failure is now handled properly.
  11165. * src/DHTAutoSaveCommand.cc
  11166. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11167. Removed unnecessary cerr.
  11168. * src/DownloadEngine.cc
  11169. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11170. Catch exception inside DHTMessageReceiver::receiveMessage().
  11171. Log unknown message.
  11172. * src/DHTMessageReceiver.{h, cc}
  11173. * src/DHTMessageFactory.h
  11174. * src/DHTMessageFactoryImpl.{h, cc}
  11175. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11176. * src/DHTInteractionCommand.cc
  11177. * src/DHTUnknownMessage.{h, cc}
  11178. * test/DHTUnknownMessageTest.cc
  11179. * test/MockDHTMessageFactory.h
  11180. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11181. Commented out ip address comparison because a host can have multiple
  11182. ip addresses and it is hard to predict the hostname is resolved into
  11183. which one.
  11184. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11185. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11186. * po/Makefile.in: Removed since this is generated by configure.
  11187. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11188. Fixed compiler warning about redefinition of SIZE_MAX.
  11189. Use common.h instead of config.h directly here.
  11190. * src/Platform.{h, cc}
  11191. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11192. here.
  11193. * common.h
  11194. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11195. Updated gettext related files.
  11196. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11197. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11198. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11199. Added DHT functionality, compatible with mainline.
  11200. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11201. You may need to specify entry point to DHT network using
  11202. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11203. Use --dht-listen-port to specify port number. Make sure that your
  11204. firewall configuration can pass through UDP traffic to the port.
  11205. The routing table is saved in $HOME/.aria2/dht.dat.
  11206. * src/DHT*
  11207. * src/BNode.{h, cc}
  11208. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11209. particular torrent.
  11210. * src/Data.cc: Rewritten ctor.
  11211. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11212. --dht-entry-point.
  11213. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11214. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11215. ends, remove BtContext from DHTPeerAnnounceStorage.
  11216. * src/BtPortMessage.{h, cc}: Rewritten.
  11217. * src/message.h
  11218. * src/OptionHandlerImpl.cc
  11219. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11220. --dht-entry-point.
  11221. * src/Dictionary.{h, cc} (remove): New function.
  11222. * src/prefs.h
  11223. * src/DefaultBtMessageFactory.h
  11224. * src/BtHandshakeMessage.cc
  11225. * src/ActivePeerConnectionCommand.cc
  11226. * src/SocketCore.{h, cc}: Added datagram socket support.
  11227. * src/DefaultBtMessageFactory.cc
  11228. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11229. Create DHT commands.
  11230. * src/BtMessageFactory.h
  11231. * src/PeerMessageUtil.{h, cc}
  11232. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11233. Fixed the bug that log file is not written when configuration file doesn't exist.
  11234. This is caused by using Logger class before LogFactory is not configured.
  11235. BUG #1875079
  11236. * src/option_processing.cc
  11237. Warning message "configuration doesn't exist" is only printed when --conf is
  11238. given.
  11239. * src/option_processing.cc
  11240. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11241. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11242. ShaVisitor is now deprecated and slated to be removed.
  11243. * src/DefaultBtContext.cc
  11244. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11245. Externalize message to message.h
  11246. * src/Platform.cc
  11247. * src/message.h
  11248. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11249. Set default domain and default path to cookie.
  11250. * src/HttpResponse.cc
  11251. * src/CookieBox.{h, cc}
  11252. * src/CookieParser.{h, cc}
  11253. * test/CookieParserTest.cc
  11254. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11255. Added --no-conf and --conf-path command-line option.
  11256. --no-conf option disables loading aria2.conf file.
  11257. --conf-path option changes the configuration file path. The default
  11258. file path is $HOME/.aria2/aria2.conf
  11259. Added a warning message when the configuration file is not found.
  11260. * src/HelpItemFactory.cc
  11261. * src/option_processing.cc
  11262. * src/prefs.h
  11263. * src/usage_text.h
  11264. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11265. Added the message to inform users that other help categories are
  11266. available in -h option.
  11267. * src/version_usage.cc
  11268. * src/TagContainer.{h, cc}
  11269. * test/TagContainerTest.cc
  11270. * src/TaggedItem.{h, cc}
  11271. * test/TaggedItemTest.cc
  11272. * src/HelpItem.h
  11273. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11274. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11275. from PiecedSegment's ctor.
  11276. Previously Piece::getAllMissingBlockIndexes() is called from
  11277. PiecedSegment() but it is rather expensive since only first element is
  11278. used.
  11279. * src/PiecedSegment.cc
  11280. * src/Piece.{h, cc}
  11281. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11282. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11283. each time these functions are called.
  11284. * src/BitfieldMan.{h, cc}
  11285. * test/BitfieldManTest.cc
  11286. * src/array_fun.h
  11287. * test/array_funTest.cc
  11288. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11289. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11290. filtered. Removed unnecessary cast to int32_t.
  11291. * src/BitfieldMan.{h, cc}
  11292. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11293. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11294. payload length(4bytes) are received. This happens because lenbufLength
  11295. is not updated in this particular case and successive call of
  11296. receiveMessage() overwrites payload length with bytes recieved which
  11297. are payload body.
  11298. * src/PeerConnection.{h, cc}
  11299. * src/message.h
  11300. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11301. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11302. peer if there are peers that have same ipaddr and port.
  11303. I've experiened segmentation fault and "pure virtual function was
  11304. called" error.
  11305. * src/Peer.h
  11306. * test/PeerTest.cc
  11307. * src/DefaultPeerStorage.cc
  11308. * test/DefaultPeerStorageTest.cc
  11309. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11310. Removed a call to isPowerOf() because it is no longer necessary here
  11311. and a request block is not always power of 2.
  11312. BUG#1866924
  11313. * src/PeerMessageUtil.cc (checkLength)
  11314. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11315. Fixed the bug that always first found Segment is removed from
  11316. usedSegmentEntries. Removed unused functions.
  11317. * src/SegmentMan.{h, cc}
  11318. * test/SegmentManTest.cc
  11319. Fixed the bug that ServerHost is not removed.
  11320. * src/RequestGroup.cc
  11321. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11322. Fixed the bug that SegmentMan::completeSegment() is not called
  11323. even if Segment is complete when --lowest-speed-limit is enabled.
  11324. BUG#1864525
  11325. * src/DownloadCommand.{h, cc}
  11326. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11327. Fixed: hash algorithm 'sha1' is always used.
  11328. * src/DownloadCommand.cc (validatePieceHash)
  11329. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11330. Added --enable-peer-exchange command-line option.
  11331. * src/OptionHandlerFactory.cc
  11332. * src/HelpItemFactory.cc
  11333. * src/option_processing.cc
  11334. * src/usage_text.h
  11335. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11336. Move extension from BtRuntime to ExtensionMessageFactory, because
  11337. extension can be specified per peer, not per torrent.
  11338. * src/DefaultBtInteractive.cc
  11339. * src/BtRuntime.h
  11340. * src/ExtendedMessagingAware.h
  11341. * src/ExtensionMessageFactory.h
  11342. * src/DefaultExtensionMessageFactory.cc
  11343. * test/DefaultExtensionMessageFactoryTest.cc
  11344. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11345. Added categorized option help. Specify category using --help option.
  11346. Also added the ability to search options in forward match.
  11347. * src/HelpItem.{h, cc}
  11348. * test/HelpItemTest.cc
  11349. * src/HelpItemFactory.{h, cc}
  11350. * src/TagContainer.{h, cc}
  11351. * test/TagContainerTest.cc
  11352. * src/option_processing.cc
  11353. * src/prefs.h
  11354. * src/TaggedItem.{h, cc}
  11355. * test/TaggedItemTest.cc
  11356. * src/version_usage.cc
  11357. * src/help_tags.h
  11358. * src/usage_text.h
  11359. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11360. Fixed segmentation fault when bad torrent metainfo is parsed.
  11361. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11362. and then throw exception or skip it.
  11363. * src/DefaultBtContext.{h, cc}
  11364. * test/DefaultBtContextTest.cc
  11365. * src/AnnounceList.cc
  11366. * src/CompactPeerListProcessor.cc
  11367. * src/message.h
  11368. * src/DefaultBtAnnounce.{h, cc}
  11369. * test/DefaultBtAnnounceTest.cc
  11370. * src/BencodeVisitor.cc
  11371. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11372. Added missing "B"(=Byte). So now the message looks like this:
  11373. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11374. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11375. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11376. Show the seed ratio after torrent downloads.
  11377. For example, after torrent download completed and --seed-time and
  11378. --seed-ratio conditions are fulfilled, following message is printed
  11379. right after "Download complete: .....":
  11380. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11381. * src/RequestGroupMan.cc
  11382. * src/RequestGroup.{h, cc}
  11383. * src/message.h
  11384. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11385. Remove a defunct control file. A defunct control file means that while
  11386. it exists, but the corresponding download file is missing.
  11387. After its removal, a download restarts from the beginning.
  11388. * src/RequestGroup.cc
  11389. * src/message.h
  11390. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11391. Allocate bitfield in Peer when it is really used. More specifically,
  11392. bitfield in Peer is allocated after the connection is established and
  11393. deallocated when the connection is dropped.
  11394. Since 2 parameters(piece length and total length) was removed from the
  11395. constructor of Peer class, many test classes were modified accordingly.
  11396. See svn log for more detailed information.
  11397. * src/PeerInteractionCommand.cc
  11398. * src/CompactPeerListProcessor.cc
  11399. * src/Peer.cc
  11400. * src/DefaultPeerListProcessor.cc
  11401. * src/PeerListenCommand.cc
  11402. * src/PeerReceiveHandshakeCommand.cc
  11403. Fixed memory leak
  11404. * src/Piece.cc
  11405. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11406. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11407. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11408. command-line options.
  11409. * src/option_processing.cc
  11410. * src/ActivePeerConnectionCommand.cc
  11411. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11412. Send have message to peer if it already has the piece.
  11413. * src/BtHaveMessage.{h, cc}
  11414. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11415. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11416. port.
  11417. * src/DefaultPeerStorage.{h, cc}
  11418. * test/DefaultPeerStorageTest.cc
  11419. * src/HandshakeExtensionMessage.cc
  11420. * test/HandshakeExtensionMessageTest.cc
  11421. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11422. * src/PeerStorage.h
  11423. * test/MockPeerStorage.h
  11424. * src/PeerListenCommand.cc
  11425. * src/PeerReceiveHandshakeCommand.cc
  11426. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11427. Added --metalink-enable-unique-protocol option.
  11428. * src/Metalink2RequestGroup.cc
  11429. * src/option_processing.cc
  11430. * src/prefs.h
  11431. * src/version_usage.cc
  11432. * doc/aria2c.1.txt
  11433. * doc/aria2c.1
  11434. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11435. Allow a peer in incomingPeer to be added peers.
  11436. * src/DefaultPeerStorage.cc
  11437. * test/DefaultPeerStorageTest.cc
  11438. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11439. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11440. I could reproduce this bug in following procedure:
  11441. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11442. 2. Restart aria2.
  11443. 3. You see the download stopped around 99%.
  11444. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11445. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11446. If timeout is reached, then _nextCommand is unused and it may contains
  11447. segments and they won't be canceled. Actually, timeout is not needed
  11448. here because if the server dropped connection, then retry is made.
  11449. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11450. Added uTorrent compatible Peer Exchange.
  11451. * src/BencodeVisitor.{h, cc}
  11452. * test/BencodeVisitorTest.cc
  11453. * src/BtConstants.h
  11454. * src/BtContext.h: Added 'private' flag.
  11455. * src/BtExtendedMessage.{h, cc}
  11456. * test/BtExtendedMessageTest.cc
  11457. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11458. reserved field.
  11459. * test/BtHandshakeMessageTest.cc
  11460. * src/BtMessageFactory.h
  11461. * src/BtRegistry.h
  11462. * src/BtRuntime.h: This class holds default extension message IDs for
  11463. aria2. By default, aria2 uses ID 8 for ut_pex.
  11464. * src/DefaultBtContext.cc
  11465. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11466. When it is true, aria2 enables ut_pex. This value is set by
  11467. PeerInteractionCommand.
  11468. * src/DefaultBtMessageFactory.{h, cc}
  11469. * test/DefaultBtMessageFactoryTest.cc
  11470. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11471. handling to DefaultBtInteractive class.
  11472. * src/DefaultExtensionMessageFactory.{h, cc}
  11473. * test/DefaultExtensionMessageFactoryTest.cc
  11474. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11475. the container(peers and incomingPeers. The equality is determined by
  11476. Peer::id).
  11477. * test/DefaultPeerStorageTest.cc
  11478. * src/ExtensionMessage.h
  11479. * test/MockExtensionMessage.h
  11480. * src/ExtensionMessageFactory.h
  11481. * test/MockExtensionMessageFactory.h
  11482. * src/HandshakeExtensionMessage.{h, cc}
  11483. * test/HandshakeExtensionMessageTest.cc
  11484. * src/MetaEntry.h
  11485. * src/Peer.{h, cc}
  11486. * src/PeerInteractionCommand.cc
  11487. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11488. addIncomingPeer.
  11489. * src/PeerMessageUtil.{h, cc}
  11490. * src/PeerObject.h
  11491. * src/UTPexExtensionMessage.{h, cc}
  11492. * test/UTPexExtensionMessageTest.cc
  11493. * src/message.h
  11494. * src/prefs.h
  11495. Fixed the bug that returns incomplete data when it contains null
  11496. character. A convenient constructor was also added.
  11497. * src/Data.{h, cc}
  11498. Rewritten.
  11499. * src/CompactPeerListProcessor.cc
  11500. Fixed typos.
  11501. * src/message.h
  11502. * src/MetaFileUtil.cc
  11503. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11504. Added "Status Legend" label to the explanation text of 'stat' in
  11505. download result and moved it to the last. BUG#1848214
  11506. * src/RequestGroupMan.cc
  11507. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11508. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11509. * src/Makefie.am
  11510. * test/Makefile.am
  11511. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11512. Fixed the bug that prevents aria2 from loading cookie file when expire
  11513. value is greater than 2^31-1. BUG#1851066
  11514. * src/CookieBoxFactory.cc
  11515. * test/CookieBoxFactoryTest.cc
  11516. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11517. Fixed possible memory leak when an exception is thrown.
  11518. * src/XML2SAXMetalinkProcessor.cc
  11519. Added Expat support. If both libxml2 and Expat are installed, then
  11520. libxml2 is used by default.
  11521. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11522. ExpatMetalinkProcessor according to the configuration.
  11523. * src/ExpatMetalinkProcessor.{h, cc}
  11524. * src/main.cc: Removed libxml2 specific header and init/free function.
  11525. * src/MetalinkProcessorFactory.{h, cc}
  11526. * src/MetalinkHelper.cc
  11527. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11528. * src/MetalinkProcessor.h
  11529. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11530. MetalinkProcessorTest is used instead.
  11531. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11532. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11533. MetalinkProcessorFactory::newInstance().
  11534. * m4/libexpat.m4
  11535. * configure.ac: Added configuration options for libexpat.
  11536. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11537. Disabled -s option in metalink download.
  11538. * src/Metalink2RequestGroup.cc
  11539. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11540. If several protocols are available for a mirror in metalink file,
  11541. aria2 now use one of them. --metalink-preferred-protocol option was
  11542. added to specify the preference of protocol.
  11543. * src/AbstractCommand.cc
  11544. * src/OptionHandlerFactory.cc
  11545. * src/ServerHost.{h, cc}
  11546. * src/Metalink2RequestGroup.cc
  11547. * src/RequestGroup.{h, cc}
  11548. * test/RequestGroupTest.cc
  11549. * src/option_processing.cc
  11550. * src/prefs.h
  11551. * src/HttpResponseCommand.cc
  11552. * src/MetalinkResource.{h, cc}
  11553. * src/FtpNegotiationCommand.cc
  11554. * src/MetalinkEntry.{h, cc}
  11555. * src/MetalinkEntryTest.cc
  11556. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11557. Code cleanup and added debug log.
  11558. * src/PeerConnection.cc
  11559. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11560. Compiler error fix: applied the patch by Tiziano Mueller
  11561. * src/RequestGroup.cc
  11562. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11563. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11564. in stopped and completed event.
  11565. * src/AnnounceList.{h, cc}
  11566. * test/AnnounceListTest.cc
  11567. * src/DefaultBtAnnounce.cc
  11568. * test/DefaultBtAnnounceTest.cc
  11569. Sorted URLs.
  11570. * test/Metalink2RequestGroupTest.cc
  11571. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11572. Removed unnecessary string copy. Updated doc and corrected indentation.
  11573. * src/Base64.cc
  11574. Fixed compilation warnings
  11575. * test/DataTest.cc
  11576. * test/HttpRequestTest.cc
  11577. * test/MetaFileUtilTest.cc
  11578. * test/RequestTest.cc
  11579. * Release 0.12.0
  11580. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11581. Updated translations
  11582. * po/{de,fr,ja,nl,ru}.po
  11583. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11584. translations. Many thanks to translators.
  11585. * po/{ca,es,it,pt_BR,sv}.po
  11586. * po/LINGUAS
  11587. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11588. Added a notice about URL
  11589. * src/version_usage.cc
  11590. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11591. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11592. aria2 repeatedly sends stopped request when tracker returns error code.
  11593. * src/AnnounceList.cc
  11594. * test/AnnounceListTest.cc
  11595. * src/AnnounceTier.h
  11596. Added a message when ctrl-c is hit.
  11597. Now second ctrl-c is also handled in signal handler.
  11598. * src/RequestGroupMan.{h, cc}
  11599. * src/RequestGroup.{h, cc}
  11600. * src/MultiUrlRequestInfo.cc
  11601. * src/DownloadEngine.cc
  11602. * src/TrackerWatcherCommand.cc
  11603. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11604. Code cleanup
  11605. * src/Base64.cc (encode)
  11606. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11607. Changed Direct/IO enable/disable procesure in file allocation routine.
  11608. * src/SingleFileAllocationIterator.cc
  11609. (SingleFileAllocationIterator):
  11610. Disable directIO if offset is not multiple of 512.
  11611. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11612. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11613. Enable created SingleFileAllocationIterator's directIO.
  11614. * src/FileAllocationEntry.cc
  11615. (FileAllocationEntry): Enable directIO here.
  11616. (~FileAllocationEntry): Disable directIO here.
  11617. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11618. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11619. * src/Peer.{h, cc}
  11620. * src/DefaultPieceStorage.cc
  11621. * test/DefaultPieceStorageTest.cc
  11622. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11623. Rewritten direct I/O support routine
  11624. * src/SingleFileAllocationIterator.cc
  11625. * src/MultiDiskAdaptor.{h, cc}
  11626. * src/ByteArrayDiskWriter.h
  11627. * src/AbstractSingleDiskAdaptor.h
  11628. * src/AbstractDiskWriter.cc
  11629. * src/DefaultPieceStorage.cc
  11630. * src/DiskWriter.h
  11631. * src/BinaryStream.h
  11632. * src/IteratableChunkChecksumValidator.cc
  11633. * src/IteratableChecksumValidator.cc
  11634. * src/CheckIntegrityEntry.cc
  11635. * src/FileAllocationEntry.cc
  11636. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11637. Fixed typo
  11638. * src/version_usage.cc
  11639. Updated doc
  11640. * doc/aria2c.1.txt
  11641. * doc/aria2c.1
  11642. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11643. Fixed compile error without message digest support.
  11644. * src/FileMetalinkParserState.cc
  11645. * src/MetalinkParserController.{h, cc}
  11646. * test/XML2SAXMetalinkProcessorTest.cc
  11647. * test/MetalinkParserControllerTest.cc
  11648. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11649. Enable direct I/O support in checksum checking.
  11650. * src/IteratableChunkChecksumValidator.{h, cc}
  11651. * test/IteratableChunkChecksumValidatorTest.cc
  11652. * src/CheckIntegrityEntry.cc
  11653. * src/PieceHashCheckIntegrityEntry.cc
  11654. * src/IteratableChecksumValidator.{h, cc}
  11655. * src/BtCheckIntegrityEntry.cc: Added doc.
  11656. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11657. Added --allow-piece-length-change option.
  11658. * src/DefaultBtProgressInfoFile.cc
  11659. * test/DefaultBtProgressInfoFileTest.cc
  11660. * src/OptionHandlerFactory.cc
  11661. * src/option_processing.cc
  11662. * src/prefs.h
  11663. * src/version_usage.cc
  11664. * doc/aria2c.1.txt
  11665. * doc/aria2c.1
  11666. Fixed: duplicated result entry appears when exception is thrown in
  11667. RequestGroup::createInitiateConnectionCommand().
  11668. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11669. Add RequestGroup to _requestGroup after RequetGroup::
  11670. createInitiateConnectionCommand() succeeds.
  11671. Externalized message
  11672. * src/XML2SAXMetalinkProcessor.cc
  11673. * src/message.h
  11674. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11675. Forced download abort when received negative response from http/ftp
  11676. server.
  11677. * src/HttpResponseCommand.cc
  11678. * src/FtpNegotiationCommand.cc
  11679. * src/HttpResponse.cc
  11680. * src/FtpConnection.cc
  11681. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11682. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11683. the predecessor, Xml2MetalinkParser class.
  11684. I tested them against 94KB metalink file with 1234 chunk checksums.
  11685. The new one parsed it in 22msec, while it took 6000msec with old one.
  11686. * src/XML2SAXMetalinkProcessor.{h, cc}
  11687. * test/XML2SAXMetalinkProcessorTest.cc
  11688. * src/MetalinkParserController.{h, cc}
  11689. * test/MetalinkParserControllerTest.cc
  11690. * src/MetalinkParserState.h: Also added 16 subclasses.
  11691. * src/main.cc
  11692. * src/Metalink2RequestGroup.cc
  11693. * src/MetalinkHelper.cc
  11694. * src/MetalinkEntry.cc
  11695. * src/ChunkChecksum.h
  11696. Rewritten Base64 class for better performance.
  11697. * src/Base64.{h, cc}
  11698. * test/Base64Test.cc
  11699. * src/HttpRequest.cc
  11700. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11701. Fixed the bug#1841757: aria2 will connect to server to only get
  11702. file size.
  11703. * src/StreamFileAllocationEntry.cc
  11704. * src/option_processing.cc
  11705. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11706. downloads.
  11707. * src/FtpNegotiationCommand.cc
  11708. Suppressed wrong message when finding PreDownloadHandler
  11709. * src/RequestGroup.cc
  11710. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11711. Updated usage
  11712. * src/version_usage.cc
  11713. Updated man page
  11714. * doc/aria2c.1.txt
  11715. * doc/aria2c.1
  11716. Updated po files
  11717. * po/aria2c.pot
  11718. * po/*.po
  11719. * po/*.gmo
  11720. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11721. Eliminated g++-4.2 warning
  11722. * src/DownloadHandlerConstants.{h, cc}
  11723. * src/Util.cc
  11724. * test/MetaFileUtilTest.cc
  11725. * test/PStringBuildVisitorTest.cc
  11726. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11727. * src/RequestGroup.cc
  11728. * src/BtCheckIntegrityEntry.cc
  11729. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11730. Fixed a2io.h
  11731. * src/a2io.h
  11732. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11733. Added direct I/O support. The current implementation uses O_DIRECT,
  11734. which is not posix standard and is tested on linux 2.6.21.
  11735. Currently only file allocation uses direct I/O.
  11736. * src/SingleFileAllocationIterator.{h, cc}
  11737. * test/SingleFileAllocationIteratorTest.cc
  11738. * src/MultiFileAllocationIterator.{h, cc}
  11739. * test/MultiFileAllocationIteratorTest.cc
  11740. * src/BinaryStream.h
  11741. * src/DiskWriter.h
  11742. * src/AbstractDiskWriter.{h, cc}
  11743. * src/ByteArrayDiskWriter.h
  11744. * src/DiskAdaptor.h
  11745. * src/AbstractSingleDiskAdaptor.{h, cc}
  11746. * src/MultiDiskAdaptor.{h, cc}
  11747. * src/FileAllocationEntry.cc
  11748. * src/Util.{h, cc}
  11749. * src/OptionHandlerFactory.cc
  11750. * src/prefs.h
  11751. * src/version_usage.cc
  11752. * src/option_processing.cc
  11753. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11754. handleException.
  11755. * src/MultiFileAllocationIterator.cc
  11756. Added EINTR handling
  11757. * src/SocketCore.cc
  11758. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11759. Updated usage
  11760. * src/version_usage.cc
  11761. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11762. Applied Ross's patch for MinGW port.
  11763. * src/DownloadEngine.h
  11764. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11765. Set Content-Type to SingleFileDownloadContext when http response is
  11766. received.
  11767. * src/HttpResponseCommand.cc
  11768. * src/HttpResponse.{h, cc}
  11769. * test/HttpResponseTest.cc
  11770. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11771. Rewritten to add content-type support.
  11772. * src/DownloadHandler.{h, cc}
  11773. * src/BtPostDownloadHandler.{h, cc}
  11774. * test/BtPostDownloadHandlerTest.cc
  11775. * src/MetalinkPostDownloadHandler.{h, cc}
  11776. * test/MetalinkPostDownloadHandlerTest.cc
  11777. * src/PostDownloadHandler.{h, cc}
  11778. * src/DownloadHandlerConstants.{h, cc}
  11779. * src/RequestGroup.cc
  11780. * src/HttpResponseCommand.cc
  11781. * src/FtpNegotiationCommand.cc
  11782. * src/SingleFileDownloadContext.{h, cc}
  11783. * src/RequestGroup.h
  11784. * src/RequestGroupCriteria.h
  11785. * src/ContentTypeRequestGroupCriteria.h
  11786. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11787. If it is give, metalink/torrent file is not written to the disk, but
  11788. just is kept in memory. Parsing is occurred on memory.
  11789. * src/MetalinkHelper.{h, cc}
  11790. * src/MetalinkProcessor.h
  11791. * src/Xml2MetalinkProcessor.{h, cc}
  11792. * test/Xml2MetalinkProcessorTest.cc
  11793. * src/DownloadHandlerFactory.{h, cc}
  11794. * test/DownloadHandlerFactoryTest.cc
  11795. * src/PreDownloadHandler.{h, cc}
  11796. * src/OptionHandlerFactory.cc
  11797. * src/DefaultBtContext.{h, cc}
  11798. * test/DefaultBtContextTest.cc
  11799. * src/version_usage.cc
  11800. * src/Metalink2RequestGroup.{h, cc}
  11801. * src/RequestGroup.{h, cc}
  11802. * src/a2functional.h
  11803. * test/a2functionalTest.cc
  11804. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11805. * src/OptionHandlerImpl.h
  11806. * src/prefs.h
  11807. * src/Util.{h, cc}
  11808. * test/UtilTest.cc
  11809. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11810. memory usage.
  11811. * src/RequestGroupMan.{h, cc}
  11812. * src/DownloadEngine.cc
  11813. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11814. WeakHandle to SharedHandle because WeakHandle could be null.
  11815. * src/RequestGroup.{h, cc}
  11816. * src/DownloadEngineFactory.cc
  11817. * src/DownloadResult.h
  11818. Set totalLength after download finished
  11819. * src/UnknownLengthPieceStorage.{h, cc}
  11820. Keep torrent file specified in metalink in memory.
  11821. * src/Metalink2RequestGroup.cc
  11822. * src/BtDependency.cc
  11823. * src/TrueRequestGroupCriteria.h
  11824. Fixed the bug: seekg is used where seekp should be used.
  11825. * src/ByteArrayDiskWriter.cc
  11826. * test/ByteArraydiskWriterTest.cc
  11827. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11828. Fixed syntax error
  11829. * test/SequenceTest.cc
  11830. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11831. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11832. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11833. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11834. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11835. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11836. Added the check to see whether ares_host_callback accepts timeouts
  11837. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11838. * src/NameResolver.{h, cc}
  11839. * m4/libcares.m4
  11840. * configure.ac: Set C++ for language choice.
  11841. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11842. Fixed: compilation fails without c-ares/ares
  11843. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11844. Generate http/ftp commands only when download is incomplete.
  11845. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11846. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11847. Corrected typo. Examples are removed since they are available in man
  11848. page.
  11849. * src/version_usage.cc
  11850. Updated man page.
  11851. * doc/aria2c.1
  11852. * doc/aria2c.1.txt
  11853. * doc/makeman: Commented out sed command.
  11854. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11855. Throw DlAbortEx when a remote file is not found.
  11856. * src/HttpResponse.cc
  11857. * src/FtpNegotiationCommand.cc
  11858. * src/message.h
  11859. Overwrite an existing file if --allow-overwrite=true is given.
  11860. * src/RequestGroup.cc
  11861. Removed unused functions
  11862. * src/AbstractCommand.h
  11863. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11864. Removed 'extern' from 'extern typedef ...' in src/*.h
  11865. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11866. Updated usage
  11867. * src/version_usage.cc
  11868. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11869. Trim announce URL
  11870. * src/DefaultBtContext.cc
  11871. * test/ShaVisitorTest.cc
  11872. Trim argument s. Give trimed s to exception constructor.
  11873. * src/Util.cc (parseInt)(parseLLInt)
  11874. * test/UtilTest.cc
  11875. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11876. Set precision back to 1.
  11877. * src/ConsoleStatCalc.cc (calculateStat)
  11878. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11879. Replaced strtol with Util::parseInt
  11880. * src/ChunkedEncoding.cc
  11881. * src/HttpConnection.cc
  11882. * src/CookieBoxFactory.cc
  11883. * src/ParameterizedStringParser.cc
  11884. * src/Util.cc
  11885. * test/UtilTest.cc
  11886. * test/OptionHandlerTest.cc
  11887. * src/Request.cc
  11888. Throw exception when empty string is given. The message for exception
  11889. changed.
  11890. * src/Util.cc (parseInt)(parseLLInt)
  11891. * src/message.h
  11892. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11893. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11894. set to 1.
  11895. * src/ConsoleStatCalc.cc (calculateStat)
  11896. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11897. Preallocate non-requested file which is adjacent forward to requested
  11898. file('requested' files means the files given in --select-file option)
  11899. if they share a same piece.
  11900. This fixes long pause in the file system which doesn't support sparse
  11901. files like FAT32 while downloading.
  11902. * src/MultiFileAllocationIterator.{h, cc}
  11903. * test/MultiFileAllocationIteratorTest.cc
  11904. * src/FileEntry.{h, cc}
  11905. Removed unused _option.
  11906. * src/MultiDiskAdaptor.h
  11907. * test/MultiDiskAdaptorTest.cc
  11908. * src/DefaultPieceStorage.cc
  11909. Set the default value of --seed-ratio to 1.0.
  11910. If 0.0 is given, then seeding continues regardless of share ratio.
  11911. * src/version_usage.cc
  11912. * src/option_processing.cc
  11913. * src/BtSetup.cc
  11914. * doc/aria2c.1.txt
  11915. * doc/aria2c.1
  11916. Fixed: Selective download is not working in BitTorrent
  11917. * src/RequestGroup.cc
  11918. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11919. * src/PieceStorage.h
  11920. * test/MockPieceStorage.h
  11921. * src/UnknownLengthPieceStorage.h
  11922. * src/DefaultPieceStorage.{h, cc}
  11923. * src/Metalink2RequestGroup.cc
  11924. * src/RequestGroup.cc
  11925. * src/Sequence.h
  11926. * test/SequenceTest.cc
  11927. * src/IntSequence.h
  11928. * src/message.h
  11929. * src/Util.{h, cc}
  11930. * test/UtilTest.cc
  11931. Added new function 'parse' to catch exception thrown by subclass's
  11932. parseArg
  11933. * src/OptionHandler.h
  11934. * src/OptionParser.cc
  11935. * src/NameMatchOptionHandler.h
  11936. * src/OptionHandlerImpl.h
  11937. * test/OptionHandlerTest.cc
  11938. Added IntegerRangeOptionHandler. Used for --listen-port and
  11939. --select-file. Now --listen-port accepts range of port.
  11940. * src/OptionHandlerFactory.cc
  11941. * src/version_usage.cc
  11942. * src/OptionHandlerImpl.h
  11943. * src/option_processing.cc
  11944. * src/BtSetup.cc
  11945. * src/PeerListenCommand.{h, cc}
  11946. * doc/aria2c.1.txt
  11947. * doc/aria2c.1
  11948. Implemented operator< for Exception class to provide easy way to print
  11949. exception stack trace.
  11950. * src/Exception.{h, cc}
  11951. * src/main.cc
  11952. * src/option_processing.cc
  11953. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11954. * src/version_usage.cc
  11955. (showVersion): Reworked.
  11956. (showUsage): Added examples.
  11957. Removed Hint for total length and file name.
  11958. * src/Metalink2RequestGroup.cc
  11959. * src/RequestGroup.{h, cc}
  11960. * src/HttpResponseCommand.cc
  11961. * src/FtpNegotiationCommand.cc
  11962. Now --follow-torrent and --follow-metalink option work properly.
  11963. * src/RequestGroup.cc
  11964. Updated man page
  11965. * doc/aria2c.1.txt
  11966. * doc/aria2c.1
  11967. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11968. Removed.
  11969. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11970. Use Segment::operator==()
  11971. * src/HttpConnection.cc
  11972. * src/Segment.h
  11973. Updated usage
  11974. * src/version_usage.cc
  11975. Added EINTR treatment.
  11976. * src/SocketCore.cc
  11977. * src/AbstractDiskWriter.cc
  11978. Rewritten.
  11979. * src/Util.cc (rangedFileCopy)
  11980. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11981. Fixed typo.
  11982. * src/version_usage.cc
  11983. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11984. Implemented. Now -c option works fine.
  11985. * src/DefaultPieceStorage.cc (markPiecesDone)
  11986. * test/DefaultPieceStorageTest.cc
  11987. Removed.
  11988. * src/SegmentMan.{h, cc}
  11989. (markAllPiecesDone)
  11990. (markPieceDone)
  11991. Synchronized po files with
  11992. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11993. * src/fr.po
  11994. * src/ru.po
  11995. * src/de.po
  11996. * src/ja.po
  11997. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11998. Added ifdef and some modifications to compile without BitTorrent,
  11999. Metalink, MessageDigest
  12000. support.
  12001. * src/PieceHashCheckIntegrityEntry.cc
  12002. * src/MetalinkEntry.h
  12003. * src/version_usage.cc
  12004. * src/main.cc
  12005. * src/DownloadEngine.{h, cc}
  12006. * src/Metalink2RequestGroup.cc
  12007. * src/Peer.cc
  12008. * src/RequestGroup.cc
  12009. * src/MetalinkHelper.cc
  12010. * test/DefaultPieceStorageTest.cc
  12011. * test/MetalinkPostDownloadHandlerTest.cc
  12012. * test/Metalink2RequestGroupTest.cc
  12013. Hide TOTAL SPD when all downloads complete.
  12014. * src/ConsoleStatCalc.cc
  12015. Log target system information.
  12016. * src/main.cc
  12017. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12018. Now --metalink-location accepts a comma-deliminated list of locations.
  12019. * src/MetalinkEntry.{h, cc}
  12020. * test/MetalinkEntryTest.cc
  12021. * src/version_usage.cc
  12022. * src/Metalink2RequestGroup.cc
  12023. * src/Xml2MetalinkProcessor.cc
  12024. * test/Xml2MetalinkProcessorTest.cc
  12025. * doc/aria2c.1.txt
  12026. * doc/aria2c.1
  12027. * src/Util.cc (toUpper)(toLower): Rewritten.
  12028. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12029. Added the ability to detect duplicate download entry which is about to
  12030. download the same file other RequestGroup is downloading.
  12031. * src/RequestGroup.cc
  12032. * src/HttpResponseCommand.cc
  12033. * src/FtpNegotiationCommand.cc
  12034. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12035. Recalculates download progress when loading a control file,
  12036. if the piece length of DownloadContext is different from the one saved
  12037. in the control file. Currently in-flight pieces are ignored.
  12038. * src/DefaultBtProgressInfoFile.cc
  12039. * test/DefaultBtProgressInfoFileTest.cc
  12040. * src/Util.{h, cc}
  12041. * test/UtilTest.cc
  12042. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12043. Do not rotate tiers in announce-list.
  12044. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12045. AnnounceList::allTiersFailed() used instead to detect whether all
  12046. tiers are tried and failed.
  12047. * test/DefaultBtAnnounceTest.cc
  12048. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12049. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12050. * test/AnnounceListTest.cc
  12051. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12052. clause. Catch RecoverableException instead of DlRetryEx instead.
  12053. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12054. Implemented checksum validation feature(1 checksum for each file)
  12055. The validation takes place after the download.
  12056. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12057. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12058. * src/CheckIntegrityCommand.cc: Changed log message.
  12059. * src/Metalink2RequestGroup.cc: Set checksum to
  12060. SingleFileDownloadContext.
  12061. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12062. PieceHashCheckIntegrity class.
  12063. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12064. PieceHashCheckIntegrity class.
  12065. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12066. * src/IteratableValidator.h: New class.
  12067. * src/message.h
  12068. * src/CheckIntegrityEntry.{h, cc}
  12069. * src/IteratableChunkChecksumValidator.{h, cc}
  12070. * src/SingleFileDownloadContext.h
  12071. * src/DownloadCommand.cc
  12072. --allow-overwrite=true is no longer needed to check file integrity
  12073. before download in BitTorrent download.
  12074. * src/RequestGroup.cc (getInitialCommand)
  12075. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12076. throws exception.
  12077. * src/RequestGroupMan.cc (getInitialCommands)
  12078. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12079. urlencode the given url inside Request::parseUrl(...)
  12080. * src/Request.{h, cc}
  12081. * src/Util.{h, cc}
  12082. * test/RequestTest.cc
  12083. Removed #!metalink3! notation support because it is deleted from
  12084. the metalink specification.
  12085. * src/Request.{h, cc}
  12086. * test/RequestTest.cc
  12087. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12088. Don't connect server before checking file integrity at startup, if
  12089. filesize and output file path are known.
  12090. * src/AbstractCommand.cc
  12091. * src/StreamFileAllocationEntry.cc
  12092. * src/Metalink2RequestGroup.cc
  12093. * src/RequestGroup.{h, cc}
  12094. * src/HttpResponseCommand.cc
  12095. * src/FtpNegotiationCommand.cc
  12096. Added DownloadFailureException. If it is thrown, RequestGroup should
  12097. halt.
  12098. * src/AbstractCommand.cc
  12099. * src/DownloadFailureException.h
  12100. * src/RequestGroup.cc
  12101. Catch RecoverableException, instead of DlAbortEx.
  12102. * src/RequestGroupMan.cc
  12103. * src/FillRequestGroupCommand.cc
  12104. * src/MetaFileUtil.cc
  12105. * src/IteratableChunkChecksumValidator.cc
  12106. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12107. getGID())
  12108. * src/CheckIntegrityCommand.cc
  12109. * src/message.h
  12110. Print gid instead of idx.
  12111. * src/RequestGroupMan.cc
  12112. Removed exception throwers declaration.
  12113. * src/DirectDiskAdaptor.{h, cc}
  12114. * src/SocketCore.{h, cc}
  12115. * src/MultiDiskAdaptor.{h, cc}
  12116. * src/HttpConnection.{h, cc}
  12117. * src/HttpResponse.{h, cc}
  12118. * src/DiskAdaptor.{h, cc}
  12119. * src/CopyDiskAdaptor.{h, cc}
  12120. * src/MultiDiskAdaptor.{h, cc}
  12121. * src/HttpHeaderProcessor.{h, cc}
  12122. * src/AbstractSingleDiskAdaptor.{h, cc}
  12123. * src/Util.{h, cc}
  12124. * test/UtilTest.cc
  12125. * src/DefaultDiskWriter.{h, cc}
  12126. * src/FtpConnection.{h, cc}
  12127. * src/AbstractDiskWriter.{h, cc}
  12128. Removed duplicate code.
  12129. * src/StreamCheckIntegrityEntry.cc
  12130. Removed unnecessary include.
  12131. * src/DiskWriter.h
  12132. Included Exception.h
  12133. * src/option_processing.cc
  12134. Included 2 files and added doc
  12135. * src/TrackerWatcherCommand.cc
  12136. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12137. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12138. Changed CheckIntegrityEntry interface so that it can define
  12139. the action when all the chunk checksums are valid.
  12140. * src/CheckIntegrityEntry.h
  12141. * src/StreamCheckIntegrityEntry.{h, cc}
  12142. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12143. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12144. to exit rather than doing seeding. So, it would be good to toggle this
  12145. behavior.
  12146. * src/CheckIntegrityCommand.cc
  12147. * src/AbstractCommand.cc
  12148. * src/RequestGroup.cc
  12149. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12150. Reflect the download length of in-flight pieces.
  12151. It makes the download length readout more precise.
  12152. * src/DefaultPieceStorage.{h, cc}
  12153. * test/DefaultPieceStorageTest.cc
  12154. * src/a2functional.h
  12155. * test/a2functionalTest.cc
  12156. Lower CPU load when --max-download-limit is used.
  12157. There is up and down in speed indicator when enabling
  12158. http-pipelining but a download goes well. I think the problem is that
  12159. because http-pipelining is enabled, DownloadCommand is created for
  12160. each segment and in its constructor, PeerStat::downloadStart() is
  12161. called. In PeerStat::downloadStart(), speed calculation object is
  12162. reseted, which makes download speed zero.
  12163. * src/DownloadCommand.cc
  12164. Rewritten using accumulate.
  12165. * src/RequestGroupMan.cc (calculateStat)
  12166. Code clearnup.
  12167. * src/FtpNegotiationCommand.cc
  12168. * src/HttpResponseCommand.cc
  12169. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12170. Fixed: Can not resume: aria2 reports download already finished.
  12171. * src/AbstractCommand.{h, cc}
  12172. * src/HttpResponseCommand.cc
  12173. * src/FtpNegotiateCommand.cc
  12174. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12175. Now a file is stored in the directory specified in .metalnk file
  12176. (file[@name]).
  12177. * src/Metalink2RequestGroup.cc
  12178. Create the directory structure when opening the file if it doesn't
  12179. exist.
  12180. * src/AbstractDiskWriter.cc
  12181. * src/Util.{h, cc}
  12182. * src/File.h
  12183. * test/UtilTest.cc
  12184. Removed file name comparison
  12185. * src/Metalink2RequestGroup.cc
  12186. * src/HttpResponseCommand.cc
  12187. Rewritten using Util::mkdirs()
  12188. * src/FileEntry.cc (setupDir)
  12189. * test/FileEntryTest.cc
  12190. Updated doc
  12191. * src/SingleFileDownloadContext.h
  12192. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12193. Now SleepCommand dispatches nextCommand when halt is requested.
  12194. It avoids a possible long wait after hitting CTRL-C.
  12195. * src/SleepCommand.{h, cc}
  12196. * src/RequestGroupAware.{h, cc}
  12197. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12198. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12199. to open listen port, then remove the port number from the tracker
  12200. request.
  12201. * src/DefaultBtAnnounce.cc
  12202. * test/DefaultBtAnnounceTest.cc
  12203. * test/MockPieceStorage.h
  12204. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12205. them more testable.
  12206. * src/DefaultBtAnnounce.{h, cc}
  12207. * src/DefaultBtContext.{h, cc}
  12208. * src/Util.{h, cc}
  12209. * test/DefaultBtAnnounceTest.cc
  12210. * test/DefaultBtContextTest.cc
  12211. * test/UtilTest.cc
  12212. Added 'B' to upload bytes readout.
  12213. * src/ConsoleStatCalc.cc
  12214. Now the listen port for BitTorrent download is opened when it is
  12215. needed.
  12216. * src/DownloadEngineFactory.cc
  12217. * src/BtSetup.{h, cc}
  12218. * src/PeerListenCommand.{h, cc}
  12219. Now an exception thrown while parsing tracker response is now logged.
  12220. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12221. called, which means no retry is made in this case, assuming a tracker
  12222. has a problem.
  12223. * src/TrackerWatcherCommand.cc
  12224. Fixed: downloading a file whose length is unkown fails.
  12225. * src/DownloadCommand.cc
  12226. Simplified prepareForNextSegment()
  12227. * src/DownloadCommand.cc
  12228. Updated
  12229. * po/POTFILES.in
  12230. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12231. Re-implemented a file listing for Metalink, which was dropped while
  12232. http/ftp/torrent integration was being implemented.
  12233. * src/MetalinkHelper.{h, cc}: New class.
  12234. * test/MetalinkHelperTest.cc
  12235. * src/main.cc
  12236. * src/Metalink2RequestGroup.cc
  12237. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12238. Added the ability to display the detailed torrent file information.
  12239. Now -S option gives not only a file listing, but also total download
  12240. length, info hash, announce URI, piece length, the number of pieces,
  12241. and mode(single or multi-torrent).
  12242. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12243. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12244. KiB)
  12245. * test/UtilTest.cc
  12246. * src/main.cc
  12247. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12248. Added ftp://USER:PASSWD@Servername automatic parsing.
  12249. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12250. _password. Recognize username and password in URI.
  12251. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12252. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12253. * src/RequestFactory.{h, cc}: Removed.
  12254. * src/AuthConfigFactory.{h, cc}: New class.
  12255. * src/FtpConnection.cc: Use AuthConfigFactory.
  12256. * src/HttpRequest.cc: Use AuthConfigFactory.
  12257. * test/HttpRequestTest.cc: Updated.
  12258. * test/RequestTest.cc: Updated.
  12259. * test/AuthConfigFactoryTest.cc: New class.
  12260. * test/RequestFactoryTest.cc: Removed.
  12261. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12262. Use RequestGroup::allDownloadFinished() to decide whether the control
  12263. file should be removed or saved.
  12264. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12265. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12266. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12267. Use File::renameTo()
  12268. * src/DefaultBtProgressInfoFile.cc
  12269. Added --no-file-allocation-limit command-line option.
  12270. * src/version_usage.cc
  12271. * src/option_processing.cc
  12272. * src/OptionHandlerFactory.cc
  12273. * src/RequestGroup.{h, cc}
  12274. * src/BtCheckIntegrityEntry.cc
  12275. * src/StreamCheckIntegrityEntry.cc
  12276. * src/prefs.h
  12277. * doc/aria2c.1.txt
  12278. * doc/aria2c.1
  12279. Now prealloc is the default value for --file-allocation option.
  12280. * src/version_usage.cc
  12281. * src/option_processing.cc
  12282. * doc/aria2c.1.txt
  12283. * doc/aria2c.1
  12284. Don't URL-encode user-agent.
  12285. * src/HttpRequest.cc
  12286. Updated translations
  12287. * po/LINGUAS: Added nl for Dutch translation.
  12288. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12289. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12290. * po/POTFILES.in: Updated.
  12291. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12292. Added the ability to recognize url-list in a torrent file.
  12293. The retrieved URLs are attached to the corresponding FileEntry.
  12294. * src/DefaultBtContext.{h, cc}
  12295. * src/FileEntry.{h, cc}
  12296. * test/DefaultBtContextTest.cc
  12297. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12298. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12299. after the download finishes.
  12300. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12301. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12302. the data smaller than block length.
  12303. A block length can be specified by constructor's argument.
  12304. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12305. Get a missing piece in the range of given FileEntry. This function is
  12306. not used in the program yet.
  12307. * src/Util.h: Added some macros.
  12308. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12309. Added HTTP/1.1 keep alive and pipelining support.
  12310. See --enable-http-keep-alive and --enable-http-pipelining option.
  12311. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12312. Segment.
  12313. * src/HttpDownloadCommand.{h, cc}
  12314. * src/OptionHandlerFactory.cc
  12315. * src/HttpConnection.{h, cc}
  12316. * src/version_usage.cc
  12317. * src/HttpInitiateConnectionCommand.cc
  12318. * src/FtpInitiateConnectionCommand.cc
  12319. * src/Segment.h
  12320. * src/HttpRequestCommand.{h, cc}
  12321. * src/option_processing.cc
  12322. * src/prefs.h
  12323. * src/HttpResponseCommand.cc
  12324. * src/SegmentMan.{h, cc}
  12325. * src/FtpNegotiateCommand.cc
  12326. * src/HttpProxyResponseCommand.cc
  12327. * src/Request.cc
  12328. * src/HttpRequest.cc
  12329. * src/DownloadCommand.cc
  12330. * test/HttpRequestTest.cc
  12331. * test/RequestTest.cc
  12332. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12333. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12334. finished.
  12335. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12336. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12337. catching it inside the method.
  12338. When no file entry is found in a metalink without querying user
  12339. preferences, throw the exception with the error message that suggests
  12340. metalink file is probably broken.
  12341. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12342. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12343. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12344. processed.
  12345. * src/RequestGroupMan.cc (removeStoppedGroup)
  12346. Added debug message.
  12347. * src/BtPostDownloadHandler.cc
  12348. * src/MetalinkPostDownloadHandler.cc
  12349. * src/PostDownloadHandler.{h, cc}
  12350. * src/RequestGroup.cc
  12351. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12352. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12353. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12354. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12355. stops and there are any unfinished or in-progress downloads.
  12356. Added the legend of "stat".
  12357. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12358. Throw exception when chunck checksum verification fails.
  12359. * src/DownloadCommand.cc (validatePieceHash): New function.
  12360. * src/PiecedSegment.{h, cc} (clear): New function.
  12361. * src/GrowSegment.{h, cc} (clear): New function.
  12362. * src/Segment.h (clear): New function.
  12363. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12364. * test/SegmentTest.cc
  12365. * test/GrowSegmentTest.cc
  12366. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12367. Do not send referer when redirected.
  12368. * src/Request.cc (redirectUrl)
  12369. * test/RequestTest.cc
  12370. * test/HttpRequestTest.cc
  12371. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12372. Implemented BitTorrent/http/ftp integrated download.
  12373. I've rewritten lots of files and now some headers have forward
  12374. class declarations to reduce compile time.
  12375. The implementation is extremely alpha stage, I recommend to use this
  12376. for testing purpose only.
  12377. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12378. Fixed the compilation error on 64bit platform.
  12379. * test/HttpHeaderProcessorTest.cc
  12380. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12381. Merged Ross's patch that fixes compilation problem in MinGW
  12382. * test/DefaultBtProgressInfoFileTest.cc
  12383. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12384. Updated fr.po by sebone
  12385. * po/fr.po
  12386. Updated man page.
  12387. * doc/aria2c.1.txt
  12388. * Release 0.11.3
  12389. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12390. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12391. failure in Metalink.
  12392. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12393. Automatically save *.aria2 control file of http/ftp download in every
  12394. 60 seconds.
  12395. * src/AutoSaveCommand.{h, cc}: New class.
  12396. * src/TimeBasedCommand.{h, cc}: New class.
  12397. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12398. Disable parameterized URI support by default. Added -P option to
  12399. enable the feature.
  12400. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12401. * src/OptionHandlerFactory.cc
  12402. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12403. Updated Japanese translation.
  12404. * po/ja.po
  12405. Updated man page.
  12406. * doc/aria2c.1.txt
  12407. * Release 0.11.3-rc
  12408. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12409. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12410. it is successful, then renamed to *.aria2.
  12411. This prevents *.aria2 file from being truncated or corrupted when
  12412. file system becomes out of space.
  12413. * src/DefaultBtProgressInfoFile.cc (save)
  12414. * src/SegmentMan.cc (save)
  12415. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12416. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12417. Reduced the fragmentation of bitfield in http/ftp download.
  12418. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12419. * test/BitfieldManTest.cc
  12420. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12421. Added the ability to disable segmented download in .metalink.
  12422. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12423. 'url' tag.
  12424. * src/MetalinkEntry.{h, cc}
  12425. * src/RequestResource.{h, cc}
  12426. * src/MetalinkRequestInfo.cc
  12427. * src/Xml2MetalinkProcessor.cc
  12428. * test/Xml2MetalinkProcessorTest.cc
  12429. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12430. Added parameterized URI support.
  12431. * src/main.cc: -Z option added.
  12432. * src/OptionHandlerFactory.cc
  12433. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12434. * src/PStringDatum.h: New class.
  12435. * src/PStringSegment.{h,cc}: New class.
  12436. * src/PStringNumLoop.h: New class.
  12437. * src/PStringSelect.h: New class.
  12438. * src/NumberDecorator.h: New class.
  12439. * src/FixedWidthNumberDecorator.h: New class.
  12440. * src/AlphaNumberDecorator.h: New class.
  12441. * src/PStringVisitor.h: New class.
  12442. * src/PStringBuildVisitor.{h,cc}: New class.
  12443. * src/ParameterizedStringParser.{h,cc}: New class.
  12444. * src/Util.{h,cc}
  12445. (isNumber): New function.
  12446. (isLowercase): New function.
  12447. (isUppercase): New function.
  12448. (alphaToNum): New function.
  12449. * test/ParameterizedStringParserTest.cc: New class.
  12450. * test/AlphaNumberDecoratorTest.cc: New class.
  12451. * test/PStringBuildVisitorTest.cc: New class.
  12452. * test/UtilTest.cc
  12453. (testIsNumber): New function.
  12454. (testIsLowercase): New function.
  12455. (testIsUppercase): New function.
  12456. (testAlphaToNum): New function.
  12457. Added '\n' after the error message
  12458. * src/RequestInfo.h (printDownloadAbortMessage)
  12459. Added auto file renaming feature in http(s)/ftp download.
  12460. * src/main.cc: Added --auto-file-renaming command-line option.
  12461. * src/OptionHandlerFactory.cc
  12462. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12463. * src/RequestGroup.{h, cc}
  12464. (shouldCancelDownloadForSafety): Rewritten
  12465. (tryAutoFileRenaming): New function.
  12466. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12467. * src/HttpResponseCommand.cc
  12468. (executeInternal): Removed the call to RequestGroupMan::
  12469. isSameFileBeingDownloaded()
  12470. * src/FtpNegotiateCommand.cc
  12471. (recvSize): Removed the call to RequestGroupMan::
  12472. isSameFileBeingDownloaded()
  12473. * test/RequestGroupTest.cc: New class.
  12474. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12475. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12476. IO.
  12477. * src/DefaultBtProgressInfoFile.cc
  12478. * src/MetaFileUtil.cc
  12479. * src/SimpleLogger.cc
  12480. * src/SegmentMan.cc
  12481. * src/Util.cc
  12482. * src/Platform.cc
  12483. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12484. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12485. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12486. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12487. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12488. Fixed the bug that prevents file allocation is not done when
  12489. dowloading multi-torrent file.
  12490. * src/AbstractDiskWriter.cc (openFile)
  12491. Increase the maximum number of -j option from 15 to 45.
  12492. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12493. Added fr.po, thanks to Charles Landemaine.
  12494. * po/fr.po
  12495. * po/LINGUAS
  12496. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12497. gcc 3.4.4 support:
  12498. * src/DefaultBtContext.cc: int32_t -> int
  12499. * src/main.cc: int -> int32_t, int32_t -> int
  12500. * src/messageDigest.h: uint32_t -> unsigned int
  12501. * src/NameResolver.h: int32_t -> int
  12502. * src/PeerConnection.cc: int -> int32_t
  12503. * src/SpeedCalc.cc: int32_t -> int
  12504. * src/TrackerUpdateCommand.h: int -> int32_t
  12505. * src/Util.cc: int32_t -> int
  12506. * src/Util.h: int32_t -> int
  12507. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12508. * test/AnnounceListTest.cc: int -> int32_t
  12509. * test/ChunkedEncodingTest.cc: int -> int32_t
  12510. * test/DataTest.cc: int -> int32_t
  12511. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12512. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12513. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12514. * test/FeatureConfigTest.cc: int -> int32_t
  12515. * test/MetalinkEntryTest.cc: int -> int32_t
  12516. * test/MockBtRequestFactory.h: int -> int32_t
  12517. * test/MockPieceStorage.h: int -> int32_t
  12518. * test/OptionTest.cc: int -> int32_t
  12519. * test/RequestTest.cc: int -> int32_t
  12520. * test/SegmentManTest.cc: int -> int32_t
  12521. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12522. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12523. Move sleep functions to Util class:
  12524. * src/Util.cc
  12525. (sleep): New function.
  12526. (usleep): New function.
  12527. * src/DownloadCommand.cc: sleep -> Util::sleep
  12528. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12529. MinGW build enhancements. The following files are added:
  12530. * src/timegm.{c,h}
  12531. Changes to support the above new files:
  12532. * configure.ac
  12533. * src/Makefile.am
  12534. * src/a2time.h
  12535. * src/Util.cc:
  12536. * src/strptime.c: Added support for %Z option.
  12537. Fixed MinGW non-blocking bug.
  12538. * src/SocketCore.cc
  12539. * src/HttpRequestCommand.cc
  12540. Miscellenous build fixes/enhancements.
  12541. * configure.ac: Added summary report.
  12542. * src/Platform.h: Tweaked #include's.
  12543. * src/a2netcompat.h: Tweaked #include's.
  12544. * src/strptime.h: Tweaked #include's.
  12545. * src/gai_strerror.c: Tweaked #include's.
  12546. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12547. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12548. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12549. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12550. Increased the initial connection size in BitTorrent download to 40.
  12551. * src/BtRuntime.h
  12552. Added the usage message of --peer-id-prefix option.
  12553. * src/main.cc
  12554. * Release 0.11.2
  12555. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12556. MessageDigestHelper is introduced in order to simplify the use
  12557. of message digest. Removed repeated code.
  12558. The message digest algorithm is now specified by string, like "sha1",
  12559. "md5".
  12560. * src/messageDigest.{h, cc}
  12561. * src/MessageDigestHelper.{h, cc}: New class.
  12562. * src/DefaultPieceStorage.cc
  12563. * src/DefaultBtContext.{h, cc}
  12564. (computeFastSet): New function.
  12565. (setInfoHash): Added for unit testing.
  12566. (setNumPieces): Added for unit testing.
  12567. * src/DefaultBtInteractive.cc
  12568. * src/BtPieceMessage.cc
  12569. * src/Peer.cc
  12570. * src/Checksum.h
  12571. * src/message.h
  12572. * src/IteratableChecksumValidator.h
  12573. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12574. inside it.
  12575. * src/SegmentMan.{h, cc}
  12576. (checkIntegrity): Removed.
  12577. * src/IteratableChunkChecksumValidator.{h, cc}
  12578. * src/Util.h
  12579. (sha1Sum): Removed.
  12580. (simpleMessageDigest): Removed.
  12581. (fileChecksum): Removed.
  12582. (computeFastSet): Removed.
  12583. * src/ShaVisitor.cc
  12584. * src/ChunkChecksum.h
  12585. * src/DownloadCommand.cc
  12586. Removed messageDigest virtual functions.
  12587. * src/MultiDiskAdaptor.{h, cc}
  12588. * src/DiskAdaptor.h
  12589. * src/ByteArrayDiskWriter.h
  12590. * src/DiskWriter.h
  12591. * src/DiskAdaptorWriter.h
  12592. * src/AbstractSingleDiskAdaptor.{h, cc}
  12593. * src/AbstractDiskWriter.{h, cc}
  12594. Fixed comilation error when message digest is disabled.
  12595. * src/MetalinkEntry.{h, cc}
  12596. * src/MetalinkRequestInfo.cc
  12597. Removed srandom and random.
  12598. * src/SimpleRandomizer.h
  12599. Added size() virtual function to DiskAdaptor
  12600. * src/MultiDiskAdaptor.h
  12601. Fixed the bug that causes that files are not opened correctly in
  12602. multi-file torrent.
  12603. * src/TorrentRequestInfo.cc
  12604. * src/MultiDiskAdaptor.cc
  12605. Added SHA256 support
  12606. * src/messageDigest.cc
  12607. * src/Xml2MetalinkProcessor.cc
  12608. Show supported message digest algorithms
  12609. * src/main.cc
  12610. Updated contact info.
  12611. * src/main.cc
  12612. Applied Ross's patch
  12613. * src/a2netcompat.h
  12614. * src/main.cc
  12615. Fixed the bug that prevents a remote metalink from not being processed
  12616. even if '-o foo.metalink' is specified.
  12617. * src/MetalinkRequestInfo.cc
  12618. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12619. Merged Dan's patch:
  12620. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12621. Use va_copy to avoid core dump on amd64:
  12622. * src/SimpleLogger.cc
  12623. Updated contact info.
  12624. * src/main.cc
  12625. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12626. digest is not available.
  12627. * src/MetalinkEntry.h
  12628. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12629. Make a2netcompat.h include a2io.h to fix compilation error:
  12630. * src/a2netcompat.h
  12631. * src/SocketCore.cc: Removed include of a2io.h
  12632. * src/Util.cc: Removed include of a2io.h
  12633. Gather time related functions to a2time.h:
  12634. * src/a2time.h: New file.
  12635. * src/DefaultPeerStorage.cc
  12636. * src/SimpleLogger.cc
  12637. * src/Util.{h, cc}
  12638. * src/SimpleRandomizer.h
  12639. * src/TimeA2.{h,cc}
  12640. * src/DownloadCommand.cc
  12641. * src/main.cc
  12642. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12643. a2netcompat.h:
  12644. * src/NameResolver.cc
  12645. Fixed compilation error without openssl:
  12646. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12647. Added default block to suppress compiler warnings:
  12648. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12649. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12650. MinGW build enhancements. The following files are added:
  12651. * src/gai_strerror.{c,h}
  12652. * src/gettimeofday.{c,h}
  12653. Changes to support the above new files:
  12654. * configure.ac
  12655. * src/Makefile.am
  12656. * src/a2netcompat.h
  12657. * src/TimeA2.cc
  12658. * src/DefaultPeerStorage.cc
  12659. * src/NameResolver.cc: removed mingw_strerror() function.
  12660. * src/SocketCore.cc: removed mingw_strerror() function.
  12661. Miscellaneous MinGW build fixes.
  12662. * src/a2io.h: Use _lseeki64() instead of lseek()
  12663. * src/common.h
  12664. * src/DefaultFileAllocator.cc
  12665. * src/GlowFileAllocator.cc
  12666. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12667. * src/NameResolver.cc
  12668. (callback): Changed int32_t to int.
  12669. (resolve): Changed int32_t to int.
  12670. * src/Platform.cc
  12671. * src/Platform.h
  12672. * test/MultiDiskWriterTest.cc
  12673. * test/PeerMessageUtilTest.cc
  12674. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12675. Other enhancements and fixes.
  12676. * src/HttpRequestCommand.cc
  12677. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12678. * src/SocketCore.cc:
  12679. (error): New function to abstract errno/WSAGetLastError().
  12680. (errorMsg): New function to abstract errno/WSAGetLastError().
  12681. (initiateSecureConnection): Added more detailed error reporting.
  12682. * src/SocketCore.h: Added private variable blocking, to allow
  12683. proper handling of OpenSSL psuedo-errors.
  12684. * src/message.h
  12685. (EX_SSL_INIT_FAILURE)
  12686. (EX_SSL_IO_ERROR)
  12687. (EX_SSL_PROTOCOL_ERROR)
  12688. (EX_SSL_UNKNOWN_ERROR)
  12689. (EX_SSL_CONNECT_ERROR)
  12690. (EX_SOCKET_BLOCKING)
  12691. (EX_SOCKET_NONBLOCKING)
  12692. (EX_SOCKET_UNKNOWN_ERROR)
  12693. * src/Util.cc
  12694. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12695. reserved name.
  12696. (httpGMT): Fixed typo.
  12697. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12698. Merged Ross's win32 patch(manually)
  12699. In the course of merging, following files are added.
  12700. * src/strptime.{h,c}
  12701. * src/libgen.{h,c}
  12702. * src/inet_aton.{h,c}
  12703. * src/Platform.{h,cc}
  12704. * src/localtime_r.{h,c}
  12705. * src/getaddrinfo.{h,c}
  12706. I've gethered network related things, and put them to following file:
  12707. * src/a2netcompat.h
  12708. Also io related things are put to following file:
  12709. * src/a2io.h
  12710. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12711. * src/message.h
  12712. (MSG_ALLOCATION_COMPLETED)
  12713. (EX_TOO_LARGE_FILE)
  12714. (EX_SIZE_MISMATCH)
  12715. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12716. (EX_INVALID_CHUNK_CHECKSUM)
  12717. (EX_INVALID_RANGE_HEADER)
  12718. * src/FileAllocationCommand.cc
  12719. * src/HttpResponse.cc
  12720. * src/RequestGroup.cc
  12721. * src/MultiDiskAdaptor.cc
  12722. * src/OptionHandlerImpl.h
  12723. * src/HttpResponseCommand.cc
  12724. * src/FtpNegotiateCommand.cc
  12725. * src/IteratableChecksumValidator.cc
  12726. * src/SegmentMan.cc
  12727. * src/ChunkChecksumValidator.cc
  12728. Added Randomizer::getRandomNumber(long int)
  12729. * src/Randomizer.h (getRandomNumber)
  12730. * src/SimpleRandomizer.h (getRandomNumber)
  12731. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12732. * src/Util.cc (randomAlpha): Use this new function.
  12733. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12734. Converted int's to in32_t. long long int's are also converted to
  12735. int64_t
  12736. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12737. Fixed the bug that prevents cookies from being sent to the server
  12738. if the domain of cookie is FQDN and starts with ".".
  12739. * src/Cookie.cc (match)
  12740. To add the ability to change peer id.
  12741. * src/DefaultBtContext.h
  12742. (_peerIdPrefix): New variable
  12743. (setPeerIdPrefix): New function.
  12744. * src/torrentRequestInfo.cc
  12745. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12746. DefaultBtContext.
  12747. * src/main.cc (main): Added peer-id-prefix command-line option.
  12748. The usage message is not added yet.
  12749. * src/DefaultBtContext.cc
  12750. (generatePeerId): Use _peerIdPrefix.
  12751. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12752. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12753. Fixed the bug that prevents filename in content-disposition from
  12754. being retrieved when filename is not quoted.
  12755. * src/Util.cc (getContentDispositionFilename)
  12756. Fixed the bug that causes infinate loop and memory leak when file open
  12757. operation failed.
  12758. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12759. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12760. Fixed the bug that causes segfault when all URIs specified are
  12761. unsupported.
  12762. * src/RequestGroupMan.cc (getInitialCommands)
  12763. Check if RequestGroup::createNextCommand() returns empty list of
  12764. commands.
  12765. * src/RequestGroup.cc (createNextCommand)
  12766. Change log level from info to error so that users can notice that
  12767. an error occurred.
  12768. Fixed the bug that causes segfault when a zero-sized file is
  12769. downloaded.
  12770. * src/BitfieldMan.cc (isAllBitSet)
  12771. Return true if bitfieldLength is 0.
  12772. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12773. * src/main.cc
  12774. (showUsage): Added 3 usage examples for metalink download.
  12775. Replace MetalinkChunkChecksum with ChunkChecksum.
  12776. * src/MetalinkChunkChecksum.h: Removed.
  12777. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12778. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12779. * src/Xml2MetalinkProcessor.cc
  12780. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12781. * src/MetalinkRequestInfo.cc (execute)
  12782. * Release 0.11.1
  12783. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12784. Reads URIs from stdin when "-i -" is specified.
  12785. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12786. * src/UriListParser.h, src/UriListParser.cc: New class.
  12787. * src/StreamUriListParser.h: New class.
  12788. * src/FileUriListParser.h: New class.
  12789. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12790. instead of UriFileListParser.
  12791. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12792. Made console readout more readable.
  12793. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12794. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12795. Fix the bug that causes -s option not to work.
  12796. * src/main.cc (main)
  12797. * src/a2algo.h: New file.
  12798. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12799. Create directory structure specified in metalink file.
  12800. * src/RequestGroup.h, src/RequestGroup.cc
  12801. (initAndOpenFile): Create a directory to store files if it does not
  12802. exist.
  12803. (getDir): New function.
  12804. Added ETA and download speed for an individual file to readout.
  12805. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12806. * src/RequestGroup.h
  12807. (calculateDownloadSpeed): New function.
  12808. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12809. Made -S option work with metalink file and provided selective download
  12810. to metalink.
  12811. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12812. (filename): Removed.
  12813. (file): New variable.
  12814. (size): Removed.
  12815. (operator=): Updated.
  12816. (getPath): New function.
  12817. (getLength): New function.
  12818. (toFileEntry): New function.
  12819. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12820. (execute): Use toStream.
  12821. (showFileEntry): Removed.
  12822. * src/MetalinkRequestInfo.h
  12823. (targetFiles): New variable.
  12824. (setTargetFiles): New variable.
  12825. * src/MetalinkRequestInfo.cc
  12826. (execute): Added the ability to print file information included in
  12827. a metalink file.
  12828. Added selective download mode to metalink.
  12829. * src/main.cc
  12830. (showUsage): Updated to denote that -S and --select-file options are
  12831. applicable to metalink.
  12832. * src/FileEntry.h
  12833. (operator=): New function.
  12834. (getBasename): New function.
  12835. (getDirname): New function.
  12836. * src/Util.h, src/Util.cc
  12837. (toStream): New function.
  12838. * src/Xml2MetalinkProcessor.cc: Updated.
  12839. Made aria2 work with metalink with directory structure.
  12840. * src/File.h, src/File.cc
  12841. (getBasename): New function.
  12842. (getDirname): New function.
  12843. * src/RequestGroup.h, src/RequestGroup.cc
  12844. (_topDir): New variable.
  12845. (setTopDir): New function.
  12846. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12847. Rewrote HTTP header parsing with stringstream.
  12848. * src/HttpConnection.h, src/HttpConnection.cc
  12849. (HttpRequestEntry): New class.
  12850. (headerBuf): Removed.
  12851. (headerBufLength): Removed.
  12852. (outstandingHttpRequests): Now its element type is
  12853. HttpRequestEntryHandle.
  12854. (findEndOfHeader): Removed.
  12855. (receiveResponse): Rewritten.
  12856. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12857. Updated doc for -j option to notice that it should be used with -i
  12858. option.
  12859. * src/main.cc (showUsage)
  12860. Removed unused classes.
  12861. * src/RequestInfo.h
  12862. (FileInfo): Removed.
  12863. (checksum): Removed.
  12864. (fileInfo): Removed.
  12865. (setChecksum): Removed.
  12866. (getChecksum): Removed.
  12867. (getFileInfo): Removed.
  12868. Use ISO units.
  12869. * src/ConsoleDownloadEngine.cc
  12870. * src/TorrentConsoleDownloadEngine.cc
  12871. * src/Util.cc (abbrevSize)
  12872. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12873. Added the default listening ports to the help message.
  12874. * src/main.cc (showUsage)
  12875. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12876. Reduce the number of calls to gettimeofday to lower CPU load.
  12877. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12878. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12879. * src/Peer.h (calculateUploadSpeed): New function.
  12880. (calculateDownloadSpeed): New function.
  12881. * src/DefaultPeerStorage.cc
  12882. (CalculateStat): Added _now variable.
  12883. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12884. and Peer::calculateUploadSpeed(const struct timeval&)
  12885. Drop connection if no request or piece message is exchanged in
  12886. a certain interval.
  12887. * src/DefaultBtInteractive.h
  12888. (btRuntime): New variable.
  12889. (inactiveCheckPoint): New variable.
  12890. (checkActiveInteraction): New function.
  12891. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12892. request or piece message is received.
  12893. (checkActiveInteraction): New function.
  12894. (doInteractionProcessing): Call checkActiveInteraction.
  12895. Fixed the bug that causes remote Metalink and Torrent files are not
  12896. processed.
  12897. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12898. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12899. Changed format of log file.
  12900. * src/SimpleLogger.cc
  12901. * Release 0.11.0
  12902. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12903. * src/AbstractCommand.cc
  12904. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12905. MSG_MAX_TRY from error to info.
  12906. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12907. * src/message.h
  12908. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12909. (MSG_DOWNLOAD_ABORTED): Added %s.
  12910. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12911. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12912. * src/PeerAbstractCommand.cc
  12913. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12914. * src/Request.h
  12915. (cookieBox): Made ShardHandle.
  12916. * src/RequestGroup.h, src/RequestGroup.cc
  12917. (createNextCommandWithAdj): New function.
  12918. * src/FileAllocationCommand.cc
  12919. (executeInternal): Use createNextCommandWithAdj().
  12920. * src/CheckIntegrityCommand.cc
  12921. (executeInternal): Use createNextCommandWithAdj().
  12922. Added --load-cookies command-option.
  12923. * src/OptionHandlerFactory.cc
  12924. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12925. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12926. Now aria2 can handle cookie's expiration date.
  12927. * src/Cookie.h (expires): Changed its type to time_t.
  12928. * src/main.cc: Added --load-cookies command-line option.
  12929. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12930. * src/Util.h, src/Util.cc (httpGMT): New function.
  12931. * src/Request.cc (Request): Initialize cookieBox using
  12932. CookieBoxFactory.
  12933. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12934. * src/CookieParser.h, src/CookieParser.cc: New class.
  12935. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12936. * src/HttpResponseCommand.cc
  12937. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12938. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12939. download.
  12940. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12941. Added -j command-line option.
  12942. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12943. * src/main.cc
  12944. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12945. Rewritten using stringstream.
  12946. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12947. Rewritten using stringstream.
  12948. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12949. Make download size shown in MB, KB.
  12950. * src/ConsoleDownloadEngine.h (sendStatistics)
  12951. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12952. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12953. Accept incoming connections if download rate is low.
  12954. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12955. (_lowestSpeedLimit): New variable.
  12956. (setLowestSpeedLimit): New function.
  12957. (execute): Accept incoming connections if download rate is low.
  12958. MAX_PEERS is ignored in this case.
  12959. Disable PREF_OUT in multiple concurrent download:
  12960. * src/RequestGroup.h, src/RequestGroup.cc
  12961. (setUserDefinedFilename): New function.
  12962. * src/DownloadEngineFactory.cc
  12963. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12964. concurrent download.
  12965. * src/DefaultSegmentManFactory.cc
  12966. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12967. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12968. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12969. Added its overloaded method.
  12970. * src/RequestGroup.h
  12971. (_numConcurrentCommand): New variable.
  12972. (setNumConcurrentCommand): New function.
  12973. * src/RequestGroup.cc
  12974. Abort download if same file is being downloaded concurrently.
  12975. * src/RequestGroup.h, src/RequestGroupMan.cc
  12976. (isSameFileBeingDownloaded): New function.
  12977. * src/HttpResponseCommand.cc (executeInternal)
  12978. * src/FtpNegotiateCommand.cc (recvSize)
  12979. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12980. * main.cc: Added help message for -i option.
  12981. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12982. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12983. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12984. * src/MetalinkEntry.h
  12985. (checksum): Changed to ChecksumHandle
  12986. * src/MetalinkRequestInfo.cc
  12987. (checksum): Changed to ChecksumHandle
  12988. * src/File.cc
  12989. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12990. * src/common.h
  12991. (DIR_OPEN_MODE): New definition
  12992. * src/RequestGroup.cc
  12993. (prepareForNextAction): Added an argument.
  12994. * src/message.h
  12995. (MSG_GOOD_CHECKSUM): New definition
  12996. (MSG_BAD_CHECKSUM): New definition
  12997. * src/HttpResponseCommand.cc
  12998. (handleDefaultEncoding): Continue download sequence in new
  12999. non-segmented download.
  13000. * src/FileAllocationEntry.h
  13001. (_nextDownloadCommand): New variable.
  13002. * src/DownloadCommand.cc
  13003. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13004. available.
  13005. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13006. * src/IteratableChecksumValidator.h,
  13007. src/IteratableChecksumValidator.cc: New class.
  13008. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13009. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13010. Change file mode to 666:
  13011. * src/common.h (OPEN_MODE): New definition.
  13012. * src/File.cc
  13013. * src/Util.cc
  13014. * src/Directry.cc
  13015. * src/AbstractDiskWriter.cc
  13016. Change the level of log message "download aborted" to debug:
  13017. * src/PeerAbstractCommand.cc (execute)
  13018. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13019. * src/TrackerWatcherCommand.cc
  13020. (createCommand): Sleep some seconds after request failed.
  13021. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13022. then abort tracker request.
  13023. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13024. * Added the simultaneous download feature.
  13025. * src/main.cc: Print "Exception caught: " when exception is caught.
  13026. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13027. * src/ActivePeerConnectionCommand.cc
  13028. * src/PeerInteractionCommand.cc
  13029. * src/BtRuntime.h
  13030. (cuidCounter): Removed.
  13031. (getNewCuid): Removed.
  13032. * src/DownloadEngineFactory.cc
  13033. * src/PeerListenCommand.cc
  13034. * src/TrackerUpdateCommand.cc
  13035. * src/PeerInitiateConnectionCommand.cc
  13036. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13037. * src/PeerAbstractCommand.cc
  13038. (onAbort): Call PeerStorage::returnPeer()
  13039. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13040. (incomingPeers): New variable.
  13041. (addIncomingPeer): New function.
  13042. (returnPeer): New function.
  13043. (onErasingPeer): New function.
  13044. (addPeer): push_back -> push_front
  13045. (getActivePeers): Rewritten.
  13046. (calculateStat): Rewritten.
  13047. * src/PeerStorage.h
  13048. (TransferStat::copy): New function.
  13049. (TransferStat::TransferStat): New function.
  13050. (TransferStat::operator=): New function.
  13051. (addIncomingPeer): New function.
  13052. (returnPeer): New function.
  13053. * src/PeerListenCommand.cc
  13054. (execute): Use PeerStorage::addIncomingPeer() instead of
  13055. Peer::addPeer().
  13056. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13057. Connect to a peer actively when download speed is lower than specified
  13058. speed in torrent download:
  13059. * src/ActivePeerConnectionCommand.h: New class.
  13060. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13061. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13062. * src/main.cc: Fixed the bug that prevents download if .netrc
  13063. doesn't exist.
  13064. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13065. To cache resolved hostname:
  13066. * src/AbstractCommand.h, src/AbstractCommand.cc
  13067. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13068. Added dns cache.
  13069. * src/FtpInitiateConnectionCommand.cc
  13070. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13071. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13072. NameResolver working without ares.
  13073. * src/TorrentRequestInfo.cc
  13074. (execute): Don't cache dns in torrent download.
  13075. * src/HttpInitiateConnectionCommand.cc
  13076. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13077. * src/DNSCache.h: New class.
  13078. * src/UrlRequestInfo.cc
  13079. (execute): Use dns cache.
  13080. In http request, suppress port number in http request header if port
  13081. is 80 or 443:
  13082. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13083. request header if port is 80 or 443.
  13084. (createProxyRequest): Allways send port number.
  13085. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13086. To add the command-line option which disables netrc support:
  13087. * src/OptionHandlerFactory.cc
  13088. (createOptionHandlers): Added PREF_NO_NETRC.
  13089. * src/main.cc: Added -n option.
  13090. * src/prefs.h (PREF_NO_NETRC): New definition.
  13091. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13092. V_TRUE.
  13093. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13094. is V_FALSE. This may get configurable in the future release.
  13095. To clear peer's error status by time basis:
  13096. * src/PeerAbstractCommand.cc
  13097. (onAbort): Call Peer::startBadCondition().
  13098. * src/Peer.h, src/Peer.cc
  13099. (error): Removed.
  13100. (_badConditionStartTime): New variable.
  13101. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13102. (startBadCondition): New function.
  13103. (isGood): New function.
  13104. * src/DefaultPeerStorage.cc
  13105. (addPeer): Use Peer::isGood().
  13106. (FindFinePeer): Use Peer::isGood().
  13107. Always include port number in http request header:
  13108. * src/HttpRequest.cc (getHostText): Always include port number in
  13109. http request header.
  13110. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13111. To the ability to read options from a config file:
  13112. * src/main.cc: Command-line parameter validation is delegated to
  13113. OptionHandler class.
  13114. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13115. * src/Option.h, src/Option.cc (clear): New function.
  13116. * src/OptionParser.h, src/OptionParser.cc: New class.
  13117. * src/OptionHandler.h: New class.
  13118. * src/NameMatchOptionHandler.h: New class.
  13119. * src/OptionHandlerImpl.h: New classes.
  13120. * src/prefs.h: '_' -> '-'
  13121. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13122. (FTP_PASV): New definition.
  13123. * src/Util.h, src/Util.cc (getRealSize): New function.
  13124. To disable netrc support if .netrc file does not have correct
  13125. permissions:
  13126. * src/File.h, src/File.cc (mode): New function.
  13127. To prevent confidential information to be logged:
  13128. * src/HttpConnection.h, src/HttpConnection.cc
  13129. (eraseConfidentialInfo): New function.
  13130. (sendRequest): Call eraseConfidentialInfo().
  13131. (sendProxyRequest): Call eraseConfidentialInfo().
  13132. * src/main.cc: Validate permissions of .netrc file.
  13133. To add --user-agent command-line option:
  13134. * src/main.cc: Added new command line option: --user-agent
  13135. * src/prefs.h (PREF_USER_AGENT): New definition.
  13136. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13137. parameter to HttpRequest object.
  13138. * src/AbstractProxyRequestCommand.cc
  13139. (executeInternal): Set user-agent option parameter to HttpRequest
  13140. object.
  13141. Marged the patches from Dan Fandrich.
  13142. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13143. Use filename and size from Metalink file instead of sending HEAD
  13144. request:
  13145. * src/UrlRequestInfo.h
  13146. (_filename): New variable.
  13147. (_totalLength): New variable.
  13148. (setTotalLength): New variable.
  13149. (setFilename): New variable.
  13150. * src/MetalinkRequestInfo.cc
  13151. (execute): Set filename and size to UrlRequestInfo
  13152. * src/UrlRequestInfo.cc
  13153. (execute): Use filename and size from Metalink instead of seding
  13154. HEAD request to servers.
  13155. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13156. To add the ability to resume downloading a partially downloaded file
  13157. which is downloaded from the beginning:
  13158. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13159. takes this role.
  13160. * src/main.cc: Added -c option.
  13161. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13162. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13163. * src/prefs.h (PREF_CONTINUE): New definition.
  13164. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13165. * src/DefaultDiskWriter.cc
  13166. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13167. * src/AbstractDiskWriter.h
  13168. (glowFileAllocator): New variable.
  13169. * src/AbstractDiskWriter.cc
  13170. (openExistingFile): Now preallocate file space from the end of the
  13171. existing file if totalLength argument is specified and grater than 0.
  13172. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13173. to download exists in local, continue the download of the file.
  13174. --allow-overwrite=true is assumed in this context.
  13175. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13176. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13177. Throw exception if --check-integrity=true is specified but chunk
  13178. checksums are not provided:
  13179. * src/UrlRequestInfo.cc
  13180. Do not print URLs to stdout:
  13181. * src/UrlRequestInfo.cc
  13182. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13183. * src/Request.h: Use AuthResolver to get authentication information.
  13184. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13185. set to RequestFactory object.
  13186. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13187. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13188. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13189. create Request object.
  13190. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13191. To integrate Netrc into exsiting classes:
  13192. * src/Request.h
  13193. (_userDefinedAuthConfig): New variable.
  13194. (findNetrcAuthenticator): New function.
  13195. (segment): Removed.
  13196. (setUserDefinedAuthConfig): New function.
  13197. (resolveHttpAuthConfigItem): New function.
  13198. (resolveFtpAuthConfigItem): New function.
  13199. (resolveHttpProxyAuthConfigItem): New function.
  13200. * src/HttpRequest.h
  13201. (authConfig): Removed.
  13202. (proxyAuthConfig): Removed.
  13203. (setAuthConfig): Removed.
  13204. (setProxyAuthConfig): Removed.
  13205. * src/UrlRequest.h
  13206. (getHeadResult): Added a parameter: authConfigHandle
  13207. * src/common.h
  13208. (SingletonHolder.h): New include.
  13209. * src/main.cc
  13210. (Netrc.h): New include.
  13211. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13212. Added initial value of PREF_NETRC_PATH.
  13213. Added the initialization of netrc.
  13214. * src/AuthConfig.h: New class.
  13215. * src/prefs.h
  13216. (PREF_NETRC_PATH): New definition.
  13217. * src/HttpAuthConfig.h: Removed.
  13218. * src/Netrc.cc
  13219. (getRequiredNextToken): New function.
  13220. (skipMacdef): New function.
  13221. (parse): Rewritten.
  13222. * src/Netrc.h
  13223. (getRequiredNextToken): New function.
  13224. (skipMacdef): New function.
  13225. * src/Util.h, src/Util.cc
  13226. (getHomeDir): New function.
  13227. * src/TrackerWatcherComand.cc
  13228. (createRequestCommand): Use AuthConfig.
  13229. * src/FtpConnection.cc
  13230. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13231. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13232. * src/Request.cc
  13233. (findNetrcAuthenticator): New function.
  13234. (resolveHttpAuthConfigItem): New function.
  13235. (resolveFtpAuthConfigItem): New function.
  13236. (resolveHttpProxyAuthConfigItem): New function.
  13237. * src/UrlRequestInfo.cc: Use AuthConfig.
  13238. * src/HttpRequest.cc
  13239. (createRequest): Use authConfig.
  13240. (getProxyAuthString): Use authConfig.
  13241. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13242. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13243. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13244. To reduce overhead to find commands whose socket is either
  13245. readable or writable in the download engine loop:
  13246. * src/Command.h, src/Command.cc
  13247. (STATUS): New enum.
  13248. (status): New variable.
  13249. (statusMatch): New function.
  13250. (setStatusActive): New function.
  13251. (setStatusInactive): New function.
  13252. * src/DownloadEngine.h, src/DownloadEngine.cc
  13253. (executeCommand): New function.
  13254. (run): Simplified.
  13255. (waitData): Call Command::setStatusActive() when command's socket is
  13256. readable or writable.
  13257. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13258. To handle Segment as SegmentHandle:
  13259. * src/AbstractCommand.cc (execute): Rewritten.
  13260. * src/SegmentMan.h: Segment -> SegmentHandle
  13261. Introducded HttpResponse class, HttpRequest class to improve code
  13262. extensiveness and make it clear:
  13263. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13264. HttpResponse class.
  13265. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13266. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13267. * src/HttpConnection.cc: Contruction of http request were moved to
  13268. HttpRequest class.
  13269. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13270. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13271. * src/HttpAuthConfig.h: New class.
  13272. * src/Range.h: New class.
  13273. To make FtpTunnel{Request, Response}Command and
  13274. HttpProxy{Request, Response}Command derived from
  13275. AbstractProxy{Request, Response}Command:
  13276. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13277. Derived from AbstractProxyRequestCommand class.
  13278. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13279. Derived from AbstractProxyResponseCommand class.
  13280. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13281. Derived from AbstractProxyRequestCommand class.
  13282. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13283. Derived from AbstractProxyResponseCommand class.
  13284. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13285. : New class.
  13286. * src/AbstractProxyResponseCommand.h,
  13287. src/AbstractProxyResponseCommand.cc: New class.
  13288. To add netrc support:
  13289. * src/Netrc.h, src/Netrc.cc: New class.
  13290. * src/Util.h, src/Util.cc (split): New function.
  13291. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13292. "Content-Range" header instead of "Range" header.
  13293. * src/HttpHeader.h
  13294. (getStatus): Removed.
  13295. (setStatus): Removed.
  13296. * src/Segment.h
  13297. (getPositionToWrite): New function.
  13298. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13299. * src/HttpHeader.h
  13300. (Range.h): New include.
  13301. (status): New variable.
  13302. (HttpHeader): Initialized status with 0.
  13303. (getStatus): New function.
  13304. (setStatus): New function.
  13305. (getRange): New function.
  13306. (HttpHeaderHandle): New function.
  13307. * src/HttpHeader.cc
  13308. (getRange): New function.
  13309. * src/Request.h
  13310. (RequestWeakHandle): New definition.
  13311. * src/HttpConnection.h
  13312. (HttpConnectionHandle): New type definition.
  13313. * src/HttpConnection.cc
  13314. (receiveResponse): Set HTTP status to headers.
  13315. * src/main.cc
  13316. (showUsage): Fixed typo.
  13317. * src/Segment.h
  13318. (SegmentHandle): New type definition.
  13319. * src/BitfieldMan.h
  13320. (getMissingUnusedLength): New function.
  13321. * src/BitfieldMan.cc
  13322. (getMissingUnusedLength): New function.
  13323. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13324. To fix static initialization order problem:
  13325. * src/BitfieldManFactory.h
  13326. (defaultRandomizer): Removed.
  13327. (factory): New variable.
  13328. (getNewFactory): Removed.
  13329. (getFactoryInstance): New function.
  13330. (setDefaultRandomizer): Rewritten.
  13331. (getDefaultRandomizer): Rewritten.
  13332. * src/BitfieldManFactory.cc
  13333. (defaultRandomizer): Removed.
  13334. (factory): Initialized to 0.
  13335. (BitfieldManFactory): Initialized randomizer to 0.
  13336. * src/DefaultPieceStorage.cc
  13337. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13338. * src/Peer.cc
  13339. (Peer): getNewFactory() -> getFactoryInstance()
  13340. * src/SegmentMan.cc
  13341. (initBitfield): getNewFactory() -> getFactoryInstance()
  13342. * src/Piece.cc
  13343. (Piece): getNewFactory() -> getFactoryInstance()
  13344. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13345. To fix the bug that causes crash on Max OS X:
  13346. * src/SimpleRandomizer.h
  13347. (getInstance): Create new instance if the static variable is null.
  13348. * src/SimpleRandomizer.cc
  13349. (randomizer): Initialized to 0.
  13350. * src/BitfieldManFactory.h
  13351. (getNewFactory): Removed the call to setRandomizer().
  13352. To fix the miscalculation of the range of checksum:
  13353. * src/BitfieldMan.h
  13354. (isBitSetOffsetRange): New function.
  13355. * src/BitfieldMan.cc
  13356. (isBitSetOffsetRange): New function.
  13357. * src/SegmentMan.cc
  13358. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13359. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13360. * Release 0.10.1
  13361. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13362. To lower CPU usage in BitTorrent download when --max-upload-limit
  13363. command-line option specified:
  13364. * src/DefaultBtMessageDispatcher.cc
  13365. (sendMessages): Calculate uploading speed only when current message
  13366. is uploading data and is not sent yet.
  13367. * src/DefaultPeerStorage.h
  13368. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13369. * src/HttpResponseCommand.cc
  13370. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13371. This fixes compile error in Soralis 10.
  13372. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13373. To fix segfault in Metalink download:
  13374. * src/UrlRequestInfo.h
  13375. (filename): Removed.
  13376. (totalLength): Removed.
  13377. (setTotalLength): Removed.
  13378. (setFilename): Removed.
  13379. * src/MetalinkRequestInfo.cc
  13380. (execute): Do not set filename and totalLength to reqInfo.
  13381. Set chunk checksum to reqInfo if it is not null.
  13382. * src/HttpResponseCommand.cc
  13383. (executeInternal): Fixed filename in log.
  13384. (handleDefaultEncoding): Removed the call to initBitfield() and
  13385. markAllPiecesDone().
  13386. (handleOtherEncoding): Added HEAD method handling.
  13387. * src/FtpNegotiateCommand.cc
  13388. (executeInternal): Added SEQ_HEAD_OK handling.
  13389. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13390. return false.
  13391. * src/FtpNegotiateCommand.h
  13392. (SEQ_HEAD_OK): New definition.
  13393. * src/SegmentMan.cc
  13394. (initBitfield): Delete bitfield.
  13395. (isChunkChecksumValidationReady): Fixed the condition.
  13396. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13397. works fine.
  13398. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13399. * src/Xml2MetalinkProcessor.h
  13400. (xpathExists): New function.
  13401. * src/Xml2MetalinkProcessor.cc
  13402. (xpathExists): New function.
  13403. Not to send HEAD request if filename and size are available in Metalink
  13404. file:
  13405. * src/UrlRequestInfo.h
  13406. (filename): New variable.
  13407. (totalLength): New variable.
  13408. (setTotalLength): New function.
  13409. (setFilename): New function.
  13410. * src/MetalinkRequestInfo.cc
  13411. (execute): Set filename and size to UrlRequestInfo.
  13412. * src/MetalinkEntry.cc
  13413. (MetalinkEntry): Initialize size with 0.
  13414. * src/UrlRequestInfo.cc
  13415. (execute): Set filename and size to SegmentMan.
  13416. Not to download rest of the files after selected files are downloaded
  13417. in BitTorrent:
  13418. * src/PieceStorage.h
  13419. (allDownloadFinished): New function.
  13420. * src/DefaultBtAnnounce.cc
  13421. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13422. downloadFinished.
  13423. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13424. * src/DefaultPieceStorage.cc
  13425. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13426. Commented out the call to finishSelectiveDownloadingMode().
  13427. (downloadFinished): Call isFilteredAllBitSet() instead of
  13428. isAllBitSet().
  13429. (allDownloadFinished): New function.
  13430. * src/DefaultBtInteractive.cc
  13431. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13432. downloadFinished().
  13433. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13434. * src/TorrentDownloadEngine.cc
  13435. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13436. * src/BitfieldMan.h
  13437. (isFilteredAllBitSet): New function.
  13438. * src/ShareRatioSeedCriteria.h
  13439. (PieceStorage.h): New include.
  13440. (pieceStorage): New variable.
  13441. (evaluate):
  13442. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13443. * src/BitfieldMan.cc
  13444. (isFilteredAllBitSet): New function.
  13445. (isAllBitSet): Filter is not took into account.
  13446. Rename --force-truncate as --allow-overwrite:
  13447. * src/TorrentRequestInfo.cc
  13448. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13449. * src/main.cc
  13450. (showUsage): --force-truncate -> --allow-overwrite
  13451. * src/message.h
  13452. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13453. * src/prefs.h
  13454. (PREF_FORCE_TRUNCATE): Removed.
  13455. (PREF_ALLOW_OVERWRITE): New definition.
  13456. * src/SegmentMan.cc
  13457. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13458. * src/MetalinkRequestInfo.cc
  13459. (execute): Queueing message are now logged in info level.
  13460. * src/common.h
  13461. (LONG_LONG_MAX): Removed.
  13462. (LONG_LONG_MIN): Removed.
  13463. * src/HttpResponseCommand.cc
  13464. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13465. * src/FtpNegotiateCommand.cc
  13466. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13467. * src/main.cc
  13468. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13469. command-line option.
  13470. (main): Added --check-integriy and --realtime-chunk-checksum
  13471. command-line option.
  13472. --force-truncate -> --allow-overwrite
  13473. Set initial value of --check-integrity option to false.
  13474. Don't show usage when error occurs while persing command-line options.
  13475. Removed deprecated --upload-limit option.
  13476. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13477. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13478. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13479. * src/BtAllowedFastMessage.cc:
  13480. * src/BtBitfieldMessage.cc
  13481. * src/BtCancelMessage.cc
  13482. * src/BtChokeMessage.cc
  13483. * src/BtHaveAllMessage.cc
  13484. * src/BtHaveMessage.cc
  13485. * src/BtHaveNoneMessage.cc
  13486. * src/BtInterestedMessage.cc
  13487. * src/BtNotInterestedMessage.cc
  13488. * src/BtPieceMessage.cc
  13489. * src/BtPortMessage.cc
  13490. * src/BtRejectMessage.cc
  13491. * src/BtRequestMessage.cc
  13492. * src/BtSuggestPieceMessage.cc
  13493. * src/BtUnchokeMessage.cc
  13494. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13495. files are affected.
  13496. * src/ChunkChecksumValidator.cc
  13497. * src/SegmentMan.cc
  13498. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13499. To add chunk checksum validation:
  13500. * src/MetalinkEntry.h
  13501. (MetalinkChunkChecksum.h): New include.
  13502. (chunkChecksum): New variable.
  13503. * src/Request.h
  13504. (method): New variable.
  13505. (setMethod): New function.
  13506. (getMethod): New function.
  13507. (METHOD_GET): New static constant.
  13508. (METHOD_HEAD): New static constant.
  13509. * src/Xml2MetalinkProcessor.h
  13510. (getPieceHash): New function.
  13511. * src/PieceStorage.h
  13512. (markAllPiecesDone): New function.
  13513. (checkIntegrity): New function.
  13514. * src/FileAllocator.h
  13515. (NullFileAllocationMonitor.h): New include.
  13516. (FileAllocator): Initialize fileAllocationMonitor with new
  13517. NullFileAllocationMonitor().
  13518. * src/MultiDiskAdaptor.h
  13519. (messageDigest.h): Remove include.
  13520. (ctx): Removed.
  13521. (hashUpdate): Added ctx.
  13522. (MultiDiskAdaptor): Removed ctx.
  13523. (sha1Sum): Renamed as messageDigest.
  13524. (messageDigest): New function.
  13525. * src/UrlRequestInfo.h
  13526. (HeadResult): New class.
  13527. (digestAlgo): New variable.
  13528. (chunkChecksumLength): New variable.
  13529. (chunkChecksums): New variable.
  13530. (getHeadResult): New function.
  13531. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13532. (setDigestAlgo): New function.
  13533. (setChunkChecksumLength): New function.
  13534. (setChunkChecksums): New function.
  13535. * src/DefaultPieceStorage.cc
  13536. (DiskAdaptorWriter.h): New include.
  13537. (ChunkChecksumValidator.h): New include.
  13538. (markAllPiecesDone): New function.
  13539. (checkIntegrity): New function.
  13540. * src/DefaultBtContext.h
  13541. (getPieceHashes): New function.
  13542. * src/TorrentRequestInfo.cc
  13543. (execute): Try to validate chunk checksum if file already exists and
  13544. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13545. * src/messageDigest.h
  13546. (~MessageDigestContext): Added digestFree().
  13547. * src/MetalinkRequestInfo.cc
  13548. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13549. * src/DiskAdaptor.h
  13550. (messageDigest.h): New include.
  13551. (sha1Sum): Renamed as messageDigest.
  13552. (messageDigest): New function.
  13553. * src/DownloadCommand.h
  13554. (PeerStat.h): New include.
  13555. (maxDownloadSpeedLimit): New variable.
  13556. (startupIdleTime): New variable.
  13557. (lowestDownloadSpeedLimit): New variable.
  13558. (peerStat): New variable.
  13559. (setMaxDownloadSpeedLimit): New function.
  13560. (setStartupIdleTime): New function.
  13561. (setLowestDownloadSPeedLimit): New function.
  13562. * src/BtContext.h
  13563. (getPieceHashes): New function.
  13564. * src/main.cc
  13565. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13566. option to true for testing purpose.
  13567. * src/BtPieceMessage.cc
  13568. (checkPieceHash): Use messageDigest
  13569. * src/DownloadEngine.cc
  13570. (SetDescriptor): Removed.
  13571. (AccumulateActiveCommand): Removed.
  13572. (waitData): Rewritten.
  13573. (updateFdSet): Rewritten.
  13574. * src/MultiDiskAdaptor.cc
  13575. (hashUpdate): Added ctx.
  13576. (sha1Sum): Renamed as messageDigest.
  13577. (messageDigest): New function.
  13578. * src/BitfieldMan.h
  13579. (isBitRangeSet): New function.
  13580. (unsetBitRange): New function.
  13581. * src/ByteArrayDiskWriter.h
  13582. (sha1Sum): Renamed as messageDigest.
  13583. (messageDigest): New function.
  13584. * src/ConsoleDownloadEngine.cc
  13585. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13586. * src/DiskWriter.h
  13587. (messageDigest.h): New include.
  13588. (sha1Sum): Renamed as messageDigest.
  13589. (messageDigest): New function.
  13590. * src/ChunkChecksumValidator.h: New class.
  13591. * src/DiskAdaptorWriter.h: New class.
  13592. * src/prefs.h
  13593. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13594. (PREF_CHECK_INTEGRITY): New definition.
  13595. * src/HttpResponseCommand.cc
  13596. (handleDefaultEncoding): Added method "HEAD" handling.
  13597. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13598. (handleOtherEncoding):
  13599. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13600. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13601. startupIdleTime, lowestDownloadSpeedLimit to command.
  13602. * src/SegmentMan.h
  13603. (getSegmentEntryByIndex): New function.
  13604. (getSegmentEntryByCuid): New function.
  13605. (getSegmentEntryIteratorByCuid): New function.
  13606. (diskWriter): DiskWriter -> DiskWriterHandle
  13607. (pieceHashes): New variable.
  13608. (chunkHashLength): New variable.
  13609. (digestAlgo): New variable.
  13610. (FindPeerStat): Removed.
  13611. (getPeerStat): Rewritten.
  13612. (markAllPiecesDone): New function.
  13613. (checkIntegrity): New function.
  13614. (tryChunkChecksumValidation): New function.
  13615. (isChunkChecksumValidationReady): New function.
  13616. * src/BitfieldMan.cc
  13617. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13618. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13619. blocks to 0.
  13620. (isBitRangeSet): New function.
  13621. (unsetBitRange): New function.
  13622. * src/FtpNegotiateCommand.cc
  13623. (executeInternal): Set maxDownloadSpeedLimit,
  13624. startupIdleTime, lowestDownloadSpeedLimit to command.
  13625. (recvSize): Added method "HEAD" handling.
  13626. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13627. * src/AbstractSingleDiskAdaptor.cc
  13628. (sha1Sum): Renamed as messageDigest.
  13629. (messageDigest): New function.
  13630. * src/AbstractSingleDiskAdaptor.h
  13631. (sha1Sum): Renamed as messageDigest.
  13632. (messageDigest): New function.
  13633. * src/Util.h
  13634. (indexRange): New function.
  13635. * src/MetalinkEntry.cc
  13636. (MetalinkEntry): Initialized chunkChecksum to 0.
  13637. * src/ShaVisitor.cc
  13638. (~ShaVisitor): Removed the call to ctx.digestFree().
  13639. * src/SegmentMan.cc
  13640. (ChunkChecksumValidator.h): New include.
  13641. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13642. to DIGEST_ALGO_SHA1.
  13643. (~SegmentMan): Removed diskWriter.
  13644. (FindSegmentEntryByIndex): Removed.
  13645. (FindSegmentEntryByCuid): Removed.
  13646. (checkoutSegment): Rewritten.
  13647. (findSlowerSegmentEntry): Rewritten.
  13648. (getSegment): Rewritten.
  13649. (updateSegment): Rewritten.
  13650. (completeSegment): Rewritten.
  13651. (markAllPiecesDone): New function.
  13652. (checkIntegrity): New function.
  13653. (isChunkChecksumValidationReady): New function.
  13654. (tryChunkChecksumValidation): New function.
  13655. * src/Xml2MetalinkProcessor.cc
  13656. (getEntry): Get size and set it to entry.
  13657. Get chunk checksum and set it to entry.
  13658. (getPieceHash): New function.
  13659. * src/Util.cc
  13660. (sha1Sum): Removed ctx.digestFree()
  13661. (fileChecksum): Removed ctx.digestFree()
  13662. (indexRange): New function.
  13663. * src/Request.cc
  13664. (METHOD_GET): New variable.
  13665. (METHOD_HEAD): New variable.
  13666. (Request): Added method.
  13667. * src/UrlRequestInfo.cc
  13668. (FatalException.h): New include.
  13669. (message.h): New include.
  13670. (operator<<): Added operator<< for class HeadResult.
  13671. (getHeadResult): New function.
  13672. (execute): Get filename and size in separate download engine.
  13673. * src/ChunkChecksumValidator.cc: New class.
  13674. * src/DownloadCommand.cc:
  13675. (DownloadCommand): Added peerStat.
  13676. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13677. the value from Option.
  13678. The buffer size is now 16KB.
  13679. Use peerStat member instead of getting it from SegmentMan.
  13680. Use startupIdleTime member instead of gettingit from Option.
  13681. Added chunk checksum validation.
  13682. * src/AbstractDiskWriter.cc
  13683. (AbstractDiskWriter): Removed ctx.
  13684. (~AbstractDiskWriter): Removed ctx.digestFree()
  13685. (writeDataInternal): Returns the return value of write.
  13686. (readDataInternal): Returns the return value of read.
  13687. (sha1Sum): Renamed as messageDigest
  13688. (messageDigest): New function.
  13689. * src/AbstractDiwkWriter.h
  13690. (messageDigest.h): Removed include.
  13691. (ctx): Removed.
  13692. (sha1Sum): Renamed as messageDigest
  13693. (messageDigest): New function.
  13694. * src/DefaultPieceStorage.h
  13695. (markAllPiecesDone): New function.
  13696. (checkIntegrity): New function.
  13697. * src/NullFileAllocationMonitor.h: New class.
  13698. * src/MetalinkChunkChecksum.h: New class.
  13699. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13700. To decrease CPU usage in bittorrent download, calculation results in
  13701. BitfieldMan were cached and realtime fetching PeerObject was removed
  13702. with WeakHandle introduced. Option values are set to the objects
  13703. by setter before download begins.
  13704. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13705. * src/DefaultBtRequestFactory.h
  13706. (dispatcher): BtMessageDispatcherHandle ->
  13707. BtMessageDispatcherWeakHandle.
  13708. (messageFactory): New variable.
  13709. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13710. BtMessageDispatcherWeakHandle.
  13711. (setBtMessageFactory): New function.
  13712. * src/DefaultBtMessageDispatcher.cc:
  13713. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13714. from Option.
  13715. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13716. feating the value from Option.
  13717. Use messageFactory member.
  13718. * src/PeerInteractionCommand.cc
  13719. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13720. Add reverse dependencies to factory object.
  13721. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13722. dispatcher.
  13723. Set messageFactory to receiver.
  13724. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13725. btInteractive.
  13726. Set receiver to peerObject.
  13727. Set maxDownloadSpeedLimit to this.
  13728. (executeInternal): Use maxDownloadSpeedLimit member.
  13729. * src/BtChokeMessage.cc
  13730. (doReceivedAction): Use dispatcher, requestFactory member.
  13731. (onSendComplete): Use dispatcher member.
  13732. * src/PeerInteractionCommand.h
  13733. (maxDownloadSpeedLimit): New variable.
  13734. * src/DefaultBtMessageReceiver.h
  13735. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13736. (dispatcher):
  13737. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13738. (messageFactory): New variable.
  13739. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13740. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13741. (setDispatcher):
  13742. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13743. (setBtMessageFactory): New function.
  13744. * src/DefaultBtInteractive.cc
  13745. (initiateHandshake): Use messageFactory member.
  13746. (addBitfieldMessageToQueue): Use messageFactory member.
  13747. (addAllowedFastMessageToQueue): Use messageFactory member.
  13748. (decideChoking): Use messageFactory member.
  13749. (checkHave): Use messageFactory member.
  13750. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13751. (receiveMessages): Use maxDownloadSpeedLimit member.
  13752. (decideInterest): Use messageFactory member.
  13753. * src/BtRequestMessage.cc
  13754. (doReceivedAction): Use messageFactory, dispatcher member.
  13755. (onQueued): Use dispatcher member.
  13756. * src/BtPieceMessage.cc
  13757. (doReceivedAction): Use dispatcher member.
  13758. (send): Use peerConnection member.
  13759. (onWrongPiece): Use requestFactory member.
  13760. (handleChokingEvent): Use messageFactory, dispatcher member.
  13761. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13762. * src/BtMessageDispatcher.h
  13763. (BtMessageDispatcherWeakHandle): New type definition.
  13764. * src/SimpleBtMessage.cc
  13765. (send): Use peerConnection member.
  13766. * src/BtRejectMessage.cc
  13767. (doReceivedAction): Use dispatcher member.
  13768. * src/DefaultBtMessageDispatcher.h
  13769. (Option.h): Removed include.
  13770. (messageFactory): New variable.
  13771. (option): Removed.
  13772. (maxUploadSpeedLimit): New variable.
  13773. (requestTimeout): New variable.
  13774. (DefaultBtMessageDispatcher): Removed option.
  13775. Added maxUploadSpeedLimit, requestTimeout.
  13776. (setOption): Removed.
  13777. (getOption): Removed.
  13778. (setMaxUploadSpeedLimit): New function.
  13779. (setRequestTimeout): New function.
  13780. (setBtMessageFactory): New function.
  13781. * src/DefaultBtInteractive.h
  13782. (btMessageReceiver):
  13783. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13784. (dispatcher):
  13785. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13786. (btRequestFactory):
  13787. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13788. (peerConnection):
  13789. PeerConnectionHandle -> PeerConnectionWeakHandle
  13790. (messageFactory): New variable.
  13791. (option): Removed.
  13792. (keepAliveInterval): New variable.
  13793. (maxDownloadSpeedLimit): New variable.
  13794. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13795. (setBtMessageReceiver):
  13796. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13797. (setDispatcher):
  13798. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13799. (setBtRequestFactory):
  13800. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13801. (setPeerConnection):
  13802. PeerConnectionHandle -> PeerConnectionWeakHandle
  13803. (setOption): Removed.
  13804. (setKeepAliveInterval): New function.
  13805. (setMaxDownloadSpeedLimit): New function.
  13806. (setBtMessageFactory): New function.
  13807. * src/BitfieldMan.h
  13808. (cachedNumMissingBlock): New variable.
  13809. (cachedNumFilteredBlock): New variable.
  13810. (cachedCompletedLength): New variable.
  13811. (cachedFilteredComletedLength): New variable.
  13812. (cachedFilteredTotalLength): New variable.
  13813. (countMissingBlockNow): New function.
  13814. (countFilteredBlockNow): New function.
  13815. (getFilteredTotalLengthNow): New function.
  13816. (getCompletedLengthNow): New function.
  13817. (getFilteredCompletedLengthNow): New function.
  13818. (updateCache): New function.
  13819. * src/AbstractBtMessage.h
  13820. (BtMessageDispatcher.h): New include.
  13821. (PeerConnection.h): New include.
  13822. (BtRequestFactory.h): New include
  13823. (BtMessageFactory.h): New include.
  13824. (dispatcher): New variable.
  13825. (messageFactory): New variable.
  13826. (peerConnection: New variable.
  13827. (setBtMessageDispatcher): New function.
  13828. (setPeerConnection): New function.
  13829. (setBtMessageFactory): New function.
  13830. (setBtRequestFactory): New function.
  13831. * src/DefaultBtMessageFactory.cc
  13832. (setCommonProperty): Set dispatcher, requestFactory, this,
  13833. peerConnection to msg.
  13834. * src/BtRegistry.h
  13835. (BT_MESSAGE_RECEIVER): New macro.
  13836. * src/PeerConnection.h
  13837. (PeerConnectionWeakHandle): New type definition.
  13838. * src/BtMessageFactory.h
  13839. (BtMessageFactoryWeakHandle): New type definition.
  13840. * src/BitfieldMan.cc
  13841. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13842. cachedCompletedLength, cachedFilteredComletedLength,
  13843. cachedFilteredTotalLength.
  13844. Call updateCache().
  13845. (countMissingBlock): Return cachedNumMissingBlock.
  13846. (countMissingBlockNow): New function.
  13847. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13848. (countFilteredBlockNow): New function.
  13849. (setBit): Call updateCache().
  13850. (unsetBit): Call updateCache().
  13851. (setBitfield): Call updateCache().
  13852. (clearAllBit): Call updateCache().
  13853. (setAllBit): Use setBitInternal instead of setBit.
  13854. Call updateCache().
  13855. (addFilter): Call updateCache().
  13856. (enableFilter): Call updateCache().
  13857. (disableFilter): Call updateCache().
  13858. (clearFilter): Call updateCache().
  13859. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13860. (getFilteredTotalLengthNow): New function.
  13861. (getCompletedLength): Return cachedCompletedLength.
  13862. (getCompletedLengthNow): New function.
  13863. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13864. (getFilteredCompletedLengthNow): New function.
  13865. (updateCache): New function.
  13866. * src/BtMessageReceiver.h
  13867. (BtMessageReceiverWeakHandle): New type definition.
  13868. * src/DefaultBtMessageReceiver.cc
  13869. (receiveHandshake): Use messageFactory member.
  13870. (sendHandshake): Use messageFactory member.
  13871. (receiveMessage): Use messageFactory member.
  13872. * src/DefaultBtMessageFactory.h
  13873. (dispatcher): New variable.
  13874. (requestFactory): New variable.
  13875. (peerConnection): New variablle.
  13876. (setBtMessageDispatcher): New function.
  13877. (setBtRequestFactory): New function.
  13878. (setPeerConnection): New function.
  13879. * src/SharedHandle.h
  13880. (RefCount): New class.
  13881. (WeakHandle): New class.
  13882. * src/PeerObject.h
  13883. (BtMessageReceiver.h): New include.
  13884. (PeerObject): Added btMessageReceiver.
  13885. (btMessageReceiver): New variable.
  13886. * src/Util.cc
  13887. (countBit): Simplified.
  13888. * src/BtCancelMessage.cc
  13889. (doReceivedAction): Use dispatcher member.
  13890. * src/BtRequestFactory.h
  13891. (BtRequestFactoryWeakHandle): New type definition.
  13892. * src/PeerStorage.h
  13893. (downloadSpeed): int -> uint32_t
  13894. (uploadSpeed): int -> uint32_t
  13895. (sessionDownloadLength): long long int -> uint64_t
  13896. (sessionUploadLength): long long int -> uint64_t
  13897. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13898. To add RecoverableException, FatalException:
  13899. * src/AbstractCommand.cc
  13900. (onAbort): Exception -> RecoverableException
  13901. * src/PeerAbstractCommand.h
  13902. (RecoverableException.h): New include.
  13903. (onAbort): Exception -> RecoverableException.
  13904. * src/PeerInteractionCommand.cc
  13905. (onAbort): Exception -> RecoverableException.
  13906. * src/PeerAbstractCommand.cc
  13907. (execute): Exception -> RecoverableException.
  13908. (onAbort): Exception -> RecoverableException.
  13909. * src/TorrentRequestInfo.cc
  13910. (execute): Exception -> RecoverableException.
  13911. * src/MetalinkRequestInfo.cc
  13912. (execute): Exception -> RecoverableException.
  13913. * src/MetaFileUtil.cc: RecoverableException.
  13914. * src/AbstractCommand.h
  13915. (onAbort): Exception -> RecoverableException.
  13916. * src/DlRetryEx.h: Exception -> RecoverableException.
  13917. * src/DlAbortEx.h: Exception -> RecoverableException.
  13918. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13919. * src/Util.cc: Exception -> RecoverableException.
  13920. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13921. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13922. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13923. To make ID static const int
  13924. * src/BtInterestedMessage.h
  13925. (ID_t): Removed.
  13926. (ID): New variable.
  13927. (getId): Made non-const.
  13928. * src/BtPieceMessage.h
  13929. (ID_t): Removed.
  13930. (ID): New variable.
  13931. (getId): Made non-const.
  13932. * src/BtChokeMessage.h
  13933. (ID_t): Removed.
  13934. (ID): New variable.
  13935. (getId): Made non-const.
  13936. * src/BtHaveAllMessage.h
  13937. (ID_t): Removed.
  13938. (ID): New variable.
  13939. (getId): Made non-const.
  13940. * src/BtKeepAliveMessage.h
  13941. (ID_t): Removed.
  13942. (ID): New variable.
  13943. (getId): Made non-const.
  13944. * src/BtHandshakeMessage.h
  13945. (ID): New variable.
  13946. (getId): Made non-const.
  13947. * src/BtSuggestPieceMessage.h
  13948. (ID_t): Removed.
  13949. (ID): New variable.
  13950. (getId): Made non-const.
  13951. * src/BtPortMessage.h
  13952. (ID_t): Removed.
  13953. (ID): New variable.
  13954. (getId): Made non-const.
  13955. * src/AbstractBtMessage.h
  13956. (id): Removed.
  13957. (AbstractBtMessage): Removed id.
  13958. (getId): Removed.
  13959. * src/BtHaveMessage.h
  13960. (ID_t): Removed.
  13961. (ID): New variable.
  13962. (getId): Made non-const.
  13963. * src/BtAllowedFastMessage.h
  13964. (ID_t): Removed.
  13965. (ID): New variable.
  13966. (getId): Made non-const.
  13967. * src/BtCancelMessage.h
  13968. (ID_t): Removed.
  13969. (ID): New variable.
  13970. (getId): Made non-const.
  13971. * src/BtNotInterestedMessage.h
  13972. (ID_t): Removed.
  13973. (ID): New variable.
  13974. (getId): Made non-const.
  13975. * src/BtChokeMessage.h
  13976. (ID_t): Removed.
  13977. (ID): New variable.
  13978. (getId): Made non-const.
  13979. * src/BtRejectMessage.h
  13980. (ID_t): Removed.
  13981. (ID): New variable.
  13982. (getId): Made non-const.
  13983. * src/BtBitfieldMessage.h
  13984. (ID_t): Removed.
  13985. (ID): New variable.
  13986. (getId): Made non-const.
  13987. * src/BtUnchokeMessage.h
  13988. (ID_t): Removed.
  13989. (ID): New variable.
  13990. (getId): Made non-const.
  13991. * src/BtRequestMessage.h
  13992. (ID_t): Removed.
  13993. (ID): New variable.
  13994. (getId): Made non-const.
  13995. * src/BtHaveMessage.h
  13996. (ID_t): Removed.
  13997. (ID): New variable.
  13998. (getId): Made non-const.
  13999. To add --force-truncate command-line option and a check whether
  14000. the file already exists:
  14001. * src/DirectDiskAdaptor.h
  14002. (getFilePath): Made virtual public.
  14003. * src/MultiDiskAdaptor.h
  14004. (File.h): New include.
  14005. (DiskWriterEntry::fileEntry): Made private.
  14006. (DiskWriterEntry::fileExists): New function.
  14007. (DiskWriterEntry::getFileEntry): New function.
  14008. (fileExists): New function.
  14009. (getFilePath): New function.
  14010. * src/TorrentRequestInfo.cc
  14011. (FatalException.h): New include.
  14012. (message.h): New include.
  14013. (RecoverableException.h): New include.
  14014. (execute): Added a check whether file is already exists or not.
  14015. * src/DiskAdaptor.h
  14016. (fileExists): New function.
  14017. (getFilePath): New function.
  14018. * src/main.cc
  14019. (showUsage): Added an explanation of --force-truncate command-line
  14020. option.
  14021. (main): Added --force-truncate command-line option.
  14022. * src/Exception.h
  14023. (setMsg): buf[256] -> buf[1024]
  14024. * src/CopyDiskWriter.h
  14025. (getFilePath): Made public virtual.
  14026. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14027. (fileExists): New function.
  14028. * src/DownloadEngineFactory.cc
  14029. (newTorrentConsoleEngine): Don't open file here.
  14030. * src/message.h
  14031. (EX_FILE_ALREADY_EXISTS): New definition.
  14032. * src/prefs.h
  14033. (PREF_FOECE_TRUNCATE): New definition.
  14034. * src/HttpResponseCommand.cc
  14035. (handleDefaultEncoding): Added a check whether the file already exists.
  14036. * src/SegmentMan.h
  14037. (fileExists): New function.
  14038. (shouldCancelDownloadForSafety): New function.
  14039. * src/FtpNegotiateCommand.cc
  14040. (recvSize): Added a check whether the file already exists.
  14041. * src/AbstractSingleDiskAdaptor.cc
  14042. (File.h): New include.
  14043. (fileExists): New function.
  14044. * src/AbstractSingleDiskAdaptor.h
  14045. (getFilePath): Removed.
  14046. (fileExists): New function.
  14047. * src/SegmentMan.cc
  14048. (fileExists): New function.
  14049. (shouldCancelDownloadForSafety): New function.
  14050. To fix regression bug in torrent downloading:
  14051. * src/DefaultBtRequestFactory.cc
  14052. (doChokedAction): New function.
  14053. * src/DefaultBtRequestFactory.h
  14054. (doChokedAction): New function.
  14055. * src/DefaultBtMessageDispatcher.cc
  14056. (doChokedAction): Do not delete request if its target is in allowed
  14057. fast set.
  14058. * src/DefaultBtInteractive.cc
  14059. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14060. (sendKeepAlive): Send keep alive message even if the outgoing message
  14061. queue is not empty.
  14062. (decideInterest): Simplified the code.
  14063. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14064. it is already called when BtChokeMessage is received from a peer.
  14065. * src/BtRequestFactory.h
  14066. (doChokedAction): New function.
  14067. To clean up code:
  14068. * src/PeerInteractionCommand.h
  14069. (executeInternal): Added virtual keyword explicitly.
  14070. (prepareForRetry): Added virtual keyword explicitly.
  14071. (prepareForNextPeer): Added virtual keyword explicitly.
  14072. (onAbort): Added virtual keyword explicitly.
  14073. * src/RequestSlot.cc
  14074. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14075. * src/BtPieceMessage.cc
  14076. (doReceivedAction): Added a debug log of piece's bitfield.
  14077. * src/Piece.h
  14078. (getBitfieldLength): New function.
  14079. * src/ByteArrayDiskWriter.cc
  14080. (clear): Added buf = 0 to avoid double free corruption.
  14081. * src/FileAllocator.cc
  14082. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14083. Added cp.reset().
  14084. * src/BitfieldMan.h
  14085. (operator=): Rewritten.
  14086. * src/BitfieldMan.cc
  14087. (BitfieldMan): Initialized bitfield, useBitfield.
  14088. * src/PeerConnection.cc
  14089. (receiveMessage): Added a call to socket->readable() after getting
  14090. message length to avoid possible EOF.
  14091. * src/Util.cc
  14092. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14093. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14094. To add an ability to pre-allocate file space:
  14095. * src/DirectDiskAdaptor.h: Rewritten.
  14096. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14097. * src/MultiDiskAdaptor.h: Rewritten.
  14098. * src/DefaultPieceStorage.cc
  14099. (MultiDiskWriter.h): Removed include.
  14100. (PreAllocationDiskWriter.h): Removed include.
  14101. (FileAllocationMonitor.h): New include.
  14102. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14103. (initStorage): Rewritten.
  14104. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14105. * src/FileAllocator.h: New class.
  14106. * src/FileAllocator.cc: New class.
  14107. * src/FileAllocationMonitor.h: New class.
  14108. * src/FileAllocationMonitor.cc: New class.
  14109. * src/ConsoleFileAllocationMonitor.h: New class.
  14110. * src/ConsoleFileAllocationMonitor.cc: New class.
  14111. * src/AbstractSingleDiskAdaptor.h: New class.
  14112. * src/AbstractSingleDiskAdaptor.cc: New class.
  14113. * src/DiskAdaptor.h
  14114. (Directory.h): Removed include.
  14115. (DiskWriter.h): Removed include.
  14116. (FileEntry.h): Removed include.
  14117. (diskWriter): Removed.
  14118. (DiskAdaptor): Removed diskWriter.
  14119. (openFile): Made pure virtual.
  14120. (closeFile): Made pure virtual.
  14121. (openExistingFile): Made pure virtual.
  14122. (initAndOpenFile): Made pure virtual.
  14123. (writeData): Made pure virtual.
  14124. (readData): Made pure virtual.
  14125. (sha1Sum): Made pure virtual.
  14126. (getStoreDir): Returns const reference of storeDir.
  14127. (DiskAdaptorHandle): New type definition.
  14128. * src/main.cc
  14129. (ConsoleFileAllocationMonitor.h): New include.
  14130. (showUsage): Added default value description of -s option.
  14131. Added the description of --file-allocation option.
  14132. (main): Set default value of --file-allocation option to 'none'.
  14133. Added --file-allocation command-line option.
  14134. Setup FileAllocationMonitorFactory.
  14135. * src/FtpInitiateConnectionCommand.cc
  14136. (executeInternal): Removed diskWriter related processing, which was
  14137. moved to FtpNegotiationCommand.cc.
  14138. * src/DirectDiskAdaptor.cc
  14139. (getFilePath): Made non-const.
  14140. * src/CopyDiskAdaptor.h
  14141. (DiskAdaptor.h): Removed include.
  14142. (DiskWriter.h): Removed include.
  14143. (AbstractSingleDiskAdaptor.h): New include.
  14144. (getFilePath): Made non-const. Added virtual keyword.
  14145. (CopyDiskAdaptor): Removed diskWriter.
  14146. (getTempFile): Returns const reference.
  14147. (CopyDiskAdaptorHandle): New type definition.
  14148. * src/ByteArrayDiskWriter.cc
  14149. (clear): Simplified.
  14150. (initAndOpenFile): Rewritten.
  14151. (openFile): Call initAndOpenFile()
  14152. * src/MultiDiskAdaptor.cc: Rewritten.
  14153. * src/DownloadEngineFactory.cc
  14154. (FileAllocator.h): New include.
  14155. (FileAllocationMonitor.h): New include.
  14156. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14157. create DefaultDiskWriter with file allocator.
  14158. * src/DiskWriter.h
  14159. (initAndOpenFile): Added totalLength argument.
  14160. (openFile): Added totalLength argument.
  14161. * src/prefs.h
  14162. (PREF_FILE_ALLOCATION): New definition.
  14163. (V_PREALLOC): New definition.
  14164. (V_NONE): New definition.
  14165. * src/HttpResponseCommand.cc
  14166. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14167. size.
  14168. * src/FtpNegotiateCommand.cc
  14169. (Util.h): New include.
  14170. (recvSize): Open file here.
  14171. * src/Util.h
  14172. (ullitos): New function.
  14173. * src/CopyDiskWriter.h
  14174. (getFilePath): Made non-const.
  14175. * src/DefaultDiskWriter.h
  14176. (Option.h): New include.
  14177. (totalLength): Removed.
  14178. (DefaultDiskWriter): Removed totalLength.
  14179. (initAndOpenFile): Added totalLength argument.
  14180. (DefaultDiskWriterHandle): New type definition.
  14181. (createNewDiskWriter): New function.
  14182. * src/Util.cc
  14183. (ullitos): New function.
  14184. * src/DefaultDiskWriter.cc
  14185. (message.h): New include.
  14186. (FileAllocator.h): New include.
  14187. (prefs.h): New include.
  14188. (Util.h): New include.
  14189. (DefaultDiskWriter): Removed totalLength.
  14190. (initAndOpenFile): Added file allocation.
  14191. (createNewDiskWriter): New function. Just for temporary solution.
  14192. It will be rewritten later.
  14193. * src/DiskAdaptor.cc
  14194. (DiskAdaptor): Removed diskWriter.
  14195. * src/AbstractDiskWriter.cc
  14196. (LogFactory.h): New include.
  14197. (AbstractDiskWriter): Added fileAllocator, logger.
  14198. (openFile): Added totalLength argument.
  14199. * src/AbstractDiskWriter.h
  14200. (FileAllocator.h): New include.
  14201. (Logger.h): New include.
  14202. (fileAllocator): New variable.
  14203. (logger): New variable.
  14204. (openFile): Added totalLength argument. Added virtual keyword
  14205. explicitly.
  14206. (openExistingFile): Added totalLength argument. Added virtual keyword
  14207. explicitly.
  14208. (closeFile): Added virtual keyword explicitly.
  14209. (sha1Sum): Added virtual keyword explicitly.
  14210. (writeData): Added virtual keyword explicitly.
  14211. (readData): Added virtual keyword explicitly.
  14212. (setFileAllocator): New function.
  14213. * src/DefaultPieceStorage.h
  14214. (FileAllocator.h): New include.
  14215. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14216. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14217. * src/FileProgressMonitor.h: New class.
  14218. To compile aria2 on PC-BSD:
  14219. * src/DefaultBtContext.cc
  14220. (libgen.h): New include.
  14221. To fix memory leak:
  14222. * src/Exception.h
  14223. (~Exception): Delete cause. Fixed memory leak.
  14224. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14225. Rewritten a portion of bittorrent implementation:
  14226. * src/BtMessageValidator.h: New class.
  14227. * src/BtBitfieldMessageValidator.h: New class.
  14228. * src/BtHandshakeMessageValidator.h: New class.
  14229. * src/BtRequestMessageValidator.h: New class.
  14230. * src/BtSuggestPieceMessageValidator.h: New class.
  14231. * src/BtAllowedFastMessageValidator.h: New class.
  14232. * src/BtRejectMessageValidator.h: New class.
  14233. * src/BtCancelMessageValidator.h: New class.
  14234. * src/BtPieceMessageValidator.h: New class.
  14235. * src/BtHaveMessageValidator.h: New class.
  14236. * src/BtEventListener.h: New class.
  14237. * src/AbstractBtEventListener.h: New class.
  14238. * src/BtEvent.h: New class.
  14239. * src/BtChokingEvent.h: New class.
  14240. * src/BtChokedEvent.h: New class.
  14241. * src/BtCancelSendingPieceEvent.h: New class.
  14242. * src/BtAbortOutstandingRequestEvent.h: New class.
  14243. * src/Randomizer.h: New class.
  14244. * src/SimpleRandomizer.h: New class.
  14245. * src/BtMessage.h: New class.
  14246. * src/AbstractBtMessage.h: New class.
  14247. * src/SimpleBtMessage.h: New class.
  14248. * src/BtHaveMessage.h: New class.
  14249. * src/BtInterestedMessage.h: New class.
  14250. * src/BtAllowedFastMessage.h: New class.
  14251. * src/BtUnchokeMessage.h: New class.
  14252. * src/BtCancelMessage.h: New class.
  14253. * src/BtNotInterestedMessage.h: New class.
  14254. * src/BtChokeMessage.h: New class.
  14255. * src/BtHaveNoneMessage.h: New class.
  14256. * src/BtHandshakeMessage.h: New class.
  14257. * src/BtSuggestPieceMessage.h: New class.
  14258. * src/BtHaveMessage.h: New class.
  14259. * src/BtPieceMessage.h: New class.
  14260. * src/BtHaveAllMessage.h: New class.
  14261. * src/BtKeepAliveMessage.h: New class.
  14262. * src/BtPortMessage.h: New class.
  14263. * src/BtRejectMessage.h: New class.
  14264. * src/BtBitfieldMessage.h: New class.
  14265. * src/BtRequestMessage.h: New class.
  14266. * src/DefaultBtRequestFactory.h: New class.
  14267. * src/DefaultBtMessageReceiver.h: New class.
  14268. * src/BtInteractive.h: New class.
  14269. * src/BtMessageDispatcher.h: New class.
  14270. * src/DefaultBtMessageDispatcher.h: New class.
  14271. * src/DefaultBtInteractive.h: New class.
  14272. * src/BitfieldManFactory.h: New class.
  14273. * src/HandleRegistry.h: New class.
  14274. * src/BtMessageFactory.h: New class.
  14275. * src/BtMessageReceiver.h: New class.
  14276. * src/DefaultBtMessageFactory.h: New class.
  14277. * src/PeerObject.h: New class.
  14278. * src/BtRequestFactory.h: New class.
  14279. * src/SuggestPieceMessage.h: Removed.
  14280. * src/PortMessage.h: Removed.
  14281. * src/SuggestPieceMessage.h: Removed.
  14282. * src/KeepAliveMessage.h: Removed.
  14283. * src/HandshakeMessage.h: Removed.
  14284. * src/PeerInteraction.h: Removed.
  14285. * src/UnchokeMessage.h: Removed.
  14286. * src/PieceMessage.h: Removed.
  14287. * src/RequestMessage.h: Removed.
  14288. * src/InterestedMessage.h: Removed.
  14289. * src/HaveMessage.h: Removed.
  14290. * src/CancelMessage.h: Removed.
  14291. * src/RejectMessage.h: Removed.
  14292. * src/AllowedFastMessage.h: Removed.
  14293. * src/HaveNoneMessage.h: Removed.
  14294. * src/SimplePeerMessage.h: Removed.
  14295. * src/HaveAllMessage.h: Removed.
  14296. * src/BitfieldMessage.h: Removed.
  14297. * src/PeerMessageFactory.h: Removed.
  14298. * src/NotInterestedMessage.h: Removed.
  14299. * src/ChokeMessage.h: Removed.
  14300. * src/PeerMessage.h: Removed.
  14301. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14302. To know root cause of exception:
  14303. * src/Exception.h
  14304. (cause): New variable.
  14305. (Exception): Added a parameter.
  14306. (getMsg): Return const reference to msg.
  14307. (getCause): New function.
  14308. * src/DlRetryEx.h
  14309. (DlRetryEx): Added a parameter 'cause'.
  14310. Added an overloaded constructor.
  14311. (DlAbortEx): Added a parameter 'cause'.
  14312. Added an overloaded constructor.
  14313. * src/SimpleLogger.cc
  14314. (writeLog): Log nested exception messages recursively.
  14315. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14316. * src/DefaultBtProgressInfoFile.cc
  14317. (load): Fixed memory leak when the infohash doesn't match.
  14318. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14319. * src/DefaultPeerStorage.cc
  14320. (calculateStat): Simplified the code by combining 2 loops into 1.
  14321. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14322. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14323. for BitTorrent download:
  14324. * src/PeerAbstractCommand.cc
  14325. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14326. * src/main.cc:
  14327. (timeoutSpecified): Removed.
  14328. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14329. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14330. * src/TorrentRequestInfo.cc
  14331. (timeoutSpecified): Removed.
  14332. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14333. timeout value.
  14334. * src/prefs.h
  14335. (PREF_BT_TIMEOUT): New definition.
  14336. Delete unused variables:
  14337. * src/TorrentRequestInfo.cc
  14338. (requestInfo): Removed.
  14339. Move setSignalHander to Util::setGlobalSignalHandler:
  14340. * src/TorrentRequestInfo.cc:
  14341. setSignalHander -> Util::setGlobalSignalHandler
  14342. * src/main.cc
  14343. (setSignalHander): Removed.
  14344. (main): setSignalHander -> Util::setGlobalSignalHandler
  14345. * src/Util.h
  14346. (setGlobalSignalHandler): New function.
  14347. * src/Util.cc
  14348. (setGlobalSignalHandler): New function.
  14349. * src/UrlRequestInfo.cc:
  14350. setSignalHander -> Util::setGlobalSignalHandler
  14351. Reset peer status in order to exit gracefully:
  14352. * src/PeerAbstractCommand.cc
  14353. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14354. To fix the bug that causes the number of bytes uploaded is not saved
  14355. to .aria2 file:
  14356. * src/DefaultPeerStorage.h
  14357. (removedPeerSessionDownloadLength): New variable.
  14358. (removedPeerSessionUploadLength): New variable.
  14359. * src/DefaultPeerStorage.cc
  14360. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14361. removedPeerSessionUploadLength(0).
  14362. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14363. through all peers, and then add removedPeerSessionDownloadLength(
  14364. removedPeerSessionUploadLength) to it.
  14365. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14366. (to) the peer to removedPeerSessionDownloadLength
  14367. (removedPeerSessionUploadLength).
  14368. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14369. To add Metalink location option:
  14370. * src/MetalinkRequestInfo.cc
  14371. (execute): Call MetalinkEntry::setLocationPreference()
  14372. * src/main.cc
  14373. (showUsage): Added the help message for --metalink-location option.
  14374. (main): Added --metalink-location option.
  14375. * src/prefs.h
  14376. (PREF_METALINK_LOCATION): New definition.
  14377. * src/MetalinkEntry.cc
  14378. (AddLocationPreference): New function object.
  14379. (setLocationPreference): New function.
  14380. * src/Xml2MetalinkProcessor.cc
  14381. (getResource): Set location attribute to MetalinkResource
  14382. To show URLs to download
  14383. * src/UrlRequestInfo.h
  14384. (printUrls): New function.
  14385. To add multiple <file> Metalink support:
  14386. * src/MetalinkEntry.h
  14387. (MetalinkResources): Removed.
  14388. (setLocationPreference): New function.
  14389. (MetalinkEntryHandle): New type definition.
  14390. (MetalinkEntries): New type definition.
  14391. * src/Xml2MetalinkProcessor.h
  14392. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14393. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14394. (parseFile): Metalinker* -> MetalinkerHandle
  14395. * src/UrlRequestInfo.h
  14396. (execute): RequestInfo* -> RequestInfos
  14397. * src/MetalinkRequestInfo.cc
  14398. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14399. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14400. (execute): RequestInfo* -> RequestInfos
  14401. Added multiple <file> support. Print filename when it is queued.
  14402. * src/MetalinkRequestInfo.h
  14403. (execute): RequestInfo* -> RequestInfos
  14404. (getDownloadEngine): Removed.
  14405. * src/RequestInfo.h
  14406. (RequestInfoHandle): New type definition.
  14407. (RequestInfos): New type definition.
  14408. (execute): RequestInfo* -> RequestInfos
  14409. (getDownloadEngine): Removed.
  14410. * src/MetalinkResource.h
  14411. (MetalinkResourceHandle): New type definition.
  14412. (MetalinkResources): New type definition.
  14413. * src/MetalinkEntry.cc
  14414. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14415. because the element is now of type MetalinkResourceHandle.
  14416. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14417. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14418. (dropUnsupportedResource): Removed the deletion of the elements of
  14419. resources because the element is now of type MetalinkResourceHandle.
  14420. * src/Xml2MetalinkProcessor.cc
  14421. (parseFile): Metalinker* -> MetalinkerHandle
  14422. MetalinkEntry* -> MetalinkEntryHandle
  14423. Removed try-catch block.
  14424. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14425. MetalinkResource* -> MetalinkResourceHandle
  14426. Removed try-catch block.
  14427. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14428. Free result by using xmlXPathFreeObject()
  14429. * src/Metalinker.cc
  14430. (~Metalinker): Removed the deletion of entries.
  14431. MetalinkEntry* -> MetalinkEntryHandle
  14432. (queryEntry): Add multiple <file> Metalink support.
  14433. * src/Metalinker.h
  14434. (MetalinkEntries): Removed.
  14435. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14436. * src/MetalinkProcessor.h
  14437. (parseFile): Metalinker* -> MetalinkerHandle
  14438. Bug fixes:
  14439. * src/PeerChokeCommand.cc
  14440. (execute): cat01->cat02
  14441. * src/DefaultPieceStorage.cc
  14442. (DefaultPieceStorage): Added diskAdaptor(0)
  14443. * src/TrackerWatcherComand.cc:
  14444. (execute): Use btAnnounce->noMoreAnnounce()
  14445. to determin whether the function returns true or not.
  14446. * src/TrackerUpdateCommand.cc:
  14447. (execute): Use btAnnounce->noMoreAnnounce()
  14448. to determin whether the function returns true or not.
  14449. * src/FtpConnection.cc
  14450. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14451. This is the fix of the busy loop bug.
  14452. * src/DownloadCommand.cc
  14453. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14454. cached PeerStat.
  14455. The value of "name" entry in torrent file is now set by
  14456. *DiskAdaptor::setTopDir(...) methods.
  14457. * src/MultiDiskAdaptor.h
  14458. (topDir): New variable.
  14459. (setTopDir): New function.
  14460. (getTopDir): New function.
  14461. * src/MultiDiskAdaptor.cc
  14462. (getFilePath): Concat storDir, "/" and topDir.
  14463. (mkdir): Use getFilePath() to get the directory path for output.
  14464. * src/DefaultPieceStorage.cc
  14465. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14466. CopyDiskAdaptor.
  14467. * src/CopyDiskAdaptor.h
  14468. (topDir): New variable.
  14469. (setTopDir): New function.
  14470. (getTopDir): New function.
  14471. * src/CopyDiskAdaptor.cc
  14472. (fixFilename): Updated.
  14473. Misc
  14474. * src/UrlRequestInfo.h
  14475. (e): Removed.
  14476. (UrlRequestInfo): Removed e.
  14477. (getDownloadEngine): Removed.
  14478. * src/UrlRequestInfo.cc
  14479. (handler): Rewritten.
  14480. (printUrls): New function.
  14481. (execute): Call printUrls().
  14482. * src/HandshakeMessage.cc
  14483. (check): peerinteraction->getBtContext() -> btContext
  14484. * src/PeerInteraction.h
  14485. (getBtContext): Removed.
  14486. * src/TorrentRequestInfo.h
  14487. (execute): RequestInfo* -> RequestInfos
  14488. (getDownloadEngine): Removed.
  14489. * src/TorrentRequestInfo.cc
  14490. (haltRequested): Removed.
  14491. (btHaltRequested): New variable.
  14492. (torrentHandler): haltRequested -> btHaltRequested
  14493. (execute): RequestInfo* -> RequestInfos
  14494. * src/TorrentConsoleDownloadEngine.cc
  14495. (afterEachIteration): haltRequested -> btHaltRequested.
  14496. * src/ConsoleDownloadEngine.h
  14497. (initStatistics): Added virtual.
  14498. (calculateStatistics): Added virtual.
  14499. (onEndOfRun): Added virtual.
  14500. (afterEachIteration): Added virtual.
  14501. * src/ConsoleDownloadEngine.cc
  14502. (haltRequested): New variable.
  14503. (afterEachIteration): New function.
  14504. * src/main.cc
  14505. (requestInfo): Removed.
  14506. * src/SegmentMan.cc
  14507. (findSlowerSegmentEntry): Refactored.
  14508. * Release 0.9.0
  14509. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14510. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14511. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14512. * src/TorrentMan.h: Removed.
  14513. * src/TorrentMan.cc: Removed.
  14514. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14515. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14516. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14517. * src/PeerAbstractCommand.cc: Use btRuntime.
  14518. * src/BtContextAwareCommand.h: New class.
  14519. * src/FileEntry.h: Added accessor methods for following variables.
  14520. (path): Made private.
  14521. (length): Made private.
  14522. (offset): Made private.
  14523. (extracted): Made private.
  14524. (requested): Made private.
  14525. (FileEntries): New definition.
  14526. (FileEntryHandle): New definition.
  14527. * src/FileEntry.cc: New file.
  14528. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14529. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14530. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14531. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14532. * src/PieceStorage.h: New file.
  14533. * src/PeerInteractionCommand.h: Use btContext.
  14534. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14535. btRuntime.
  14536. * src/DefaultBtProgressInfoFile.h: New file.
  14537. * src/DefaultBtProgressInfoFile.cc: New file.
  14538. * src/File.cc
  14539. (Util.h): New include.
  14540. (mkdirs): New function.
  14541. * src/MultiDiskAdaptor.h
  14542. (mkdir): New function.
  14543. * src/PeerListProcessor.h
  14544. (Peers): Removed.
  14545. * src/PeerInteraction.h
  14546. (torrentMan): Removed.
  14547. (btContext): New variable.
  14548. (peerStorage): New variable.
  14549. (pieceStorage): New variable.
  14550. (btAnnounce): New variable.
  14551. (getTorrentMan): Removed.
  14552. (getBtContext): New function.
  14553. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14554. btAnnounce.
  14555. * src/HandshakeMessage.h
  14556. (TorrentMan.h): Removed.
  14557. * src/HandshakeMessage.cc: Use btContext.
  14558. * src/DefaultBtAnnounce.cc: New file.
  14559. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14560. * src/DefaultPieceStorage.cc: New file.
  14561. * src/DefaultBtContext.h: New file.
  14562. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14563. Use the accessor methods of FileEntry.
  14564. * src/CookieBox.cc: Updated to use Util::slice().
  14565. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14566. * src/common.h (SharedHandle.h): New include.
  14567. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14568. pieceStorage.
  14569. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14570. * src/DiskAdaptor.h
  14571. (topDir): Removed.
  14572. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14573. (setTopDir): Removed.
  14574. (getTopDir): Removed.
  14575. * src/BtContext.h: New file.
  14576. * src/DefaultPeerStorage.h: New file.
  14577. * src/PieceMessage.h (TorrentMan.h): Removed.
  14578. * src/RequestMessage.h (TorrentMan.h): Removed.
  14579. * src/TorrentDownloadEngine.h
  14580. (uploadLength): New variable.
  14581. (btContext): New variable.
  14582. (btRuntime): New variable.
  14583. (pieceStorage): New variable.
  14584. (peerStorage): New variable.
  14585. (btAnnounce): New variable.
  14586. (btProgressInfoFile): New variable.
  14587. (torrentMan): Removed.
  14588. (setBtContext): New function.
  14589. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14590. peerStorage, btAnnounce, btProgressInfoFile.
  14591. * src/Piece.h
  14592. (toString): New function.
  14593. (Pieces): New type definition.
  14594. * src/Peer.h
  14595. (active): New variable.
  14596. (Peer): Added active.
  14597. (activate): Set active to true.
  14598. (deactivate): Set active to false.
  14599. (isActive): New function.
  14600. (Peers): New type definition.
  14601. * src/DirectDiskAdaptor.cc
  14602. (getFilePath): Use the accessor methods of FileEntry.
  14603. * src/TorrentConsoleDownloadEngine.h
  14604. (afterEachIteration): New function.
  14605. * src/TorrentConsoleDownloadEngine.cc
  14606. (haltRequested): New variable.
  14607. (sendStatistics): Use pieceStorage, btRuntime.
  14608. (afterEachIteration): New function.
  14609. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14610. * src/Directry.h
  14611. (Directory): New function.
  14612. (DirectoryHandle): New type definition.
  14613. * src/BtProgressInfoFile.h: New file.
  14614. * src/RequestMessage.cc: Use pieceStorage.
  14615. * src/BtRuntime.h: New file.
  14616. * src/DefaultBtContext.cc: New file.
  14617. * src/BitfieldMan.h
  14618. (getCompletedLength): New function(private).
  14619. (getCompletedLength): New function.
  14620. (getFilteredCompletedLength): New function.
  14621. * src/BitfieldMan.h
  14622. (getCompletedLength): New function(private).
  14623. (getCompletedLength): New function.
  14624. (getFilteredCompletedLength): New function.
  14625. * src/MultiDiskAdaptor.cc
  14626. (mkdir): New function.
  14627. (openFile): Call mkdir().
  14628. (initAndOpenFile): Call mkdir().
  14629. * src/CancelMessage.h
  14630. (TorrentMan.h): Removed.
  14631. * src/RejectMessage.h
  14632. (TorrentMan.h): Removed.
  14633. * src/DownloadEngineFactory.cc
  14634. (DefaultPieceStorage.h): New include.
  14635. (DefaultPeerStorage.h): New include.
  14636. (DefaultBtAnnounce.h): New include.
  14637. (DefaultBtProgressInfoFile.h): New include.
  14638. (newTorrentConsoleEngine): Rewritten.
  14639. * src/ShareRatioSeedCriteria.h
  14640. (torrentMan): Removed.
  14641. (btContext): New variable.
  14642. (peerStorage): New variable.
  14643. (btRuntime): New variable.
  14644. (evaluate): Use btContext, btRuntime, peerStorage.
  14645. * src/AnnounceTier.h: New file.
  14646. * src/BtAnnounce.h: New file.
  14647. * src/BtRegistry.h: New file.
  14648. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14649. * src/PeerConnection.h (TorrentMan.h): Removed.
  14650. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14651. * src/Util.h
  14652. (slice): Added an argument.
  14653. * src/Util.cc
  14654. (slice): Added an argument to control whether trim is made or not.
  14655. * src/PeerStorage.h: New file.
  14656. * src/BtRegistry.cc: New file.
  14657. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14658. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14659. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14660. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14661. * src/TorrentRequestInfo.h
  14662. (e): Removed.
  14663. (showFileEntry): Added an argument.
  14664. (getDownloadEngine): Return 0.
  14665. * src/DefaultBtAnnounce.h: New file.
  14666. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14667. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14668. * src/PeerMessageFactory.h
  14669. (btContext): New variable.
  14670. (pieceStorage): New variable.
  14671. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14672. btAnnounce.
  14673. * src/DiskAdaptor.cc
  14674. (DiskAdaptor): Removed topDir.
  14675. (~DiskAdaptor): Removed topDir.
  14676. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14677. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14678. * src/File.h (mkdirs): New function.
  14679. * src/DefaultPeerStorage): New file.
  14680. * src/DownloadEngineFactory.h
  14681. (newTorrentConsoleEngine): Use btContext.
  14682. * src/BtContextAwareCommand.cc: New file.
  14683. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14684. * src/PeerMessage.h
  14685. (btContext): New variable.
  14686. (peerStorage): New variable.
  14687. (pieceStorage): New variable.
  14688. (setBtContext): New function.
  14689. * src/Directry.cc
  14690. (Directory): New function.
  14691. (createDir): Do nothing if name.size() == 0.
  14692. * src/AnnounceList.h
  14693. (AnnounceTier): Removed.
  14694. (AnnounceTiers): Removed.
  14695. * src/DefaultPieceStorage.h: New file.
  14696. * src/Piece.cc (toString): New function.
  14697. To fix typo:
  14698. * src/main.cc (showVersion): Fixed typo.
  14699. To fix compile warning:
  14700. * src/DelegatingPeerListProcessor.cc
  14701. (canHandle): Added "return false".
  14702. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14703. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14704. make the process of announce request testable.
  14705. * src/TrackerWatcherCommand.h
  14706. (TimeA2.h): Removed.
  14707. (interval): Removed.
  14708. (checkPoint): Removed.
  14709. (createRequestCommand): Added an argument 'url'.
  14710. (TrackerWatherCommand): Removed interval.
  14711. (createCommand): New function.
  14712. * src/DownloadEngineFactory.cc
  14713. (newTorrentConsoleEngine): Updated according to the changes in
  14714. TrackerWatherCommand.
  14715. * src/TorrentMan.cc
  14716. (DelegatingPeerListProcessor.h): New includes.
  14717. (TorrentMan): Added the initialization of announceInterval.
  14718. (isStoppedAnnounceReady): New function.
  14719. (isCompletedAnnounceReady): New function.
  14720. (isDefaultAnnounceReady): New function.
  14721. (isAnnounceReady): New function.
  14722. (getAnnounceUrl): New function.
  14723. (announceStart): New function.
  14724. (announceFailure): New function.
  14725. (announceSuccess): New function.
  14726. (isAllAnnounceFailed): New function.
  14727. (resetAnnounce): New function.
  14728. (processAnnounceResponse): New function.
  14729. (needMorePeerConnection): New function.
  14730. (noMoreAnnounce): New function.
  14731. * src/TrackerUpdateCommand.h
  14732. (getTrackerResponse): int->size_t
  14733. * src/TorrentMan.h
  14734. (isStoppedAnnounceReady): New function.
  14735. (isCompletedAnnounceReady): New function.
  14736. (isDefaultAnnounceReady): New function.
  14737. (announceInterval): New variable.
  14738. (isAnnounceReady): New function.
  14739. (getAnnounceUrl): New function.
  14740. (announceStart): New function.
  14741. (announceFailure): New function.
  14742. (announceSuccess): New function.
  14743. (isAllAnnounceFailed): New function.
  14744. (resetAnnounce): New function.
  14745. (processAnnounceResponse): New function.
  14746. (needMorePeerConnection): New function.
  14747. (noMoreAnnounce): New function.
  14748. * src/TrackerWatcherCommand.cc
  14749. (TrackerWatherCommand): Removed interval and checkPoint.
  14750. (execute): Rewritten.
  14751. (createCommand): New function.
  14752. (createRequestCommand): Rewritten.
  14753. * src/TrackerUpdateCommand.cc
  14754. (MetaFileUtil.h): Removed.
  14755. (DelegatingPeerListProcessor.h): Removed.
  14756. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14757. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14758. Request -> RequestHandle:
  14759. * src/HttpResponseCommand.h: Request->RequestHandle
  14760. * src/AbstractCommand.cc: Request->RequestHandle
  14761. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14762. * src/HttpRequestCommand.cc: Request->RequestHandle
  14763. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14764. * src/AbstractCommand.h: Request->RequestHandle
  14765. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14766. * src/HttpResponseCommand.cc: Request->RequestHandle
  14767. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14768. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14769. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14770. * src/HttpConnection.h: Request->RequestHandle
  14771. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14772. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14773. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14774. * src/DownloadCommand.h: Request->RequestHandle
  14775. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14776. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14777. * src/HttpRequestCommand.h: Request->RequestHandle
  14778. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14779. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14780. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14781. * src/HttpDownloadCommand.h: Request->RequestHandle
  14782. * src/FtpConnection.cc: Request->RequestHandle
  14783. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14784. * src/UrlRequestInfo.cc: Request->RequestHandle
  14785. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14786. * src/HttpConnection.h: Request->RequestHandle
  14787. * src/DownloadCommand.cc: Request->RequestHandle
  14788. * src/FtpConnection.h: Request->RequestHandle
  14789. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14790. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14791. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14792. * src/Request.h
  14793. (SharedHandle.h): New include.
  14794. (RequestHandle): New type definition.
  14795. (Requests): Redefined.
  14796. To add MULTITRACKER support:
  14797. * src/TrackerWatcherCommand.h
  14798. (createRequestCommand): New function.
  14799. * src/DownloadEngineFactory.cc
  14800. (newTorrentConsoleEngine): Removed req.
  14801. * src/prefs.h
  14802. (PREF_TRACKER_MAX_TRIES): New definition.
  14803. * src/TorrentMan.cc
  14804. (TorrentMan): Removed req. Added trackerNumTry.
  14805. (~TorrentMan): Removed req.
  14806. (setupInternal1): Added announceList.
  14807. * src/TorrentRequestInfo.cc
  14808. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14809. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14810. * src/main.cc
  14811. (main): Added PREF_TRACKER_MAX_TRIES.
  14812. * src/TorrentMan.h
  14813. (Request.h): Removed.
  14814. (AnnounceList.h): New include.
  14815. (trackerNumTry): New variable.
  14816. (req): Removed.
  14817. (announceList): New variable.
  14818. * src/TrackerWatcherCommand.cc
  14819. (execute): Rewritten.
  14820. (createRequestCommand): New function.
  14821. * src/TrackerUpdateCommand.cc
  14822. (execute): Updated with the use of AnnounceList.
  14823. * src/AnnounceList.cc: New class.
  14824. * src/AnnounceList.h: New class.
  14825. To fix typo:
  14826. * src/prefs.h
  14827. (PREF_MAX_TRIES): max_try->max_tries
  14828. To not to decode "+" as space in URL decode:
  14829. * src/Util.cc
  14830. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14831. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14832. To add timeout to async name resolution:
  14833. * src/AbstractCommand.h
  14834. (nameResolveFinished): New function. This is not elegant way. It needs
  14835. to be more refined.
  14836. (nameResolverCheck): New variable.
  14837. * src/AbstractCommand.cc
  14838. (AbstractCommand): Added nameResolverCheck.
  14839. (execute): Added the check whether the name resolution has finished.
  14840. (setNameResolverCheck): Set nameResolverCheck to true.
  14841. (disableNameResolverCheck): Set nameResolverCheck to false.
  14842. (nameResolverFinished): New function.
  14843. * src/FtpInitiateConnectionCommand.h
  14844. (nameResolverFinished): New function.
  14845. * src/FtpInitiateConnectionCommand.cc
  14846. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14847. * src/HttpInitiateConnectionCommand.h
  14848. (nameResolverFinished): New function.
  14849. * src/HttpInitiateConnectionCommand.cc
  14850. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14851. * src/prefs.h
  14852. (PREF_DNS_TIMEOUT): New definition.
  14853. * src/main.cc
  14854. (main): Added PREF_DNS_TIMEOUT.
  14855. To add the support for a non-compact response from a tracker:
  14856. * src/PeerListProcessor.h: New class.
  14857. * src/DefaultPeerListProcessor.h: New class.
  14858. * src/DefaultPeerListProcessor.cc: New class.
  14859. * src/CompactPeerListProcessor.h: New class.
  14860. * src/CompactPeerListProcessor.cc: New class.
  14861. * src/DelegatingPeerListProcessor.h: New class.
  14862. * src/DelegatingPeerListProcessor.cc: New class.
  14863. * src/TorrentMan.cc
  14864. (addPeer): New function(overload).
  14865. (addPeer): Delete unused peers only when new peer is added.
  14866. * src/TorrentMan.h
  14867. (PeerListProcessor.h): Included.
  14868. (Peers): Removed.
  14869. (addPeer): New function(overload).
  14870. * src/TrackerUpdateCommand.cc
  14871. (netinet/in.h): Removed.
  14872. (DelegatingPeerListProcessor.h): Included.
  14873. (execute): Updated to use DelegatingPeerListProcessor.
  14874. To fix the memory leak in TorrentMan::peers:
  14875. * src/PeerAbstractCommand.cc
  14876. (onAbort): Added peer->resetStatus().
  14877. * src/Peer.h
  14878. (resetStatus): Made public.
  14879. To improve the precision of the speed calculation:
  14880. * src/SpeedCalc.h
  14881. (nextInterval): New variable.
  14882. * src/SpeedCalc.cc
  14883. (reset): Added nextInterval.
  14884. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14885. (changeSw): Set nextInterval to 15 seconds relative to the current
  14886. instant time.
  14887. * src/main.cc
  14888. (showVersion): Updated.
  14889. (showUsage): Updated.
  14890. * Release 0.8.1
  14891. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14892. * src/main.cc
  14893. (showUsage): Commented out --min-segment-size option.
  14894. (main): Commented out --min-segment-size option.
  14895. * Release 0.8.0
  14896. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14897. * src/*.{h,cc}:
  14898. Added an exception to the license which allows linking with OpenSSL.
  14899. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14900. * src/AbstractCommand.cc
  14901. (execute): Check whether the download has finished before checking
  14902. socket status.
  14903. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14904. Do not exit even if no segment is available.
  14905. * src/prefs.h
  14906. (PREF_STARTUP_IDLE_TIME): New definition.
  14907. * src/PeerInteractionCommand.cc
  14908. (executeInternal): Removed max speed limit. Because it performs bad.
  14909. (receiveMessages): Added max speed limit. This was better than above,
  14910. but still a little bit to be desired. Sometimes the download speed
  14911. became much faster than I specified.
  14912. * src/SpeedCalc.h
  14913. (start): New variable.
  14914. (accumulatedLength): New variable.
  14915. (getAvgSpeed): New function.
  14916. * src/SpeedCalc.cc
  14917. (reset): Added start, accumulatedLength.
  14918. (update): Added calculation of an average speed.
  14919. (getAvgSpeed): New function.
  14920. * src/DownloadCommand.h
  14921. (sw): Removed.
  14922. * src/main.cc
  14923. (main): Added PREF_STARTUP_IDLE_TIME.
  14924. * src/PeerStat.h
  14925. (STATUS): Added REQUEST_IDLE.
  14926. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14927. (getAvgDownloadSpeed): New function
  14928. (requestIdle): New function.
  14929. * src/SegmentMan.h
  14930. (SegmentEntryHandle): New type definition.
  14931. (SegmentEntries): Now holds SegmentEntryHandle.
  14932. (findSlowerSegmentEntry): New funtion.
  14933. * src/SegmentMan.cc
  14934. (save): Updated according to the changes in SegmentEntries.
  14935. (read): Updated according to the changes in SegmentEntries.
  14936. (FindSegmentEntryByIndex): Updated according to the changes in
  14937. SegmentEntries.
  14938. (FindSegmentEntryByCuid): Updated according to the changes in
  14939. SegmentEntries.
  14940. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14941. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14942. Renamed uitr as itr.
  14943. (findSlowerSegmentEntry): New function.
  14944. (getSegment): Updated according to the changes in SegmentEntries.
  14945. Added the feature that cancels the segment with slow server and fast
  14946. one takes it over.
  14947. (cancelSegment): Updated according to the changes in SegmentEntries.
  14948. (getDownloadLength): Updated according to the changes in
  14949. SegmentEntries.
  14950. (init): Assigned 0 to bitfield after deleting it.
  14951. * src/DownloadCommand.cc
  14952. (STARTUP_IDLE_TIME): Removed.
  14953. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14954. * src/PeerChokeCommand.cc
  14955. (optUnchokingPeer): Updated according to the changes in Peer.
  14956. (ResetDelta): Removed.
  14957. (UploadFaster): Updated according to the changes in Peer.
  14958. (DownloadFaster): Updated according to the changes in Peer.
  14959. (execute): I clarify the meaning of "upload" and "download" here.
  14960. "upload" means the transfer from localhost to remote host.
  14961. "download" means the transfer from remote host to localhost.
  14962. Based on this rule, I swapped orderByUploadRate and
  14963. orderByDownloadRate.
  14964. * src/PeerInteractionCommand.cc
  14965. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14966. (executeInternal): Removed the argument of
  14967. peerInteraction->sendMessages().
  14968. (receiveMessages): Rewritten download speed limit.
  14969. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14970. * src/HttpResponseCommand.cc
  14971. (handleDefaultEncoding): If file size is unknown in torrent request,
  14972. do not call segmentMan->initBitfield() here.
  14973. Disabled persistent connection feature in torrent request.
  14974. * src/UrlRequestInfo.h
  14975. (UrlRequestInfo): Removed const qualifier from option.
  14976. * src/TorrentMan.h
  14977. (TransferStat): New class.
  14978. (deltaDownloadLength): Removed.
  14979. (deltaUploadLength): Removed.
  14980. (addDeltaDownloadLength): Removed.
  14981. (getDeltaDownloadLength): Removed.
  14982. (resetDeltaDownloadLength): Removed.
  14983. (addDeltaUploadLength): Removed.
  14984. (getDeltaUploadLength): Removed.
  14985. (resetDeltaUploadLength): Removed.
  14986. (addActivePeer): Added peer->activate().
  14987. (deleteActivePeer): Added peer->deactivate().
  14988. (calculateStat): New function.
  14989. * src/TorrentMan.cc
  14990. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14991. (calculateStat): New function.
  14992. * src/PeerInteraction.h
  14993. (uploadLimit): Removed.
  14994. (option): New variable.
  14995. (setUploadLimit): Removed.
  14996. (getUploadSpeed): Removed.
  14997. (sendMessages): Removed the argument "currentUploadSpeed".
  14998. * src/PeerInteraction.cc
  14999. (prefs.h): Included.
  15000. (PeerInteraction): Removed uploadLimit. Added option.
  15001. (sendMessages): Rewritten upload speed limit.
  15002. (sendHandshake): Removed the argument from sendMessages().
  15003. (sendBitfield): Removed the argument from sendMessages().
  15004. * src/PeerAbstractCommand.cc
  15005. (execute): Commented out the portion of upload limit.
  15006. (onAbort): Removed peer->resetStatus().
  15007. * src/TorrentRequestInfo.cc
  15008. (timeoutSpecified): Declared extern.
  15009. (execute): Set timeout to 180 if timeout is not specified by.
  15010. command-line.
  15011. * src/PieceMessage.cc
  15012. (receivedAction): Added peer->updateDownloadLength().
  15013. Removed peer->addPeerUpload().
  15014. Removed torrentMan->addDeltaDownloadLength().
  15015. (send): Added peer->updateUploadLength().
  15016. Removed peer->addPeerDownload().
  15017. Removed torrentMan->addDeltaUploadLength().
  15018. * src/main.cc
  15019. (timeoutSpecified): New variable.
  15020. (main): Set timeoutSpecified to false.
  15021. If the command-line option "--upload-limit" is specified, then
  15022. timeoutSpecified is set to true. This option will remain in the next
  15023. release, but be deprecated in the future release.
  15024. * src/TorrentRequestInfo.h
  15025. (TorrentRequestInfo): Removed const qualifier from op.
  15026. * src/PeerStat.h
  15027. (uploadSpeed): New variable.
  15028. (PeerStat): Added default value to cuid.
  15029. (calculateUploadSpeed): New function.
  15030. (updateUploadLength): New function.
  15031. (getMaxUploadSpeed): New function.
  15032. (getAvgUploadSpeed): New function.
  15033. (reset): Added uploadSpeed. Set status to IDLE.
  15034. * src/TorrentDownloadEngine.h
  15035. (cp): Declared as Time.
  15036. (sessionDownloadLengthArray): Removed.
  15037. (sessionUploadLengthArray): Removed.
  15038. (currentCp): Removed.
  15039. (lastCalcStat): New variable
  15040. (lastElapsed): Removed.
  15041. (sessionDownloadLength): Removed.
  15042. (calculateStat): New function.
  15043. * src/TorrentDownloadEngine.cc
  15044. (initStatistics): Removed lastElapsed, cp[],
  15045. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15046. currentCp, sessionDownloadLength.
  15047. Added cp.reset() and lastCalcStat.reset().
  15048. (calculateSpeed): Changed the name of the argument.
  15049. (calculateStatistics): Rewritten.
  15050. (calculateStat): New function.
  15051. * src/Peer.h
  15052. (PeerStat.h): Included.
  15053. (peerUpload): Removed.
  15054. (peerDownload): Removed.
  15055. (peerStat): New variable.
  15056. (sessionUploadLength): New variable.
  15057. (sessionDownloadLength): New variable.
  15058. (deltaUpload): Removed.
  15059. (deltaDownload): Removed.
  15060. (resetStatus): Made private.
  15061. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15062. Removed peerUpload, peerDownload.
  15063. (updateUploadLength): New function.
  15064. (addDeltaUpload): Removed.
  15065. (updateDownloadLength): New function.
  15066. (resetDeltaUpload): Removed.
  15067. (getDeltaUpload): Removed.
  15068. (addDeltaDownload): Removed.
  15069. (calculateUploadSpeed): New function.
  15070. (resetDeltaDownload): Removed.
  15071. (getDeltaDownload): Removed.
  15072. (calculateDownloadSpeed): New function.
  15073. (getSessionUploadLength): New function.
  15074. (getSessionDownloadLength): New function.
  15075. (activate): New function.
  15076. (deactivate): New function.
  15077. (addPeerUpload): Removed.
  15078. (setPeerUpload): Removed.
  15079. (getPeerUpload): Removed.
  15080. (addPeerDownload): Removed.
  15081. (setPeerDownload): Removed.
  15082. (getPeerDownload): Removed.
  15083. * src/Peer.cc
  15084. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15085. * src/MetalinkRequestInfo.h
  15086. (MetalinkRequestInfo): Removed const qualifier from op.
  15087. * src/RequestInfo.h
  15088. (op): Removed const qualifier.
  15089. (RequestInfo): Removed const qualifier from op.
  15090. * src/prefs.h
  15091. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15092. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15093. * src/PeerInteractionCommand.cc
  15094. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15095. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15096. * src/PeerInteraction.cc
  15097. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15098. * src/main.cc
  15099. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15100. Added the description of "--max-download-limit" option.
  15101. Removed the description of "--upload-limit" option.
  15102. Added the description of "--max-upload-limit" option.
  15103. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15104. Added "--max-download-limit" option and "--max-upload-limit" option.
  15105. Added the warning message if "--upload-limit" option is used.
  15106. * src/DownloadCommand.cc
  15107. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15108. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15109. To rewrite segment download mechanism for HTTP/FTP download.
  15110. Use BitfieldMan to manage segment download.
  15111. * src/HttpResponseCommand.h
  15112. (executeInternal): Pass the reference of segment.
  15113. * src/AbstractCommand.cc
  15114. (prepareForRetry): Call segmentMan->cancelSegment here.
  15115. (onAbort): Call segmentMan->cancelSegment here.
  15116. * src/HttpDownloadCommand.cc
  15117. (prepareForNextSegment): New function.
  15118. * src/DownloadEngineFactory.cc
  15119. (newConsoleEngine): Removed splitter.
  15120. (newTorrentConsoleEngine): Removed splitter.
  15121. * src/Request.h
  15122. (segment): Renamed from seg.
  15123. * src/FtpInitiateConnectionCommand.h
  15124. (executeInternal): Pass the reference of segment.
  15125. * src/AbstractCommand.h
  15126. (executeInternal): Pass the reference of segment.
  15127. * src/pref.h
  15128. (PREF_SEGMENT_SIZE): New definition.
  15129. * src/HttpProxyRequestCommand.h
  15130. (executeInternal): Pass the reference of segment.
  15131. * src/HttpResponseCommand.cc
  15132. (checkResponse): Allowed status 206 when a request range starts 0.
  15133. (handleDefaultEncoding): Rewritten the code related to Segment.
  15134. (handleOtherEncoding): Rewritten the code related to Segment.
  15135. * src/SegmentMan.h
  15136. (SegmentEntry): New class.
  15137. (SegmentEntries): New type definition.
  15138. (bitfield): New variable.
  15139. (usedSegmentEntries): New variable.
  15140. (onNullBitfield): New function.
  15141. (checkoutSegment): New function.
  15142. (segments): Removed.
  15143. (splitter): Removed.
  15144. (unregisterId): Removed.
  15145. (getSegment): New function(overload)
  15146. (getDownloadedSize): Removed.
  15147. (cancelSegment): New function.
  15148. (completeSegment): New function.
  15149. (initBitfield): New function.
  15150. (hasSegment): New function.
  15151. (getDownloadLength): New function.
  15152. * src/BitfieldMan.h
  15153. (getStartIndex): New function.
  15154. (getEndIndex): New function.
  15155. (getMissingUnusedIndex): New function(overload).
  15156. (getSparseMissingUnusedIndex): New function.
  15157. * src/BitfieldMan.cc
  15158. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15159. (getMissingUnusedIndex): New function(overload).
  15160. (Range): New class.
  15161. (getStartIndex): New function.
  15162. (getEndIndex): New function.
  15163. (getSparseMissingUnusedIndex): New function.
  15164. (isBitSetInternal): Return false if the given index is less than 0.
  15165. * src/HttpInitiateConnectionCommand.h
  15166. (executeInternal): Pass the reference of segment.
  15167. * src/FtpNegotiateCommand.h
  15168. (executeInternal): Pass the reference of segment.
  15169. * src/FtpNegotiateCommand.cc
  15170. (recvSize): Initialize bitfield here.
  15171. * src/FtpTunnelResponseCommand.h
  15172. (executeInternal): Pass the reference of segment.
  15173. * src/HttpConnection.cc
  15174. (createRequest): Rewritten range header processing.
  15175. * src/DownloadCommand.h
  15176. (executeInternal): Pass the reference of segment.
  15177. (prepareForRetry): Removed.
  15178. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15179. function.
  15180. * src/main.cc
  15181. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15182. * src/SegmentMan.cc
  15183. (SegmentMan): Added bitfield. Removed splitter.
  15184. (~SegmentMan): Added bitfield. Removed splitter.
  15185. (unregisterId): Removed.
  15186. (getSegment): Rewritten.
  15187. (updateSegment): Rewritten.
  15188. (save): Rewritten.
  15189. (read): Rewritten.
  15190. (finished): Rewritten.
  15191. (getDownloadedSize): Removed.
  15192. (initBitfield): New function.
  15193. (FindSegmentEntryByIndex): New function object.
  15194. (FindSegmentEntryByCuid): New function object.
  15195. (checkoutSegment): New function.
  15196. (onNullBitfield): New function.
  15197. (getSegment): New function(overload).
  15198. (CancelSegment): New function object.
  15199. (cancelSegment): New function.
  15200. (completeSegment): New function.
  15201. (hasSegment): New function.
  15202. (getDownloadLength): New function.
  15203. * src/FtpInitiateConnectionCommand.cc
  15204. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15205. * src/Segment.h: Rewritten.
  15206. * src/Segment.cc (operator<<): New function.
  15207. * src/HttpDownloadCommand.h
  15208. (prepareForNextSegment): New function.
  15209. * src/Request.cc
  15210. (resetUrl): Made segment null.
  15211. * src/DownloadEngine.cc
  15212. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15213. * src/HttpProxyRequestCommand.h
  15214. (executeInternal): Pass the reference of segment.
  15215. * src/DownloadCommand.cc
  15216. (executeInternal): Rewritten the code related to Segment.
  15217. (prepareForRetry): Removed.
  15218. (prepareForNextSegment): Rewritten.
  15219. * src/FtpTunnelResponseCommand.h
  15220. (executeInternal): Pass the reference of segment.
  15221. To add HTTP 1.1 persistent connection support(experimental)
  15222. * src/HttpRequestCommand.cc
  15223. (executeInternal): Disable keep alive if it is disabled by
  15224. configuration.
  15225. * src/Request.h
  15226. (keepAlive): New variable.
  15227. (isKeepAlive): New function.
  15228. (setKeepAlive): New function.
  15229. * src/pref.h
  15230. (PREF_HTTP_KEEP_ALIVE): New definition.
  15231. * src/HttpResponseCommand.cc
  15232. (executeInternal): Check the remote server supports keep alive.
  15233. * src/HttpConnection.cc
  15234. (createRequest): Send "Connection: close" only if keep alive is
  15235. disabled.
  15236. * src/main.cc
  15237. (main):
  15238. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15239. To add max download speed limit:
  15240. * src/pref.h
  15241. (PREF_MAX_SPEED_LIMIT): New definition.
  15242. * src/PeerInteractionCommand.cc
  15243. (executeInternal): Added max download speed limit. Not tested yet.
  15244. * src/SegmentMan.h
  15245. (PeerStats): New type definition.
  15246. (peerStats): New variable.
  15247. (registerPeerStat): New function.
  15248. (FindPeerStat): New function object.
  15249. (getPeerStat): New function.
  15250. (calculateDownloadSpeed): New function.
  15251. * src/SpeedCalc.h: New class.
  15252. * src/SpeedCalc.cc: New class.
  15253. * src/main.cc
  15254. (main):
  15255. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15256. download speed is not restricted).
  15257. * src/PeerStat.h: New class.
  15258. * src/SegmentMan.cc
  15259. (registerPeerStat): New function.
  15260. (calculateDownloadSpeed): New function.
  15261. * src/DownloadCommand.cc
  15262. (STARTUP_IDLE_TIME): New definition.
  15263. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15264. downloadStart.
  15265. (~DownloadCommand): Call peerStat->downloadStop.
  15266. (executeInternal): Added download speed limitter. Rewritten lowest
  15267. speed limitter.
  15268. * src/HttpConnection.cc
  15269. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15270. * src/AbstractCommand.cc
  15271. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15272. Added hostname to the error message.
  15273. * src/ConsoleDownloadEngine.cc
  15274. (calculateStatistics): Initialize psize with dlSize.
  15275. * src/PieceMessage.cc
  15276. (receivedAction): Do not call peerInteraction->abortPiece here.
  15277. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15278. * src/BitfieldMan.h
  15279. (clearAllUseBit): New function.
  15280. (setAllUseBit): New function.
  15281. * src/BitfieldMan.cc
  15282. (clearAllBit): Do not clear useBitfield here.
  15283. (clearAllUseBit): New function.
  15284. (setAllUseBit): New function.
  15285. * src/Piece.cc
  15286. (clearAllBlock): Call bitfield->clearAllUseBit().
  15287. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15288. To make filename URL-decoded:
  15289. * src/HttpResponseCommand.h: Updated doc.
  15290. * src/HttpResponseCommand.cc
  15291. (determinFilename): Made filename URL-decoded.
  15292. * src/FtpInitiateConnectionCommand.cc
  15293. (executeInternal): Made filename URL-decoded.
  15294. * src/Util.h (urldecode): New function.
  15295. * src/Util.cc (urldecode): New function.
  15296. To fix a bug that caused assertion failure in ares_strerror:
  15297. * src/NameResolver.cc (callback): Fixed the bug.
  15298. * Release 0.7.3
  15299. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15300. To add --seed-time and --seed-ratio command-line option:
  15301. * src/Option.h (getAsDouble): New function.
  15302. * src/Option.cc (getAsDouble): New function.
  15303. * src/SeedCheckCommand.h: New class.
  15304. * src/SeedCheckCommand.cc: New class.
  15305. * src/DownloadEngineFactory.cc
  15306. (SeedCheckCommand.h): Included.
  15307. (UnionSeedCriteria.h): Included.
  15308. (TimeSeedCriteria.h): Included.
  15309. (ShareRatioSeedCriteria.h): Included.
  15310. (newTorrentConsoleEngine): Added the processing of seed option.
  15311. * src/SeedCriteria.h: New class.
  15312. * src/ShareRatioSeedCriteria.h: New class.
  15313. * src/TimeSeedCriteria.h: New class.
  15314. * src/UnionSeedCriteria.h: New class.
  15315. * src/prefs.h
  15316. (PREF_SEED_TIME): New definition.
  15317. (PREF_SEED_RATIO): New definition.
  15318. * src/main.cc
  15319. (showUsage): Added --seed-time and --seed-ratio option.
  15320. (main): Added --seed-time and --seed-ratio option.
  15321. Made default log file name "/dev/null".
  15322. * src/SharedHandle.h
  15323. (SharedHandle): Copy constructor. Made it assignable from the
  15324. SharedHandle of the subclasses.
  15325. (operator=): Made it assignable from the SharedHandle of the
  15326. subclasses.
  15327. (getRefCount): New function.
  15328. To add notice log level and the switch to write log to stdout. This
  15329. switch is configurable per log level.
  15330. * src/Logger.h
  15331. (notice): New function.
  15332. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15333. constant.
  15334. * src/LogFactory.cc
  15335. (getInstance): The use of NullLogger was removed. A log message with
  15336. notice log level was made written to stdout along with log file.
  15337. * src/NullLogger.h
  15338. (notice): New function.
  15339. * src/SimpleLogger.h
  15340. (writeHeader): Added the 'file' argument.
  15341. (writeLog): Added the 'file' argument.
  15342. (writeFile): New function.
  15343. (stdoutField): New variable.
  15344. (SimpleLogger): Removed the default constructor.
  15345. (SimpleLogger): Made the default value of logfile 0.
  15346. (debug): Added 'virtual' keyword.
  15347. (info): Added 'virtual' keyword.
  15348. (warn): Added 'virtual' keyword.
  15349. (error): Added 'virtual' keyword.
  15350. (notice): New function.
  15351. (setStdout): New function.
  15352. * src/SimpleLogger.cc
  15353. (WRITE_LOG): Replaced writeLog with writeFile.
  15354. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15355. (SimpleLogger): Removed the default constructor.
  15356. (setStdout): New function.
  15357. (writeLog): Added the handling of NOTICE log level.
  15358. (writeFile): New function.
  15359. (notice): New function.
  15360. * src/TorrentMan.h: Updated doc.
  15361. * src/BitfieldMan.h: Updated doc.
  15362. * src/TrackerWatcherCommand.cc
  15363. (execute): Return true if error occurred in the request to the tracker
  15364. and halt is requested.
  15365. * src/TrackerUpdateCommand.cc
  15366. (execute): Return true if error occurred in the request to the tracker
  15367. and halt is requested.
  15368. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15369. DownloadEngine:
  15370. * src/TorrentConsoleDownloadEngine.h
  15371. (onSelectiveDownloadingCompletes): Removed.
  15372. * src/TorrentConsoleDownloadEngine.cc
  15373. (onSelectiveDownloadingCompletes): Removed.
  15374. * src/TorrentDownloadEngine.h
  15375. (onEndOfRun): Added 'virtual' keyword.
  15376. (afterEachIteration): Removed.
  15377. (onSelectiveDownloadingCompletes): Removed.
  15378. * src/TorrentDownloadEngine.cc
  15379. (onEndOfRun): Removed filenameFixed.
  15380. (afterEachIteration): Removed.
  15381. * src/TorrentMan.cc
  15382. (completePiece): Call onDownloadComplete here.
  15383. (onDownloadComplete): Added 2 log messages.
  15384. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15385. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15386. * src/NameResolver.h: Added the prototype declaration of callback().
  15387. To support c-ares library:
  15388. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15389. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15390. * src/FtpInitiateConnectionCommand.h:
  15391. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15392. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15393. * src/HttpInitiateConnectionCommand.h:
  15394. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15395. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15396. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15397. #1542285 by tizianomueller)
  15398. * src/HttpInitiateConnectionCommand.cc:
  15399. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15400. * src/FtpInitiateConnectionCommand.cc:
  15401. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15402. * src/DownloadEngine.h:
  15403. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15404. * src/DownloadEngine.cc:
  15405. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15406. To fix the bug that causes compilation failure with metalink-support
  15407. disabled(bug#1543587):
  15408. * src/main.cc: Fixed with the patch by tizianomueller.
  15409. * Release 0.7.2
  15410. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15411. * src/main.cc
  15412. (main): Added a message to inform users that aria2 is starting to
  15413. verify checksum.
  15414. * src/RequestInfo.cc
  15415. (printDownloadAbortMessage): Added a message to inform users that
  15416. transfer can be resumed.
  15417. * src/FeatureConfig.cc
  15418. (FEATURE_ASYNC_DNS): New definition.
  15419. (FeatureConfig): Added aysnc DNS entry.
  15420. To replace CommandUuid with Command* in SocketEntry and
  15421. NameResolverEntry:
  15422. * src/DownloadEngine.h
  15423. (CommandUuids): Removed.
  15424. (SocketEntry::commandUuid): Removed.
  15425. (SocketEntry::command): New variable.
  15426. (SocketEntry::SocketEntry): Updated.
  15427. (SocketEntry::operator==): Updated.
  15428. (NameResolverEntry::commandUuid): Removed.
  15429. (NameResolverEntry::command): New variable.
  15430. (NameResolverEntry::NameResolverEntry): Updated.
  15431. (NameResolverEntry::operator==): Updated.
  15432. (waitData): Changed the argument type.
  15433. (addSocketForReadCheck): Changed the argument type.
  15434. (deleteSocketForReadCheck): Changed the argument type.
  15435. (addSocketForWriteCheck): Changed the argument type.
  15436. (deleteSocketForWriteCheck): Changed the argument type.
  15437. (addNameResolverCheck): Changed the argument type.
  15438. (deleteNameResolverCheck): Changed the argument type.
  15439. * src/DownloadEngine.cc
  15440. (FindCommand): Removed.
  15441. (run): Removed activeUuid. Added activeCommands instead.
  15442. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15443. (AccumulateActiveCommand): New function object.
  15444. (waitData): Use AccumulateActiveCommand.
  15445. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15446. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15447. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15448. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15449. (addNameResolverCheck): Use Command instead of CommandUuid.
  15450. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15451. * src/AbstractCommand.cc
  15452. (disableReadCheckSocket): Updated according to the changes in
  15453. DownloadEngine.
  15454. (setReadCheckSocket): Updated according to the changes in
  15455. DownloadEngine.
  15456. (disableWriteCheckSocket): Updated according to the changes in
  15457. DownloadEngine.
  15458. (setWriteCheckSocket): Updated according to the changes in
  15459. DownloadEngine.
  15460. (setNameResolverCheck): Updated according to the changes in
  15461. DownloadEngine.
  15462. (disableNameResolverCheck): Updated according to the changes in
  15463. DownloadEngine.
  15464. * src/AbstractCommand.cc
  15465. (disableReadCheckSocket): Updated according to the changes in
  15466. DownloadEngine.
  15467. (setReadCheckSocket): Updated according to the changes in
  15468. DownloadEngine.
  15469. (disableWriteCheckSocket): Updated according to the changes in
  15470. DownloadEngine.
  15471. (setWriteCheckSocket): Updated according to the changes in
  15472. DownloadEngine.
  15473. * release 0.7.1
  15474. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15475. To handle the case where some BitTorrent tracker requires all letters
  15476. except for [A-Za-z0-9] is URL encoded.
  15477. * src/Util.h
  15478. (torrentUrlencode): New function.
  15479. * src/Util.cc
  15480. (ctype.h): Included.
  15481. (torrentUrlencode): New function.
  15482. * src/TrackerWatcherCommand.cc
  15483. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15484. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15485. To add asynchronous DNS support(libares):
  15486. * src/AbstractCommand.h
  15487. (setNameResolverCheck): New function.
  15488. (disableNameResolverCheck): New function
  15489. (resolveHostname): New function.
  15490. * src/AbstractCommand.cc
  15491. (setNameResolverCheck): New function.
  15492. (disableNameResolverCheck): New function
  15493. (resolveHostname): New function.
  15494. * src/FtpInitiateConnectionCommand.h
  15495. (nameResolver): New function.
  15496. * src/FtpInitiateConnectionCommand.cc
  15497. (Util.h): Included.
  15498. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15499. disableWriteCheckSocket.
  15500. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15501. (executeInternal): Added async DNS support.
  15502. * src/HttpInitiateConnectionCommand.h
  15503. (nameResolver): New function.
  15504. * src/HttpInitiateConnectionCommand.cc
  15505. (DlRetryEx.h): Included.
  15506. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15507. disableWriteCheckSocket.
  15508. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15509. (executeInternal): Added async DNS support.
  15510. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15511. by extern "C" declaration.
  15512. * src/NameResolver.cc: New class.
  15513. * src/Util.h:
  15514. (isNumberAndDotsNotation): New function
  15515. * src/Util.cc
  15516. (isNumberAndDotsNotation): New function.
  15517. * src/DownloadEngine.h
  15518. (NameResolver.h): Included.
  15519. (NameResolverEntry): New class.
  15520. (NameResolverEntries): New type definition.
  15521. (addNameResolverCheck): New function.
  15522. (deleteNameResolverCheck): New function.
  15523. * src/DownloadEngine.cc
  15524. (run): Initialize cp with 0.
  15525. (SetDescriptor::operator()): Added for NameResolverEntry.
  15526. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15527. (waitData): Check nameResolver entries.
  15528. (updateFdSet): Update fds in nameResolver entries.
  15529. (addNameResolverCheck): New function.
  15530. (deleteNameResolverCheck): new function.
  15531. * src/PeerInteractionCommand.cc
  15532. (executeInternal): Fixed wrong socket handling.
  15533. * src/main.cc
  15534. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15535. * src/Util.cc
  15536. (fileChecksum): Removed the call to ctx.digestReset().
  15537. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15538. * po/ru.po: Azamat sent me Russian translation.
  15539. * src/FtpNegotiateCommand.cc
  15540. (recvGreeting): Call disableWriteCheckSocket just after
  15541. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15542. (recvRetr): Recognized status code 125 as a acceptable response code.
  15543. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15544. case-insesitive filesystem(BUG#1531057).
  15545. * src/Time.h: Renamed as TimeA2.h.
  15546. * src/Time.cc: Renamed as TimeA2.cc.
  15547. * src/TimeA2.h: New class.
  15548. * src/TimeA2.cc: New class.
  15549. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15550. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15551. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15552. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15553. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15554. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15555. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15556. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15557. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15558. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15559. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15560. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15561. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15562. * release 0.7.0
  15563. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15564. * src/PeerChokeCommand.h
  15565. (PeerChokeCommand): Rearranged the arguments.
  15566. * src/PeerChokeCommand.cc
  15567. (PeerChokeCommand): Rearranged the arguments.
  15568. * src/MetalinkEntry.h
  15569. (Checksum.h): Included.
  15570. (md5): Removed.
  15571. (sha1): Removed.
  15572. (checksum): New variable.
  15573. (operator=): Updated.
  15574. (check): Removed.
  15575. * src/prefs.h
  15576. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15577. (PREF_FOLLOW_TORRENT): New definition.
  15578. (PREF_SELECT_FILE): New definition.
  15579. (PREF_FOLLOW_METALINK): New definition.
  15580. * src/MetalinkResource.h
  15581. (TYPE_HTTPS): Added to enum TYPE.
  15582. * src/TorrentMan.cc
  15583. (~TorrentMan): Rewritten.
  15584. * src/MultiDiskWriter.cc
  15585. (MultiDiskAdaptor): Updated according to the changes in
  15586. MessageDigestContext.
  15587. (~MultiDiskAdaptor): Updated according to the changes in
  15588. MessageDigestContext.
  15589. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15590. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15591. * src/Util.h
  15592. (fileChecksum): Updated according to the changes in
  15593. MessageDigestContext.
  15594. * src/Util.cc
  15595. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15596. (fileChecksum): Updated according to the changes in
  15597. MessageDigestContext.
  15598. * src/messageDigest.h: Rewritten.
  15599. * src/MetalinkEntry.cc
  15600. (check): Removed.
  15601. (Supported): Updated.
  15602. (dropUnsupportedResource): Fixed a memory leak.
  15603. * src/ShaVisitor.cc
  15604. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15605. (~ShaVisitor): Updated according to the changes in
  15606. MessageDigestContext.
  15607. (visit): Updated according to the changes in MessageDigestContext.
  15608. * src/main.cc
  15609. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15610. command-line option added.
  15611. * src/DownloadEngine.h
  15612. (SocketEntry): New class.
  15613. (SocketEntries): New definition.
  15614. (PairFind): Removed.
  15615. (SockCmdMap): Removed.
  15616. * src/DownloadEngine.cc
  15617. (DownloadEngine): Rewritten.
  15618. (~DownloadEngine): Rewritten.
  15619. (run): Renamed activeCommandUuids as activeUuids.
  15620. (SetDescriptor): Rewritten.
  15621. (AccumulateActiveCommandUuid): Removed.
  15622. (AccumulateActiveUuid): New function object.
  15623. (waitData): Rewritten.
  15624. (updateFdSet): Rewritten.
  15625. (addSocket): Rewritten.
  15626. (deleteSocket): Rewritten.
  15627. (addSocketForReadCheck): Rewritten.
  15628. (deleteSocketForReadCheck): Rewritten.
  15629. (addSocketForWriteCheck): Rewritten.
  15630. (deleteSocketForWriteCheck): Rewritten.
  15631. * src/Xml2MetalinkProcessor.cc
  15632. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15633. * src/DownloadCommand.cc
  15634. (executeInternal): Added the check routine for lowest speed limit.
  15635. * src/AbstractDiskWriter.cc
  15636. (AbstractDiskWriter): Updated according to the changes in
  15637. MessageDigestContext.
  15638. (~AbstractDiskWriter): Updated according to the changes in
  15639. MessageDigestContext.
  15640. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15641. * src/RequestInfo.h: New class.
  15642. * src/UrlRequestInfo.h: New class.
  15643. * src/UrlRequestInfo.cc: New class.
  15644. * src/TorrentRequestInfo.h: New class.
  15645. * src/TorrentRequestInfo.cc: New class.
  15646. * src/MetalinkRequestInfo.h: New class.
  15647. * src/MetalinkRequestInfo.cc: New class.
  15648. * src/Checksum.h: New class.
  15649. * src/DownloadEngineFactory.h: New class.
  15650. * src/DownloadEngineFactory.cc: New class.
  15651. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15652. * src/Option.h
  15653. (getAsBool): New function.
  15654. * src/Option.cc
  15655. (prefs.h): Included.
  15656. (defined): 0-length value is now recognized as undefined.
  15657. (getAsInt): Rewritten.
  15658. (getAsLLInt): Rewritten.
  15659. (getAsBool): New function.
  15660. * src/FeatureConfig.h: Rewritten.
  15661. * src/FeatureConfig.cc: Rewritten.
  15662. * src/prefs.h
  15663. (PREF_STDOUT_LOG): New definition.
  15664. (PREF_LOG): New definition.
  15665. (PREF_DIR): New definition.
  15666. (PREF_OUT): New definition.
  15667. (PREF_SPLIT): New definition.
  15668. (PREF_DAEMON): New definition.
  15669. (PREF_REFERER): New definition.
  15670. (PREF_TORRENT_FILE): New definition.
  15671. (PREF_LISTEN_PORT): New definition.
  15672. (PREF_METALINK_FILE): New definition.
  15673. (PREF_METALINK_VERSION): New definition.
  15674. (PREF_METALINK_LANGUAGE): New definition.
  15675. (PREF_METALINK_OS): New definition.
  15676. (PREF_METALINK_SERVERS): New definition.
  15677. * src/main.cc
  15678. (main): Following command-line parameters are now put into Option
  15679. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15680. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15681. metalinkLanguage, metalinkOs, metalinkServers
  15682. To fix the bug that aria2 can not handle http response header properly.
  15683. * src/HttpHeader.cc
  15684. (put): Made name lowercased.
  15685. (defined): Made name lowercased.
  15686. (getFirst): Made name lowercased.
  15687. (get): Made name lowercased.
  15688. (getFirstAsInt): Rewritten.
  15689. (getFirstAsLLInt): Rewritten.
  15690. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15691. * src/TorrentMan.h:
  15692. (advertisePiece): Updated doc.
  15693. (getAdvertisedPieceIndexes): Updated doc.
  15694. (removeAdvertisedPiece); New function.
  15695. * src/TorrentMan.cc
  15696. (FindElapsedHave): New function object.
  15697. (removeAdvertisedPiece): New function.
  15698. * src/HaveEraseCommand.h: New class.
  15699. * src/HaveEraseCommand.cc: New class.
  15700. * src/FeatureConfig.h: New class.
  15701. * src/FeatureConfig.cc: New class.
  15702. * src/Request.h
  15703. (defaultPorts): Removed.
  15704. * src/Request.cc
  15705. (FeatureConfig.h): Included.
  15706. (Request): Removed the statements related to defaultPorts.
  15707. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15708. A default port number is now retrieved from FeatureConfig.
  15709. * src/main.cc
  15710. (HaveEraseCommand.h): Included.
  15711. (showVersion): Added the output of feature list.
  15712. (main): Added HaveEraseCommand to command queue in BitTorrent
  15713. downloading.
  15714. * src/PeerInteractionCommand.h
  15715. (chokeCheckPoint): Commented out.
  15716. (periodicExecPoint): New variable.
  15717. * src/PeerInteractionCommand.cc
  15718. (executeInternal): Following methods are now called in at least every
  15719. 0.5 seconds to reduce CPU usage:
  15720. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15721. checkHave(), sendKeepAlive().
  15722. (checkLongTimePeerChoking): Commented out.
  15723. * src/BitfieldMan.h
  15724. (getNthBitIndex): Changed the method signature.
  15725. (getMissingIndexRandomly): Changed the method signature.
  15726. * src/BitfieldMan.cc
  15727. (getNthBitIndex): Rewritten
  15728. (getMissingIndexRandomly): Rewritten.
  15729. (hasMissingPiece): Rewritten.
  15730. (getMissingIndex): Refactored.
  15731. (getMissingUnusedIndex); Refactored.
  15732. (getMissingIndex): Refactored.
  15733. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15734. * src/PeerMessage.h
  15735. (Piece.h): Included.
  15736. (SharedHandle.h): Included.
  15737. (invalidate): New variable.
  15738. (uploading): New variable.
  15739. (isInvalidate): New function.
  15740. (isUploading): New function.
  15741. (onPush): New function.
  15742. (onChoked): New function.
  15743. (onCanceled): New function.
  15744. (onAbortPiece): New function.
  15745. (PeerMessageHandle): New type definition.
  15746. * src/PeerMessage.cc
  15747. (PeerMessage): Added the initialization for invalidate and uploading.
  15748. * src/CancelMessage.h
  15749. (CancelMessage): Rewritten.
  15750. * src/RejectMessage.h
  15751. (RejectMessage): Rewritten.
  15752. * src/Metalinker.h
  15753. (operator=): Defined.
  15754. * src/MetaEntry.h
  15755. (operator=): Defined.
  15756. * src/MetalinkResource.h
  15757. (operator=): Defined.
  15758. * src/AllowedFastMessage.h
  15759. (AllowedFastMessage): Rewritten.
  15760. * src/HandshakeMessage.h
  15761. (HandshakeMessage): New function(overload).
  15762. * src/HandshakeMessage.cc
  15763. (HandshakeMessage): Rewritten.
  15764. (init): New function.
  15765. * src/HaveMessage.h
  15766. (HaveMessage): Rewritten.
  15767. * src/Time.h
  15768. (operator=): Defined the function body here.
  15769. * src/Time.cc
  15770. (operator=): Removed.
  15771. * src/SocketCore.h
  15772. (operator==): Defined here.
  15773. (operator!=): Defined here.
  15774. (operator<): Defined here.
  15775. * src/SocketCore.cc
  15776. (operator==): Removed.
  15777. (operator<): Removed.
  15778. * src/BitfieldMan.h
  15779. (operator=): Defined the function body here.
  15780. * src/BitfieldMan.cc
  15781. (operator=): Removed.
  15782. * src/TorrentMan.h
  15783. (deleteErrorPeer): Removed.
  15784. (deleteUnusedPeer); New function.
  15785. * src/TorrentMan.cc
  15786. (addPeer): Call deleteUnusedPeer.
  15787. (deleteErrorPeer): Removed.
  15788. (deleteUnusedPeer): New function.
  15789. * src/PeerAbstractCommand.h
  15790. (setNoCheck): New function.
  15791. (noCheck): New variable.
  15792. * src/PeerAbstractCommand.cc
  15793. (PeerAbstractCommand): Added the initialization of noCheck.
  15794. (execute): Added a check for noCheck.
  15795. (setNoCheck): New function.
  15796. * src/Util.h
  15797. (stdio.h): Included.
  15798. * src/Util.cc
  15799. (unistd.h): Included.
  15800. * src/DefaultDiskWriter.cc
  15801. (unistd.h): Included.
  15802. * src/Peer.h
  15803. (operator==): Defined the function body here.
  15804. (operator!=): Defined the function body here.
  15805. * src/Peer.cc
  15806. (operator==): Removed.
  15807. (operator!=): Removed.
  15808. * src/Piece.h
  15809. (Piece): Defined the function body here(copy constructor).
  15810. (operator=): Defined the function body here.
  15811. (operator==): Defined the function body here.
  15812. * src/Piece.cc
  15813. (Piece): Removed(copy constructor).
  15814. (operator=): Removed.
  15815. (operator==): Removed.
  15816. * src/PeerMessageUtil.h
  15817. (ChokeMessage.h): Removed.
  15818. (UnchokeMessage.h): Removed.
  15819. (InterestedMessage.h): Removed.
  15820. (NotInterestedMessage.h): Removed.
  15821. (HaveMessage.h): Removed.
  15822. (BitfieldMessage.h): Removed.
  15823. (RequestMessage.h): Removed.
  15824. (CancelMessage.h): Removed.
  15825. (PieceMessage.h): Removed.
  15826. (HandshakeMessage.h): Removed.
  15827. (KeepAliveMessage.h): Removed.
  15828. (PortMessage.h): Removed.
  15829. (HaveAllMessage.h): Removed.
  15830. (HaveNoneMessage.h): Removed.
  15831. (PeerConnection.h): Removed.
  15832. (HandshakeMessage.h): Included.
  15833. * src/BitfieldMessage.h
  15834. (init): New function.
  15835. (BitfieldMessage): Rewritten.
  15836. (BitfieldMessage): New function(overload).
  15837. * src/RequestSlot.h
  15838. (operator=): Defined the function body here.
  15839. (operator==): Defined the function body here.
  15840. * src/RequestSlot.cc
  15841. (operator=): Removed.
  15842. (operator==): Removed.
  15843. To remove the dependency on the PeerMessage subclass from
  15844. PeerInteraction:
  15845. * src/PeerMessageFactory.h: New class.
  15846. * src/PeerMessageFactory.cc: New class.
  15847. * src/SimplePeerMessage.cc
  15848. (send): If invalidate is true then do nothing.
  15849. * src/PeerInteractionCommand.cc
  15850. (HandshakeMessage.h): Included.
  15851. (KeepAliveMessage.h): Included.
  15852. (ChokeMessage.h): Included.
  15853. (UnchokeMessage.h): Included.
  15854. (HaveMessage.h): Included.
  15855. (executeInternal): Call setNoCheck().
  15856. Removed setWriteCheckSocket(socket).
  15857. * src/PeerInteraction.h
  15858. (ChokeMessage.h): Removed.
  15859. (UnchokeMessage.h): Removed.
  15860. (InterestedMessage.h): Removed.
  15861. (NotInterestedMessage.h): Removed.
  15862. (HaveMessage.h): Removed.
  15863. (BitfieldMessage.h): Removed.
  15864. (RequestMessage.h): Removed.
  15865. (CancelMessage.h): Removed.
  15866. (PieceMessage.h): Removed.
  15867. (HandshakeMessage.h): Removed.
  15868. (KeepAliveMessage.h): Removed.
  15869. (PortMessage.h): Removed.
  15870. (HaveAllMessage.h): Removed.
  15871. (HaveNoneMessage.h): Removed.
  15872. (RejectMessage.h): Removed.
  15873. (AllowedFastMessage.h): Removed.
  15874. (SuggestPieceMessage.h): Removed.
  15875. (PeerMessageFactory.h): Included.
  15876. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15877. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15878. (PeerMessageFactory): New variable.
  15879. (createPeerMessage): Removed.
  15880. (createHandshakeMessage): Removed.
  15881. (setPeerMessageCommonProperty): Removed.
  15882. (addRequestSlot): New function.
  15883. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15884. (getPeerMessageFactory): New function.
  15885. (createRequestMessage): Removed.
  15886. (createCancelMessage): Removed.
  15887. (createPieceMessage): Removed.
  15888. (createHaveMessage): Removed.
  15889. (createChokeMessage): Removed.
  15890. (createUnchokeMessage): Removed.
  15891. (createInterestedMessage): Removed.
  15892. (createNotInterestedMessage): Removed.
  15893. (createBitfieldMessage): Removed.
  15894. (createKeepAliveMessage): Removed.
  15895. (createHaveAllMessage): Removed.
  15896. (createHaveNoneMessage): Removed.
  15897. (createRejectMessage): Removed.
  15898. (createAllowedFastMessage): Removed.
  15899. * src/PeerInteraction.cc
  15900. (PeerInteraction): Allocate PeerMessageFactory here.
  15901. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15902. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15903. PieceMessage::ID.
  15904. (addMessage): Simplified by using PeerMessage::onPush().
  15905. (addRequestSlot): New function.
  15906. (rejectAllPieceMessageInQueue): Simplified by using
  15907. PeerMessage::onChoked().
  15908. (rejectPieceMessageInQueue): Simplified by using
  15909. PeerMessage::onCanceled().
  15910. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15911. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15912. (createHandshakeMessage): Removed.
  15913. (createPeerMessage): Removed.
  15914. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15915. (setPeerMessageCommonProperty): Removed.
  15916. (createRequestMessage): Removed.
  15917. (createCancelMessage): Removed.
  15918. (createPieceMessage): Removed.
  15919. (createHaveMessage): Removed.
  15920. (createChokeMessage): Removed.
  15921. (createUnchokeMessage): Removed.
  15922. (createInterestedMessage): Removed.
  15923. (createNotInterestedMessage): Removed.
  15924. (createBitfieldMessage): Removed.
  15925. (createKeepAliveMessage): Removed.
  15926. (createHaveAllMessage): Removed.
  15927. (createHaveNoneMessage): Removed.
  15928. (createRejectMessage): Removed.
  15929. (createAllowedFastMessage): Removed.
  15930. * src/PieceMessage.h
  15931. (createRejectMessage): New function.
  15932. (PieceMessage): Rewritten.
  15933. (onChoked): New function.
  15934. (onCanceled): New function.
  15935. * src/PieceMessage.cc
  15936. (send): If invalidate is true then do nothing, just return.
  15937. (createRejectMessage): New function.
  15938. (onChoked): New function.
  15939. (onCanceled): New function.
  15940. * src/RequestMessage.h
  15941. (RequestMessage): Rewritten.
  15942. (onPush): New function.
  15943. (onAbortPiece): New function.
  15944. * src/RequestMessage.cc
  15945. (onPush): New function.
  15946. (onAbortPiece): New function.
  15947. Update fd_set when a socket is added or deleted in order to improve
  15948. performance:
  15949. * src/DownloadEngine.h
  15950. (rfdset): New variable.
  15951. (wfdset): New variable.
  15952. (updateFdSet): New function.
  15953. * src/DownloadEngine.cc
  15954. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15955. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15956. (waitData): Copy rfdset and wfdset.
  15957. (updateFdSet): New function.
  15958. (addSocket): Call updateFdSet.
  15959. (deleteSocket): Call updateFdSet.
  15960. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15961. To add the support for Metalink3.0 backward compatible links:
  15962. * src/Request.h
  15963. (SAFE_CHARS): Added '#'.
  15964. (METALINK_MARK): New definition.
  15965. * src/Request.cc
  15966. (parseUrl): Added the support for Metalink3.0 backward compatible
  15967. links.
  15968. etc
  15969. * src/PeerInteraction.cc
  15970. (MsgPushBack): Removed.
  15971. (sendMessages): Use STL copy and back_inserter.
  15972. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15973. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15974. * src/TorrentMan.h
  15975. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15976. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15977. * src/SharedHandle.h: New class.
  15978. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15979. * src/HttpResponseCommand.h
  15980. (HttpResponseCommand): Wrapped Socket.
  15981. * src/SocketCore.h
  15982. (operator==): New function.
  15983. (operator!=): New function.
  15984. (operator<): New function.
  15985. (getSockfd): New function.
  15986. (isOpen): New function.
  15987. (writeData): New function.
  15988. * src/SocketCore.cc
  15989. (operator==): New function.
  15990. (operator!=): New function.
  15991. (operator<): New function.
  15992. * src/AbstractCommand.h
  15993. (socket): Changed its type to SocketHandle.
  15994. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15995. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15996. (disableReadCheckSocket): New function.
  15997. (disableWriteCheckSocket): New function.
  15998. (readCheckTarget): Changed its type to SocketHandle.
  15999. (writeCheckTarget): Changed its type to SocketHandle.
  16000. (AbstractCommand): Replaced Socket with SocketHandle.
  16001. * src/AbstractCommand.cc
  16002. (AbstractCommand): Replaced Socket with SocketHandle.
  16003. (~AbstractCommand): Removed the deallocation for Socket object.
  16004. (disableReadCheckSocket): New function.
  16005. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16006. (disableWriteCheckSocket): New function.
  16007. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16008. * src/HttpDownloadCommand.cc
  16009. (DownloadCommand): Replaced Socket with SocketHandle.
  16010. * src/PeerAbstractCommand.h
  16011. (socket): Changed its type to SocketHandle.
  16012. (peer): Changed its type to PeerHandle.
  16013. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16014. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16015. (disableReadCheckSocket): New function.
  16016. (disableWriteCheckSocket): New function.
  16017. (readCheckTarget): Changed its type to SocketHandle.
  16018. (writeCheckTarget): Changed its type to SocketHandle.
  16019. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16020. Replaced Peer with PeerHandle.
  16021. * src/HttpRequestCommand.cc
  16022. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16023. Use disableReadCheckSocket.
  16024. * src/PeerInitiateConnectionCommand.h
  16025. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16026. * src/PeerChokeCommand.cc
  16027. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16028. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16029. (execute): Use PeerHandle.
  16030. * src/PeerConnection.h
  16031. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16032. (socket): Changed its type to SocketHandle.
  16033. (PeerConnection): Replaced Socket with SocketHandle.
  16034. * src/PeerConnection.cc
  16035. (PeerConnection): Replaced Socket with SocketHandle.
  16036. * src/PeerInteractionCommand.h
  16037. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16038. Replaced Peer with PeerHandle.
  16039. * src/PeerInteractionCommand.cc
  16040. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16041. Replaced Peer with PeerHandle.
  16042. (executeInternal): Use disableWriteCheckSocket.
  16043. Use HandshakeMessageHandle.
  16044. (receiveMessages): Use PeerMessageHandle.
  16045. (prepareForNextPeer): Use PeerHandle.
  16046. * src/HttpProxyRequestCommand.h
  16047. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16048. * src/HttpResponseCommand.cc
  16049. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16050. * src/TorrentMan.cc
  16051. (nullPeer): Added external reference.
  16052. (~TorrentMan): Removed the deallocation of the elements of peers.
  16053. (addPeer): Rewritten.
  16054. (isPeerAvailable): Use nullPeer.
  16055. (deleteOldpeers): Replaced with deleteErrorPeer.
  16056. (deleteErrorPeer): New function.
  16057. (getPeer): Use PeerHandle and nullPeer.
  16058. (hasMissingPiece): Replaced Peer with PeerHandle.
  16059. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16060. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16061. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16062. (getMissingPiece): Replaced Peer with PeerHandle.
  16063. * src/FtpNegotiateCommand.cc
  16064. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16065. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16066. (recvGreeting): Use disableWriteCheckSocket.
  16067. (recvPasv): Removed the allocation of Socket.
  16068. Use disableReadCheckSocket.
  16069. (sendRestPasv): Use disableWriteCheckSocket.
  16070. (recvRetr): Changed assertion.
  16071. * src/PeerInteraction.h
  16072. (SharedHandle.h): Included SharedHandle.h.
  16073. (PeerMessageHandle): New type definition.
  16074. (HandshakeMessageHandle): New type definition.
  16075. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16076. (peer): Changed its type to PeerHandle.
  16077. (createHandshakeMessage): Replaced HandshakeMessage with
  16078. HandshakeMessageHandle.
  16079. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16080. (PeerInteraction): Replaced Peer with PeerHandle.
  16081. Replaced Socket with SocketHandle.
  16082. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16083. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16084. (receiveHandshake): Replaced HandshakeMessage with
  16085. HandshakeMessageHandle.
  16086. * src/PeerInteraction.cc
  16087. (PeerInteraction): Replaced Peer with PeerHandle.
  16088. Replaced Socket with SocketHandle.
  16089. (~PeerInteraction): Removed the deallocation of the elements of
  16090. messageQueue.
  16091. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16092. (isSendingMessageInProgress): Replaced PeerMessage with
  16093. PeerMessageHandle.
  16094. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16095. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16096. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16097. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16098. (abortPiece): Use PeerMessageHandle.
  16099. (receiveHandshake): Replaced HandshakeMessage with
  16100. HandshakeMessageHandle. Removed try-catch block.
  16101. (createHandshakeMessage): Replaced HandshakeMessage with
  16102. HandshakeMessageHandle.
  16103. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16104. Removed try-catch block.
  16105. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16106. * src/HttpProxyResponseCommand.cc
  16107. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16108. * src/FtpTunnelResponseCommand.h
  16109. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16110. * src/HttpConnection.cc
  16111. (HttpConnection): Replaced Socket with SocketHandle.
  16112. * src/PeerAbstractCommand.cc
  16113. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16114. (~PeerAbstractCommand): Removed the deallocation of socket.
  16115. Use disableReadCheckSocket, disableWriteCheckSocket.
  16116. (disableReadCheckSocket): New function.
  16117. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16118. (disableWriteCheckSocket): New function.
  16119. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16120. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16121. * src/FtpTunnelRequestCommand.cc
  16122. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16123. (~FtpTunnelRequestCommand): Corrected indentation.
  16124. * src/DownloadCommand.h
  16125. (DownloadCommand): Replaced Socket with SocketHandle.
  16126. * src/PeerListenCommand.cc
  16127. (PeerListenCommand): Removed the initialization of socket.
  16128. (~PeerListenCommand): Removed the deallocation of socket.
  16129. (bindPort): Use SocketHandle.
  16130. (execute): Use SocketHandle and PeerHandle.
  16131. * src/FtpDowndloadCommand.cc
  16132. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16133. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16134. * src/main.cc
  16135. (main): Corrected indentation.
  16136. * src/HttpInitiateConnectionCommand.cc
  16137. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16138. (executeInternal): Removed the allocation of socket.
  16139. * src/HttpRequestCommand.h
  16140. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16141. * src/FtpNegotiationCommand.h
  16142. (dataSocket): Changed its type to SocketHandle.
  16143. (serverSocket): Changed its type to SocketHandle.
  16144. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16145. * src/TorrentMan.h
  16146. (MAX_PEER_UPDATE): Removed.
  16147. (MAX_PEERS): New definition.
  16148. (Peers): The element is now of type PeerHandle.
  16149. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16150. (getPeer): Replaced Peer with PeerHandle.
  16151. (deleteOldErrorPeers): Removed.
  16152. (deleteErrorPeer): New function.
  16153. (hasMissingPiece): Replaced Peer with PeerHandle.
  16154. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16155. (getMissingPiece): Replaced Peer with PeerHandle.
  16156. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16157. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16158. (addActivePeer): Replaced Peer with PeerHandle.
  16159. (deleteActivePeer): Replaced Peer with PeerHandle.
  16160. Added a check for the return value of find.
  16161. * src/FtpTunnelResponseCommand.cc
  16162. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16163. * src/FtpInitiateConnectionCommand.cc
  16164. (executeInternal): Removed the allocation of socket.
  16165. * src/DownloadEngine.h
  16166. (Sockets): An element is now of type SocketHandle.
  16167. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16168. (CommandUuids): New type definition.
  16169. (rsockets): Changed its type to SockCmdMap.
  16170. (wsockets): Changed its type to SockCmdMap.
  16171. (addSocket): Rewritten.
  16172. (deleteSocket): Rewritten.
  16173. (addSocketForReadCheck): Rewritten.
  16174. (deleteSocketForReadCheck): Rewritten.
  16175. (addSocketForWriteCheck): Rewritten.
  16176. (deleteSocketForWriteCheck): Rewritten.
  16177. (PairFind): New template class.
  16178. * src/HttpDownloadCommand.h
  16179. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16180. * src/FtpConnection.cc
  16181. (FtpConnection): Replaced Socket with SocketHandle.
  16182. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16183. block.
  16184. * src/InitiateConnectionCommandFactory.cc
  16185. (DlAbortEx.h): Included DlAbortEx.h.
  16186. (createInitiateConnectionCommand): Throw exception if the protocol of
  16187. requested URI is not supported.
  16188. * src/Peer.cc
  16189. (nullPeer): Changed its type to PeerHandle.
  16190. (operator==): New function.
  16191. (operator!=): New function.
  16192. * src/Peer.h
  16193. (SharedHandle.h): Included SharedHandle.h.
  16194. (operator==): New function.
  16195. (operator!=): New function.
  16196. (Peer): Added the default constructor.
  16197. Use resetStatus() to initialize member variables.
  16198. (nullPeer): Removed.
  16199. * src/TrackerUpdateCommand.cc
  16200. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16201. with MIN_PEERS.
  16202. * src/PeerListenCommand.h
  16203. (socket): Changed its type to SocketHandle.
  16204. * src/Command.h
  16205. (CommandUuid): New type definition.
  16206. (uuid): New variable.
  16207. (uuidGen): New variable.
  16208. (Command): Added the initialization of uuid.
  16209. (getUuid): New function.
  16210. * src/Socket.h
  16211. (Socket): Removed.
  16212. (SocketHandle): New type definition.
  16213. * src/DownloadEngine.h
  16214. (FindCommand): New function object.
  16215. (run): The portion of socket check was rewritten.
  16216. (SetDescriptor): New function object.
  16217. (AccumulateActiveCommandUuid): New function object.
  16218. (waitData): Rewritten.
  16219. (addSocket): Rewritten.
  16220. (deleteSocket): Rewritten.
  16221. (addSocketForReadCheck): Rewritten.
  16222. (addSocketForWriteCheck): Rewritten.
  16223. (deleteSocketForReadCheck): Rewritten.
  16224. (deleteSocketForWriteCheck): Rewritten.
  16225. * src/HttpProxyResponseCommand.h
  16226. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16227. * src/HttpConnection.h
  16228. (socket): Changed its type to SocketHandle.
  16229. (HttpConnection): Replaced Socket with SocketHandle.
  16230. * src/PeerInitiateConnectionCommand.cc
  16231. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16232. (executeInternal): Removed the allocation of socket.
  16233. (prepareForNextPeer): Use PeerHandle.
  16234. * src/PeerMessage.h
  16235. (peer): Changed its type to PeerHandle.
  16236. (getPeer): Replaced Peer with PeerHandle.
  16237. (setPeer): Replaced Peer with PeerHandle.
  16238. * src/DownloadCommand.cc
  16239. (DownloadCommand): Replaced Socket with SocketHandle.
  16240. * src/FtpConnection.h
  16241. (socket): Changed its type to SocketHandle.
  16242. (FtpConnection): Replaced Socket with SocketHandle.
  16243. (sendPort); Replaced Socket with SocketHandle.
  16244. * src/FtpDowndloadCommand.h
  16245. (ctrlSocket): Changed its type to SocketHandle.
  16246. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16247. * src/HttpProxyRequestCommand.cc
  16248. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16249. * src/FtpTunnelRequestCommand.h
  16250. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16251. etc
  16252. * src/PeerChokeCommand.h
  16253. (setAllPeerChoked): Removed.
  16254. (setAllPeerResetDelta): Removed.
  16255. * src/PeerChokeCommand.cc
  16256. (setAllPeerChoked): Removed.
  16257. (ChokePeer): New function object.
  16258. (setAllPeerResetDelta): Removed.
  16259. (ResetDelta): New function object.
  16260. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16261. (execute): Show download speed when the local node is a seeder.
  16262. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16263. using STL.
  16264. * src/TrackerWatcherCommand.h
  16265. (MIN_PEERS): Removed.
  16266. * src/TorrentMan.cc
  16267. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16268. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16269. To fix the bug that .aria2 file is not saved if downloading is stopped
  16270. by the errors:it results that aria2 can not resume downloading:
  16271. * src/main.cc
  16272. (normalDownload): Added the call to save().
  16273. (main): Added the deletion of the elements in 'reserved'.
  16274. To fix log:
  16275. * src/PeerInteraction.cc
  16276. (receiveHandshake): Fixed log.
  16277. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16278. To improve download performance in BitTorrent:
  16279. * src/TorrentMan.cc
  16280. (getPeer): Check the number of connections. Return nullPeer if
  16281. it is greater than MAX_PEER_UPDATE.
  16282. This code was originally here, but was removed in 0.5.1.
  16283. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16284. To improve the conditional compilation:
  16285. * src/MultiDiskWriter.h:
  16286. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16287. * src/MultiDiskWriter.cc:
  16288. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16289. * src/Util.h:
  16290. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16291. Added ENABLE_BITTORRENT around computeFastSet().
  16292. * src/Util.cc:
  16293. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16294. Added ENABLE_BITTORRENT around computeFastSet().
  16295. * src/messageDigest.h:
  16296. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16297. * src/ShaVisitor.h:
  16298. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16299. * src/ShaVisitor.cc:
  16300. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16301. * src/main.cc:
  16302. Added ENABLE_BITTORRENT around includes and blocks related to
  16303. BitTorrent.
  16304. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16305. digest support is not available.
  16306. * src/AbstractDiskWriter.h:
  16307. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16308. * src/AbstractDiskWriter.cc:
  16309. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16310. * src/MetalinkEntry.cc
  16311. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16312. support is not available.
  16313. To add command-line options for Metalink:
  16314. * src/main.cc:
  16315. Added metalink-version, metalink-language, metalink-os,
  16316. follow-metalink.
  16317. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16318. * src/main.cc: Use these definition.
  16319. * Release 0.6.0
  16320. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16321. To add Metalink support(http/ftp only):
  16322. * src/AbstractCommand.h
  16323. (tryReserved): New function.
  16324. * src/AbstractCommand.cc
  16325. (execute): Call tryReserved().
  16326. (tryReserved): New function.
  16327. * src/Request.h
  16328. (Requests): New type definition.
  16329. * src/SegmentMan.h
  16330. (reserved): New variable.
  16331. * src/Util.h
  16332. (fileChecksum): New function.
  16333. (toUpper): New function.
  16334. (toLower): New function.
  16335. * src/Util.cc
  16336. (messageDigest.h): Included.
  16337. (trim): Trim \r\n\t.
  16338. (fileChecksum): New function.
  16339. (toUpper): New function.
  16340. (toLower): New function.
  16341. * src/main.cc
  16342. (normalDownload): New function.
  16343. (main): Added 2 command-line options: metalink-file,
  16344. metalink-connection. Their usage has not been written yet.
  16345. * src/MetalinkProcessor.h: New class.
  16346. * src/Xml2MetalinkProcessor.h: New class.
  16347. * src/Xml2MetalinkProcessor.cc: New class.
  16348. * src/MetalinkEntry.h: New class.
  16349. * src/MetalinkEntry.cc: New class.
  16350. * src/MetalinkResource.h: New class.
  16351. * src/MetalinkResource.cc: New class.
  16352. To add md5 message digest checking:
  16353. * src/messageDigest.h: Rewritten.
  16354. * src/MultiDiskWriter.cc: Updated according to the changes in
  16355. messageDigest.h.
  16356. * src/ShaVisitor.cc: Updated according to the changes in
  16357. messageDigest.h.
  16358. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16359. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16360. messageDigest.h.
  16361. To fix a bug that causes segfault when the payload length in peer
  16362. message is less than 0:
  16363. * src/PeerConnection.cc:
  16364. (receiveMessage): Fixed the bug.
  16365. * src/PeerMessageUtil.cc
  16366. (checkLength): Throw an exception if length is less than or equals to
  16367. 0.
  16368. To add new interfaces to Base64 encoding/decoding:
  16369. * src/Base64.h
  16370. (part_encode): Changed the method signature.
  16371. (encode): New function(overload).
  16372. (decode): New function(overload).
  16373. * src/Base64.cc
  16374. (part_encode): Rewritten.
  16375. (encode): Rewritten.
  16376. (encode): New function(overload).
  16377. To prevent a peer to download same piece if there is an error in
  16378. checksum:
  16379. * src/PieceMessage.cc
  16380. (receivedAction): Call peerInteraction->abortPiece().
  16381. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16382. To fix the bug that causes same have message is sent many times to
  16383. a single peer.
  16384. * src/Time.cc
  16385. (isNewer): Use Util::difftv().
  16386. * src/Util.cc
  16387. (difftv): Added a cast to (long long int).
  16388. * src/TorrentMan.cc
  16389. (advertisePiece): Use push_front.
  16390. (getAdvertisedPieceIndexes): A performance improvement was made.
  16391. To fix the bug that sends tracker requests without a sleep interval
  16392. when the number of connections is less than 15.
  16393. * src/TrackerWatcherCommand.cc
  16394. (execute): Now the number of connections is not a factor to decide
  16395. whether or not a tracker request should be sent or not.
  16396. * src/Time.h
  16397. (setTimeInSec): New function.
  16398. * src/Time.cc
  16399. (setTimeInSec): New function.
  16400. etc.
  16401. * src/ChokeMessage.cc
  16402. (receivedAction): Removed peer->snubbing = false
  16403. * src/PeerConnection.h
  16404. (receiveHandshake): Updated doc.
  16405. * src/TorrentMan.h
  16406. (getAdvertisedPieceIndexes): Updated the method signature.
  16407. * src/TorrentMan.cc
  16408. (getAdvertisedPieceIndexes): Updated the method signature.
  16409. * src/Time.h
  16410. (getTimeInMicros): Added a cast to (long long int).
  16411. (getTimeInMillis): Added a cast to (long long int).
  16412. * Release 0.5.2
  16413. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16414. To make a listening socket non-block:
  16415. * src/SocketCore.h
  16416. (setNonBlockingMode): New function.
  16417. * src/SocketCore.cc
  16418. (setNonBlockingMode): New function.
  16419. (beginListen): Added a call to setNonBlockingMode().
  16420. (acceptConnection): Call setNonBlockingMode().
  16421. (setBlockingMode): Updated.
  16422. To handle tracker's NAT-checking:
  16423. * src/PeerConnection.cc
  16424. (receiveHandshake): 'msg' param is filled with received data and
  16425. its length is assigned to 'length' param, even if all handshake
  16426. message is not yet received.
  16427. * src/PeerInteractionCommand.cc
  16428. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16429. a new peer connects to localhost.
  16430. A call to peerInteraction->sendHandshake() was removed because
  16431. it is called from peerInteraction->receiveHandshake(true).
  16432. * src/PeerInteraction.h
  16433. (quickReplied): New variable.
  16434. (receiveHandshake): Added an argument.
  16435. * src/PeerInteraction.cc
  16436. (PeerInteraction): Added the initialization of quickReplied.
  16437. (receiveHandshake): Send handshake message as soon as the info hash
  16438. in a handshake message from a peer is correct.
  16439. To change the random part of peer id and key parameter:
  16440. * src/TorrentMan.h
  16441. (key): New variable.
  16442. * src/TorrentMan.cc
  16443. (setupInternal1): Use Util::randomAlpha() to generate random part
  16444. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16445. key is also generated by Util::randomAlpha() and it is now 8 character
  16446. long.
  16447. * src/Util.h
  16448. (randomAlpha): New function.
  16449. * src/Util.cc
  16450. (randomAlpha): New function.
  16451. * src/TrackerWatcherCommand.cc
  16452. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16453. Added no_peer_id=1.
  16454. Set snubbing flag to false when a choke message is received from a
  16455. snubbed peer.
  16456. * src/ChokeMessage.cc
  16457. (receivedAction): Set snubbing flag to false.
  16458. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16459. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16460. * src/SimpleLogger.h (writeHeader): New function.
  16461. * src/SimpleLogger.cc (writeHeader): New function.
  16462. (writeLog): Fixed the bug that causes segfaults if exception message
  16463. contains an unescaped "%" character.
  16464. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16465. when a tracker request fails.
  16466. * src/Request.cc (parseUrl): Query string is now handled properly.
  16467. * Release 0.5.1
  16468. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16469. To add Time class which represents a specific instant in time and
  16470. its precision is microseconds. Time checking procedures were rewritten
  16471. using this object.
  16472. * src/Time.h: New class.
  16473. * src/Time.cc: New class.
  16474. * src/AbstractCommand.h
  16475. (updateCheckPoint): Removed.
  16476. (isTimeoutDetected): Removed.
  16477. (checkPoint): Changed the type to Time.
  16478. (timeout): New variable.
  16479. (setTimeout): New function.
  16480. * src/AbstractCommand.cc
  16481. (AbstractCommand): Removed the initialization of checkPoint.
  16482. Added the initialization of timeout.
  16483. (updateCheckPoint): Removed.
  16484. (isTimeoutDetected): Removed.
  16485. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16486. * src/PeerChokeCommand.h
  16487. (checkPoint): Changed the type to Time.
  16488. * src/PeerChokeCommand.cc
  16489. (PeerChokeCommand): Removed the initialization of checkPoint.
  16490. (execute): Rewritten using Time object.
  16491. * src/TrackerWatcherCommand.h
  16492. (checkPoint): Changed the type to Time.
  16493. * src/TrackerWatcherCommand.cc
  16494. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16495. (execute): Rewritten.
  16496. * src/ConsoleDownloadEngine.h
  16497. (cp): Changed the type to Time.
  16498. (startup): Changed the type to Time.
  16499. * src/ConsoleDownloadEngine.cc
  16500. (initStatistics): Use cp.reset(), startup.reset().
  16501. (calculateStatistics): Rewritten using Time object.
  16502. * src/PeerAbstractCommand.h
  16503. (updateCheckPoint): Removed.
  16504. (isTimeoutDetected): Removed.
  16505. (checkPoint): Changed the type to Time.
  16506. * src/PeerAbstractCommand.cc
  16507. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16508. (updateCheckPoint): Removed.
  16509. (isTimeoutDetected): Removed.
  16510. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16511. * src/PeerInteractionCommand.cc
  16512. (PeerInteractionCommand): Removed the initializations of struct
  16513. timeval variables.
  16514. * src/PeerInteractionCommand.h
  16515. (keepAliveCheckPoint): Changed the type to Time.
  16516. (chokeCheckPoint): Changed the type to Time.
  16517. (freqCheckPoint): Changed the type to Time.
  16518. (haveCheckTime): Changed the type to Time.
  16519. * src/PeerInteractionCommand.cc
  16520. (executeInternal): Rewritten using Time object.
  16521. (detectMessageFlooding): Rewritten using Time object.
  16522. (checkLongTimePeerChoking): Rewritten using Time object.
  16523. (sendKeepAlive): Rewritten using Time object.
  16524. (checkHave): Rewritten using Time object.
  16525. * src/SleepCommand.h
  16526. (checkPoint): Changed the type to Time.
  16527. * src/SleepCommand.cc
  16528. (SleepCommand): Removed the initialization of checkPoint.
  16529. (execute): Rewritten using Time object.
  16530. * src/TorrentAutoSaveCommand.h
  16531. (checkPoint): Changed the type to Time.
  16532. * src/TorrentAutoSaveCommand.cc
  16533. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16534. (execute): Rewritten.
  16535. * src/DownloadCommand.h
  16536. (sw): Changed the type to Time.
  16537. * src/DownloadCommand.cc
  16538. (DownloadCommand): Removed the initialization of sw.
  16539. (executeInternal): Rewritten.
  16540. * src/RequestSlot.h
  16541. (dispatchedTime): Changed the type to Time.
  16542. * src/RequestSlot.cc
  16543. (RequestSlot): Removed the call to setDispatchedTime().
  16544. (setDispatchedTime): Rewirtten.
  16545. (isTimeout): Rewritten.
  16546. (getLatencyInMillis): Rewritten.
  16547. * src/TorrentDownloadEngine.h
  16548. (cp): Changed the type to Time[2].
  16549. (startup): Changed the type to Time.
  16550. * src/TorrentDownloadEngine.cc
  16551. (initStatistics): Rewritten.
  16552. (calculateStatistics): Rewritten.
  16553. * src/DownloadEngine.cc
  16554. (run): Rewritten.
  16555. To detect all attempts to connect to the tracker are failed:
  16556. * src/AbstractCommand.cc
  16557. (execute): Increment e->segmentMan->errors if a command aborted.
  16558. * src/SegmentMan.h
  16559. (errors): New variable.
  16560. * src/SegmentMan.cc
  16561. (SegmentMan): Added the initialization of errors.
  16562. (init): Added the initialization of errors.
  16563. * src/TrackerWatcherCommand.cc
  16564. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16565. request was failed.
  16566. To handle snubbed peers:
  16567. * src/PeerChokeCommand.cc
  16568. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16569. (execute): Snubbed peers don't get unchoked.
  16570. * src/PeerInteraction.h
  16571. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16572. * src/PeerInteraction.cc
  16573. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16574. back the requested 16k block in 60 seconds.
  16575. * src/PieceMessage.cc
  16576. (receivedAction): A peer's snubbed state is cleard if it sends
  16577. the requested 16k block in 60 seconds.
  16578. * src/Peer.h
  16579. (snubbing): New variable.
  16580. * src/Peer.cc
  16581. (resetStatus): Added snubbed = false.
  16582. To fix the bug that causes have message is not sent:
  16583. * src/PeerInteractionCommand.cc
  16584. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16585. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16586. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16587. * src/TorrentMan.h
  16588. (HaveEntry): New class.
  16589. (advertisePiece): Rewritten.
  16590. (getAdvertisedPieceIndexes): Rewritten.
  16591. (Haves): Changed the type.
  16592. (getAdvertisedPieceIndexes): Added an argument.
  16593. Others:
  16594. * src/TorrentMan.h
  16595. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16596. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16597. * src/TorrentMan.cc
  16598. (getPeer): Don't check the number of connections here.
  16599. (setupInternal1): Changed peerId.
  16600. * src/PeerInteractionCommand.h
  16601. (KEEP_ALIVE_INTERVAL): New definition.
  16602. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16603. * src/main.cc
  16604. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16605. * src/DownloadEngine.h: Removed unnecessary header includes.
  16606. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16607. To fix the bug that causes segfaults if a tracker returns a zero-length
  16608. list as "peers":
  16609. * src/TrackerUpdateCommand.cc
  16610. (execute): Added a check to see wether the type of peers is Data*.
  16611. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16612. * Release 0.5.0
  16613. To fix compile issue with gcc3:
  16614. * src/CancelMessage.h
  16615. (ID): Renamed as ID_t
  16616. (ID_t): New enum.
  16617. * src/RejectMessage.h
  16618. (ID): Renamed as ID_t
  16619. (ID_t): New enum.
  16620. * src/SuggestPieceMessage.h
  16621. (ID): Renamed as ID_t
  16622. (ID_t): New enum.
  16623. * src/AllowedFastMessage.h
  16624. (ID): Renamed as ID_t
  16625. (ID_t): New enum.
  16626. * src/PortMessage.h
  16627. (ID): Renamed as ID_t
  16628. (ID_t): New enum.
  16629. * src/HaveNoneMessage.h
  16630. (ID): Renamed as ID_t
  16631. (ID_t): New enum.
  16632. * src/KeepAliveMessage.h
  16633. (ID): Renamed as ID_t
  16634. (ID_t): New enum.
  16635. * src/HaveAllMessage.h
  16636. (ID): Renamed as ID_t
  16637. (ID_t): New enum.
  16638. * src/UnchokeMessage.h
  16639. (ID): Renamed as ID_t
  16640. (ID_t): New enum.
  16641. * src/BitfieldMessage.h
  16642. (ID): Renamed as ID_t
  16643. (ID_t): New enum.
  16644. * src/PieceMessage.h
  16645. (ID): Renamed as ID_t
  16646. (ID_t): New enum.
  16647. * src/RequestMessage.h
  16648. (ID): Renamed as ID_t
  16649. (ID_t): New enum.
  16650. * src/NotInterestedMessage.h
  16651. (ID): Renamed as ID_t
  16652. (ID_t): New enum.
  16653. * src/ChokeMessage.h
  16654. (ID): Renamed as ID_t
  16655. (ID_t): New enum.
  16656. * src/InterestedMessage.h
  16657. (ID): Renamed as ID_t
  16658. (ID_t): New enum.
  16659. * src/HaveMessage.h
  16660. (ID): Renamed as ID_t
  16661. (ID_t): New enum.
  16662. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16663. * src/PeerAbstractCommand.h
  16664. (beforeSocketCheck): Removed.
  16665. * src/PeerAbstractCommand.cc
  16666. Modified in order to call executeInternal() even if socket check
  16667. and upload limit check fail.
  16668. * src/PeerInteractionCommand.h
  16669. (keepAlive): Removed.
  16670. (sendKeepAlive): New function.
  16671. (checkHave): New function.
  16672. (beforeSocketCheck): Removed.
  16673. * src/PeerInteractionCommand.cc
  16674. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16675. calls to checkHave() and sendKeepAlive().
  16676. (keepAlive): Renamed to sendKeepAlive().
  16677. (sendKeepAlive): New function.
  16678. (beforeSocketCheck): Removed.
  16679. (checkHave): New function.
  16680. * src/BitfieldMan.cc
  16681. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16682. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16683. 0.
  16684. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16685. * src/TorrentMan.h
  16686. (UsedPieces): Removed.
  16687. (Pieces): New type definition.
  16688. * src/Piece.h: Updated doc.
  16689. * src/Peer.h
  16690. (totalLength): Removed.
  16691. * src/Peer.cc
  16692. (updateLatency): Fixed the latency calculation.
  16693. * src/TorrentMan.cc
  16694. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16695. than or equal to MAX_PEER_LIST_SIZE.
  16696. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16697. then return false.
  16698. (deleteOldErrorPeers): Rewritten.
  16699. (deleteUsedPiece): Fixed the miss use of STL remove.
  16700. * src/PeerInteraction.h
  16701. (Pieces): Removed.
  16702. (deleteTimeoutRequestSlot): Removed.
  16703. (deleteCompletedRequestSlot): Removed.
  16704. (checkRequestSlot): New function.
  16705. * src/PeerInteraction.cc
  16706. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16707. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16708. (checkRequestSlot): New function.
  16709. * src/DownloadEngine.cc
  16710. (run): Clear activeSockets before calling waitData().
  16711. (waitData): Removed a call to activeSockets.clear().
  16712. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16713. To attempt to handle EINTR:
  16714. * src/SocketCore.cc
  16715. (isReadable): Added EINTR handling.
  16716. (isWritable): Added EINTR handling.
  16717. To improve the performance:
  16718. * src/AbstractCommand.cc
  16719. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16720. * src/PeerInteractionCommand.h
  16721. (receiveMessage): Renamed as receiveMessages().
  16722. (receiveMessages): New function.
  16723. * src/PeerInteractionCommand.cc
  16724. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16725. () function. detectMessageFlooding() is moved here.
  16726. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16727. (). The flooding detection for have message is comment out.
  16728. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16729. Util::difftv().
  16730. (receiveMessage): Renamed as receiveMessages().
  16731. (receiveMessages): New function.
  16732. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16733. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16734. * src/SleepCommand.cc
  16735. (execute): Use Util::difftvsec() instead of Util::difftv().
  16736. * src/BitfieldMan.h
  16737. (getNthBitIndex): New function.
  16738. (hasMissingPiece): New function.
  16739. (getAllMissingIndexes): New function.
  16740. * src/BitfieldMan.cc
  16741. (countSetBit): Rewritten.
  16742. (getNthBitIndex): New function.
  16743. (getMissingIndexRandomly): Rewritten.
  16744. (hasMissingPiece): New function.
  16745. (getAllMissingIndexes): New function.
  16746. * src/TorrentMan.cc
  16747. (hasMissingPiece): New function.
  16748. (deleteUsedPiece): Rewritten using STL.
  16749. * src/PeerInteraction.cc
  16750. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16751. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16752. (addRequests): Updated the number of pending requests.
  16753. * src/PeerAbstractCommand.cc
  16754. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16755. (execute): Returns true if TorrentMan::isHalt() is true.
  16756. Corrected the condition of upload limit checking.
  16757. * src/Util.h
  16758. (countBit): New function.
  16759. * src/Util.cc
  16760. (nbits): New variable.
  16761. (countBit): New function.
  16762. * src/DownloadEngine.h
  16763. (SockCmdMap): New type definition.
  16764. (waitData): Added an argument.
  16765. (addSocket): Added an argument.
  16766. (addSocketForReadCheck): Added an argument.
  16767. (addSocketForWriteCheck): Added an argument.
  16768. * src/DownloadEngine.cc
  16769. (run): Executes only commands whose sockets are ready to read or write.
  16770. All commands are executed in every 1 second.
  16771. (waitData): Calls select() again if it returned
  16772. EINTR.
  16773. (addSocket): Saves socket and command object pair to the map.
  16774. (deleteSocket): Deletes socket and command object pair from the map.
  16775. (addSocketForReadCheck): Added an argument.
  16776. (addSocketForWriteCheck): Added an argument.
  16777. * src/DownloadCommand.cc
  16778. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16779. To send "event=stopped" to the tracker when the application finishes:
  16780. * src/PeerChokeCommand.h
  16781. (checkPoint): New variable.
  16782. * src/PeerChokeCommand.cc
  16783. (PeerChokeCommand): Added the initialization of checkPoint.
  16784. (execute): The interval check is now done by checkPoint, not
  16785. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16786. * src/TorrentMan.h
  16787. (halt): New function.
  16788. (hasMissingPiece): New function.
  16789. (isHalt): New function.
  16790. (setHalt): New function.
  16791. * src/TorrentMan.cc
  16792. (TorrentMan): Added the initialization of halt.
  16793. * src/TorrentAutoSaveCommand.h
  16794. (checkPoint): New variable.
  16795. * src/PeerListenCommand.cc
  16796. (execute): Returns true if TorrentMan::isHalt() is true.
  16797. * src/main.cc
  16798. (setSignalHander): Added flags argument.
  16799. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16800. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16801. Removed printDownloadAbortMessage() after torrent downloading loop.
  16802. * src/TorrentAutoSaveCommand.cc
  16803. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16804. (execute): Returns true if TorrentMan::isHalt() is true.
  16805. The interval check is now done by checkPoint, not SleepCommand.
  16806. * src/TrackerWatcherCommand.cc
  16807. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16808. event=stopped.
  16809. * src/TrackerUpdateCommand.cc
  16810. (prepareForRetry): Do not use SleepCommand here.
  16811. (execute): Returns true if TorrentMan::isHalt() is true.
  16812. Others:
  16813. * src/TorrentMan.cc
  16814. (getMissingPieceIndex): Updated log message.
  16815. * src/PeerInteraction.cc
  16816. (createPeerMessag): Updated log message.
  16817. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16818. To add the ability to download several pieces in mix in a command and
  16819. increase the number of request slots according to request-cancel
  16820. latency:
  16821. * src/PeerInteractionCommand.cc
  16822. (executeInternal): The number of messages to be received at a time
  16823. is increased from 10 to 50.
  16824. * src/LogFactory
  16825. (getInstance): Added NullLogger.
  16826. * src/NullLogger.h: New class.
  16827. * src/BitfieldMan.h
  16828. (getMissingIndex): New function.
  16829. * src/BitfieldMan.cc
  16830. (getMissingIndex): New function.
  16831. * src/TorrentMan.h
  16832. (checkOutPiece): New function.
  16833. (getMissingPieceIndex): New function.
  16834. (getMissingFastPieceIndex): New function.
  16835. (getMissingFastPiece): New function.
  16836. * src/TorrentMan.cc
  16837. (updatePiece): Rewritten using STL.
  16838. (syncPiece): Rewritten using STL.
  16839. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16840. checkOutPiece().
  16841. (getMissingPieceIndex): New function.
  16842. (getMissingFastPieceIndex): New function.
  16843. (getMissingFastPiece): New function.
  16844. (checkOutPiece): New function.
  16845. * src/PeerInteraction.h
  16846. (Pieces): New type definition.
  16847. (piece): Removed.
  16848. (pieces): New variable.
  16849. (getNewPieceAndSendInterest): Added the "piece" argument.
  16850. (abortPiece): Added the "piece" argument.
  16851. (abortAllPieces): New function.
  16852. (isInRequestSlot): New function.
  16853. (hasDownloadPiece): Added the "index" argument.
  16854. (setDownloadPiece): Removed.
  16855. (getDownloadPiece): Added the "index" argument.
  16856. (updatePiece): New function.
  16857. (createRequestMessage): Added the "index" argument.
  16858. * src/PeerInteraction.cc
  16859. (onChoked): Rewritten.
  16860. (abortPiece): Rewirtten.
  16861. (abortAllPieces): New function.
  16862. (deleteTimeoutRequestSlot): Rewritten.
  16863. Clarified code a little bit.
  16864. (deleteCompletedRequestSlot): Rewritten.
  16865. (isInRequestSlot): New function.
  16866. (syncPiece): Rewritten.
  16867. (updatePiece): New function.
  16868. (getNewPieceAndSendInterest): Rewritten.
  16869. (addRequests): Rewritten.
  16870. (getDownloadPiece): Rewritten.
  16871. (hasDownloadPiece): Rewritten.
  16872. (createRequestMessage): Added the "index" argument.
  16873. * src/common.h
  16874. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16875. (DIV_FLOOR): New definition.
  16876. * src/PieceMessage.cc
  16877. (receivedAction): Update request-piece latency here.
  16878. * src/RequestSlot.h
  16879. (getLatencyInMillis): New function.
  16880. * src/RequestSlot.cc
  16881. (isTimeout): Rewritten using getLatencyInMillis.
  16882. (getLatencyInMillis): New function.
  16883. * src/Piece.h
  16884. (operator==): New function.
  16885. (getMissingBlockIndex): New function.
  16886. * src/Piece.cc
  16887. (operator==): New function.
  16888. (getMissingBlockIndex): New function.
  16889. * src/Peer.h
  16890. (DEFAULT_LATENCY): New definition.
  16891. (latency): New variable.
  16892. (updateLatency): New function.
  16893. (getLatency): New function.
  16894. * src/Peer.cc
  16895. (resetStatus): Reset latecy.
  16896. (updateLatency): New function.
  16897. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16898. * src/SocketCore.cc
  16899. (isReadable): Added secure to the condition.
  16900. * src/HttpConnection.cc
  16901. (receiveResponse): Fixed a bug that causes no response header
  16902. exception.
  16903. * src/Peer.h
  16904. (getFastSet): Fixed the return value type.
  16905. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16906. To remove a wait from download loop:
  16907. * src/DownloadEngine.cc
  16908. (run): Comment out shortSleep.
  16909. To rewrite the message handling:
  16910. * src/SimplePeerMessage.h: New class.
  16911. * src/SimplePeerMessage.cc: New class.
  16912. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16913. (msg): New variable.
  16914. (create): New function.
  16915. (send): Removed.
  16916. (getMessage): New function.
  16917. (getMessageLength): New function.
  16918. * src/CancelMessage.cc
  16919. (create): New function.
  16920. (receivedAction): Replaced deleteRequestMessageInQueue with
  16921. rejectPieceMessageInQueue.
  16922. (send): Removed.
  16923. (getMessage): New function.
  16924. (getMessageLength): New function.
  16925. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16926. (msg): New variable.
  16927. (msgLength): New variable.
  16928. (~BitfieldMessage): Deleted msg.
  16929. (send): Removed.
  16930. (getMessage): New function.
  16931. (getMessageLength): New function.
  16932. * src/BitfieldMessage.cc
  16933. (create): New function.
  16934. (send): Removed.
  16935. (getMessage): New function.
  16936. (getMessageLength): New function.
  16937. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16938. (msg): New variable.
  16939. (sendPredicate): New function.
  16940. (onSendComplete): New function.
  16941. (send): Removed.
  16942. (getMessage): New function.
  16943. (getMessageLength): New function.
  16944. (create): New function.
  16945. * src/ChokeMessage.cc
  16946. (create): New function.
  16947. (send): Removed.
  16948. (sendPredicate): New function.
  16949. (getMessage): New function.
  16950. (getMessageLength): New function.
  16951. (onSendComplete): New function.
  16952. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16953. (msg): New variable.
  16954. (send): Removed.
  16955. (getMessage): New function.
  16956. (getMessageLength): New function.
  16957. * src/KeepAliveMessage.cc
  16958. (send): Removed.
  16959. (getMessage): New function.
  16960. (getMessageLength): New function.
  16961. * src/PortMessage.h
  16962. (create): New function.
  16963. (receivedAction): Updated log message.
  16964. * src/PortMessage.cc: New file.
  16965. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16966. (msg): New variable.
  16967. (sendPredicate): New function.
  16968. (onSendComplete): New function.
  16969. (create): New function.
  16970. (send): Removed.
  16971. (getMessage): New function.
  16972. (getMessageLength): New function.
  16973. * src/UnchokeMessage.cc
  16974. (create): New function.
  16975. (send): Removed.
  16976. (sendPredicate): New function.
  16977. (getMessage): New function.
  16978. (getMessageLength): New function.
  16979. (onSendComplete): New function.
  16980. * src/PieceMessage.h
  16981. (leftPieceDataLength): Removed.
  16982. (leftDataLength): New variable.
  16983. (headerSend): New variable.
  16984. (pendingCount): New variable.
  16985. (msgHeader): New variable.
  16986. (sendPieceData): New function.
  16987. (incrementPendingCount): New function.
  16988. (isPendingCountMax): New function.
  16989. (create): New function.
  16990. (getMessageHeader): New function.
  16991. (getMessageHeaderLength): New function.
  16992. * src/PieceMessage.cc
  16993. (create): New function.
  16994. (getMessageHeader): New function.
  16995. (getMessageHeaderLength): New function.
  16996. (send): Rewritten.
  16997. (sendPieceData): New function.
  16998. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16999. (msg): New variable.
  17000. (create): New function.
  17001. (getMessage): New function.
  17002. (getMessageLength): New function.
  17003. * src/HaveMessage.cc
  17004. (create): New function.
  17005. (send): Removed.
  17006. (sendPieceData): New function.
  17007. (getMessage): New function.
  17008. (getMessageLength): New function.
  17009. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17010. (msg): New variable.
  17011. (create): New function.
  17012. (send): Removed.
  17013. (getMessage): New function.
  17014. (getMessageLength): New function.
  17015. * src/RequestMessage.cc
  17016. (create): New function.
  17017. (receivedAction): Added the handling of fast extension.
  17018. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17019. (send): Removed.
  17020. (getMessage): New function.
  17021. (getMessageLength): New function.
  17022. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17023. (msg): New variable.
  17024. (sendPredicate): New function.
  17025. (onSendComplete): New function.
  17026. (create): New function.
  17027. (getMessage): New function.
  17028. (getMessageLength): New function.
  17029. * src/InterestedMessage.cc
  17030. (create): New function.
  17031. (send): Removed.
  17032. (sendPieceData): New function.
  17033. (getMessage): New function.
  17034. (getMessageLength): New function.
  17035. (onSendComplete): New function.
  17036. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17037. (msg): New variable.
  17038. (sendPieceData): New function.
  17039. (onSendComplete): New function.
  17040. (create): New function.
  17041. (send): Removed.
  17042. (getMessage): New function.
  17043. (getMessageLength): New function.
  17044. * src/NotInterestedMessage.cc
  17045. (create): New function.
  17046. (send): Removed.
  17047. (sendPredicate): New function.
  17048. (getMessage): New function.
  17049. (getMessageLength): New function.
  17050. (onSendComplete): New function.
  17051. * src/AllowedFastMessage.h: New class.
  17052. * src/AllowedFastMessage.cc: New class.
  17053. * src/RejectMessage.h: New class.
  17054. * src/RejectMessage.cc: New class.
  17055. * src/SuggestPieceMessage.h: New class.
  17056. * src/SuggestPieceMessage.cc: New class.
  17057. * src/HaveAllMessage.h: New class.
  17058. * src/HaveAllMessage.cc: New class.
  17059. * src/HaveNoneMessage.h: New class.
  17060. * src/HaveNoneMessage.cc: New class.
  17061. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17062. (msg): New variable.
  17063. (reserved): New variable.
  17064. (create): New function.
  17065. (getId): New function.
  17066. (receivedAction): New function.
  17067. (getMessage): New function.
  17068. (getMessageLength): New function.
  17069. (isFastExtensionSupported): New function.
  17070. * src/HandshakeMessage.cc
  17071. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17072. (create): New function.
  17073. (getMessage): New function.
  17074. (getMessageLength): New function.
  17075. (toString): Added the output of reserved field.
  17076. (check): Added const qualifier.
  17077. (isFastExtensionSupported): New function.
  17078. * src/PeerMessageUtil.h
  17079. (createChokeMessage): Removed.
  17080. (createUnchokeMessage): Removed.
  17081. (createInterestedMessage): Removed.
  17082. (createNotInterestedMessage): Removed.
  17083. (createHaveMessage): Removed.
  17084. (createBitfieldMessage): Removed.
  17085. (createRequestMessage): Removed.
  17086. (createCancelMessage): Removed.
  17087. (createPieceMessage): Removed.
  17088. (createPortMessage): Removed.
  17089. (createChokeMessage): Removed.
  17090. (createUnchokeMessage): Removed.
  17091. (createInterestedMessage): Removed.
  17092. (createNotInterestedMessage): Removed.
  17093. (createHaveMessage): Removed.
  17094. (createBitfieldMessage): Removed.
  17095. (createRequestMessage): Removed.
  17096. (createCancelMessage): Removed.
  17097. (createPieceMessage): Removed.
  17098. (createKeepAliveMessage): Removed.
  17099. (createHandshakeMessage): Removed.
  17100. (setIntParam): New function.
  17101. (createPeerMessageString): New function.
  17102. * src/PeerMessageUtil.cc
  17103. (createChokeMessage): Removed.
  17104. (createUnchokeMessage): Removed.
  17105. (createInterestedMessage): Removed.
  17106. (createNotInterestedMessage): Removed.
  17107. (createHaveMessage): Removed.
  17108. (createBitfieldMessage): Removed.
  17109. (createRequestMessage): Removed.
  17110. (createCancelMessage): Removed.
  17111. (createPieceMessage): Removed.
  17112. (createPortMessage): Removed.
  17113. (createRequestMessage): Removed.
  17114. (createCancelMessage): Removed.
  17115. (createPieceMessage): Removed.
  17116. (createHaveMessage): Removed.
  17117. (createChokeMessage): Removed.
  17118. (createUnchokeMessage): Removed.
  17119. (createInterestedMessage): Removed.
  17120. (createNotInterestedMessage): Removed.
  17121. (createBitfieldMessage): Removed.
  17122. (createKeepAliveMessage): Removed.
  17123. (createHandshakeMessage): Removed.
  17124. (setIntParam): New function.
  17125. (createPeerMessageString): New function.
  17126. * src/PeerConnection.h
  17127. (peer): Removed.
  17128. (torrentMan): Removed.
  17129. (createNLengthMessage): Removed.
  17130. (setIntParam): Removed.
  17131. (writeOutgoingMessageLog): Removed all overloaded functions.
  17132. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17133. (sendMessage): New function.
  17134. (sendHandshake): Removed.
  17135. (sendKeepAlive): Removed.
  17136. (sendChoke): Removed.
  17137. (sendUnchoke): Removed.
  17138. (sendInterested): Removed.
  17139. (sendNotInterested): Removed.
  17140. (sendHave): Removed.
  17141. (sendBitfield): Removed.
  17142. (sendRequest): Removed.
  17143. (sendPiece): Removed.
  17144. (sendPieceHeader): Removed.
  17145. (sendPieceData): Removed.
  17146. (sendCancel): Removed.
  17147. (getPeer): Removed.
  17148. * src/PeerConnection.cc
  17149. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17150. (sendHandshake): Removed.
  17151. (sendKeepAlive): Removed.
  17152. (createNLengthMessage): Removed.
  17153. (setIntParam): Removed.
  17154. (writeOutgoingMessageLog): Removed all overloaded functions.
  17155. (sendChoke): Removed.
  17156. (sendUnchoke): Removed.
  17157. (sendInterested): Removed.
  17158. (sendNotInterested): Removed.
  17159. (sendHave): Removed.
  17160. (sendBitfield): Removed.
  17161. (sendRequest): Removed.
  17162. (sendPiece): Removed.
  17163. (sendPieceHeader): Removed.
  17164. (sendPieceData): Removed.
  17165. (sendMessage): New function.
  17166. (sendCancel): Removed.
  17167. * src/PeerInteractionCommand.cc
  17168. (PeerInteractionCommand): Call setUploadLimit.
  17169. (executeInternal): Call setUploadLimit.
  17170. Added the handling of "inProgress" state of handshake message.
  17171. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17172. sendNow().
  17173. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17174. sendNow().
  17175. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17176. * src/TorrentMan.h
  17177. (PEER_ID_LENGTH): New definition.
  17178. (hasAllPieces): New function.
  17179. * src/TorrentMan.cc
  17180. (getMissingPiece): Added the handling of fast extension.
  17181. (cancelPiece): Call updatePiece().
  17182. (hasAllPieces): New function.
  17183. * src/PeerInteraction.h
  17184. (fastSet): New variable.
  17185. (getNewPieceAndSendInterest): Changed the return type to void.
  17186. (send): Renamed as sendMessages.
  17187. (deleteAllRequestSlot): Removed.
  17188. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17189. (cancelAllRequest): Removed all overloaded functions.
  17190. (deleteAllRequestSlot): Removed.
  17191. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17192. (rejectPieceMessageInQueue): New function.
  17193. (rejectAllPieceMessageInQueue): New function.
  17194. (onChoked): New function.
  17195. (isSendingMessageInProgress): New function.
  17196. (getCorrespondingRequestSlot): Changed its arguments.
  17197. (isInFastSet): New function.
  17198. (addFastSetIndex): New function.
  17199. (addRequests): New function.
  17200. (sendNow): Removed.
  17201. (trySendNow): Removed.
  17202. (sendBitfield): New function.
  17203. (sendAllowdFast): New function.
  17204. (createHaveAllMessage): New function.
  17205. (createHaveNoneMessage): New function.
  17206. (createRejectMessage): New function.
  17207. (createAllowedFastMessage): New function.
  17208. * src/PeerInteraction.cc
  17209. (send): Renamed as sendMessages.
  17210. (sendMessages): New function.
  17211. (MsgPushBack): New class.
  17212. (isSendingMessageInProgress): New function.
  17213. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17214. (rejectAllPieceMessageInQueue): New function.
  17215. Added the handling of fast extension.
  17216. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17217. (rejectPieceMessageInQueue): New function.
  17218. Added the handling of fast extension.
  17219. (deleteRequestSlot): Replaced for loop with std::find.
  17220. (onChoked): New function.
  17221. (deleteAllRequestSlot): Removed.
  17222. (abortPiece): Rewirtten.
  17223. (deleteTimeoutRequestSlot): Updated log messages.
  17224. (getCorrespondingRequestSlot): Changed its arguments.
  17225. (cancelAllRequest): Removed all overloaded functions.
  17226. (receiveHandshake): Added the check to see whether an incoming peer
  17227. supports fast extension.
  17228. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17229. PeerMessageUtil.
  17230. (createPeerMessage): Use create() of each message class instead of
  17231. PeerMessageUtil.
  17232. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17233. AllowedFastMessage were added.
  17234. (getNewPieceAndSendInterest): Changed its return value type to void.
  17235. Added the handling of fast extension.
  17236. (addRequests): New function.
  17237. (sendNow): Removed.
  17238. (sendHandshake): Rewritten.
  17239. (trySendNow): Removed.
  17240. (sendBitfield): New function.
  17241. (sendAllowdFast): New function.
  17242. (isInFastSet): New function.
  17243. (addFastSetIndex): New function.
  17244. (createRequestMessage): Use RequestMessage::create instead of
  17245. PeerMessageUtil.
  17246. (createCancelMessage): Use CancelMessage::create instead of
  17247. PeerMessageUtil.
  17248. (createPieceMessage): Use PieceMessage::create instead of
  17249. PeerMessageUtil.
  17250. (createHaveMessage): Use HaveMessage::create instead of
  17251. PeerMessageUtil.
  17252. (createChokeMessage): Use ChokeMessage::create instead of
  17253. PeerMessageUtil.
  17254. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17255. PeerMessageUtil.
  17256. (createInterestedMessage): Use InterestedMessage::create instead of
  17257. PeerMessageUtil.
  17258. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17259. of PeerMessageUtil.
  17260. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17261. PeerMessageUtil.
  17262. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17263. PeerMessageUtil.
  17264. (createHaveAllMessage): New function.
  17265. (createHaveNoneMessage): New function.
  17266. (createRejectMessage): New function.
  17267. (createAllowedFastMessage: New function.
  17268. * src/Util.h
  17269. (sha1Sum): New function.
  17270. (computeFastSet): New function.
  17271. * src/Util.cc
  17272. (sha1Sum): New function.
  17273. (computeFastSet): New function.
  17274. * src/Peer.h
  17275. (fastExtensionEnabled): New variable.
  17276. (fastSet): New variable.
  17277. (setAllBitfield): New function.
  17278. (setFastExtensionEnabled): New function.
  17279. (isFastExtensionEnabled): New function.
  17280. (addFastSetIndex): New function.
  17281. (getFastSet): New function.
  17282. (isInFastSet): New function.
  17283. (countFastSet): New function.
  17284. * src/Peer.cc
  17285. (isInFastSet): New function.
  17286. (addFastSetIndex): New function.
  17287. (setAllBitfield): New function.
  17288. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17289. sockets.
  17290. * src/PeerAbstractCommand.cc
  17291. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17292. and uploadLimit.
  17293. (execute): Changed the procedure of checking sockets. The upload speed
  17294. checking were added.
  17295. (setUploadLimit): New function.
  17296. (setUploadLimitCheck): New function.
  17297. * src/PeerAbstractCommand.h
  17298. (setUploadLimit): New function.
  17299. (setUploadLimitCheck): New function.
  17300. (uploadLimit): New variable.
  17301. (uploadLimitCheck): New variable.
  17302. To contact a tracker regularly:
  17303. * src/TrackerWatcherCommand.h (interval): New variable.
  17304. (checkPoint): New variable.
  17305. (TrackerWatcherCommand): Added interval argument.
  17306. * src/TrackerWatcherCommand.cc
  17307. (TrackerWatcherCommand): Initialized checkPoint.
  17308. (execute): Now a tracker is contacted in every specified period.
  17309. If peer list is not needed, send request with numwant=0.
  17310. * src/TrackerUpdateCommand.cc
  17311. (execute): Updated log messages.
  17312. * src/DownloadEngine.cc
  17313. (~DownloadEngine): Removed two asserts.
  17314. (waitData): Uncommented wfds. May be a bug fix.
  17315. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17316. * src/PeerInteractionCommand.h
  17317. (checkInactiveConnection): Removed.
  17318. * src/PeerInteractionCommand.cc
  17319. (executeInternal): Removed following function calls:
  17320. detectMessageFlooding(), checkLongTimePeerChoking and
  17321. checkInactiveConnection().
  17322. (checkInactiveConnection): Removed.
  17323. (detectMessageFlooding): Removed function call to
  17324. checkInactiveConnection().
  17325. * src/PeerMessageUtil.h
  17326. (createChokeMessage): New function. Overload.
  17327. (createUnchokeMessage): New function. Overload.
  17328. (createInterestedMessage): New function. Overload.
  17329. (createNotInterestedMessage): New function. Overload.
  17330. (createHaveMessage): New function. Overload.
  17331. (createBitfieldMessage): New function. Overload.
  17332. (createRequestMessage): New function. Overload.
  17333. (createCancelMessage): New function. Overload.
  17334. (createPieceMessage): New function. Overload.
  17335. (createKeepAliveMessage): New function. Overload.
  17336. * src/PeerMessageUtil.cc
  17337. (createChokeMessage): New function. Overload.
  17338. (createUnchokeMessage): New function. Overload.
  17339. (createInterestedMessage): New function. Overload.
  17340. (createNotInterestedMessage): New function. Overload.
  17341. (createHaveMessage): New function. Overload.
  17342. (createBitfieldMessage): New function. Overload.
  17343. (createRequestMessage): New function. Overload.
  17344. (createCancelMessage): New function. Overload.
  17345. (createPieceMessage): New function. Overload.
  17346. (createKeepAliveMessage): New function. Overload.
  17347. * src/SendMessageQueue.cc
  17348. (createRequestMessage): Use PeerMessageUtil.
  17349. (createCancelMessage): Use PeerMessageUtil.
  17350. (createPieceMessage): Use PeerMessageUtil.
  17351. (createHaveMessage): Use PeerMessageUtil.
  17352. (createChokeMessage): Use PeerMessageUtil.
  17353. (createUnchokeMessage): Use PeerMessageUtil.
  17354. (createInterestedMessage): Use PeerMessageUtil.
  17355. (createNotInterestedMessage): Use PeerMessageUtil.
  17356. (createBitfieldMessage): Use PeerMessageUtil.
  17357. (createKeepAliveMessage): Use PeerMessageUtil.
  17358. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17359. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17360. * src/PeerInteraction.h: New class.
  17361. * src/PeerInteraction.cc: New class.
  17362. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17363. Each peer message has its own class.
  17364. * src/PendingMessages.h: Removed.
  17365. * src/PendingMessages.cc: Removed. The sending process was moved to
  17366. each message class.
  17367. * src/RequestSlotMan.h: Removed.
  17368. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17369. SendMessageQueue.
  17370. * src/RequestMessage.h: New class.
  17371. * src/RequestMessage.cc: New class.
  17372. * src/CancelMessage.h: New class.
  17373. * src/CancelMessage.cc: New class.
  17374. * src/BitfieldMessage.h: New class.
  17375. * src/BitfieldMessage.cc: New class.
  17376. * src/ChokeMessage.h: New class.
  17377. * src/ChokeMessage.cc: New class.
  17378. * src/KeepAliveMessage.h: New class.
  17379. * src/KeepAliveMessage.cc: New class.
  17380. * src/PortMessage.h: New class.
  17381. * src/UnchokeMessage.h: New class.
  17382. * src/UnchokeMessage.cc: New class.
  17383. * src/PieceMessage.h: New class.
  17384. * src/PieceMessage.cc: New class.
  17385. * src/HaveMessage.h: New class.
  17386. * src/HaveMessage.cc: New class.
  17387. * src/BitfieldMessage.h: New class.
  17388. * src/BitfieldMessage.cc: New class.
  17389. * src/NotInterestedMessage.h: New class.
  17390. * src/NotInterestedMessage.cc: New class.
  17391. * src/InterestedMessage.h: New class.
  17392. * src/InterestedMessage.cc: New class.
  17393. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17394. (getSendMessageQueue): New function.
  17395. (setSendMessageQueue): New function.
  17396. * src/HandshakeMessage.cc: New class.
  17397. * src/PeerConnection.h (receiveMessage): Changed return value and
  17398. arguments.
  17399. (receiveHandshake): Changed return value and arguments.
  17400. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17401. here.
  17402. (receiveHandshake): Do not create handshake class here.
  17403. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17404. (piece): Removed.
  17405. (syncPiece): Removed.
  17406. (sendInterest): Removed.
  17407. (sendMessages): Removed.
  17408. (createRequestPendingMessage): Removed.
  17409. (checkPieceHash): Removed.
  17410. (erasePieceOnDisk): Removed.
  17411. (getNewPieceAndSendInterest): Removed.
  17412. (onGotNewPice): Removed.
  17413. (onGotWrongPiece): Removed.
  17414. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17415. Removed peerConnection, piece.
  17416. (~PeerInteractionCommand): Removed peerConnection.
  17417. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17418. (syncPiece): Moved to SendMessageQueue.
  17419. (decideChoking): Removed PendingMessage.
  17420. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17421. The action after receiving peer message was moved to each message
  17422. class.
  17423. (onGotNewPice): Moved to SendMessageQueue.
  17424. (onGotWrongPiece): Moved to SendMessageQueue.
  17425. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17426. (sendInterest): Moved to SendMessageQueue.
  17427. (createRequestPendingMessage): Removed.
  17428. (sendMessages): Moved to SendMessageQueue.
  17429. (onAbort): Use SendMessageQueue::abortPiece()
  17430. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17431. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17432. (checkPieceHash): Moved to SendMessageQueue.
  17433. (erasePieceOnDisk): Moved to SendMessageQueue.
  17434. * src/PeerMessageUtil.h
  17435. (createBitfieldMessage): Removed.
  17436. (createHaveMessage): Changed return value and arguments.
  17437. (createBitfieldMessage): Changed return value and arguments.
  17438. (createRequestCancelMessage): Removed.
  17439. (createPieceMessage): Changed return value and arguments.
  17440. (getShortIntParam): New function.
  17441. (checkIndex): Changed arguments.
  17442. (checkBegin): Changed arguments.
  17443. (checkLength): Changed arguments.
  17444. (checkPieceOffset): Removed.
  17445. (checkRange): New function.
  17446. (checkBitfield): Changed arguments.
  17447. (createPeerMessage): Removed.
  17448. (checkIntegrity): Removed.
  17449. (createHandshakeMessage): Changed arguments.
  17450. (createChokeMessage): New function.
  17451. (createUnchokeMessage): New function.
  17452. (createInterestedMessage): New function.
  17453. (createNotInterestedMessage): New function.
  17454. (createRequestMessage): New function.
  17455. (createCancelMessage): New function.
  17456. (createPortMessage): New function.
  17457. * src/PeerMessageUtil.cc
  17458. (createBitfieldMessage): Removed.
  17459. (createHaveMessage): Changed return value and arguments.
  17460. (createBitfieldMessage): Changed return value and arguments.
  17461. (createRequestCancelMessage): Removed.
  17462. (createPieceMessage): Changed return value and arguments.
  17463. (getShortIntParam): New function.
  17464. (checkIndex): Changed arguments.
  17465. (checkBegin): Changed arguments.
  17466. (checkLength): Changed arguments.
  17467. (checkPieceOffset): Removed.
  17468. (checkRange): New function.
  17469. (checkBitfield): Changed arguments.
  17470. (createPeerMessage): Removed.
  17471. (checkIntegrity): Removed.
  17472. (createHandshakeMessage): Changed arguments.
  17473. (createChokeMessage): New function.
  17474. (createUnchokeMessage): New function.
  17475. (createInterestedMessage): New function.
  17476. (createNotInterestedMessage): New function.
  17477. (createRequestMessage): New function.
  17478. (createCancelMessage): New function.
  17479. (createPortMessage): New function.
  17480. * src/PeerMessage.h
  17481. (id): Removed.
  17482. (index): Removed.
  17483. (begin): Removed.
  17484. (length): Removed.
  17485. (bitfield): Removed.
  17486. (bitfieldLength): Removed.
  17487. (block): Removed.
  17488. (blockLength): Removed.
  17489. (inProgress): New variable.
  17490. (cuid): New variable.
  17491. (peer): New variable.
  17492. (sendMessageQueue): New variable.
  17493. (logger): New variable.
  17494. (setBitfield): Removed.
  17495. (getBitfield): Removed.
  17496. (setBlock): Removed.
  17497. (getBlock): Removed.
  17498. (getBitfieldLength): Removed.
  17499. (getBlockLength): Removed.
  17500. (isInProgress): New function.
  17501. (toString): Made pure virtual.
  17502. (check): New function.
  17503. (send): New function.
  17504. (receivedAction): New function.
  17505. (getId): Made pure virtual.
  17506. (setId): Removed.
  17507. (getIndex): Removed.
  17508. (setIndex): Removed.
  17509. (getBegin): Removed.
  17510. (setBegin): Removed.
  17511. (getLength): Removed.
  17512. (setLength): Removed.
  17513. (getCuid): New function.
  17514. (setCuid): New function.
  17515. (getPeer): New function.
  17516. (setPeer): New function.
  17517. (getSendMessageQueue): New function.
  17518. (setSendMessageQueue): New function.
  17519. (ID): Removed.
  17520. * src/PeerMessage.cc
  17521. (setBitfield): Removed.
  17522. (setBlock): Removed.
  17523. (toString): Removed.
  17524. * src/TorrentMan.h
  17525. (getPieceLength): New function.
  17526. (getPieceLength): New function.
  17527. * src/SendMessageQueue.h
  17528. (REQUEST_TIME_OUT): New definition.
  17529. (RequestSlots): New definition.
  17530. (MessageQueue): New definition.
  17531. (requestSlotMan): Removed.
  17532. (pendingMessages): Removed.
  17533. (requestSlots): New variable.
  17534. (messageQueue): New variable.
  17535. (torrentMan): New variable.
  17536. (peerConnection): New variable.
  17537. (peer): New variable.
  17538. (piece): New variable.
  17539. (getNewPieceAndSendInterest): New function.
  17540. (createPeerMessage): New function.
  17541. (createHandshakeMessage): New function.
  17542. (send): Made private.
  17543. (setPeerMessageCommonProperty): New function.
  17544. (deleteAllRequestSlot): New function.
  17545. (deleteRequestMessageInQueue): New function.
  17546. (cancelAllRequest): Made private.
  17547. (cancelAllRequest): Made private.
  17548. (countRequestSlot): Made private.
  17549. (addPendingMessage): Removed.
  17550. (deletePendingPieceMessage): Removed.
  17551. (deletePendingRequestMessage): Removed.
  17552. (addMessage): New function.
  17553. (deletePieceMessageInQueue): New function.
  17554. (deleteTimeoutRequestSlot): Changed argument.
  17555. (deleteCompletedRequestSlot): Changed argument.
  17556. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17557. (getCorrespondingRequestSlot): New function.
  17558. (countPendingMessage): Removed.
  17559. (countMessageInQueue): New function.
  17560. (getTorrentMan): New function.
  17561. (getPeerConnection): New function.
  17562. (hasDownloadPiece): New function.
  17563. (getDownloadPiece): New function.
  17564. (setDownloadPiece): New function.
  17565. (syncPiece): New function.
  17566. (sendMessages): New function.
  17567. (sendNow): New function.
  17568. (trySendNow): New function.
  17569. (abortPiece): New function.
  17570. (sendHandshake): New function.
  17571. (receiveMessage): New function.
  17572. (receiveHandshake): New function.
  17573. (createRequestMessage): New function.
  17574. (createCancelMessage): New function.
  17575. (createPieceMessage): New function.
  17576. (createHaveMessage): New function.
  17577. (createChokeMessage): New function.
  17578. (createUnchokeMessage): New function.
  17579. (createInterestedMessage): New function.
  17580. (createNotInterestedMessage): New function.
  17581. (createBitfieldMessage): New function.
  17582. (createKeepAliveMessage): New function.
  17583. * src/SendMessageQueue.cc
  17584. (SendMessageQueue): Removed requestSlotMan.
  17585. Instantiated peerConnection here.
  17586. (~SendMessageQueue): Removed requestSlotMan.
  17587. Added deletion of peerConnection and the contents of messageQueue.
  17588. (send): Updated according to the change of messageQueue.
  17589. (addPendingMessage): Renamed to addMessage.
  17590. (addMessage): New function.
  17591. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17592. (deletePieceMessageInQueue): New function.
  17593. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17594. (deleteRequestMessageInQueue): New function.
  17595. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17596. here.
  17597. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17598. (...) was moved here.
  17599. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17600. moved here.
  17601. (deleteCompletedRequestSlot):
  17602. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17603. (getCorrespondingRequestSlot):
  17604. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17605. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17606. (countPendingMessage): Renamed to countMessageInQueue.
  17607. (countMessageInQueue): New function.
  17608. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17609. (receiveHandshake): New function.
  17610. (createHandshakeMessage): New function.
  17611. (receiveMessage): New function.
  17612. (createPeerMessage): New function.
  17613. (syncPiece): New function.
  17614. (getNewPieceAndSendInterest): New function.
  17615. (sendMessages): New function.
  17616. (sendNow): New function.
  17617. (trySendNow): New function.
  17618. (sendHandshake): New function.
  17619. (abortPiece): New function.
  17620. (getDownloadPiece): New function.
  17621. (getPeerMessageCommonProperty): New function.
  17622. (createRequestMessage): New function.
  17623. (createCancelMessage): New function.
  17624. (createPieceMessage): New function.
  17625. (createHaveMessage): New function.
  17626. (createChokeMessage): New function.
  17627. (createUnchokeMessage): New function.
  17628. (createInterestedMessage): New function.
  17629. (createNotInterestedMessage): New function.
  17630. (createBitfieldMessage): New function.
  17631. (createKeepAliveMessage): New function.
  17632. To add simple Content-Disposition support:
  17633. * src/HttpResponseCommand.h (determinFilename): New function.
  17634. * src/HttpResponseCommand.cc (executeInternal):
  17635. Use determinFilename(headers) instead of req->getFile() when comparing
  17636. filename.
  17637. (determinFilename): New function.
  17638. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17639. req->getFile().
  17640. (handleOtherEncoding): Use determinFilename(headers) instead of
  17641. req->getFile().
  17642. * src/Util.h (getContentDispositionFilename): New function.
  17643. * src/Util.cc (getContentDispositionFilename): New function.
  17644. * src/LogFactory.h (release): New function.
  17645. * src/LogFactory.cc (release): New function.
  17646. To fix a bug that causes out-of-bound exception when HTTP status
  17647. line is wrong:
  17648. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17649. size.
  17650. * src/common.h (Deleter): New class.
  17651. * src/SegmentMan.cc
  17652. (~SegmentMan): Added deletion of splitter and diskWriter.
  17653. * src/DownloadEngine.h
  17654. (Commands): Use deque.
  17655. (clearQueue): New function.
  17656. * src/DownloadEngine.cc
  17657. (~DownloadEngine): Added deletion of segmentMan.
  17658. (cleanQueue): New function.
  17659. * src/TorrentDownloadEngine.h
  17660. (TorrentDownloadEngine): The implementation was moved to
  17661. TorrentDownloadEngine.cc.
  17662. (~TorrentDownloadEngine): The implementation was moved to
  17663. TorrentDownloadEngine.cc.
  17664. * src/TorrentDownloadEngine.cc
  17665. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17666. * src/main.cc
  17667. (clearRequest): Removed.
  17668. (handler): Added deletion of e.
  17669. (torrentHandler): Added deletion of te.
  17670. (main): Do not share splitter.
  17671. Use Deleter instead of clearRequest.
  17672. Deletion of classes were updated.
  17673. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17674. * src/main.cc (main): Fixed typo.
  17675. * src/message.h: Fixed typo.
  17676. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17677. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17678. To add --select-file command-line option:
  17679. * src/Util.cc
  17680. (unfoldRange): New function.
  17681. (getNum): New function.
  17682. (unfoldSubRange): New function
  17683. * src/main.cc
  17684. (showUsage): Added help message.
  17685. (main): Added --select-file command-line option. Updated the layout of
  17686. file listing.
  17687. * src/common.h
  17688. (Integers): New definition.
  17689. * src/SocketCore.cc
  17690. (writeData): Removed timeout argument.
  17691. (readData): Removed timeout argument.
  17692. (peekData): Removed timeout argument.
  17693. * src/Socket.cc
  17694. (writeData): Removed timeout argument.
  17695. (readData): Removed timeout argument.
  17696. (peekData): Removed timeout argument.
  17697. * Release 0.4.1
  17698. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17699. To deploy upload rate based choking algorithm:
  17700. * src/PeerInteractionCommand.cc
  17701. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17702. peer currently used.
  17703. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17704. download completes. Simplified.
  17705. (receiveMessage): Updated.
  17706. * src/TorrentMan.h
  17707. (activePeers): New variable.
  17708. (addActivePeer): New function.
  17709. (getActivePeers): New function.
  17710. (deleteActivePeer): New function.
  17711. * src/TorrentMan.cc
  17712. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17713. * src/PeerAbstractCommand.cc
  17714. (onAbort): Use peer->resetStatus().
  17715. * src/main.cc
  17716. (PeerChokeCommand.h): Included.
  17717. (main): Added the instance of ChokingCommand to the command queue.
  17718. * src/Peer.h
  17719. (amChoking): Renamed from amChocking
  17720. (chokingRequired): New variable.
  17721. (optUnchoking): New variable.
  17722. (deltaUpload): New variable.
  17723. (deltaDownload): New variable.
  17724. (addDeltaUpload): New function.
  17725. (resetDeltaUpload): New function.
  17726. (addDeltaDownload): New function.
  17727. (resetDeltaDownload): New function.
  17728. (addPeerUpload): Added a call to addDeltaUpload.
  17729. (addPeerDownload): Added a call to addDeltaDownload.
  17730. * src/Peer.cc
  17731. (shouldBeChoking): Renamed from shouldChoke.
  17732. (resetStatus): New function.
  17733. * src/PeerChokeCommand.h: New class.
  17734. * src/PeerChokeCommand.cc: New class.
  17735. To add lazy upload speed limiter:
  17736. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17737. statistics calculation to TorrentDownloadEngine.
  17738. * src/TorrentConsoleDownloadEngine.cc
  17739. (sendStatistics): Renamed from printStatistics.
  17740. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17741. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17742. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17743. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17744. calculation.
  17745. (sendStatistics): New function as pure virtual function.
  17746. (getUploadSpeed): New function.
  17747. * src/TorrentDownloadEngine.cc
  17748. (initStatistics): New function.
  17749. (calculateSpeed): New function.
  17750. (calculateStatistics): New function.
  17751. * src/SendMessageQueue.h
  17752. (uploadLength): New variable.
  17753. (send): Added an argument.
  17754. (setUploadLimit): New function.
  17755. (getUploadLimit): New function.
  17756. * src/SendMessageQueue.cc
  17757. (send): Added upload speed limiter.
  17758. * src/prefs.h
  17759. (PREF_UPLOAD_LIMIT): New definition.
  17760. * src/PeerInteractionCommand.cc
  17761. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17762. * src/main.cc
  17763. (main): Added --upload-limit option
  17764. For bug fixes:
  17765. * src/main.cc
  17766. (showUsage): Corrected --listen-port help
  17767. Other changes:
  17768. * src/TorrentMan.cc
  17769. (getPeer): Return nullPeer if connection is grather than
  17770. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17771. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17772. To add some useful information to the exception message:
  17773. * src/SocketCore.cc : Updated messages.
  17774. * src/SegmentMan.cc :
  17775. * src/TorrentMan.cc : Updated messages.
  17776. * src/MultiDiskWriter.cc : Updated messages.
  17777. * src/Util.cc : Updated messages.
  17778. * src/AbstractDiskWriter.cc : Updated messages.
  17779. * src/PreAllocationDiskWriter.cc : Updated messages.
  17780. * src/message.cc : Added new messages. Updated some messages.
  17781. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17782. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17783. Updated threshold from 30 to 15.
  17784. * src/AbstractDiskWriter.h (filename): New variable.
  17785. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17786. (createFile): Assigned filename.
  17787. * src/main.cc: Updated the help message for http-auth-scheme.
  17788. * Release 0.4.0
  17789. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17790. To add TrackerUpdateCommand with which replaces
  17791. CompactTrackerResponseProcessor:
  17792. * src/TrackerWatcherCommand.h (req): Removed.
  17793. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17794. if the number of peer connections are less than 30.
  17795. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17796. * src/SegmentMan.h (diskWriter): New function.
  17797. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17798. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17799. (main): Use TrackerUpdateCommand.
  17800. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17801. (req): New variable.
  17802. (setTrackerResponseProcessor): Removed.
  17803. (getTrackerResponseProcessor): Removed.
  17804. (processTrackerResponse): Removed.
  17805. * src/DownloadEngine.h (diskWriter): Removed.
  17806. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17807. to torrentMan->processTrackerResponse().
  17808. To add Util::expandBuffer:
  17809. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17810. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17811. * src/Util.h (expandBuffer): New function.
  17812. To fix the bug that causes segmentation fault when "-l ." is specified
  17813. in command-line option:
  17814. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17815. (openFile): New function.
  17816. (closeFile): New function.
  17817. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17818. (~SimpleLogger): Call closeFile();
  17819. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17820. * src/main.cc (main): Added a check to see logger is configured
  17821. properly.
  17822. To enable HTTP authentication without specifying "--http-auth-scheme"
  17823. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17824. * src/HttpConnection.cc (createRequest): Send Authorization header
  17825. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17826. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17827. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17828. * src/Peer.cc (shouldChoke): Updated algorithm.
  17829. * src/message.h (EX_AUTH_FAILED): New definition.
  17830. (EX_FILE_OPEN): New definition.
  17831. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17832. if status == 401.
  17833. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17834. if req->isTorrent == true.
  17835. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17836. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17837. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17838. (createFile): Updated message.
  17839. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17840. To add a readout of estimated remaining time to normal HTTP/FTP
  17841. downloads:
  17842. * src/ConsoleDownloadEngine.h (startup): New variable.
  17843. (startupLength): New variable.
  17844. (isStartupLengthSet): New variable.
  17845. (avgSpeed): New variable.
  17846. (eta): New variable.
  17847. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17848. estimated remaining time.
  17849. (initStatistics): Initialized newly added variables.
  17850. (calculateStatistics): Calculate average speed and estimated remaining
  17851. time.
  17852. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17853. * src/TrackerDownloadCommand.h: Removed.
  17854. * src/TrackerDownloadCommand.cc: Removed.
  17855. * src/TrackerInitCommand.h: Removed.
  17856. * src/TrackerInitCommand.cc: Removed.
  17857. * src/TrackerUpdateCommand.h: Removed.
  17858. * src/TrackerUpdateCommand.cc: Removed.
  17859. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17860. url written in TrackerInitCommand was moved here. Do not create
  17861. tracker request command if torrentMan->trackers != 0.
  17862. * src/CompactTrackerResponseProcessor.h: New class.
  17863. * src/CompactTrackerResponseProcessor.cc: New class.
  17864. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17865. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17866. Decoupled TorrentDownloadEngine from this.
  17867. * src/SegmentMan.h (init): New function.
  17868. * src/SegmentMan.cc (init): New function.
  17869. * src/TorrentMan.h (responseProcessor): New variable.
  17870. (trackers): New variable.
  17871. (setTrackerResponseProcessor): New function.
  17872. (getTrackerResponseProcessor): New function.
  17873. (processTrackerResponse): New function.
  17874. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17875. (processTrackerResponse): New function.
  17876. * src/main.cc (main): Use ByteArrayDiskWriter and
  17877. CompactTrackerResponseProcessor.
  17878. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17879. processTrackerResponse().
  17880. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17881. readout.
  17882. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17883. which indicates download has completed.
  17884. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17885. (closeFile): fd >= 0, not fd > 0
  17886. * src/main.cc (main): Added short cut for show-files.
  17887. Added short cut for torrent-file.
  17888. Added new command-line option listen-port.
  17889. Updated i18n messages.
  17890. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17891. To add LogFactory which creates singleton logger:
  17892. * src/LogFactory.h: New class.
  17893. * src/LogFactory.cc: New class.
  17894. * src/Command.h (logger): New variable.
  17895. (Constructor): Use LogFactory.
  17896. * src/AbstractCommand.cc: Use Command::logger
  17897. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17898. Use LogFactory.
  17899. * src/SegmentSplitter.h : Made logger protected.
  17900. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17901. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17902. * src/DownloadEngine.h : Made logger protected.
  17903. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17904. * src/PeerInteractionCommand.cc : Use Command::logger.
  17905. * src/HttpResponseCommand.cc : Use Command::logger.
  17906. * src/SegmentMan.h : Made logger private.
  17907. * src/TorrentMan.h : Made logger private.
  17908. * src/TorrentMan.cc : Use LogFactory.
  17909. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17910. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17911. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17912. Use LogFactory.
  17913. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17914. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17915. Use LogFactory.
  17916. * src/DownloadCommand.cc : Use Command::logger.
  17917. * src/PeerAbstractCommand.cc : Use Command::logger.
  17918. * src/PeerListenCommand.cc : Use Command::logger.
  17919. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17920. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17921. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17922. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17923. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17924. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17925. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17926. Use LogFactory.
  17927. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17928. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17929. Use LogFactory.
  17930. * src/main.cc (main): Use LogFactory.
  17931. * src/DiskAdaptor.h (logger): New variable.
  17932. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17933. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17934. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17935. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17936. parameter to a tracker request.
  17937. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17938. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17939. * src/main.cc (setSignalHander): New function.
  17940. (main): Added a handler for SIGTERM.
  17941. (handler): Updated message.
  17942. (torrentHandler): Updated message.
  17943. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17944. * src/TorrentConsoleDownloadEngine.cc
  17945. (onPartialDownloadingCompletes): Renamed as
  17946. onSelectiveDownloadingCompletes.
  17947. (onSelectiveDownloadingCompletes): Updated message.
  17948. To add DiskAdaptor which abstract DiskWriter family:
  17949. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17950. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17951. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17952. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17953. MultiDiskAdaptor.h.
  17954. (readFileEntry): Changed its arguments.
  17955. (setup): setupDiskWriter is merged into this function.
  17956. (setupDiskWriter): Removed.
  17957. (setFileFilter): New function.
  17958. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17959. made in readFileEntry.
  17960. (getFilePath): Removed.
  17961. (getTempFilePath): Removed.
  17962. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17963. (fixFilename): Removed.
  17964. (copySingleFile): Removed.
  17965. (splitMultiFile): Removed.
  17966. (deleteTempFile): Removed.
  17967. (setFileEntriesToDownload): Removed.
  17968. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17969. (isSelectiveDownloadingMode): New function.
  17970. (setAllMultiFileRequestedState): Removed.
  17971. (finishPartialDownloadingMode): Renamed as
  17972. finishSelectiveDownloadingMode.
  17973. (finishSelectiveDownloadingMode): New function.
  17974. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17975. (getSelectedTotalLength): New function.
  17976. (onDownloadComplete): Use diskAdaptor.
  17977. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17978. (Range): Removed.
  17979. (setMultiFileEntries): Renamed as setFileEntries.
  17980. (setFileEntries): New function.
  17981. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17982. (pieceLength): New variable.
  17983. * src/main.cc (printDownloadCompeleteMessage): New function.
  17984. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17985. (main): Renamed torrent-show-files to show-files.
  17986. Rewritten file contents listing.
  17987. * src/TorrentMan.h (FileEntry): Removed.
  17988. (multiFileTopDir): Removed.
  17989. (multiFileEntries): Removed.
  17990. (diskWriter): Removed.
  17991. (diskAdaptor): New variable.
  17992. * src/DefaultDiskWriter.h (totalLength): New variable.
  17993. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17994. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17995. diskWriter.
  17996. * src/TorrentConsoleDownloadEngine.h
  17997. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17998. (partialTotalLength): Renamed as selectedTotalLength.
  17999. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18000. openExistingFile, otherwise call initAndOpenFile.
  18001. (closeFile): fd > 0, not fd != 0.
  18002. * src/DirectDiskAdaptor.h: New class.
  18003. * src/DirectDiskAdaptor.cc: New class.
  18004. * src/MultiDiskAdaptor.h: New class.
  18005. * src/MultiDiskAdaptor.cc: New class.
  18006. * src/CopyDiskAdaptor.h: New class.
  18007. * src/CopyDiskAdaptor.cc: New class.
  18008. * src/DiskAdaptor.h: New class.
  18009. * src/DiskAdaptor.cc: New class.
  18010. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18011. (PREF_SHOW_FILES): New definition.
  18012. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18013. To add the ability to download multi torrent into respective files
  18014. directly:
  18015. * src/DiskWriter.h (openFile): New function.
  18016. (seek): Removed.
  18017. * src/MultiDiskWriter.h: New class.
  18018. * src/MultiDiskWriter.cc: New class.
  18019. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18020. protected.
  18021. (openFile): New function.
  18022. * src/AbstractDiskWriter.cc (openFile): New function.
  18023. * src/prefs.h (V_FALSE): New definition.
  18024. (PREF_DIRECT_FILE_MAPPING): New definition.
  18025. * src/TorrentMan.h (setupDiskWriter): New function.
  18026. (setAllMultiFileRequestedState): New function.
  18027. (onDownloadComplete): New function.
  18028. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18029. (setupDiskWriter): New function.
  18030. (getFilePath): Updated.
  18031. (getTempFilePath): Updated.
  18032. (getSegmentFilePath): Updated.
  18033. (fixFilename): Updated.
  18034. (deleteTempFile): Updated.
  18035. (setAllMultiFileRequestedState): New function.
  18036. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18037. (finishPartialDownloadingMode): Reset requested flags.
  18038. (onDownloadComplete): New function.
  18039. * src/main.cc: Added --direct-file-mapping option.
  18040. Use TorrentMan::setupDiskWriter().
  18041. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18042. onDownloadComplete().
  18043. To fix ETA bug:
  18044. * src/Util.h (difftvsec): New function.
  18045. * src/Util.cc (difftvsec): New function.
  18046. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18047. type of "elapsed" instead of long long int.
  18048. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18049. The updates of statistics takes place every 1 seconds.
  18050. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18051. (calculateSpeed): Changed its argument signature.
  18052. * src/PeerMessage.cc (toString): Fixed message.
  18053. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18054. To print ETA:
  18055. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18056. completion handling when dealing with
  18057. TorrentMan::isPartialDownloadingMode() == true.
  18058. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18059. New function.
  18060. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18061. (sessionDownloadLength): New variable.
  18062. (avgSpeed): New variable.
  18063. (eta): New variable.
  18064. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18065. new variables: eta, avgSpeed, startup.
  18066. (calculateSpeed): Calculate average speed and ETA.
  18067. (printStatistics): Added ETA.
  18068. * src/Util.h (secfmt): New function.
  18069. * src/Util.cc (secfmt): New function.
  18070. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18071. To detect "keep alive" flooding:
  18072. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18073. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18074. variable: keepAliveCount.
  18075. (detectMessageFlooding): Added "keep alive" flooding detection.
  18076. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18077. received.
  18078. To add the ability to download only specified files in multi-file
  18079. torrent:
  18080. * src/BitfieldMan.h (filterBitfield): New variable.
  18081. (filterEnabled): New variable.
  18082. (setFilterBit): New function.
  18083. (enableFilter): New function.
  18084. (disableFilter): New function.
  18085. (isFilterEnabled): New function.
  18086. (getFilteredTotalLength): New function.
  18087. (getCompletedLength): New function.
  18088. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18089. filterBitfield, filterEnabled.
  18090. (CopyConstructor): Added filterBitfield and filterEnabled.
  18091. (operator==): Added filterBitfield and filterEnabled.
  18092. (Destructor): Added filterBitfield.
  18093. (getMissingIndex): Use filterBitfield.
  18094. (getMissingUnusedIndex): Use filterBitfield.
  18095. (getFirstMissingUnusedIndex): Use filterBitfield.
  18096. (getFirstMissingUnusedIndex): Use filterBitfield.
  18097. (getAllMissingIndexes): Use filterBitfield.
  18098. (countMissingBlock): Use filterBitfield.
  18099. (countBlock): Use filterBitfield.
  18100. (setBitInternal): Added new argument on.
  18101. (setUseBit): Use setBitInternal.
  18102. (unsetUseBit): Use setBitInternal.
  18103. (setBit): Use setBitInternal.
  18104. (unsetBit): Use setBitInternal.
  18105. (isAllBitSet): Use filterBitfield.
  18106. (setFilterBit): New function.
  18107. (addFilter): New function.
  18108. (enableFilter): New function.
  18109. (disableFilter): New function.
  18110. (clearFilter): New function.
  18111. (isFilterEnabled): New function.
  18112. (getFilteredTotalLength): New function.
  18113. (getCompletedLength): New function.
  18114. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18115. Initalized newly added variables.
  18116. [FileEntry](offset): New variable.
  18117. [FileEntry](extracted): New variable.
  18118. [FileEntry](requested): New variable.
  18119. (readFileEntry): New function.
  18120. (option): New variable.
  18121. (splitMultiFile): Removed const qualifier.
  18122. (fixFilename): Removed const qualifier.
  18123. (readFileEntryFromMetaInfoFile): New function.
  18124. (finishPartialDownloadingMode): New function.
  18125. (isPartialDownloadingMode): New function.
  18126. (setFileEntriesToDownload): New function.
  18127. (getCompletedLength): New function.
  18128. (getPartialTotalLength): New function.
  18129. * src/TorrentMan.cc (readFileEntry): New function.
  18130. (setup): Use readFileEntry. If no-preallocation option is specified,
  18131. use DefaultDiskWriter.
  18132. (readFileEntryFromMetaInfoFile): New function.
  18133. (fixFilename): Removed const qualifier.
  18134. (splitMultiFile): Removed const qualifier.
  18135. (setFileEntriesToDownload): New function.
  18136. (isPartialDownloadingMode): New function.
  18137. (finishPartialDownloadingMode): New function.
  18138. (getCompletedLength): New function.
  18139. (getPartialTotalLength): New function.
  18140. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18141. New variable.
  18142. (partialTotalLength): New variable.
  18143. (downloadLength): New variable.
  18144. (totalLength): New variable.
  18145. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18146. Added log.
  18147. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18148. partialTotalLength, downloadLength, totalLength.
  18149. (calculate): Calculate downloadLength and totalLength.
  18150. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18151. * src/main.cc (addCommand): Changed argument signature.
  18152. (main): Added new variable: args. Added new option "torrent-show-files"
  18153. "no-preallocation". Usage is not updated yet.
  18154. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18155. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18156. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18157. Attempt to add the ability to listing file entries in a .torrent file.
  18158. This feature is not yet complete.
  18159. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18160. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18161. (getName): New function.
  18162. * src/TorrentMan.h (getMultiFileEntries): New function.
  18163. (getName): New function.
  18164. * src/main.cc (main): Use above 2 funtion.
  18165. * Release 0.3.2
  18166. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18167. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18168. (detectMessageFlooding): Updated threshold value.
  18169. (checkLongTimePeerChoking): Updated timeout value.
  18170. (getNewPieceAndSendInterest): Added debug log.
  18171. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18172. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18173. (getPeer): Updated.
  18174. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18175. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18176. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18177. is localhost.
  18178. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18179. * src/PendingMessage.cc (processMessage): Not to send piece message
  18180. if peer is not interested in the pieces localhost has.
  18181. * src/Peer.cc (shouldChoke): Updated.
  18182. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18183. * src/Util.cc (isPowerOf): New function.
  18184. * src/Util.h (isPowerOf): New function.
  18185. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18186. whether or not it is power of 2.
  18187. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18188. Added new class SendMessageQueue that includes PendingMessages and
  18189. RequestSlotMan.
  18190. * src/SendMessageQueue.h: New class.
  18191. * src/SendMessageQueue.cc: New class.
  18192. * src/PendingMessage.h: Added new member variable blockIndex and its
  18193. accessors.
  18194. (createRequestMessage): Updated.
  18195. * src/PendingMessage.cc (createRequestMessage): Updated.
  18196. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18197. SendMessageQueue.
  18198. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18199. (receiveMessage): Updated with SendMessageQueue.
  18200. (deletePendingPieceMessage): Removed.
  18201. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18202. (sendInterest): Updated with SendMessageQueue.
  18203. (createRequestPendingMessage): Updated with SendMessageQueue.
  18204. (sendMessages): Updated with SendMessageQueue.
  18205. (onAbort): Updated with SendMessageQueue.
  18206. (keepAlive): Updated with SendMessageQueue.
  18207. (beforeSocketCheck): Updated SendMessageQueue.
  18208. * src/PeerInteractionCommand (sendMessages): Shuffle
  18209. missingBLockIndexes before using it.
  18210. Added its own timeout for peer connection.
  18211. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18212. setter.
  18213. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18214. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18215. Added setTimeout() call.
  18216. (executeInternal): Added setTimeout() call.
  18217. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18218. Added timeout.
  18219. (isTimeoutDetected): Updated.
  18220. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18221. option.
  18222. Added *simple* message flooding checker.
  18223. * src/PeerInteractionCommand.cc (executeInternal):
  18224. Added detectMessageFlooding() call.
  18225. (detectMessageFlooding): New function.
  18226. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18227. (beforeSocketCheck): Added detectMessageFlooding() call.
  18228. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18229. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18230. Removed deletePendingPieceMessage(), getRequestSlot(),
  18231. deleteRequestSlot(), deleteAllRequestSlot().
  18232. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18233. Added checkLongTimePeerChoking() call.
  18234. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18235. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18236. if duplicate == false.
  18237. The parameter "uploaded" and "downloaded" in the tracker request are
  18238. the size since the client sent the "started" event to the tracker.
  18239. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18240. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18241. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18242. getSessionDownloadedSize(), getSessionUploadedSize().
  18243. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18244. getSessionUploadedSize() instead of getDownloadedSize(),
  18245. getUploadedSize().
  18246. * src/PendingMessage.cc (processMessage): Do not send request message
  18247. if the peer is choking the client.
  18248. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18249. less than interval.
  18250. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18251. * configure.in: Added gnutls support. Added several CPP macros.
  18252. * m4/openssl.m4: Added.
  18253. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18254. readData(), peekData(). Added gnutls support.
  18255. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18256. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18257. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18258. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18259. Instead, added a check for whether setup method has executed
  18260. successfully.
  18261. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18262. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18263. * src/Makefile.am: Updated.
  18264. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18265. using whether OpenSSL or gcrypt, depending on the result of configure
  18266. script.
  18267. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18268. messageDigest.h.
  18269. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18270. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18271. Fixed memory leak.
  18272. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18273. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18274. Removed instantiation of TrackerInitCommand. Instead,
  18275. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18276. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18277. ENABLE_SSL.
  18278. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18279. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18280. If a piece is already acquired by another command, delete the request
  18281. slots for the piece.
  18282. * src/TrackerUpdateCommand.cc (execute):
  18283. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18284. Added a check whether peer list is null.
  18285. Fixed the bug that causes sending completed event to the tracker
  18286. several times.
  18287. * src/TrackerInitCommand.cc (execute):
  18288. Fixed the bug that causes sending completed event to the tracker
  18289. several times.
  18290. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18291. by using messageDigest.h.
  18292. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18293. * PeerConnection.cc: Replaced log message "keep-alive" with
  18294. "keep alive".
  18295. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18296. localhost long time.
  18297. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18298. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18299. at most 100 failure entry from the list. If with duplicate = false,
  18300. MAX_PEER_LIST is not checked.
  18301. * PeerListenCommand.cc: Fixed the argument order of log message.
  18302. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18303. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18304. Added warn().
  18305. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18306. Implemented warn().
  18307. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18308. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18309. * Request.h: Added AFTER_COMPLETED event.
  18310. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18311. instead of downloaded size and progress(%) after download completes.
  18312. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18313. message to the peer if it is interested in what localhost has
  18314. downloaded.
  18315. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18316. destination instead of just renaming it.
  18317. * TorrentMan.cc: Added deleteTempFile().
  18318. * PeerAbstractCommand.cc: do not stop execution after download
  18319. completes. This makes localhost a seeder.
  18320. * Util.{h,cc}: Added fileCopy().
  18321. * PeerListenCommand.cc: do not stop execution after download completes.
  18322. This makes localhost a seeder.
  18323. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18324. Added TorrentMan::deleteTempFile() to torrentHandler.
  18325. Initialized the variable dir as ".".
  18326. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18327. Deleted renameSingleFile().
  18328. Added copySingleFile(), deleteTempFile().
  18329. * DownloadEngine.h: Added virtual function afterEachIteration().
  18330. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18331. in onEndOfRun() to afterEachIteration().
  18332. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18333. true.
  18334. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18335. In rangedFileCopy(), added try-catch block to properly close file
  18336. descriptors.
  18337. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18338. Added afterEachIteration(), isFilenameFixed().
  18339. * Peer.cc: Changed choking strategy.
  18340. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18341. * TrackerInitCommand.cc: Send completed event only once.
  18342. * DownloadEngine.cc: Added a call to afterEachIteration().
  18343. * TrackerUpdateCommand.cc: Do not stop execution after download
  18344. completes.
  18345. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18346. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18347. received from a tracker.
  18348. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18349. Decreased the number of failure peers to delete to 0(just comment out
  18350. the line).
  18351. * Release 0.3.1
  18352. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18353. * PeerInteractionCommand.cc: added a call to
  18354. TorrentMan::unadvertisePiece in Destructor.
  18355. * PeerInteractionCommand.cc: make have message sent immediately
  18356. if the size of pending message queue is zero.
  18357. * TorrentMan.cc: set the maximum size of peer list to 250.
  18358. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18359. to deque.
  18360. * Util.cc: fixed rangedFileCopy.
  18361. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18362. to Constructor. Also, moved digest cleanup to Destructor.
  18363. * MetaFileUtil.cc: fixed memory leak
  18364. * replaced std::vector with std::deque.
  18365. * AbstractCommand.cc: casted timeout value to long long int.
  18366. * ChunkedEncoding.cc: fixed memory leak.
  18367. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18368. * SleepCommand.cc: casted timeout value to long long int.
  18369. * Data.cc: fixed memory leak.
  18370. * Data.cc: fixed toLLInt().
  18371. * BitfieldMan.cc: fixed memory leak.
  18372. * TorrentMan.cc: initialized storeDir to ".".
  18373. * TorrentMan.cc: fixed memory leak.
  18374. * TorrentMan.cc: corrected file paths of splitted files.
  18375. * PeerAbstractCommand.cc: casted timeout to long long int.
  18376. * main.cc: added delete(req) and delete(te->diskWriter).
  18377. * RequestSlot.cc: casted timeout value to long long int.
  18378. * Request.cc: fixed memory leak.
  18379. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18380. have the piece.
  18381. * Peer.{h,cc}: added hasPiece(int index).
  18382. * main.cc: corrected addCommand.
  18383. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18384. * BitTorrent protocol support added.
  18385. * Release 0.3.0
  18386. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18387. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18388. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18389. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18390. decoding did not work properly.
  18391. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18392. * DownloadEngine.h: included sys/time.h
  18393. * DownloadEngine.cc: remove sys/time.h
  18394. * Makefile.am (SUBDIRS): Add intl.
  18395. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18396. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18397. * main.cc: correct help message for --http-auth-scheme.
  18398. * main.cc: changed e-mail address for bug reports.
  18399. * ja.po: added japanese translation.
  18400. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18401. * SimpleLogger.cc: flush log file instead of stdout.
  18402. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18403. * main.cc: Fixed command-line option: max-tries
  18404. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18405. does not equal to seg.sp.
  18406. * DownloadCommand.cc: If EOF is got from the server and the total size
  18407. of file is not zero, then throw DlRetryEx.
  18408. * main.cc: Set the minium value of min-segment-size to 1024.
  18409. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18410. fails because of a regression since 0.2.0 release.
  18411. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18412. * HttpConnection.cc:
  18413. * common.h: defined the user agent name as macro
  18414. * DownloadEngine.{h, cc}:
  18415. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18416. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18417. * main.cc: Download complete/abort message is now generated by main.
  18418. * Makefile.am (SUBDIRS): Add m4.
  18419. (ACLOCAL_AMFLAGS): New variable.
  18420. (EXTRA_DIST): New variable.
  18421. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18422. * gettext: added gettext functionality
  18423. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18424. * AbstractCommand.cc:
  18425. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18426. unregister its cuid from SegmentMan.
  18427. * DownloadEngine.cc: .aria2 file was written when a downloading
  18428. failed with errors.
  18429. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18430. Added "User-Agent" header to CONNECT proxy request.
  18431. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18432. properly.
  18433. * Logger.h:
  18434. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18435. * ChunkedEncoding.cc: Added #include directive for strings.h
  18436. * Release 0.2.1
  18437. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18438. * Util.{h,cc}: added startsWith().
  18439. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18440. Util::endsWith().
  18441. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18442. * common.h: added #include directive of limit.h.
  18443. * DownloadEngine.cc: added #include directive of sys/time.h and
  18444. algorithm.
  18445. * Exception.h: added #include directive of stdio.h.
  18446. * AbstractCommand.h: added #include directive of sys/time.h.
  18447. * DownloadCommand.h: added #include directive of sys/time.h.
  18448. * *.h: added #include directive of common.h to all base classes.
  18449. subclasses' one was removed.
  18450. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18451. does not define these macros.
  18452. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18453. * Release 0.2.0
  18454. * main.cc:
  18455. * HttpInitiateConnectionCommand.{h,cc}:
  18456. * prefs.h:
  18457. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18458. We can now use GET command in http proxy.
  18459. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18460. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18461. that splits slowest segment of SegmentMan::commands vector.
  18462. This is the default split algorithm of aria2.
  18463. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18464. that splits first segment of SegmentMan::commands vector.
  18465. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18466. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18467. * Segment.h:
  18468. * SegmentMan.cc: Added speed field to Segment.h
  18469. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18470. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18471. * message.h: Change file size related %d to %lld.
  18472. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18473. * FtpInitiateConnectionCommand.{h,cc}:
  18474. * FtpNegotiationCommand.{h,cc}:
  18475. * FtpDownloadCommand.{h,cc}:
  18476. * FtpConnection.{h,cc}: Added FTP support
  18477. * SimpleLogger.cc: Log message now includes time information.
  18478. * main.cc: The value of --http-auth-scheme option is chagned from
  18479. 'BASIC' to 'basic'
  18480. * main.cc: Added --timeout command-line option.
  18481. * main.cc: Added --min-segment-size command-line option.
  18482. * main.cc: Added --max-retries command-line option.
  18483. * prefs.h: option string constants are now defined in prefs.h
  18484. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18485. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18486. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18487. with version 0.1.0's one.
  18488. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18489. * configure.in: Added --enable-ssl option to configure script.
  18490. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18491. cannot permit absoluteURI as Request-URI.
  18492. * HttpConnection.cc: Added Referer support.
  18493. * main.cc: Added referer command-line option.
  18494. * main.cc: Added rety-wait command-line option.
  18495. * Exception.h: Fixed formating bug in Exception::setMsg()
  18496. * SocketCore.{h,cc}:
  18497. * Socket.{h, cc}:
  18498. * Request.cc:
  18499. * InitiateConnectionCommandFactory.cc:
  18500. * HttpRequestCommand.cc: Added HTTPS support.
  18501. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18502. for SocketCore.
  18503. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18504. size is wrong
  18505. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18506. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18507. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18508. * Release 0.1.0