ChangeLog 723 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425
  1. 2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added vbegin() and vend() for fixed sized array.
  3. * src/DownloadHandlerConstants.cc
  4. * src/FeatureConfig.cc
  5. * src/OptionHandlerFactory.cc
  6. * src/ServerStat.cc
  7. * src/TimeA2.cc
  8. * src/XmlRpcMethod.cc
  9. * src/array_fun.h
  10. * src/download_helper.cc
  11. * src/messageDigest.cc
  12. * src/util.cc
  13. * test/BittorrentHelperTest.cc
  14. * test/DHTRoutingTableDeserializerTest.cc
  15. * test/DHTRoutingTableSerializerTest.cc
  16. * test/DefaultBtAnnounceTest.cc
  17. * test/DefaultBtProgressInfoFileTest.cc
  18. * test/DownloadContextTest.cc
  19. * test/DownloadHelperTest.cc
  20. * test/FeatureConfigTest.cc
  21. * test/FeedbackURISelectorTest.cc
  22. * test/HttpRequestTest.cc
  23. * test/InOrderURISelectorTest.cc
  24. * test/MSEHandshakeTest.cc
  25. * test/MultiDiskAdaptorTest.cc
  26. * test/MultiFileAllocationIteratorTest.cc
  27. * test/PriorityPieceSelectorTest.cc
  28. * test/RequestGroupManTest.cc
  29. * test/UtilTest.cc
  30. * test/XmlRpcMethodTest.cc
  31. * test/a2algoTest.cc
  32. * test/array_funTest.cc
  33. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Simplified code using lastByteMask
  35. * src/BitfieldMan.cc
  36. * src/PieceStatMan.cc
  37. 2010-03-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Rewritten lastByteMask
  39. * src/bitfield.h
  40. 2010-03-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Redefined the maximum length of buffer used for HTTP header.
  42. * src/HttpHeaderProcessor.cc
  43. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. Code cleanup
  45. * src/SleepCommand.cc
  46. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. Do exact match if IP address is specified in --no-proxy.
  48. * src/AbstractCommand.cc
  49. 2010-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Fixed the bug that socket is added to EventPoll object twice. This
  51. is because derived class FtpFinishDownloadCommand adds socket to
  52. EventPoll object while base class AbstractCommand does that
  53. already.
  54. * src/FtpFinishDownloadCommand.cc
  55. * src/FtpFinishDownloadCommand.h
  56. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  57. Defined gid_t as int64_t.
  58. * src/BtDependency.cc
  59. * src/BtStopDownloadCommand.cc
  60. * src/FtpNegotiationCommand.cc
  61. * src/HttpResponseCommand.cc
  62. * src/RequestGroup.cc
  63. * src/RequestGroup.h
  64. * src/RequestGroupMan.cc
  65. * src/TrackerWatcherCommand.cc
  66. * src/XmlRpcMethodImpl.cc
  67. * src/message.h
  68. * test/XmlRpcMethodTest.cc
  69. 2010-03-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Defined cuid_t as int64_t. Removed texts containing "CUID#%D" from
  71. translatable texts because it is used in log and debugging
  72. purpose.
  73. * src/AbstractCommand.cc
  74. * src/ActivePeerConnectionCommand.cc
  75. * src/BtPieceMessage.cc
  76. * src/CUIDCounter.h
  77. * src/CheckIntegrityCommand.cc
  78. * src/CheckIntegrityDispatcherCommand.cc
  79. * src/Command.h
  80. * src/CreateRequestCommand.cc
  81. * src/DHTEntryPointNameResolveCommand.cc
  82. * src/DefaultBtInteractive.cc
  83. * src/DefaultBtMessageDispatcher.cc
  84. * src/DownloadCommand.cc
  85. * src/FileAllocationCommand.cc
  86. * src/FileAllocationDispatcherCommand.cc
  87. * src/FtpConnection.cc
  88. * src/FtpInitiateConnectionCommand.cc
  89. * src/FtpNegotiationCommand.cc
  90. * src/HttpConnection.cc
  91. * src/HttpInitiateConnectionCommand.cc
  92. * src/HttpListenCommand.cc
  93. * src/HttpResponse.cc
  94. * src/HttpServerBodyCommand.cc
  95. * src/HttpServerCommand.cc
  96. * src/HttpServerResponseCommand.cc
  97. * src/InitiateConnectionCommand.cc
  98. * src/InitiatorMSEHandshakeCommand.cc
  99. * src/MSEHandshake.cc
  100. * src/PeerAbstractCommand.cc
  101. * src/PeerConnection.cc
  102. * src/PeerInitiateConnectionCommand.cc
  103. * src/PeerInteractionCommand.cc
  104. * src/PeerListenCommand.cc
  105. * src/PeerReceiveHandshakeCommand.cc
  106. * src/SegmentMan.cc
  107. * src/SimpleBtMessage.cc
  108. * src/TrackerWatcherCommand.cc
  109. * src/message.h
  110. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Use gid_t type for gid.
  112. * src/BtRegistry.cc
  113. * src/BtRegistry.h
  114. * src/DownloadResult.h
  115. * src/RequestGroup.cc
  116. * src/RequestGroup.h
  117. * src/RequestGroupMan.cc
  118. * src/RequestGroupMan.h
  119. * src/XmlRpcMethodImpl.cc
  120. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  121. Use cuid_t type for cuid.
  122. 2010-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Added v key in DHT message. aria2's DHT version is independent of
  124. the package version and we defined it as 1 at the moment. It is
  125. defined as DHT_VERSION in src/DHTConstants.h. aria2's DHT version
  126. scheme is "A2"+2bytes DHT version number in network byte order.
  127. * src/DHTAbstractMessage.cc
  128. * src/DHTConstants.h
  129. * src/DHTMessage.cc
  130. * src/DHTMessage.h
  131. * src/DHTMessageFactoryImpl.cc
  132. * src/DHTQueryMessage.cc
  133. * src/DHTResponseMessage.cc
  134. * src/util.h
  135. * test/DHTAnnouncePeerMessageTest.cc
  136. * test/DHTAnnouncePeerReplyMessageTest.cc
  137. * test/DHTFindNodeMessageTest.cc
  138. * test/DHTFindNodeReplyMessageTest.cc
  139. * test/DHTGetPeersMessageTest.cc
  140. * test/DHTGetPeersReplyMessageTest.cc
  141. * test/DHTPingMessageTest.cc
  142. * test/DHTPingReplyMessageTest.cc
  143. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  144. Fixed the bug that value of numSeeders in aria2.tellStatus XML-RPC
  145. method response is integer, while manual says it is string. When
  146. peer's port is not listening port, set '0' to port in
  147. aria2.getPeers response.
  148. * src/XmlRpcMethodImpl.cc
  149. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Lines starting "#" in -i list are treated as comments.
  151. Example:
  152. # this is comment
  153. http://example.org/file
  154. http://example.org/file2
  155. dir=/tmp
  156. # another comment
  157. out=myfile
  158. * doc/aria2c.1.txt
  159. * src/UriListParser.cc
  160. * test/filelist1.txt
  161. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Accept IPv4 network address with CIDR block in --no-proxy option
  163. and no_proxy environment variable. Current implementation does
  164. not resolve hostname in URI to compare network address. So it is
  165. only effecive if URI has numeric IP addresses.
  166. * doc/aria2c.1.txt
  167. * src/AbstractCommand.cc
  168. * src/OptionHandlerFactory.cc
  169. * src/bitfield.h
  170. * src/usage_text.h
  171. * src/util.cc
  172. * src/util.h
  173. * test/UtilTest.cc
  174. * test/bitfieldTest.cc
  175. 2010-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Reduced interval for metadatagetmode to quickly gather metadata.
  177. * src/BtSetup.cc
  178. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Release 1.9.0
  180. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Updated po templates.
  182. * po/aria2.pot
  183. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Updated doc.
  185. * doc/aria2c.1.txt
  186. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  187. Documented about Metalink4 and LPD in README
  188. * RADME
  189. 2010-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  190. Few adjustment for timeouts in DHT. DHT message timeout is changed
  191. from 15 to 10. The interval of PeerLookup is first 5 seconds and
  192. it adds another 5 seconds in each retry.
  193. * src/DHTConstants.h
  194. * src/DHTGetPeersCommand.cc
  195. * src/DHTGetPeersCommand.h
  196. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Changed log level from error to info for DHT message send error.
  198. * src/DHTMessageDispatcherImpl.cc
  199. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Inspect all xt in magnet to find urn:btih.
  201. * src/bittorrent_helper.cc
  202. * test/BittorrentHelperTest.cc
  203. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  204. Use global option for DHTSetup.
  205. * src/DHTSetup.cc
  206. * src/DHTSetup.h
  207. * src/RequestGroup.cc
  208. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  209. Added bt-enable-lpt, reuse-uri
  210. and {http,https,ftp,all}-proxy-{user,passwd} options to -i list
  211. options.
  212. * doc/aria2c.1.txt
  213. * doc/xmlrpc/aria2rpc
  214. * src/download_helper.cc
  215. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  216. Use global option for PREF_LISTEN_PORT and PREF_BT_LPD_INTERFACE.
  217. * src/BtSetup.cc
  218. 2010-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  219. Resurrected --http-proxy-user and --http-proxy-passwd option.
  220. Added --https-proxy-user, --https-proxy-passwd, --ftp-proxy-user,
  221. --ftp-proxy-passwd, --all-proxy-user, --all-proxy-passwd option.
  222. * doc/aria2c.1.txt
  223. * src/OptionHandlerFactory.cc
  224. * src/OptionHandlerImpl.h
  225. * src/prefs.cc
  226. * src/prefs.h
  227. * src/usage_text.h
  228. * test/OptionHandlerTest.cc
  229. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. Updated Russian and Simplified Chinese translation. Thanks to all
  231. translators.
  232. * po/ru.po
  233. * po/zh_CN.po
  234. 2010-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Updated po templates.
  236. * po/aria2.pot
  237. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. For LPD sockets, bind IN_ADDRANY because binding multicast address
  239. fails under Windows.
  240. * src/LpdMessageReceiver.cc
  241. * test/LpdMessageDispatcherTest.cc
  242. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Fixed the bug that error message is not propagated to Exception.
  244. * src/SocketCore.cc
  245. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  246. Documented --bt-lpd-interface option in man page.
  247. * doc/aria2c.1.txt
  248. 2010-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Bump up version number to 1.9.0
  250. * configure.ac
  251. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  252. Fixed the bug that FillRequestGroupCommand is not invoked when
  253. RequestGroupMan::createInitialCommand() creates no Command object.
  254. * src/FillRequestGroupCommand.cc
  255. * src/RequestGroupMan.cc
  256. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Added debug logs.
  258. * src/FileEntry.cc
  259. * src/SegmentMan.cc
  260. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Fixed unit test error with mingw32 build.
  262. * test/LpdMessageReceiverTest.cc
  263. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Updated automake-1.11.1
  265. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Fixed compile error and unit test error without openssl and
  267. gnutls.
  268. * src/MetalinkParserController.cc
  269. * test/MetalinkProcessorTest.cc
  270. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  271. Fixed unitest fails if openssl doesn't support sha-256.
  272. * src/MetalinkParserStateV4Impl.cc
  273. * test/MetalinkProcessorTest.cc
  274. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  275. Wait until message arrives(again)
  276. * test/LpdMessageReceiverTest.cc
  277. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  278. Added missing wallclock.h to SRCS.
  279. * src/Makefile.am
  280. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Fixed compile error with --disable-bittorrent
  282. * test/Metalink2RequestGroupTest.cc
  283. * test/MetalinkParserControllerTest.cc
  284. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  285. Added --reuse-uri option. This option has existed quite long, but
  286. been hidden.
  287. * doc/aria2c.1.txt
  288. * src/OptionHandlerFactory.cc
  289. * src/usage_text.h
  290. 2010-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Ignore filename parameter if it contains directory traversal
  292. directives.
  293. * src/util.cc
  294. * test/UtilTest.cc
  295. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  296. urldecode -> percentDecode
  297. * src/FtpConnection.cc
  298. * src/FtpNegotiationCommand.cc
  299. * src/HttpResponse.cc
  300. * src/Request.cc
  301. * src/magnet.cc
  302. * src/util.cc
  303. * src/util.h
  304. * test/UtilTest.cc
  305. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  306. urlencode -> percentEncode,
  307. torrentUrlencode -> torrentPercentEncode
  308. * src/BtHandshakeMessage.cc
  309. * src/BtHandshakeMessageValidator.h
  310. * src/DHTMessageFactoryImpl.cc
  311. * src/DefaultBtAnnounce.cc
  312. * src/HandshakeExtensionMessage.cc
  313. * src/HttpRequest.cc
  314. * src/XmlRpcMethodImpl.cc
  315. * src/bittorrent_helper.cc
  316. * src/util.cc
  317. * src/util.h
  318. * test/DHTAnnouncePeerMessageTest.cc
  319. * test/DHTGetPeersMessageTest.cc
  320. * test/DHTGetPeersReplyMessageTest.cc
  321. * test/UTPexExtensionMessageTest.cc
  322. * test/UtilTest.cc
  323. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  324. Fixed the bug that filename is percent encoded where it must be
  325. percent decoded in sendMdtm().
  326. * src/FtpConnection.cc
  327. * test/FtpConnectionTest.cc
  328. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. url -> uri in Request class.
  330. * src/AbstractCommand.cc
  331. * src/AdaptiveURISelector.cc
  332. * src/DefaultBtAnnounce.cc
  333. * src/FeedbackURISelector.cc
  334. * src/FileEntry.cc
  335. * src/FileEntry.h
  336. * src/HttpRequest.h
  337. * src/HttpResponse.cc
  338. * src/InitiateConnectionCommandFactory.cc
  339. * src/Metalink2RequestGroup.cc
  340. * src/OptionHandlerImpl.h
  341. * src/ProtocolDetector.cc
  342. * src/Request.cc
  343. * src/Request.h
  344. * src/XmlRpcMethodImpl.cc
  345. * test/AuthConfigFactoryTest.cc
  346. * test/FtpConnectionTest.cc
  347. * test/HttpRequestTest.cc
  348. * test/HttpResponseTest.cc
  349. * test/RequestTest.cc
  350. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  351. Added getServers XML-RPC method.
  352. * doc/aria2c.1.txt
  353. * src/FileEntry.h
  354. * src/XmlRpcMethodFactory.cc
  355. * src/XmlRpcMethodImpl.cc
  356. * src/XmlRpcMethodImpl.h
  357. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  358. Pool request when download finished.
  359. * src/DownloadCommand.cc
  360. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  361. Made 'fileIndex' parameter in aria2.changeUri XML-RPC method
  362. 1-based.
  363. * doc/aria2c.1.txt
  364. * src/XmlRpcMethodImpl.cc
  365. * test/XmlRpcMethodTest.cc
  366. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Call RequestGroupMan::requestQueueCheck() when
  368. max-concurrent-downloads option is changed or new downloads are
  369. added/inserted into reserved list.
  370. * src/RequestGroupMan.cc
  371. * src/XmlRpcMethodImpl.cc
  372. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  373. Added aria2.forceRemove XML-RPC method.
  374. * doc/aria2c.1.txt
  375. * src/XmlRpcMethodFactory.cc
  376. * src/XmlRpcMethodImpl.cc
  377. * src/XmlRpcMethodImpl.h
  378. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  379. Added debug log.
  380. * src/AbstractCommand.cc
  381. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Create CreateRequestCommand to the number of -s/-C when URIs are
  383. added by XML-RPC.
  384. * src/RequestGroup.cc
  385. * src/RequestGroup.h
  386. * src/XmlRpcMethodImpl.cc
  387. 2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  388. Added 'status' key to the response of getUri XML-RPC method.
  389. * doc/aria2c.1.txt
  390. * src/XmlRpcMethodImpl.cc
  391. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  392. Replaced Time::reset() call with assigning of global::wallclock.
  393. * src/BtLeecherStateChoke.cc
  394. * src/BtSeederStateChoke.cc
  395. * src/PeerSessionResource.cc
  396. * src/RequestSlot.cc
  397. * src/ServerStat.cc
  398. * src/SpeedCalc.cc
  399. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  400. Added changeUri XML-RPC method. This method removes/adds URIs
  401. dynamically.
  402. * doc/aria2c.1.txt
  403. * src/AbstractCommand.cc
  404. * src/DownloadContext.cc
  405. * src/DownloadContext.h
  406. * src/FileEntry.cc
  407. * src/FileEntry.h
  408. * src/Request.cc
  409. * src/Request.h
  410. * src/RequestGroup.cc
  411. * src/RequestGroupMan.cc
  412. * src/XmlRpcMethodFactory.cc
  413. * src/XmlRpcMethodImpl.cc
  414. * src/XmlRpcMethodImpl.h
  415. * test/FileEntryTest.cc
  416. * test/XmlRpcMethodTest.cc
  417. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  418. Rewritten copy ctor of RequestSlot to use initialization list.
  419. * src/RequestSlot.h
  420. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  421. Added Time global::wallclock to cache "current time" to reduce the
  422. call gettimeofday(). Global variables are now in namespace global.
  423. * src/AbstractCommand.cc
  424. * src/ActivePeerConnectionCommand.cc
  425. * src/AdaptiveURISelector.cc
  426. * src/BtLeecherStateChoke.cc
  427. * src/BtLeecherStateChoke.h
  428. * src/BtSeederStateChoke.cc
  429. * src/BtSeederStateChoke.h
  430. * src/BtStopDownloadCommand.cc
  431. * src/ConsoleStatCalc.cc
  432. * src/DHTBucket.cc
  433. * src/DHTGetPeersCommand.cc
  434. * src/DHTMessageTrackerEntry.cc
  435. * src/DHTNode.cc
  436. * src/DHTPeerAnnounceEntry.cc
  437. * src/DHTPeerAnnounceStorage.cc
  438. * src/DHTSetup.cc
  439. * src/DefaultBtAnnounce.cc
  440. * src/DefaultBtInteractive.cc
  441. * src/DefaultBtMessageDispatcher.cc
  442. * src/DefaultPeerStorage.cc
  443. * src/DefaultPieceStorage.cc
  444. * src/DownloadCommand.cc
  445. * src/DownloadEngine.cc
  446. * src/FileEntry.cc
  447. * src/HttpServerBodyCommand.cc
  448. * src/HttpServerCommand.cc
  449. * src/HttpServerResponseCommand.cc
  450. * src/LpdMessageDispatcher.cc
  451. * src/MultiUrlRequestInfo.cc
  452. * src/Peer.cc
  453. * src/Peer.h
  454. * src/PeerAbstractCommand.cc
  455. * src/PeerStat.h
  456. * src/RequestSlot.cc
  457. * src/RequestSlot.h
  458. * src/SegmentMan.cc
  459. * src/ServerStatMan.cc
  460. * src/SleepCommand.cc
  461. * src/SpeedCalc.cc
  462. * src/SpeedCalc.h
  463. * src/TimeA2.cc
  464. * src/TimeA2.h
  465. * src/TimeBasedCommand.cc
  466. * src/TimeSeedCriteria.h
  467. * src/UTMetadataRequestTracker.h
  468. * src/UTPexExtensionMessage.cc
  469. * src/wallclock.h
  470. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  471. Fixed the bug that util::itos(INT64_MIN) fails.
  472. * src/util.cc
  473. * src/util.h
  474. * test/UtilTest.cc
  475. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  476. Fixed memory leak in SocketBuffer when _bufq is not empty when
  477. SocketBuffer is deleted. Added BufEntry constructor and deleted
  478. static factory functions.
  479. * src/SocketBuffer.cc
  480. * src/SocketBuffer.h
  481. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  482. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  483. queue maintenance is requested by RequestGroup to avoid to call
  484. the function unnecessarily.
  485. * src/FillRequestGroupCommand.cc
  486. * src/RequestGroup.cc
  487. * src/RequestGroup.h
  488. * src/RequestGroupMan.cc
  489. * src/RequestGroupMan.h
  490. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Don't use hash for Peer::id. Simple concatenation of ip address
  492. and port is enough.
  493. * src/Peer.cc
  494. * test/PeerTest.cc
  495. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  496. Enclosed log of DHTMessage::toString() with Logger::info().
  497. * src/DHTMessageDispatcherImpl.cc
  498. * src/DHTMessageReceiver.cc
  499. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Rewritten util::toHex().
  501. * src/util.cc
  502. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Removed SocketBuffer::feedAndSend(). Renamed
  504. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  505. * src/FtpConnection.cc
  506. * src/HttpConnection.cc
  507. * src/HttpServer.cc
  508. * src/MSEHandshake.cc
  509. * src/PeerConnection.cc
  510. * src/SocketBuffer.cc
  511. * src/SocketBuffer.h
  512. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Removed unused PeerConnection::sendMessage(). Updated doc.
  514. * src/PeerConnection.cc
  515. * src/PeerConnection.h
  516. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Reduced copying/std::string instantiation in sending/receiving
  518. BitTorrent messages.
  519. * src/BtBitfieldMessage.cc
  520. * src/BtBitfieldMessage.h
  521. * src/BtExtendedMessage.cc
  522. * src/BtExtendedMessage.h
  523. * src/BtHandshakeMessage.cc
  524. * src/BtHandshakeMessage.h
  525. * src/BtKeepAliveMessage.cc
  526. * src/BtKeepAliveMessage.h
  527. * src/BtPieceMessage.cc
  528. * src/BtPieceMessage.h
  529. * src/BtPortMessage.cc
  530. * src/BtPortMessage.h
  531. * src/BtUnchokeMessage.h
  532. * src/DefaultBtMessageReceiver.cc
  533. * src/IndexBtMessage.cc
  534. * src/IndexBtMessage.h
  535. * src/PeerConnection.cc
  536. * src/PeerConnection.h
  537. * src/RangeBtMessage.cc
  538. * src/RangeBtMessage.h
  539. * src/SimpleBtMessage.cc
  540. * src/SimpleBtMessage.h
  541. * src/SocketBuffer.cc
  542. * src/SocketBuffer.h
  543. * src/ZeroBtMessage.cc
  544. * src/ZeroBtMessage.h
  545. * test/BtAllowedFastMessageTest.cc
  546. * test/BtBitfieldMessageTest.cc
  547. * test/BtCancelMessageTest.cc
  548. * test/BtChokeMessageTest.cc
  549. * test/BtExtendedMessageTest.cc
  550. * test/BtHandshakeMessageTest.cc
  551. * test/BtHaveAllMessageTest.cc
  552. * test/BtHaveMessageTest.cc
  553. * test/BtHaveNoneMessageTest.cc
  554. * test/BtInterestedMessageTest.cc
  555. * test/BtKeepAliveMessageTest.cc
  556. * test/BtNotInterestedMessageTest.cc
  557. * test/BtPieceMessageTest.cc
  558. * test/BtPortMessageTest.cc
  559. * test/BtRejectMessageTest.cc
  560. * test/BtRequestMessageTest.cc
  561. * test/BtSuggestPieceMessageTest.cc
  562. * test/BtUnchokeMessageTest.cc
  563. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Rewritten SocketBuffer. Old implementation uses single std::string
  565. to store data and erase sent data, which is costly. New
  566. implementation uses deque to hold each data to avoid to mutate
  567. string.
  568. * src/SocketBuffer.cc
  569. * src/SocketBuffer.h
  570. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Removed unused FileEntry::extracted
  572. * src/FileEntry.cc
  573. * src/FileEntry.h
  574. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  575. Wait until data arrives.
  576. * test/LpdMessageReceiverTest.cc
  577. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. In Metalink4, if size element contains invalid size, discard whole
  579. document. Added strict hash value check for metalink3/4.
  580. * src/MetalinkParserController.cc
  581. * src/MetalinkParserStateMachine.cc
  582. * src/MetalinkParserStateMachine.h
  583. * src/MetalinkParserStateV3Impl.cc
  584. * src/MetalinkParserStateV4Impl.cc
  585. * src/util.cc
  586. * src/util.h
  587. * test/MetalinkParserControllerTest.cc
  588. * test/MetalinkProcessorTest.cc
  589. * test/metalink4.xml
  590. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Added strict attribute validation for metalink4. When
  592. specification violation is found, discard the whole document.
  593. * src/ExpatMetalinkProcessor.cc
  594. * src/MetalinkParserStateMachine.cc
  595. * src/MetalinkParserStateMachine.h
  596. * src/MetalinkParserStateV4Impl.cc
  597. * src/XML2SAXMetalinkProcessor.cc
  598. * test/Makefile.am
  599. * test/MetalinkProcessorTest.cc
  600. * test/metalink4-attrs.xml: Removed
  601. * test/metalink4-dirtraversal.xml: Removed
  602. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  603. Added test for Metaurl transaction.
  604. * src/MetalinkParserController.cc
  605. * test/MetalinkParserControllerTest.cc
  606. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Avoid costly BtMessage::toString() if info level log is not
  608. required.
  609. * src/DefaultBtInteractive.cc
  610. * src/Logger.h
  611. * src/SimpleBtMessage.cc
  612. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Reserved vector elements based on profiler results.
  614. * src/DefaultBtInteractive.cc
  615. * src/DefaultBtProgressInfoFile.cc
  616. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Avoid to calculate end() iterator in each loop. std::deque is
  618. particularly slow. Make sure that recalculate end iterator if
  619. element is erased during loop.
  620. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  621. Use vector instead of deque for containers which is used for
  622. mostly read-only purpose.
  623. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  624. Fixed typo
  625. * test/Makefile.am
  626. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  627. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  628. * test/Makefile.am
  629. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Small optimization: In updateTransferStatFor(), don't search peer
  631. ID twice.
  632. * src/DefaultPeerStorage.cc
  633. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Use vector instead of deque for MetalinkEntry and MetalinkResource
  635. objects.
  636. * src/Metalink2RequestGroup.cc
  637. * src/Metalink2RequestGroup.h
  638. * src/MetalinkEntry.cc
  639. * src/MetalinkEntry.h
  640. * src/MetalinkHelper.cc
  641. * src/MetalinkHelper.h
  642. * src/Metalinker.cc
  643. * src/Metalinker.h
  644. * src/main.cc
  645. * test/MetalinkEntryTest.cc
  646. * test/MetalinkHelperTest.cc
  647. * test/MetalinkProcessorTest.cc
  648. * test/MetalinkerTest.cc
  649. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  650. Fixed the bug that grouped FileEntry objects are not used but
  651. instead all FileEntry objects are used for each metaurl group.
  652. * src/Metalink2RequestGroup.cc
  653. * test/Metalink2RequestGroupTest.cc
  654. * test/metalink4-groupbymetaurl.xml
  655. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  656. Use vector instead of deque for ChunkChecksum.
  657. * src/ChunkChecksum.h
  658. * src/MetalinkParserController.cc
  659. * src/MetalinkParserController.h
  660. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  662. algorithm in Metalink properly
  663. * src/MetalinkParserController.cc
  664. * src/MetalinkParserController.h
  665. * src/messageDigest.cc
  666. * src/messageDigest.h
  667. * test/MetalinkProcessorTest.cc
  668. * test/metalink4.xml
  669. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Replaced null or control characters in file path with '_'. For
  671. MinGW32 build, additional characters which is not allowed in
  672. Windows kernel are also replaced. util::detectDirTraversal() now
  673. returns true if given string contains null or control characters.
  674. * src/DownloadContext.cc
  675. * src/DownloadContext.h
  676. * src/Metalink2RequestGroup.cc
  677. * src/MetalinkParserController.cc
  678. * src/bittorrent_helper.cc
  679. * src/util.cc
  680. * src/util.h
  681. * test/UtilTest.cc
  682. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  683. Discard metalink:file if its name attribute is empty string.
  684. Removed FileEntry instantiation in
  685. MetalinkParserController::setFileLengthOfEntry()
  686. * src/MetalinkParserController.cc
  687. * src/MetalinkParserStateV3Impl.cc
  688. * src/MetalinkParserStateV4Impl.cc
  689. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Discard torrent file if path data in it contains directory
  691. traversal directives. Discard metalink:file element in Metalink3
  692. format if its name attribute contains directory traversal
  693. directives. Ignore name attribute of metalink:signature element
  694. in Metalink3 format if it contains directory traversal directives.
  695. * src/MetalinkParserStateV3Impl.cc
  696. * src/bittorrent_helper.cc
  697. * src/message.h
  698. * test/BittorrentHelperTest.cc
  699. * test/Makefile.am
  700. * test/MetalinkProcessorTest.cc
  701. * test/metalink3-dirtraversal.xml
  702. * test/test.xml
  703. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Removed useless comment
  705. * src/MetalinkParserStateV4Impl.cc
  706. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  707. Supported name attribute of metalink::metaurl element and
  708. multi-file torrent with Metalink4. Files with same metaurl are
  709. grouped and downloaded in one RequestGroup.
  710. * src/BtDependency.cc
  711. * src/FileEntry.h
  712. * src/Metalink2RequestGroup.cc
  713. * src/Metalink2RequestGroup.h
  714. * src/MetalinkEntry.cc
  715. * src/MetalinkEntry.h
  716. * src/MetalinkHelper.cc
  717. * src/MetalinkHelper.h
  718. * src/MetalinkMetaurl.cc
  719. * src/MetalinkMetaurl.h
  720. * src/MetalinkParserController.cc
  721. * src/RequestGroup.cc
  722. * src/RequestGroup.h
  723. * src/bittorrent_helper.cc
  724. * test/BittorrentHelperTest.cc
  725. * test/BtDependencyTest.cc
  726. * test/MetalinkHelperTest.cc
  727. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  728. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  729. * src/MetalinkMetaurl.h
  730. * src/MetalinkParserController.cc
  731. * src/MetalinkParserController.h
  732. * src/MetalinkParserStateMachine.cc
  733. * src/MetalinkParserStateMachine.h
  734. * src/MetalinkParserStateV4Impl.cc
  735. * test/MetalinkProcessorTest.cc
  736. * test/metalink4-dirtraversal.xml
  737. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  738. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  739. element.
  740. * src/Makefile.am
  741. * src/Metalink2RequestGroup.cc
  742. * src/MetalinkEntry.cc
  743. * src/MetalinkEntry.h
  744. * src/MetalinkMetaurl.cc
  745. * src/MetalinkMetaurl.h
  746. * src/MetalinkParserController.cc
  747. * src/MetalinkParserController.h
  748. * src/MetalinkParserStateMachine.cc
  749. * src/MetalinkParserStateMachine.h
  750. * src/MetalinkParserStateV4Impl.cc
  751. * src/MetalinkParserStateV4Impl.h
  752. * test/MetalinkProcessorTest.cc
  753. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Added Metalink4 support. Currently, name attribute of
  755. metalink::metaurl is ignored and multi-file torrent cannot be used
  756. with Metalink4.
  757. * doc/aria2c.1.txt
  758. * src/DownloadHandlerConstants.cc
  759. * src/ExpatMetalinkProcessor.cc
  760. * src/Makefile.am
  761. * src/Metalink2RequestGroup.cc
  762. * src/MetalinkEntry.cc
  763. * src/MetalinkEntry.h
  764. * src/MetalinkParserController.cc
  765. * src/MetalinkParserController.h
  766. * src/MetalinkParserState.h
  767. * src/MetalinkParserStateImpl.cc
  768. * src/MetalinkParserStateImpl.h
  769. * src/MetalinkParserStateMachine.cc
  770. * src/MetalinkParserStateMachine.h
  771. * src/MetalinkParserStateV3Impl.cc
  772. * src/MetalinkParserStateV3Impl.h
  773. * src/MetalinkParserStateV4Impl.cc
  774. * src/MetalinkParserStateV4Impl.h
  775. * src/MetalinkResource.cc
  776. * src/MetalinkResource.h
  777. * src/Metalinker.cc
  778. * src/RequestGroup.cc
  779. * src/RequestGroup.h
  780. * src/XML2SAXMetalinkProcessor.cc
  781. * src/messageDigest.cc
  782. * src/util.cc
  783. * src/util.h
  784. * test/Makefile.am
  785. * test/MetalinkEntryTest.cc
  786. * test/MetalinkParserControllerTest.cc
  787. * test/MetalinkProcessorTest.cc
  788. * test/MetalinkerTest.cc
  789. * test/UtilTest.cc
  790. * test/metalink4-attrs.xml
  791. * test/metalink4-dirtraversal.xml
  792. * test/metalink4.xml
  793. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  794. Added aiFlags argument to getInterfaceAddress(). Use
  795. AI_NUMERICHOST to find interface specified using
  796. --bt-lpd-interface option to avoid time-consuming address lookup.
  797. * src/BtSetup.cc
  798. * src/SocketCore.cc
  799. * src/SocketCore.h
  800. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  801. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  802. is bad in LpdMessageReceiver.
  803. * src/LpdMessage.h
  804. * src/LpdMessageReceiver.cc
  805. * src/LpdMessageReceiver.h
  806. * src/LpdReceiveMessageCommand.cc
  807. * test/LpdMessageReceiverTest.cc
  808. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Added --bt-lpd-interface option to specify the interface to use
  810. for Local Peer Discovery. LpdMessageDispatcher object now has its
  811. own socket. LpdMessageReceiver's socket is binded to multicast
  812. address to only receive multicast packets.
  813. * src/BtSetup.cc
  814. * src/LpdMessageDispatcher.cc
  815. * src/LpdMessageDispatcher.h
  816. * src/LpdMessageReceiver.cc
  817. * src/LpdMessageReceiver.h
  818. * src/LpdReceiveMessageCommand.cc
  819. * src/LpdReceiveMessageCommand.h
  820. * src/OptionHandlerFactory.cc
  821. * src/SocketCore.cc
  822. * src/SocketCore.h
  823. * src/prefs.cc
  824. * src/prefs.h
  825. * src/usage_text.h
  826. * test/LpdMessageDispatcherTest.cc
  827. * test/LpdMessageReceiverTest.cc
  828. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Put the portion of code to get interface addresses in
  830. SocketCore::bindAddress() into newly added getInterfaceAddress().
  831. * src/SocketCore.cc
  832. * src/SocketCore.h
  833. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Rewritten util::parseInt() and parseUInt()
  835. * src/util.cc
  836. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Fixed compile error with mingw32 cross compiler. Defined
  838. a2_sockopt_t as void* for the target systems other than mingw32.
  839. * src/SocketCore.cc
  840. * src/a2netcompat.h
  841. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Removed 'always true' condition
  843. * src/util.cc
  844. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Documented --bt-enable-lpd option in man page.
  846. * doc/aria2c.1.txt
  847. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  848. Added Local Peer Discovery. It is disabled by default. Use
  849. --bt-enable-lpd to enable the function.
  850. * src/BtConstants.h
  851. * src/BtSetup.cc
  852. * src/LpdDispatchMessageCommand.cc
  853. * src/LpdDispatchMessageCommand.h
  854. * src/LpdMessage.h
  855. * src/LpdMessageDispatcher.cc
  856. * src/LpdMessageDispatcher.h
  857. * src/LpdMessageReceiver.cc
  858. * src/LpdMessageReceiver.h
  859. * src/LpdReceiveMessageCommand.cc
  860. * src/LpdReceiveMessageCommand.h
  861. * src/Makefile.am
  862. * src/OptionHandlerFactory.cc
  863. * src/Peer.cc
  864. * src/Peer.h
  865. * src/PeerInteractionCommand.cc
  866. * src/SocketCore.cc
  867. * src/SocketCore.h
  868. * src/prefs.cc
  869. * src/prefs.h
  870. * src/usage_text.h
  871. * src/util.cc
  872. * src/util.h
  873. * test/LpdMessageDispatcherTest.cc
  874. * test/LpdMessageReceiverTest.cc
  875. * test/Makefile.am
  876. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  877. User-defined custom request headers specified by --header option
  878. now override builtin headers if they have same name.
  879. * src/HttpRequest.cc
  880. * src/HttpRequest.h
  881. * test/HttpRequestTest.cc
  882. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Rewirtten util::isNumber()
  884. * src/util.cc
  885. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  887. because without it localized error messages are not printed
  888. correctly.
  889. * src/Platform.cc
  890. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Added unit tests for util::getContentDispositionFilename() from
  892. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  893. tests are passed.
  894. * src/util.cc
  895. * test/UtilTest.cc
  896. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  897. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  898. util.cc
  899. * src/Platform.cc
  900. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Support RFC2231 "Parameter Value Character Set and Language
  902. Information" in Content-Disposition header.
  903. * src/HttpResponse.cc
  904. * src/util.cc
  905. * src/util.h
  906. * test/UtilTest.cc
  907. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  908. Print CXXFLAGS
  909. * configure.ac
  910. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  911. Small optimization for A2_WOULDBLOCK(e)
  912. * src/SocketCore.cc
  913. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Removed test file
  915. * test/CookieStorageTest.cc
  916. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Check both EAGAIN and EWOULDBLOCK
  918. * src/SocketCore.cc
  919. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Removed ret == 0 checking for SSL_read(), SSL_write() and
  921. SSL_peek() because the checks are done in the caller. In
  922. SocketBuffer::send(), throw exception if nothing could be written
  923. and socket error was not EWOULDBLOCK
  924. * src/SocketBuffer.cc
  925. * src/SocketCore.cc
  926. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  927. Fixed error code handling so that it can handle Winsock2 error
  928. code.
  929. * src/SocketCore.cc
  930. * src/SocketCore.h
  931. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. Bump up version number to 1.9.0a
  933. * configure.ac
  934. * doc/aria2c.1.txt
  935. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Fixed the bug that aria2 doesn't handle return value if error
  937. occurred before download begins.
  938. * src/MultiUrlRequestInfo.cc
  939. * src/main.cc
  940. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Removed SegmentManFactory class.
  942. * src/AbstractSegmentManFactory.h
  943. * src/DefaultSegmentManFactory.cc
  944. * src/DefaultSegmentManFactory.h
  945. * src/Makefile.am
  946. * src/RequestGroup.cc
  947. * src/RequestGroup.h
  948. * src/SegmentManFactory.h
  949. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  950. Destroyed digest context after getting calculated hash.
  951. * src/Piece.cc
  952. * src/Piece.h
  953. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Removed BitfieldManFactory class.
  955. * src/BitfieldManFactory.cc
  956. * src/BitfieldManFactory.h
  957. * src/DefaultPieceStorage.cc
  958. * src/Makefile.am
  959. * src/PeerSessionResource.cc
  960. * src/Piece.cc
  961. * src/main.cc
  962. * test/DefaultPieceStorageTest.cc
  963. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Removed unused methods from BitfieldMan class. Moved
  965. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  966. class.
  967. * src/BitfieldMan.cc
  968. * src/BitfieldMan.h
  969. * src/BitfieldManFactory.cc
  970. * src/BitfieldManFactory.h
  971. * src/bitfield.h
  972. * src/main.cc
  973. * test/BitfieldManTest.cc
  974. * test/DefaultPieceStorageTest.cc
  975. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Moved getFirstNMissingIndex to bitfield.h and made it return the
  977. number of appended indexes.
  978. * src/BitfieldMan.cc
  979. * src/BitfieldMan.h
  980. * src/Piece.cc
  981. * src/Piece.h
  982. * src/bitfield.h
  983. * test/BitfieldManTest.cc
  984. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Added more tests.
  986. * test/BitfieldManTest.cc
  987. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  989. unused block indexes at once instead of calling
  990. getFirstMissingUnusedIndex() multiple times. Made use of it in
  991. Piece class and DefaultBtRequestFactory class via Piece class.
  992. * src/BitfieldMan.cc
  993. * src/BitfieldMan.h
  994. * src/DefaultBtRequestFactory.cc
  995. * src/Piece.cc
  996. * src/Piece.h
  997. * test/BitfieldManTest.cc
  998. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Use std::make_pair(...)
  1000. * src/DHTMessageTracker.cc
  1001. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1002. Use std::make_pair(...)
  1003. * src/bittorrent_helper.cc
  1004. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. urlencode(removeFragment(...)) in parseUrl(...)
  1006. * src/Request.cc
  1007. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  1009. * src/AbstractCommand.cc
  1010. * src/AdaptiveURISelector.cc
  1011. * src/BtPieceMessage.cc
  1012. * src/BtPortMessage.cc
  1013. * src/CreateRequestCommand.cc
  1014. * src/DHTAbstractNodeLookupTask.cc
  1015. * src/DHTBucket.cc
  1016. * src/DHTGetPeersCommand.cc
  1017. * src/DHTMessageDispatcherImpl.cc
  1018. * src/DHTMessageFactoryImpl.cc
  1019. * src/DHTMessageTracker.cc
  1020. * src/DHTPeerAnnounceStorage.cc
  1021. * src/DHTRoutingTable.cc
  1022. * src/DHTSetup.cc
  1023. * src/DefaultBtAnnounce.cc
  1024. * src/DefaultBtInteractive.cc
  1025. * src/DefaultBtMessageDispatcher.cc
  1026. * src/DefaultBtMessageReceiver.cc
  1027. * src/DefaultBtProgressInfoFile.cc
  1028. * src/DefaultBtRequestFactory.cc
  1029. * src/DefaultPeerStorage.cc
  1030. * src/DefaultPieceStorage.cc
  1031. * src/DownloadCommand.cc
  1032. * src/DownloadEngine.cc
  1033. * src/EpollEventPoll.cc
  1034. * src/FileAllocationCommand.cc
  1035. * src/FileEntry.cc
  1036. * src/FtpNegotiationCommand.cc
  1037. * src/HandshakeExtensionMessage.cc
  1038. * src/HttpListenCommand.cc
  1039. * src/HttpServer.cc
  1040. * src/HttpSkipResponseCommand.cc
  1041. * src/IteratableChunkChecksumValidator.cc
  1042. * src/Logger.h
  1043. * src/MSEHandshake.cc
  1044. * src/MetalinkPostDownloadHandler.cc
  1045. * src/MultiDiskAdaptor.cc
  1046. * src/PeerAbstractCommand.cc
  1047. * src/PeerConnection.cc
  1048. * src/PeerListenCommand.cc
  1049. * src/PeerReceiveHandshakeCommand.cc
  1050. * src/RequestGroup.cc
  1051. * src/RequestGroupMan.cc
  1052. * src/SegmentMan.cc
  1053. * src/SelectEventPoll.cc
  1054. * src/ServerStat.cc
  1055. * src/SimpleBtMessage.cc
  1056. * src/SocketCore.cc
  1057. * src/TrackerWatcherCommand.cc
  1058. * src/UTMetadataDataExtensionMessage.cc
  1059. * src/UTMetadataRequestFactory.cc
  1060. * src/UTMetadataRequestTracker.cc
  1061. * src/XmlRpcMethod.cc
  1062. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1063. Changed log level from debug to info
  1064. * src/BtDependency.cc
  1065. * src/BtPostDownloadHandler.cc
  1066. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1067. Removed unused PeerSessionResource::_latency.
  1068. * src/BtConstants.h
  1069. * src/BtPieceMessage.cc
  1070. * src/Peer.cc
  1071. * src/Peer.h
  1072. * src/PeerSessionResource.cc
  1073. * src/PeerSessionResource.h
  1074. * test/PeerSessionResourceTest.cc
  1075. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1076. Fixed the bug that --file-allocation=falloc doesn't work with
  1077. single file download.
  1078. * src/AbstractSingleDiskAdaptor.cc
  1079. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Release 1.8.2
  1081. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1082. Added Portuguese translation. Updated Ukrainian and Spanish
  1083. translation. Thanks to all translators.
  1084. * po/LINGUAS
  1085. * po/es.po
  1086. * po/pt.po
  1087. * po/uk.po
  1088. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Remove fragment from redirected URI.
  1090. * src/Request.cc
  1091. * test/RequestTest.cc
  1092. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Updated po templates.
  1094. * po/aria2.pot
  1095. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Drop legacy ifdef for ares support and code cleanup.
  1097. * src/AsyncNameResolver.cc
  1098. * src/AsyncNameResolver.h
  1099. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Call ares_library_init and ares_library_cleanup if they are
  1101. available. Some code cleanups.
  1102. * src/Platform.cc
  1103. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1104. Call ares_process_fd() each time after epoll to handle timeout.
  1105. * src/EpollEventPoll.cc
  1106. * src/EpollEventPoll.h
  1107. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Suppressed type-cast compiler warning
  1109. * src/CookieStorage.cc
  1110. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Fixed compile error on Mac OS X.
  1112. * src/CookieStorage.h
  1113. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1114. Removed cookietest.txt from Makefile.am
  1115. * test/Makefile.am
  1116. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1117. Updated version number in man page.
  1118. * doc/aria2c.1.txt
  1119. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Rewritten help message for --allow-overwrite option.
  1121. * doc/aria2c.1.txt
  1122. * src/usage_text.h
  1123. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Added bittorrent key to the response of tellStatus XML-RPC method.
  1125. The associated value of the key is a struct and contains data
  1126. retrieved from .torrent file, such as name, announce-list,
  1127. comment, etc.
  1128. * doc/aria2c.1.txt
  1129. * src/XmlRpcMethodImpl.cc
  1130. * src/XmlRpcMethodImpl.h
  1131. * test/XmlRpcMethodTest.cc
  1132. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Removed parse(std::istream&) and parse(const std::string&) from
  1134. CookieParser.
  1135. * src/CookieParser.cc
  1136. * src/CookieParser.h
  1137. * test/CookieParserTest.cc
  1138. * test/cookietest.txt: Removed
  1139. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. Fixed the bug that cookie for domain a.b.c is not sent to the host
  1141. a.b.c if no other cookies are stored. Fixed the bug that
  1142. Cookie::markOriginServerOnly() is not called when cookies are
  1143. loaded from file/sqlite3 database.
  1144. * src/Cookie.h
  1145. * src/CookieStorage.cc
  1146. * src/NsCookieParser.cc
  1147. * src/Sqlite3MozCookieParser.cc
  1148. * test/CookieStorageTest.cc
  1149. * test/NsCookieParserTest.cc
  1150. * test/Sqlite3MozCookieParserTest.cc
  1151. * test/cookies.sqlite
  1152. * test/nscookietest.txt
  1153. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  1155. both _pieceStorage and _segmentMan are initialized or they are
  1156. not.
  1157. * src/RequestGroup.cc
  1158. * src/RequestGroup.h
  1159. * test/BtDependencyTest.cc
  1160. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Bump up version number to 1.8.2
  1162. * configure.ac
  1163. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Replaced "." with A2STR::DOT_C
  1165. * src/AbstractCommand.cc
  1166. * src/Cookie.cc
  1167. * src/DownloadContext.cc
  1168. * src/FtpConnection.cc
  1169. * src/RequestGroup.cc
  1170. * src/util.cc
  1171. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Replaced isNumberAndDotsNotation() with isNumericHost().
  1173. isNumericHost() can handle IPv6 address.
  1174. * src/Cookie.cc
  1175. * src/CookieStorage.cc
  1176. * src/util.cc
  1177. * src/util.h
  1178. * test/CookieTest.cc
  1179. * test/UtilTest.cc
  1180. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1181. Included A2STR.h
  1182. * src/CookieStorage.cc
  1183. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1184. Rewritten Cookie storage.
  1185. * src/Cookie.cc
  1186. * src/Cookie.h
  1187. * src/CookieParser.cc
  1188. * src/CookieStorage.cc
  1189. * src/CookieStorage.h
  1190. * src/a2functional.h
  1191. * test/CookieParserTest.cc
  1192. * test/CookieStorageTest.cc
  1193. * test/CookieTest.cc
  1194. * test/HttpResponseTest.cc
  1195. * test/TestUtil.h
  1196. * test/a2functionalTest.cc
  1197. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Handle redirected URI which is not properly percent encoded.
  1199. * src/Request.cc
  1200. * test/RequestTest.cc
  1201. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1202. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  1203. not found' in the N times(N is where --max-file-not-found=N, N>0)
  1204. in a row without single '200 OK' response.
  1205. * src/RequestGroup.cc.
  1206. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  1208. readout by 80 characters in mingw32 build. Catch exception in
  1209. DHTMessageReceiver::receiveMessage().
  1210. * src/AbstractDiskWriter.cc
  1211. * src/ConsoleStatCalc.cc
  1212. * src/DHTMessageReceiver.cc
  1213. * src/File.cc
  1214. * src/RequestGroupMan.cc
  1215. * src/a2io.h
  1216. * test/FileTest.cc
  1217. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1218. Fixed compile error with intel compiler
  1219. * src/XmlRpcMethodImpl.cc
  1220. * src/XmlRpcMethodImpl.h
  1221. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Release 1.8.1
  1223. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Updated Swedish, Russian and Italian translations. Thanks to all
  1225. translators.
  1226. * po/it.po
  1227. * po/ru.po
  1228. * po/sv.po
  1229. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Fixed broken OptionParser::findByName().
  1231. * src/OptionParser.cc
  1232. * test/OptionParserTest.cc
  1233. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Fixed test error without BitTorrent support.
  1235. * test/XmlRpcMethodTest.cc
  1236. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Fixed compile error without GNUTLS/OpenSSL.
  1238. * src/util.cc
  1239. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1240. Changed compression level to Z_DEFAULT_COMPRESSION.
  1241. * src/GZipEncoder.cc
  1242. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1243. Added missing command line options: --http-no-cache,
  1244. --bt-save-metadata and --bt-metadata-only.
  1245. * doc/xmlrpc/aria2rpc
  1246. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  1248. client accepts gzip content encoding.
  1249. * src/A2STR.cc
  1250. * src/A2STR.h
  1251. * src/GZipEncoder.cc
  1252. * src/GZipEncoder.h
  1253. * src/HttpHeader.cc
  1254. * src/HttpHeader.h
  1255. * src/HttpServer.cc
  1256. * src/HttpServer.h
  1257. * src/HttpServerBodyCommand.cc
  1258. * src/HttpServerCommand.cc
  1259. * src/Makefile.am
  1260. * src/XmlRpcResponse.cc
  1261. * src/XmlRpcResponse.h
  1262. * test/GZipEncoderTest.cc
  1263. * test/Makefile.am
  1264. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Added XML-RPC client sample code in Python.
  1266. * doc/aria2c.1.txt
  1267. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Updated po templates.
  1269. * po/aria2.pot
  1270. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Bump up version number to 1.8.1
  1272. * configure.ac
  1273. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Added version number to man page. Updated copyright year in man
  1275. page.
  1276. * doc/aria2c.1.txt
  1277. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1278. Rewritten toTagString
  1279. * src/NameMatchOptionHandler.cc
  1280. * test/OptionHandlerTest.cc
  1281. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Added dir and files key to the response struct of aria2.tellStatus
  1283. XML-RPC method. The value associated with files key is the list
  1284. of files. Its element is the same struct used in aria2.getFiles
  1285. XML-RPC method. Added uris key to the response struct of
  1286. aria2.getFiles XML-RPC method. The value associated with uris key
  1287. is the list of URIs. Its element is the same struct used in
  1288. aria2.getUris XML-RPC method.
  1289. * doc/aria2c.1.txt
  1290. * src/XmlRpcMethodImpl.cc
  1291. * test/XmlRpcMethodTest.cc
  1292. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Added aria2.getSessionInfo XML-RPC method. This method returns a
  1294. struct containing Session ID, which is generated each time when
  1295. aria2 is invoked.
  1296. * doc/aria2c.1.txt
  1297. * doc/xmlrpc/aria2rpc
  1298. * src/DownloadEngine.cc
  1299. * src/DownloadEngine.h
  1300. * src/XmlRpcMethodFactory.cc
  1301. * src/XmlRpcMethodImpl.cc
  1302. * src/XmlRpcMethodImpl.h
  1303. * test/XmlRpcMethodTest.cc
  1304. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Moved generateRandomKey() from bittorrent_helper to util.
  1306. * src/DHTBucket.cc
  1307. * src/DHTNode.cc
  1308. * src/bittorrent_helper.cc
  1309. * src/bittorrent_helper.h
  1310. * src/util.cc
  1311. * src/util.h
  1312. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Updated doc about GID.
  1314. * doc/aria2c.1.txt
  1315. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  1317. accepts a negative integer. 'offset' == -1 points last download
  1318. in the waiting queue and 'offset' == -2 points the download before
  1319. the last download, and so on. The downloads in the response are in
  1320. reversed order.
  1321. * doc/aria2c.1.txt
  1322. * src/XmlRpcMethodImpl.cc
  1323. * src/XmlRpcMethodImpl.h
  1324. * test/XmlRpcMethodTest.cc
  1325. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1326. Added --human-readable option. This option, when true is given,
  1327. prints sizes and speed in human readable format(e.g., 1.2Ki,
  1328. 3.4Mi) in the console readout. The default value is true and it
  1329. looks exactly the same as aria2-1.8.0. So the 'new feature'
  1330. appears when false is given. In this case, sizes and speed are
  1331. printed without in bytes. No Ki, Mi units conversion is used.
  1332. This may be useful for a program to parse the output of aria2.
  1333. * doc/aria2c.1.txt
  1334. * src/ConsoleStatCalc.cc
  1335. * src/ConsoleStatCalc.h
  1336. * src/OptionHandlerFactory.cc
  1337. * src/main.cc
  1338. * src/prefs.cc
  1339. * src/prefs.h
  1340. * src/usage_text.h
  1341. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  1343. option accepts empty string "". When "" is given, it erases
  1344. previously defined proxy.
  1345. * doc/aria2c.1.txt
  1346. * src/OptionHandlerImpl.h
  1347. * src/usage_text.h
  1348. * test/OptionHandlerTest.cc
  1349. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Code cleanup for proxy URI handling.
  1351. * src/AbstractCommand.cc
  1352. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. Added --bt-metadata-only option. If true is given to this option,
  1354. aria2 downloads metadata only. The file(s) described in metadata
  1355. will not be downloaded. This option has effect only when
  1356. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  1357. * doc/aria2c.1.txt
  1358. * src/OptionHandlerFactory.cc
  1359. * src/UTMetadataPostDownloadHandler.cc
  1360. * src/download_helper.cc
  1361. * src/prefs.cc
  1362. * src/prefs.h
  1363. * src/usage_text.h
  1364. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Fixed memory leak. Commands stored in std::deque<Command*> are not
  1366. deleted when exception is thrown. Make sure that when passing
  1367. std::deque<Command*> to function to store Commands, handle
  1368. exception and delete these Commands.
  1369. * src/AbstractCommand.cc
  1370. * src/CheckIntegrityCommand.cc
  1371. * src/FileAllocationCommand.cc
  1372. * src/RequestGroup.cc
  1373. * src/TrackerWatcherCommand.cc
  1374. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  1376. * src/A2STR.cc
  1377. * src/A2STR.h
  1378. * src/FtpNegotiationCommand.cc
  1379. * src/HttpResponseCommand.cc
  1380. * src/util.cc
  1381. * src/util.h
  1382. * test/UtilTest.cc
  1383. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1384. Treat --dir="" as --dir="."
  1385. * src/FtpNegotiationCommand.cc
  1386. * src/HttpResponseCommand.cc
  1387. * src/Metalink2RequestGroup.cc
  1388. * src/UTMetadataPostDownloadHandler.cc
  1389. * src/bittorrent_helper.cc
  1390. * src/download_helper.cc
  1391. * src/util.cc
  1392. * src/util.h
  1393. * test/UtilTest.cc
  1394. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Code clean up.
  1396. * src/main.cc
  1397. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Reset GID to 1 when they reach maximum value. Rewritten
  1399. CUIDCounter::newID()
  1400. * src/CUIDCounter.h
  1401. * src/RequestGroup.cc
  1402. * src/RequestGroup.h
  1403. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Documented --http-no-cache option in man page.
  1405. * doc/aria2c.1.txt
  1406. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Added --http-no-cache option. When true is given, aria2 sends
  1408. Cache-Control: no-cache and Pragma: no-cache header to avoid
  1409. cached content. If false is given , these headers are not sent
  1410. and you can add Cache-Control header with a directive you like
  1411. using --header option.
  1412. * src/HttpRequest.cc
  1413. * src/HttpRequest.h
  1414. * src/HttpRequestCommand.cc
  1415. * src/OptionHandlerFactory.cc
  1416. * src/download_helper.cc
  1417. * src/prefs.cc
  1418. * src/prefs.h
  1419. * src/usage_text.h
  1420. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Removed Logger from OptionParser. When OptionParser is used to
  1422. parse options at bootstrap, LogFactory is not configured yet
  1423. properly. When LogFactory is used in OptionParser, it initializes
  1424. itself to return a logger which has no ability to write log to the
  1425. disk.
  1426. * src/OptionParser.cc
  1427. * src/OptionParser.h
  1428. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1429. Added following sentance to the help message of --out option:
  1430. --out option is ignored when -Z is used.
  1431. * doc/aria2c.1.txt
  1432. * src/usage_text.h
  1433. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1434. Added --bt-save-metadata option to -i list options.
  1435. * doc/aria2c.1.txt
  1436. * src/download_helper.cc
  1437. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1438. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1439. additional libraries.
  1440. * src/MultiUrlRequestInfo.cc
  1441. * src/NameResolver.cc
  1442. * src/SelectEventPoll.cc
  1443. * src/SelectEventPoll.h
  1444. * src/SocketCore.cc
  1445. * src/SocketCore.h
  1446. * src/a2netcompat.h
  1447. * src/daemon.cc
  1448. * src/main.cc
  1449. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Fixed typo.
  1451. * src/DHTMessageReceiver.cc
  1452. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. Fixed the bug that causes segmentation fault if unknown option is
  1454. put in aria2.conf file. BUG#2928303
  1455. * src/OptionParser.cc
  1456. * src/OptionParser.h
  1457. * src/option_processing.cc
  1458. * test/OptionParserTest.cc
  1459. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1460. Ignore port message with port=0.
  1461. * src/BtPortMessage.cc
  1462. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Run autoupdate
  1464. * configure.ac
  1465. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. Updated autoconf/automake auxiliary files.
  1467. * INSTALL
  1468. * config.guess
  1469. * config.sub
  1470. * depcomp
  1471. * install-sh
  1472. * m4/intldir.m4
  1473. * missing
  1474. * mkinstalldirs
  1475. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1476. Removed unused function.
  1477. * src/SharedHandle.h
  1478. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Find pooled socket using all cached addresses.
  1480. * src/DNSCache.h
  1481. * src/DownloadEngine.cc
  1482. * src/DownloadEngine.h
  1483. * src/InitiateConnectionCommand.cc
  1484. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1485. Updated copyright year.
  1486. * src/version_usage.cc
  1487. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Pool connection if _contentEncodingDecoder is used and server
  1489. supports persistent connection.
  1490. * src/HttpDownloadCommand.cc
  1491. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Updated doc.
  1493. * src/DownloadCommand.cc
  1494. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1495. Untabify. Fixed one line in copyright which is longer than 80
  1496. columns.
  1497. * src
  1498. * test
  1499. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Release 1.8.0
  1501. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Updated po templates.
  1503. * po/aria2.pot
  1504. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Documented --bt-save-metadata option in man page.
  1506. * doc/aria2c.1.txt
  1507. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Fixed usage of --bt-save-metadata option.
  1509. * src/usage_text.h
  1510. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Updated po templates.
  1512. * po/aria2.pot
  1513. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1514. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1515. causes name resolution error when none of network interface has
  1516. IPv4 address.
  1517. * src/main.cc
  1518. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1519. Bump up version number to 1.8.0.
  1520. * configure.ac
  1521. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Use info hash as a filename when saving BitTorrent metadata.
  1523. * src/UTMetadataPostDownloadHandler.cc
  1524. * test/UTMetadataPostDownloadHandlerTest.cc
  1525. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Documented system.multicall XML-RPC method in man page.
  1527. * doc/aria2c.1.txt
  1528. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Added signal handler for SIGHUP to save .aria2 file when terminal
  1530. is closed. The handler is the same one for SIGINT and SIGTERM.
  1531. * src/MultiUrlRequestInfo.cc
  1532. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Defined method name in XmlRpcMethod subclasses.
  1534. * src/XmlRpcMethodFactory.cc
  1535. * src/XmlRpcMethodImpl.cc
  1536. * src/XmlRpcMethodImpl.h
  1537. * test/XmlRpcMethodTest.cc
  1538. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Added system.multicall XML-RPC method.
  1540. * src/XmlRpcMethod.cc
  1541. * src/XmlRpcMethod.h
  1542. * src/XmlRpcMethodFactory.cc
  1543. * src/XmlRpcMethodImpl.cc
  1544. * src/XmlRpcMethodImpl.h
  1545. * test/XmlRpcMethodTest.cc
  1546. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Check structure depth when decoding.
  1548. * src/bencode.cc
  1549. * src/bencode.h
  1550. * test/BencodeTest.cc
  1551. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1552. Documented tellStopped XML-RPC method in man page.
  1553. * doc/aria2c.1.txt
  1554. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1555. Added tellStopped XML-RPC method to aria2rpc.
  1556. * doc/xmlrpc/aria2rpc
  1557. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1558. Added tellStopped XML-RPC method. This method returns stopped
  1559. download in the specified range. It takes same parameters with
  1560. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1561. * src/XmlRpcMethodFactory.cc
  1562. * src/XmlRpcMethodImpl.cc
  1563. * src/XmlRpcMethodImpl.h
  1564. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1566. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1567. when conducting unit tests because they fail if networking
  1568. interface is not configured with IPv4 address.
  1569. * src/NameResolver.cc
  1570. * src/SocketCore.cc
  1571. * src/SocketCore.h
  1572. * src/a2netcompat.h
  1573. * test/AllTest.cc
  1574. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Fixed unit test error
  1576. * test/UTMetadataPostDownloadHandlerTest.cc
  1577. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1578. Defined static string constants for efficiency.
  1579. * src/XmlRpcMethodImpl.cc
  1580. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1581. Added --bt-save-metadata option. When true is given, it saves
  1582. metadata as .torrent file. This option has effect only when
  1583. BitTorrent Magnet URI is used. The filename is name in metadata
  1584. with suffix .torrent. The directory to be saved is the same
  1585. directory where download file is saved. If the same file already
  1586. exists, metdata is not saved.
  1587. * src/OptionHandlerFactory.cc
  1588. * src/UTMetadataPostDownloadHandler.cc
  1589. * src/UTMetadataPostDownloadHandler.h
  1590. * src/message.h
  1591. * src/prefs.cc
  1592. * src/prefs.h
  1593. * src/usage_text.h
  1594. * test/UTMetadataDataExtensionMessageTest.cc
  1595. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1596. Added util::saveAs() function. Use it in Signature::save().
  1597. * src/Signature.cc
  1598. * src/util.cc
  1599. * src/util.h
  1600. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1601. Upcase info hash in Magnet URI.
  1602. * doc/aria2c.1.txt
  1603. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1604. Refactored RequestGroupMan::changeReservedGroupPosition()
  1605. * src/RequestGroupMan.cc
  1606. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1607. Updated the description for aria2.addTorrent XML-RPC method.
  1608. * doc/aria2c.1.txt
  1609. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Added changePosition to aria2rpc.
  1611. * doc/xmlrpc/aria2rpc
  1612. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1613. Documented changePosition XML-RPC method in man page.
  1614. * doc/aria2c.1.txt
  1615. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1617. pos and how. This method changes the position of download denoted
  1618. by gid. If how is POS_SET, it moves the download to a position
  1619. relative to the beginning of the queue. If how is POS_CUR, it
  1620. moves the download to a position relative to the current
  1621. position. If how is POS_END, it moves the download to a position
  1622. relative to the end of the queue. If the destination position is
  1623. less than 0 or beyond the end of the queue, it moves the download
  1624. to the beginning or the end of the queue respectively. Returns
  1625. the destination position.
  1626. * src/RequestGroupMan.cc
  1627. * src/RequestGroupMan.h
  1628. * src/XmlRpcMethodFactory.cc
  1629. * src/XmlRpcMethodImpl.cc
  1630. * src/XmlRpcMethodImpl.h
  1631. * test/RequestGroupManTest.cc
  1632. * test/XmlRpcMethodTest.cc
  1633. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Added getOption and getGlobalOption to aria2rpc.
  1635. * doc/xmlrpc/aria2rpc
  1636. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Documented getOption and getGlobalOption XML-RPC method in man
  1638. page
  1639. * doc/aria2c.1.txt
  1640. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Added getOption and getGlobalOption XML-RPC method. getOption
  1642. takes GID as a parameter and returns its options as struct.
  1643. getGlobalOption takes no parameter and returns global
  1644. options. Because global option is used as a template for the
  1645. option of newly added downloads, it includes options returned by
  1646. getOption.
  1647. * src/Option.h
  1648. * src/XmlRpcMethodFactory.cc
  1649. * src/XmlRpcMethodImpl.cc
  1650. * src/XmlRpcMethodImpl.h
  1651. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Sort _optionHandlers in OptionParser by name in ascending order.
  1653. Use vector instead of deque for efficiency.
  1654. * src/OptionHandler.h
  1655. * src/OptionHandlerFactory.h
  1656. * src/OptionParser.cc
  1657. * src/OptionParser.h
  1658. * src/version_usage.cc
  1659. * test/OptionParserTest.cc
  1660. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Code cleanup
  1662. * src/XmlRpcMethod.cc
  1663. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Documented about followedBy and belongsTo in man page.
  1665. * doc/aria2c.1.txt
  1666. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Added following 2 keys, followedBy and belongsTo, to the response
  1668. of tellStatus.
  1669. followedBy: List of GIDs which are generated by the consequence of
  1670. this download. For example, when aria2 downloaded Metalink file,
  1671. it generates downloads described in it(see *--follow-metalink*
  1672. option). This value is useful to track these auto generated
  1673. downloads. If there is no such downloads, this key will not be
  1674. included in the response.
  1675. belongsTo: GID of a parent download. Some downloads are a part of
  1676. another download. For example, if a file in Metalink has
  1677. BitTorrent resource, the download of .torrent is a part of that
  1678. file. If this download has no parent, this key will not be
  1679. included in the response.
  1680. * src/BtPostDownloadHandler.cc
  1681. * src/DownloadResult.h
  1682. * src/Metalink2RequestGroup.cc
  1683. * src/MetalinkPostDownloadHandler.cc
  1684. * src/RequestGroup.cc
  1685. * src/RequestGroup.h
  1686. * src/UTMetadataPostDownloadHandler.cc
  1687. * src/XmlRpcMethodImpl.cc
  1688. * src/XmlRpcMethodImpl.h
  1689. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Assigned BObject in BDE() to avoid segmentation fault when calling
  1691. methods of BDE::none().
  1692. * src/BDE.cc
  1693. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1694. Show info hash in Magnet URI in upper case letters in -S output.
  1695. * src/bittorrent_helper.cc
  1696. * test/BittorrentHelperTest.cc
  1697. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1698. Removed old useless comment
  1699. * src/MultiUrlRequestInfo.cc
  1700. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1701. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1702. not properly used in configure script and failed to detect gnutls.
  1703. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1704. and the initialization of pkg-config is done in first occurrence
  1705. of PKG_CHECK_MODULES which is not executed because it is inside of
  1706. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1707. * configure.ac
  1708. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1709. Release 1.7.2
  1710. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1711. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1712. true even if all downloads haven't finished, especially when
  1713. PostDownloadHandler is involved. Changed the condition so that it
  1714. only returns true if both _requestGroups and _reservedGroups are
  1715. empty.
  1716. * src/RequestGroupMan.cc
  1717. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1718. Log listening port for BitTorrent/DHT in notice level.
  1719. * src/DHTConnectionImpl.cc
  1720. * src/PeerListenCommand.cc
  1721. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. Updated po templates.
  1723. * po/aria2.pot
  1724. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1725. Bump up version number to 1.7.2
  1726. * configure.ac
  1727. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Changed default value of --enable-dht from 'false' to 'true'.
  1729. * doc/aria2c.1.txt
  1730. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Enabled DHT by default because of Magnet URI support. To disable
  1732. DHT, use --enable-dht=false
  1733. * src/OptionHandlerFactory.cc
  1734. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Print Magnet URI in -S output.
  1736. * src/AnnounceList.cc
  1737. * src/bittorrent_helper.cc
  1738. * src/bittorrent_helper.h
  1739. * test/BittorrentHelperTest.cc
  1740. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Added --bt-prioritize-piece option to aria2rpc.
  1742. * doc/xmlrpc/aria2rpc
  1743. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Refer Magnet URI in --help. Made some cosmetic changes.
  1745. * src/version_usage.cc
  1746. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1747. Updated -T and -M option.
  1748. * doc/aria2c.1.txt
  1749. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Fixed typo
  1751. * doc/aria2c.1.txt
  1752. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Fixed the bug that line separator is missing in horizontal bar.
  1754. * doc/xmlrpc/aria2mon
  1755. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Updated usage text for --metalink-file option.
  1757. * src/usage_text.h
  1758. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. If '-' is given as an argument to --metalink-file option, aria2
  1760. reads Metalink file from stdin.
  1761. * src/OptionHandlerFactory.cc
  1762. * src/OptionHandlerImpl.h
  1763. * src/a2io.h
  1764. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Fixed the bug that aria2 listens wrong port if --interface option
  1766. is used.
  1767. * src/SocketCore.cc
  1768. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Fixed the bug that query parameter in magnet URI is not decoded.
  1770. * src/magnet.cc
  1771. * test/MagnetTest.cc
  1772. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1773. Specified defaultSize as an argument for easy testing.
  1774. * src/util.cc
  1775. * src/util.h
  1776. * test/UtilTest.cc
  1777. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1778. Release 1.7.1
  1779. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1780. Bump up version number to 1.7.1
  1781. * configure.ac
  1782. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1783. Fixed the bug --bt-prioritize-piece=tail is not working.
  1784. * src/util.cc
  1785. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Release 1.7.0
  1787. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1788. Updated po templates.
  1789. * po/aria2.pot
  1790. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1791. Updated help message for --bt-prioritize-piece. Some cosmetic
  1792. changes.
  1793. * doc/aria2c.1.txt
  1794. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1795. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1796. * src/usage_text.h
  1797. * src/util.cc
  1798. * test/UtilTest.cc
  1799. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Updated Russian, Ukrainian, German and French translations.
  1801. Thanks to all translators involved.
  1802. * po/de.po
  1803. * po/fr.po
  1804. * po/ru.po
  1805. * po/uk.po
  1806. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Mentioned about pkg-config
  1808. * README
  1809. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Fixed typo. Referred --index-out option in BitTorrent notes.
  1811. * README
  1812. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1813. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1814. bind, try all addresses until success
  1815. * src/SocketCore.cc
  1816. * src/SocketCore.h
  1817. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Updated po templates.
  1819. * po/aria2.pot
  1820. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1821. Bump up version number to 1.7.0
  1822. * configure.ac
  1823. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1824. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1825. * src/DefaultPieceStorage.cc
  1826. * src/DefaultPieceStorage.h
  1827. * src/PieceStorage.h
  1828. * src/UnknownLengthPieceStorage.cc
  1829. * src/UnknownLengthPieceStorage.h
  1830. * test/MockPieceStorage.h
  1831. * test/ProtocolDetectorTest.cc
  1832. * test/XmlRpcMethodTest.cc
  1833. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1834. Documented in man page that if getifaddrs() is missing,
  1835. --interface option doesn't accept interface name.
  1836. * doc/aria2c.1.txt
  1837. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1838. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1839. * src/DefaultBtAnnounce.cc
  1840. * src/DefaultBtAnnounce.h
  1841. * test/DefaultBtAnnounceTest.cc
  1842. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1843. Fixed the bug that connection is always dropped if handshake
  1844. message in extension protocol don't have metadata_size.
  1845. src/HandshakeExtensionMessage.cc
  1846. * src/HandshakeExtensionMessage.cc
  1847. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1849. text saying DHT is recommended when Magnet URI is provided.
  1850. * doc/aria2c.1.txt
  1851. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1852. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1853. URI is supplied. Notify user that they should consider enabling
  1854. DHT if they use Magnet URI.
  1855. * src/RequestGroup.cc
  1856. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1857. Added --disable-ipv6 option to disable IPv6.
  1858. * doc/aria2c.1.txt
  1859. * src/InitiateConnectionCommand.cc
  1860. * src/NameResolver.cc
  1861. * src/NameResolver.h
  1862. * src/OptionHandlerFactory.cc
  1863. * src/main.cc
  1864. * src/prefs.cc
  1865. * src/prefs.h
  1866. * src/usage_text.h
  1867. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1868. Updated usage text for --bt-prioritize-piece option.
  1869. * doc/aria2c.1.txt
  1870. * src/usage_text.h
  1871. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1872. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1873. given and PACKAGE is missing in the system or FEATURE cannot be
  1874. enabled, print error message and stop the script.
  1875. * configure.ac
  1876. * m4/aria2_arg.m4
  1877. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1878. Halt metadata download immediately when metadata download is done.
  1879. Don't wait unresponsive tracker.
  1880. * src/ByteArrayDiskWriter.h
  1881. * src/DefaultBtInteractive.cc
  1882. * src/DefaultExtensionMessageFactory.cc
  1883. * src/DefaultExtensionMessageFactory.h
  1884. * src/PeerInteractionCommand.cc
  1885. * src/UTMetadataDataExtensionMessage.cc
  1886. * src/UTMetadataDataExtensionMessage.h
  1887. * src/UTMetadataRequestExtensionMessage.cc
  1888. * test/UTMetadataDataExtensionMessageTest.cc
  1889. * test/UTMetadataRequestExtensionMessageTest.cc
  1890. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1891. Documented --interface option in man page.
  1892. * doc/aria2c.1.txt
  1893. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Try resolved address in the order received from the resolver.
  1895. * src/DNSCache.h
  1896. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1897. Added debug logs.
  1898. * src/SocketCore.cc
  1899. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1900. Fixed type of tail to uint64_t
  1901. * src/util.cc
  1902. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1903. Added --interface option. This feature binds sockets to given
  1904. interface. You can specify interface name, IP address and
  1905. hostname.
  1906. * configure.ac
  1907. * src/OptionHandlerFactory.cc
  1908. * src/SocketCore.cc
  1909. * src/SocketCore.h
  1910. * src/main.cc
  1911. * src/message.h
  1912. * src/prefs.cc
  1913. * src/prefs.h
  1914. * src/usage_text.h
  1915. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1916. Updated man page for bt-prioritize-piece option in -i list.
  1917. * doc/aria2c.1.txt
  1918. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1919. Added bt-prioritize-piece option to -i list.
  1920. * src/download_helper.cc
  1921. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1922. Removed --http-auth-scheme option from man page.
  1923. * doc/aria2c.1.txt
  1924. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1925. Removed --http-auth-scheme option since it doesn't do nothing.
  1926. * src/OptionHandlerFactory.cc
  1927. * src/prefs.cc
  1928. * src/prefs.h
  1929. * src/usage_text.h
  1930. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1931. Adjusted the number of peer info which get_peers reply message can
  1932. carry.
  1933. * src/DHTGetPeersReplyMessage.cc
  1934. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1935. Added extension_message_test_helper.h to aria2c_SOURCES.
  1936. * test/Makefile.am
  1937. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1938. Documented --bt-prioritize-piece option in man page.
  1939. * doc/aria2c.1.txt
  1940. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1941. Added option --bt-prioritize-piece. This option instruct aria2 to
  1942. try to download first and last pieces of each file first. The
  1943. argument can contain 2 keywords:head and tail. To include both
  1944. keywords, they must be separated by comma. These keywords can take
  1945. one parameter, SIZE. For example , if head=SIZE is specified,
  1946. pieces in the range of first SIZE bytes of each file get higher
  1947. priority. tail=SIZE means the range of last SIZE bytes of each
  1948. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1949. * src/DefaultPieceStorage.h
  1950. * src/Makefile.am
  1951. * src/OptionHandlerFactory.cc
  1952. * src/OptionHandlerImpl.h
  1953. * src/PriorityPieceSelector.cc
  1954. * src/PriorityPieceSelector.h
  1955. * src/RequestGroup.cc
  1956. * src/prefs.cc
  1957. * src/prefs.h
  1958. * src/usage_text.h
  1959. * src/util.cc
  1960. * src/util.h
  1961. * test/Makefile.am
  1962. * test/MockPieceSelector.h
  1963. * test/PriorityPieceSelectorTest.cc
  1964. * test/UtilTest.cc
  1965. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1966. Fixed typo
  1967. * src/HttpRequest.h
  1968. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1969. In Magnet URI with tr parameter, put each announce URI in separate
  1970. tier.
  1971. * src/bittorrent_helper.cc
  1972. * test/BittorrentHelperTest.cc
  1973. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1974. Renamed ExtensionMessage::getBencodedData() as
  1975. ExtensionMessage::getPayload()
  1976. * src/BtExtendedMessage.cc
  1977. * src/ExtensionMessage.h
  1978. * src/HandshakeExtensionMessage.cc
  1979. * src/HandshakeExtensionMessage.h
  1980. * src/UTMetadataDataExtensionMessage.cc
  1981. * src/UTMetadataDataExtensionMessage.h
  1982. * src/UTMetadataRejectExtensionMessage.cc
  1983. * src/UTMetadataRejectExtensionMessage.h
  1984. * src/UTMetadataRequestExtensionMessage.cc
  1985. * src/UTMetadataRequestExtensionMessage.h
  1986. * src/UTPexExtensionMessage.cc
  1987. * src/UTPexExtensionMessage.h
  1988. * test/HandshakeExtensionMessageTest.cc
  1989. * test/MockExtensionMessage.h
  1990. * test/UTMetadataDataExtensionMessageTest.cc
  1991. * test/UTMetadataRejectExtensionMessageTest.cc
  1992. * test/UTMetadataRequestExtensionMessageTest.cc
  1993. * test/UTPexExtensionMessageTest.cc
  1994. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Updated man page for BitTorrent Magnet URI.
  1996. * doc/aria2c.1.txt
  1997. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Call DownloadContext::setOwnerRequestGroup() in
  1999. RequestGroup::setDownloadContext().
  2000. * src/BtDependency.cc
  2001. * src/RequestGroup.cc
  2002. * src/RequestGroup.h
  2003. * src/download_helper.cc
  2004. * test/DefaultBtMessageDispatcherTest.cc
  2005. * test/DefaultExtensionMessageFactoryTest.cc
  2006. * test/HandshakeExtensionMessageTest.cc
  2007. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2008. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  2009. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  2010. from metadata, use new metadata2Torrent() function.
  2011. * src/BtDependency.cc
  2012. * src/UTMetadataPostDownloadHandler.cc
  2013. * src/bittorrent_helper.cc
  2014. * src/bittorrent_helper.h
  2015. * test/BittorrentHelperTest.cc
  2016. * test/BtDependencyTest.cc
  2017. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2018. Use createRequestGroupForUri to create the download for torrent
  2019. file.
  2020. * src/Metalink2RequestGroup.cc
  2021. * test/Metalink2RequestGroupTest.cc
  2022. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Fixed typo
  2024. * src/DownloadContext.h
  2025. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Use createRequestGroupForBitTorrent()
  2027. * src/BtPostDownloadHandler.cc
  2028. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2029. Added remove().
  2030. * src/Option.cc
  2031. * src/Option.h
  2032. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Removed options which is only valid for URIs specified in
  2034. command-line. If they are left, because op is used as a template
  2035. for new RequestGroup(such as created in XML-RPC command,
  2036. BtPostDownloadHandler etc), they causes unintentional effect.
  2037. * src/main.cc
  2038. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2039. Refer to option value of PREF_OUT only in download_helper.
  2040. * src/FtpNegotiationCommand.cc
  2041. * src/HttpResponseCommand.cc
  2042. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2043. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  2044. * src/download_helper.cc
  2045. * src/download_helper.h
  2046. * src/XmlRpcMethodImpl.cc
  2047. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. Updated man page for changeOption XML-RPC method.
  2049. * doc/aria2c.1.txt
  2050. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2051. Added --bt-max-peers option to changeOption XML-RPC method.
  2052. * src/XmlRpcMethod.cc
  2053. * src/XmlRpcMethodImpl.cc
  2054. * test/XmlRpcMethodTest.cc
  2055. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2056. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  2057. * test/XmlRpcMethodTest.cc
  2058. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2059. Removed redundant DownloadContext::hasAttribute(...) calls.
  2060. * src/ConsoleStatCalc.cc
  2061. * src/RequestGroup.cc
  2062. * src/XmlRpcMethodImpl.cc
  2063. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. Changed the number of tracker request attempt from 5 to 2.
  2065. * src/TrackerWatcherCommand.cc
  2066. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. Use host and protocol in original URI, because URI selector
  2068. selects URI based on original URI, not redirected one.
  2069. * src/Request.cc
  2070. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2071. Fixed the bug which causes segmentation fault with tellWaiting
  2072. XML-RPC method when BitTorrent download is waiting. The key of
  2073. BtRegistry is changed from info hash to GID, because it is
  2074. registered per RequestGroup, not info hash.
  2075. * src/BtRegistry.cc
  2076. * src/BtRegistry.h
  2077. * src/BtSetup.cc
  2078. * src/ConsoleStatCalc.cc
  2079. * src/InitiatorMSEHandshakeCommand.cc
  2080. * src/PeerInitiateConnectionCommand.cc
  2081. * src/PeerInteractionCommand.cc
  2082. * src/PeerInteractionCommand.h
  2083. * src/PeerReceiveHandshakeCommand.cc
  2084. * src/RequestGroup.cc
  2085. * src/XmlRpcMethodImpl.cc
  2086. * test/BtRegistryTest.cc
  2087. * test/XmlRpcMethodTest.cc
  2088. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Updated man page for changeOption XML-RPC method.
  2090. * doc/aria2c.1.txt
  2091. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  2093. method.
  2094. * src/XmlRpcMethod.cc
  2095. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2096. Documented about BitTorrent Magnet URI in man page.
  2097. * doc/aria2c.1.txt
  2098. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. Fixed the bug that trackers in BitTorrent Magnet URI are not
  2100. inherited to generated RequestGroup.
  2101. * src/UTMetadataPostDownloadHandler.cc
  2102. * test/UTMetadataPostDownloadHandlerTest.cc
  2103. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2104. Prepended "[METADATA]" before dn.
  2105. * src/bittorrent_helper.cc
  2106. * test/BittorrentHelperTest.cc
  2107. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2108. Rewritten Magnet URI parser.
  2109. * src/Makefile.am
  2110. * src/ProtocolDetector.cc
  2111. * src/bittorrent_helper.cc
  2112. * src/bittorrent_helper.h
  2113. * src/download_helper.cc
  2114. * src/magnet.cc
  2115. * src/magnet.h
  2116. * test/BittorrentHelperTest.cc
  2117. * test/MagnetTest.cc
  2118. * test/Makefile.am
  2119. * test/ProtocolDetectorTest.cc
  2120. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2121. Use hton64
  2122. * src/base32.cc
  2123. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2124. Added Base32 encoded BitTorrent Magnet Link support.
  2125. * src/Makefile.am
  2126. * src/base32.cc
  2127. * src/base32.h
  2128. * src/bittorrent_helper.cc
  2129. * test/Base32Test.cc
  2130. * test/BittorrentHelperTest.cc
  2131. * test/Makefile.am
  2132. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2133. Added BitTorrent Magnet Link support. Base32 encoded link is not
  2134. supported yet. Fixed typo in method name in RequestGroup. In
  2135. metadataGetMode, don't show "Your share ratio was ..." message.
  2136. * src/DefaultBtInteractive.cc
  2137. * src/DefaultBtInteractive.h
  2138. * src/DownloadHandlerFactory.cc
  2139. * src/DownloadHandlerFactory.h
  2140. * src/HandshakeExtensionMessage.cc
  2141. * src/Makefile.am
  2142. * src/Metalink2RequestGroup.cc
  2143. * src/PeerInteractionCommand.cc
  2144. * src/RequestGroup.cc
  2145. * src/RequestGroup.h
  2146. * src/UTMetadataPostDownloadHandler.cc
  2147. * src/UTMetadataPostDownloadHandler.h
  2148. * src/download_helper.cc
  2149. * test/HandshakeExtensionMessageTest.cc
  2150. * test/Makefile.am
  2151. * test/UTMetadataPostDownloadHandlerTest.cc
  2152. * test/UTMetadataRejectExtensionMessageTest.cc
  2153. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. In metadataGetMode, don't show SEEDING.
  2155. * src/ConsoleStatCalc.cc
  2156. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2157. Fixed ut_metadata data handling. Implemented
  2158. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  2159. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  2160. metadata_size is received.
  2161. * src/DefaultExtensionMessageFactory.cc
  2162. * src/DefaultExtensionMessageFactory.h
  2163. * src/HandshakeExtensionMessage.cc
  2164. * src/HandshakeExtensionMessage.h
  2165. * src/UTMetadataDataExtensionMessage.cc
  2166. * src/UTMetadataDataExtensionMessage.h
  2167. * src/UTMetadataRequestExtensionMessage.cc
  2168. * src/UTMetadataRequestFactory.cc
  2169. * src/UTMetadataRequestFactory.h
  2170. * src/UTMetadataRequestTracker.cc
  2171. * src/UTMetadataRequestTracker.h
  2172. * test/DefaultExtensionMessageFactoryTest.cc
  2173. * test/HandshakeExtensionMessageTest.cc
  2174. * test/MockBtMessage.h
  2175. * test/UTMetadataDataExtensionMessageTest.cc
  2176. * test/UTMetadataRequestExtensionMessageTest.cc
  2177. * test/UTMetadataRequestFactoryTest.cc
  2178. * test/UTMetadataRequestTrackerTest.cc
  2179. * test/extension_message_test_helper.h
  2180. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Drop connection if ut_metadata reject message is received.
  2182. * src/UTMetadataRejectExtensionMessage.cc
  2183. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  2185. get high enough in that mode.
  2186. * src/ActivePeerConnectionCommand.cc
  2187. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2188. Added BitTorrent magnet link support to ProtocolDetector.
  2189. * src/ProtocolDetector.cc
  2190. * src/ProtocolDetector.h
  2191. * test/ProtocolDetectorTest.cc
  2192. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2193. Don't inject validator into BtMessage in metadataGetMode because
  2194. most of the checks depends on the total length of download but it
  2195. is unknown. Delegate metadataGetMode to BtMessage.
  2196. * src/DefaultBtMessageFactory.cc
  2197. * src/DefaultBtMessageFactory.h
  2198. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  2200. * src/DefaultPieceStorage.h
  2201. * src/PieceStorage.h
  2202. * src/UnknownLengthPieceStorage.h
  2203. * test/MockPieceStorage.h
  2204. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2205. Added markTotalLengthIsKnown().
  2206. * src/DownloadContext.h
  2207. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  2209. missing. If metadata is missing, always use DHT when it is ready.
  2210. * src/BtSetup.cc
  2211. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Added parseMagnetLink(). Hex encoded info hash is supported.
  2213. Base32 encoded info hash is not supported yet.
  2214. * src/bittorrent_helper.cc
  2215. * src/bittorrent_helper.h
  2216. * test/BittorrentHelperTest.cc
  2217. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Added FromHex()
  2219. * src/util.cc
  2220. * src/util.h
  2221. * test/UtilTest.cc
  2222. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2223. Added _metadataGetMode member variable. It toggles the action when
  2224. messages are received: usually they almost do nothing if
  2225. _metadataGetMode is true.
  2226. * src/AbstractBtMessage.cc
  2227. * src/AbstractBtMessage.h
  2228. * src/BtAllowedFastMessage.cc
  2229. * src/BtBitfieldMessage.cc
  2230. * src/BtCancelMessage.cc
  2231. * src/BtChokeMessage.cc
  2232. * src/BtHaveAllMessage.cc
  2233. * src/BtHaveMessage.cc
  2234. * src/BtInterestedMessage.cc
  2235. * src/BtNotInterestedMessage.cc
  2236. * src/BtPieceMessage.cc
  2237. * src/BtRejectMessage.cc
  2238. * src/BtRequestMessage.cc
  2239. * src/BtUnchokeMessage.cc
  2240. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Added bencode::decode overload functions. They have extra argument
  2242. 'end', passed by reference. 'end' points to the beyond the last
  2243. position of data used in decoding process.
  2244. * src/bencode.cc
  2245. * src/bencode.h
  2246. * test/BencodeTest.cc
  2247. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Initial support of Extension for Peers to Send Metadata
  2249. Files(BEP9). Currently aria2 only serves metadata and cannot get
  2250. metadata from swarm.
  2251. * src/BtConstants.h
  2252. * src/DefaultBtInteractive.cc
  2253. * src/DefaultExtensionMessageFactory.cc
  2254. * src/DefaultExtensionMessageFactory.h
  2255. * src/ExtensionMessage.h
  2256. * src/ExtensionMessageRegistry.h
  2257. * src/HandshakeExtensionMessage.cc
  2258. * src/HandshakeExtensionMessage.h
  2259. * src/Makefile.am
  2260. * src/PeerConnection.h
  2261. * src/PeerInteractionCommand.cc
  2262. * src/UTMetadataDataExtensionMessage.cc
  2263. * src/UTMetadataDataExtensionMessage.h
  2264. * src/UTMetadataExtensionMessage.cc
  2265. * src/UTMetadataExtensionMessage.h
  2266. * src/UTMetadataRejectExtensionMessage.cc
  2267. * src/UTMetadataRejectExtensionMessage.h
  2268. * src/UTMetadataRequestExtensionMessage.cc
  2269. * src/UTMetadataRequestExtensionMessage.h
  2270. * src/bittorrent_helper.cc
  2271. * src/bittorrent_helper.h
  2272. * test/BittorrentHelperTest.cc
  2273. * test/DefaultExtensionMessageFactoryTest.cc
  2274. * test/HandshakeExtensionMessageTest.cc
  2275. * test/Makefile.am
  2276. * test/UTMetadataDataExtensionMessageTest.cc
  2277. * test/UTMetadataRejectExtensionMessageTest.cc
  2278. * test/UTMetadataRequestExtensionMessageTest.cc
  2279. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Cancel segment in prepareForRetry() because there is a chance that
  2281. the command has segments.
  2282. * src/CreateRequestCommand.cc
  2283. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2284. Fixed the bug that slow server is not knocked down in favor of
  2285. faster one.
  2286. * src/AbstractCommand.cc
  2287. * src/DefaultPieceStorage.cc
  2288. * src/DefaultPieceStorage.h
  2289. * src/PieceStorage.h
  2290. * src/UnknownLengthPieceStorage.cc
  2291. * src/UnknownLengthPieceStorage.h
  2292. * test/MockPieceStorage.h
  2293. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2294. Fixed the bug that Request object is not added to
  2295. _inFlightRequests in findFasterRequest().
  2296. * src/FileEntry.cc
  2297. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Changed the strategry of how to increase the number of outstanding
  2299. requests. Now the number is doubled if there are no outstanding
  2300. requests after receiving messages.
  2301. * src/BtConstants.h
  2302. * src/DefaultBtInteractive.cc
  2303. * src/DefaultBtInteractive.h
  2304. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2305. Check socket for reading if there are outstanding requests.
  2306. * src/PeerInteractionCommand.cc
  2307. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Moved frequently called methods to header file so they get
  2309. inlined.
  2310. * src/RequestSlot.cc
  2311. * src/RequestSlot.h
  2312. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2313. Copied in_addr instead of just casting from char* which might
  2314. violate strict aliasing rules.
  2315. * src/AsyncNameResolver.cc
  2316. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. Use dynamic_pointer_cast
  2318. * test/BtPieceMessageTest.cc
  2319. * test/BtRequestMessageTest.cc
  2320. * test/DefaultBtRequestFactoryTest.cc
  2321. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2322. Added testSetUrl20()
  2323. * test/RequestTest.cc
  2324. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2325. Code cleanup
  2326. * src/bittorrent_helper.cc
  2327. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2328. Use C++ style cast
  2329. * src/AsyncNameResolver.cc
  2330. * src/Base64.h
  2331. * src/BtBitfieldMessage.cc
  2332. * src/BtHandshakeMessage.cc
  2333. * src/DefaultBtMessageFactory.cc
  2334. * src/DefaultBtProgressInfoFile.cc
  2335. * src/EpollEventPoll.cc
  2336. * src/ExpatMetalinkProcessor.cc
  2337. * src/IteratableChecksumValidator.cc
  2338. * src/IteratableChunkChecksumValidator.cc
  2339. * src/MessageDigestHelper.cc
  2340. * src/Platform.cc
  2341. * src/RequestGroupMan.cc
  2342. * src/SingleFileAllocationIterator.cc
  2343. * src/Sqlite3MozCookieParser.cc
  2344. * src/XML2SAXMetalinkProcessor.cc
  2345. * src/Xml2XmlRpcRequestProcessor.cc
  2346. * src/util.cc
  2347. * src/util.h
  2348. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2349. Fixed integer potential alignment problem.
  2350. * src/bitfield.h
  2351. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2352. Applied a patch from tizianomueller to fix sigbus errors on Linux
  2353. sparc. I modified the patch to eliminate a cast to uint32_t* and
  2354. include file ordering.
  2355. * src/PeerListProcessor.h
  2356. * src/bittorrent_helper.cc
  2357. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2358. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  2359. * src/Request.cc
  2360. * src/util.cc
  2361. * src/util.h
  2362. * test/RequestTest.cc
  2363. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2364. Rewritten util::uitos()
  2365. * src/util.h
  2366. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2367. Code cleanup
  2368. * src/Request.cc
  2369. * src/Request.h
  2370. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2371. Rewritten Request::parseUrl()
  2372. * src/Request.cc
  2373. * test/RequestTest.cc
  2374. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Removed unused macro SAFE_CHARS
  2376. * src/Request.cc
  2377. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Updated doc
  2379. * src/DHTRoutingTableDeserializer.cc
  2380. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Release 1.6.3
  2382. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2383. Removed unused function.
  2384. * test/DHTPeerAnnounceStorageTest.cc
  2385. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2386. Only decrement cols if cols > 0
  2387. * src/ConsoleStatCalc.cc
  2388. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2389. Updated Polish, Catalan, French, Italian, Russian and Japanese
  2390. translations. Thanks to all translators.
  2391. * po/ca.po
  2392. * po/fr.po
  2393. * po/it.po
  2394. * po/ja.po
  2395. * po/pl.po
  2396. * po/ru.po
  2397. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2398. Updated translation template
  2399. * po
  2400. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2401. Fixed compile error without ssl library.
  2402. * src/util.cc
  2403. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2404. Logged received nodes in get_peers reply message.
  2405. * src/DHTAbstractNodeLookupTask.cc
  2406. * src/DHTAbstractNodeLookupTask.h
  2407. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  2409. error occurred in DHTMessageDispatcherImpl::sendMessage().
  2410. * src/DHTMessageDispatcherImpl.cc
  2411. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2412. Don't reuse URI if Request pool is not empty.
  2413. * src/CreateRequestCommand.cc
  2414. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2415. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  2416. receive get_peers request for torrent which the client is now
  2417. downloading.
  2418. * src/BtSetup.cc
  2419. * src/DHTPeerAnnounceEntry.cc
  2420. * src/DHTPeerAnnounceEntry.h
  2421. * src/DHTPeerAnnounceStorage.cc
  2422. * src/DHTPeerAnnounceStorage.h
  2423. * src/RequestGroup.cc
  2424. * test/DHTPeerAnnounceEntryTest.cc
  2425. * test/DHTPeerAnnounceStorageTest.cc
  2426. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2427. Fixed the bug that in Windows environment new blank line is
  2428. inserted when console readout is updated.
  2429. * src/ConsoleStatCalc.cc
  2430. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2431. Throw exception if binding listening port is failed. Removed
  2432. RequestGroupMan::getInitialCommand(). Use
  2433. fillRequestGroupFromReserver() instead. Delete commands for
  2434. RequestGroup which has errors when it is being added.
  2435. * src/BtSetup.cc
  2436. * src/DownloadEngine.cc
  2437. * src/DownloadEngine.h
  2438. * src/DownloadEngineFactory.cc
  2439. * src/MultiUrlRequestInfo.cc
  2440. * src/RequestGroupMan.cc
  2441. * src/RequestGroupMan.h
  2442. * test/RequestGroupManTest.cc
  2443. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Fixed the bug that when downloading more than one torrent,
  2445. listening port is not reported properly to tracker for 2nd or
  2446. later torrents.
  2447. * src/BtSetup.cc
  2448. * src/PeerListenCommand.cc
  2449. * src/PeerListenCommand.h
  2450. * src/RequestGroup.cc
  2451. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Bump up version number to 1.6.3
  2453. * configure.ac
  2454. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. Removed Util.cc from POTFILES.in
  2456. * po/POTFILES.in
  2457. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2458. Updated man page for previous change.
  2459. * doc/aria2c.1.txt
  2460. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2461. If user name is embedded but password is missing in URI, first
  2462. resolve password using .netrc. If password is found in .netrc,
  2463. then use it as password. If not, use the password specified in
  2464. --ftp-passwd.
  2465. * src/AuthConfigFactory.cc
  2466. * src/Request.cc
  2467. * src/Request.h
  2468. * test/AuthConfigFactoryTest.cc
  2469. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2470. Fixed typo
  2471. * doc/aria2c.1.txt
  2472. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. Fixed typo
  2474. * src/usage_text.h
  2475. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2476. Added missing bitfield.cc
  2477. * src/bitfield.cc
  2478. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2479. Renamed Util.{cc,h} as util.{cc,h}
  2480. * src/Util.cc
  2481. * src/Util.h
  2482. * src/util.cc
  2483. * src/util.h
  2484. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2485. Moved static functions in Util class to namespace util.
  2486. * src
  2487. * test
  2488. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2489. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2490. Moved generateRandomKey to bittorrent_helper.cc.
  2491. * src/DHTBucket.cc
  2492. * src/DHTGetPeersMessage.cc
  2493. * src/DHTGetPeersReplyMessage.cc
  2494. * src/DHTMessage.cc
  2495. * src/DHTNode.cc
  2496. * src/DHTTokenTracker.cc
  2497. * src/DHTUtil.cc: Removed.
  2498. * src/DHTUtil.h: Removed.
  2499. * src/Makefile.am
  2500. * src/Util.cc
  2501. * src/Util.h
  2502. * src/bitfield.h
  2503. * src/bittorrent_helper.cc
  2504. * src/bittorrent_helper.h
  2505. * test/ARC4Test.cc
  2506. * test/BNodeTest.cc
  2507. * test/DHTAnnouncePeerMessageTest.cc
  2508. * test/DHTAnnouncePeerReplyMessageTest.cc
  2509. * test/DHTFindNodeMessageTest.cc
  2510. * test/DHTFindNodeReplyMessageTest.cc
  2511. * test/DHTGetPeersMessageTest.cc
  2512. * test/DHTGetPeersReplyMessageTest.cc
  2513. * test/DHTPingMessageTest.cc
  2514. * test/DHTPingReplyMessageTest.cc
  2515. * test/DHTTokenTrackerTest.cc
  2516. * test/DHTUtilTest.cc: Removed.
  2517. * test/Makefile.am
  2518. * test/UtilTest.cc
  2519. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2520. Removed the call to trim() because trim() is called for each
  2521. element in split().
  2522. * src/CookieParser.cc
  2523. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2524. Replaced Util::slice() with split()
  2525. * src/AbstractCommand.cc
  2526. * src/CookieParser.cc
  2527. * src/File.cc
  2528. * src/HttpHeaderProcessor.cc
  2529. * src/HttpRequest.cc
  2530. * src/Metalink2RequestGroup.cc
  2531. * src/MetalinkParserController.cc
  2532. * src/Netrc.cc
  2533. * src/NsCookieParser.cc
  2534. * src/ParameterizedStringParser.cc
  2535. * src/ServerStatMan.cc
  2536. * src/UriListParser.cc
  2537. * src/Util.cc
  2538. * src/Util.h
  2539. * src/bittorrent_helper.cc
  2540. * test/UtilTest.cc
  2541. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Use request->getDir() instead of "/" for embedded user/pass in
  2543. URI.
  2544. * src/AuthConfigFactory.cc
  2545. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2546. Fixed wrong insertion point for BasicCred.
  2547. * src/AuthConfigFactory.cc
  2548. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2549. Allowed non-regular file in LocalFilePathOptionHandler
  2550. * src/OptionHandlerImpl.h
  2551. * src/message.h
  2552. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2553. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2554. * src/Netrc.cc
  2555. * src/Util.h
  2556. * test/NetrcTest.cc
  2557. * test/sample.netrc
  2558. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Fixed typo
  2560. * src/BtDependency.cc
  2561. * src/BtRejectMessage.cc
  2562. * src/FtpConnection.cc
  2563. * src/HttpHeaderProcessor.h
  2564. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2565. Fixed lintian report in man page
  2566. * doc/aria2c.1.txt
  2567. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2568. Release 1.6.2
  2569. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2570. Updated Ukrainian translation. Thanks to all translators.
  2571. * po/uk.po
  2572. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2573. Updated translation template
  2574. * po
  2575. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2576. Bump up version number to 1.6.2
  2577. * configure.ac
  2578. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2579. Updated licence message in -v output.
  2580. * src/version_usage.cc
  2581. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2582. Replaced aria2 with aria2c in help message.
  2583. * src/version_usage.cc
  2584. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2585. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2586. * src/version_usage.cc
  2587. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Quoted localedir
  2589. * src/Makefile.am
  2590. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2592. utime. Check header for utime.h.
  2593. * configure.ac
  2594. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2596. * configure.ac
  2597. * src/daemon.cc
  2598. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Don't set localedir manually. Leave it to autoconf.
  2600. * configure.ac
  2601. * src/Makefile.am
  2602. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. Added --install to ACLOCAL_AMFLAGS.
  2604. Removed m4 from SUBDIRS.
  2605. Updated automake 1.11 and autoconf 2.64.
  2606. Replaced some obsolute macros with new one.
  2607. * Makefile.am
  2608. * configure.ac
  2609. * m4/aria2_arg.m4
  2610. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2611. Removed Makefile.am in m4 directory.
  2612. * configure.ac
  2613. * m4/ChangeLog
  2614. * m4/Makefile.am
  2615. * m4/Makefile.in
  2616. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. Removed unused m4 macros.
  2618. * m4/intldir.m4
  2619. * m4/inttypes.m4
  2620. * m4/isc-posix.m4
  2621. * m4/libgnutls-extra.m4
  2622. * m4/ulonglong.m4
  2623. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2624. Fixed the bug that causes segmentation fault if
  2625. req->getCurrentUrl() contains printf formatting characters such as
  2626. %d. The statement that causes this bug is useless and removed.
  2627. * src/AbstractCommand.cc
  2628. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. * Release 1.6.1
  2630. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2631. Updated Simplified Chinese translation. Thanks to translators.
  2632. * po/zh_CN.po
  2633. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2634. Updated translation template
  2635. * po
  2636. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. Bump up version number to 1.6.1
  2638. * configure.ac
  2639. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2640. Changed interval from 120 to 60 for dropping inactive peer.
  2641. * src/DefaultBtInteractive.cc
  2642. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2643. Updated man page for --user-agent and --peer-id-prefix option.
  2644. * doc/aria2c.1.txt
  2645. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Code clean up
  2647. * src/BtPostDownloadHandler.cc
  2648. * src/ContentTypeRequestGroupCriteria.cc
  2649. * src/ContentTypeRequestGroupCriteria.h
  2650. * src/DownloadHandlerConstants.cc
  2651. * src/DownloadHandlerConstants.h
  2652. * src/DownloadHandlerFactory.cc
  2653. * src/MetalinkPostDownloadHandler.cc
  2654. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Don't save control file when aria2 exists while checking piece
  2656. hash(behavior of -V option). If control file doesn't exist when
  2657. aria2 launched, the completed length in saved control file will be
  2658. 0 byte and this confuses user. disableSaveControlFile() is called
  2659. in RequestGroup::processCheckIntegrityEntry().
  2660. enableSaveControlFile() will be called after hash checking is
  2661. done. See CheckIntegrityCommand.
  2662. * src/CheckIntegrityCommand.cc
  2663. * src/RequestGroup.cc
  2664. * src/RequestGroup.h
  2665. * src/RequestGroupMan.cc
  2666. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2667. Included version number in Peer ID and client version. Peer ID
  2668. now starts with "aria2/VERSION-", where VERSION is
  2669. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2670. * src/DefaultBtInteractive.cc
  2671. * src/OptionHandlerFactory.cc
  2672. * src/bittorrent_helper.cc
  2673. * src/bittorrent_helper.h
  2674. * src/main.cc
  2675. * src/usage_text.h
  2676. * test/BittorrentHelperTest.cc
  2677. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2678. Fixed memory leak.
  2679. * src/DownloadCommand.cc
  2680. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2681. Removed server, port, user and passwd key from options before
  2682. XMLRPC::Client.call since they are not options of aria2.
  2683. * doc/xmlrpc/aria2mon
  2684. * doc/xmlrpc/aria2rpc
  2685. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2686. Included version number in user-agent string.
  2687. * src/OptionHandlerFactory.cc
  2688. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. Fixed the bug that the option values changed by XML-RPC
  2690. method(changeOption and changeGlobalOption) are overwritten to the
  2691. previous value by the next these request which doesn't contain
  2692. that option value. Supporse max-download-limit is initially 0. You
  2693. changed this value to 100K by changeOption. Then you issue
  2694. changeOption request to change max-upload-limit to 50K. This
  2695. second request doesn't contain xml-download-limit, so it is back
  2696. to initial value, 0. Another improvement is that exception is
  2697. thrown when changeOption and changeGlobalOption request contains
  2698. option name which doesn't allowed in each request.
  2699. * src/DownloadEngine.h
  2700. * src/XmlRpcMethod.cc
  2701. * src/XmlRpcMethod.h
  2702. * src/XmlRpcMethodImpl.cc
  2703. * src/download_helper.cc
  2704. * src/download_helper.h
  2705. * test/XmlRpcMethodTest.cc
  2706. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2707. Added missing MetalinkParserStateImpl.{cc,h}
  2708. * src/MetalinkParserStateImpl.cc
  2709. * src/MetalinkParserStateImpl.h
  2710. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2711. Put all MetalinkParserState subclasses into
  2712. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2713. * src/FileMetalinkParserState.cc: Removed
  2714. * src/FileMetalinkParserState.h: Removed
  2715. * src/FilesMetalinkParserState.cc: Removed
  2716. * src/FilesMetalinkParserState.h: Removed
  2717. * src/FinMetalinkParserState.cc: Removed
  2718. * src/FinMetalinkParserState.h: Removed
  2719. * src/HashMetalinkParserState.cc: Removed
  2720. * src/HashMetalinkParserState.h: Removed
  2721. * src/InitialMetalinkParserState.cc: Removed
  2722. * src/InitialMetalinkParserState.h: Removed
  2723. * src/LanguageMetalinkParserState.cc: Removed
  2724. * src/LanguageMetalinkParserState.h: Removed
  2725. * src/Makefile.am
  2726. * src/MetalinkMetalinkParserState.cc: Removed
  2727. * src/MetalinkMetalinkParserState.h: Removed
  2728. * src/MetalinkParserState.h
  2729. * src/MetalinkParserStateMachine.cc
  2730. * src/MetalinkParserStateMachine.h
  2731. * src/OSMetalinkParserState.cc: Removed
  2732. * src/OSMetalinkParserState.h: Removed
  2733. * src/PieceHashMetalinkParserState.cc: Removed
  2734. * src/PieceHashMetalinkParserState.h: Removed
  2735. * src/PiecesMetalinkParserState.cc: Removed
  2736. * src/PiecesMetalinkParserState.h: Removed
  2737. * src/ResourcesMetalinkParserState.cc: Removed
  2738. * src/ResourcesMetalinkParserState.h: Removed
  2739. * src/SignatureMetalinkParserState.cc: Removed
  2740. * src/SignatureMetalinkParserState.h: Removed
  2741. * src/SizeMetalinkParserState.cc: Removed
  2742. * src/SizeMetalinkParserState.h: Removed
  2743. * src/SkipTagMetalinkParserState.cc: Removed
  2744. * src/SkipTagMetalinkParserState.h: Removed
  2745. * src/URLMetalinkParserState.cc: Removed
  2746. * src/URLMetalinkParserState.h: Removed
  2747. * src/VerificationMetalinkParserState.cc: Removed
  2748. * src/VerificationMetalinkParserState.h: Removed
  2749. * src/VersionMetalinkParserState.cc: Removed
  2750. * src/VersionMetalinkParserState.h: Removed
  2751. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Move all functions in PeerMessageUtil to bittorrent_helper.
  2753. * src/BtBitfieldMessage.cc
  2754. * src/BtBitfieldMessageValidator.h
  2755. * src/BtExtendedMessage.cc
  2756. * src/BtHandshakeMessage.cc
  2757. * src/BtHandshakeMessageValidator.h
  2758. * src/BtPieceMessage.cc
  2759. * src/BtPieceMessageValidator.h
  2760. * src/BtPortMessage.cc
  2761. * src/DHTFindNodeReplyMessage.cc
  2762. * src/DHTGetPeersReplyMessage.cc
  2763. * src/DHTMessageFactoryImpl.cc
  2764. * src/DHTRoutingTableDeserializer.cc
  2765. * src/DHTRoutingTableSerializer.cc
  2766. * src/DHTTokenTracker.cc
  2767. * src/DefaultBtMessageFactory.cc
  2768. * src/IndexBtMessage.cc
  2769. * src/IndexBtMessage.h
  2770. * src/IndexBtMessageValidator.h
  2771. * src/Makefile.am
  2772. * src/PeerMessageUtil.cc: Removed.
  2773. * src/PeerMessageUtil.h: Removed.
  2774. * src/RangeBtMessage.cc
  2775. * src/RangeBtMessage.h
  2776. * src/RangeBtMessageValidator.h
  2777. * src/UTPexExtensionMessage.cc
  2778. * src/ZeroBtMessage.cc
  2779. * src/ZeroBtMessage.h
  2780. * src/bittorrent_helper.cc
  2781. * src/bittorrent_helper.h
  2782. * test/BittorrentHelperTest.cc
  2783. * test/BtAllowedFastMessageTest.cc
  2784. * test/BtBitfieldMessageTest.cc
  2785. * test/BtCancelMessageTest.cc
  2786. * test/BtChokeMessageTest.cc
  2787. * test/BtExtendedMessageTest.cc
  2788. * test/BtHandshakeMessageTest.cc
  2789. * test/BtHaveAllMessageTest.cc
  2790. * test/BtHaveMessageTest.cc
  2791. * test/BtHaveNoneMessageTest.cc
  2792. * test/BtInterestedMessageTest.cc
  2793. * test/BtNotInterestedMessageTest.cc
  2794. * test/BtPieceMessageTest.cc
  2795. * test/BtPortMessageTest.cc
  2796. * test/BtRejectMessageTest.cc
  2797. * test/BtRequestMessageTest.cc
  2798. * test/BtSuggestPieceMessageTest.cc
  2799. * test/BtUnchokeMessageTest.cc
  2800. * test/DHTFindNodeReplyMessageTest.cc
  2801. * test/DHTGetPeersReplyMessageTest.cc
  2802. * test/DHTMessageFactoryImplTest.cc
  2803. * test/DHTRoutingTableDeserializerTest.cc
  2804. * test/DHTRoutingTableSerializerTest.cc
  2805. * test/DefaultBtMessageFactoryTest.cc
  2806. * test/DefaultExtensionMessageFactoryTest.cc
  2807. * test/Makefile.am
  2808. * test/PeerListProcessorTest.cc
  2809. * test/PeerMessageUtilTest.cc: Removed.
  2810. * test/UTPexExtensionMessageTest.cc
  2811. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. Limit the size of values list when sending get_peers reply.
  2813. * src/DHTGetPeersReplyMessage.cc
  2814. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2815. Updated banner
  2816. * doc/xmlrpc/aria2rpc
  2817. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2818. Added missing help message for remove command.
  2819. * doc/xmlrpc/aria2rpc
  2820. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2821. Generated configure and config.h.in
  2822. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2823. Add check for fork(), which is missing on MinGW
  2824. * src/daemon.cc
  2825. * configure.ac
  2826. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2828. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2829. Util::httpGMT().
  2830. * src/Util.cc
  2831. * src/Util.h
  2832. * test/UtilTest.cc
  2833. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. * Release 1.6.0
  2835. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2836. Fixed a path to xmlrpc/README.txt
  2837. * doc/Makefile.am
  2838. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Added XML-RPC in -v Configuration output.
  2840. * src/FeatureConfig.cc
  2841. * src/FeatureConfig.h
  2842. * test/FeatureConfigTest.cc
  2843. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2844. Updated Bulgarian, Russian, Slovak and Japanese
  2845. translations. Thanks to all translators.
  2846. * po/bg.po
  2847. * po/ja.po
  2848. * po/ru.po
  2849. * po/sk.po
  2850. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2851. Removed --retry-wait option from aria2rpc
  2852. * doc/xmlrpc/aria2rpc
  2853. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2854. Removed --retry-wait option from man page.
  2855. * doc/aria2c.1.txt
  2856. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2857. Removed --retry-wait option since the current architecture doesn't
  2858. allow sleep for particular URI.
  2859. * src/AbstractCommand.cc
  2860. * src/OptionHandlerFactory.cc
  2861. * src/download_helper.cc
  2862. * src/prefs.cc
  2863. * src/prefs.h
  2864. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2865. Removed Retry-After header support. Since the current architecture
  2866. doesn't allow sleep for particular URI.
  2867. * src/HttpSkipResponseCommand.cc
  2868. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Updated the help message for --daemon option.
  2870. * doc/aria2c.1.txt
  2871. * src/usage_text.h
  2872. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Added our own daemon() function for systems which desn't have
  2874. daemon(3).
  2875. * configure.ac
  2876. * src/Makefile.am
  2877. * src/daemon.cc
  2878. * src/daemon.h
  2879. * src/option_processing.cc
  2880. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2881. Simplified File::getCurrentDir()
  2882. * src/File.cc
  2883. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2884. Use exit() instead of _exit
  2885. * src/RequestGroupMan.cc
  2886. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2887. Replaced "CATEGORY" with "TAGS".
  2888. * src/usage_text.h
  2889. * doc/aria2c.1.txt
  2890. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2891. Updated the help message for --help option.
  2892. * src/usage_text.h
  2893. * doc/aria2c.1.txt
  2894. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2895. Updated man page for added help tags.
  2896. * doc/aria2c.1.txt
  2897. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2898. Added help category #file. Added #file tag to the options related
  2899. to downloaded file.
  2900. * src/OptionHandlerFactory.cc
  2901. * src/help_tags.h
  2902. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Added help categories: #cookie and #hook. Added #https tag to
  2904. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2905. * src/OptionHandlerFactory.cc
  2906. * src/help_tags.h
  2907. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2908. Made MSG_NOT_FILE translatable.
  2909. * src/message.h
  2910. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Updated man page for --help option.
  2912. * doc/aria2c.1.txt
  2913. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2914. Updated doc.
  2915. * src/XmlRpcMethod.h
  2916. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2917. Help category now starts with "#" to distinguish a category from
  2918. keyword search. For example, "http" categroy is now "#http". You
  2919. can type "--help=#http" to get explanation of options related to
  2920. http. If '#' is omitted, then the argument is treated as a keyword
  2921. and aria2 searches options whose name includes the keyword and
  2922. print matched ones. For example, "--help=http" will show options
  2923. whose name includes "http".
  2924. * src/OptionHandlerFactory.cc
  2925. * src/help_tags.h
  2926. * src/usage_text.h
  2927. * src/version_usage.cc
  2928. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2929. Documented missing experimental tag and newly added xml-rpc tag in
  2930. man page.
  2931. * doc/aria2c.1.txt
  2932. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Added xml-rpc help tag. Tagged xml-rpc related options with
  2934. xml-rpc tag.
  2935. * src/OptionHandlerFactory.cc
  2936. * src/help_tags.h
  2937. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2938. Updated message when a path is not a file. Updated common message
  2939. for wrong option.
  2940. * src/OptionHandlerException.cc
  2941. * src/message.h
  2942. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2943. Use File::isFile() instead of File::exists(). Updated message when
  2944. a path is not a file.
  2945. * src/OptionHandlerImpl.cc
  2946. * src/message.h
  2947. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2948. Fixed the bug that server performence profile is not updated when
  2949. aria2c was terminated by emergency shutdown.
  2950. * src/TrackerWatcherCommand.cc
  2951. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2952. Use LocalFilePathOptionHandler for -T and -M option.
  2953. Updated message of MSG_FILE_NOT_EXIST.
  2954. * src/OptionHandlerFactory.cc
  2955. * src/message.h
  2956. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2957. Added LocalFilePathOptionHandler which check whether the specified
  2958. file path does exist or not.
  2959. * src/OptionHandlerImpl.cc
  2960. * src/message.h
  2961. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. Updated wiki page URI.
  2963. * README
  2964. * doc/aria2c.1.txt
  2965. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2966. Added README.txt for xmlrpc directory.
  2967. * doc/Makefile.am
  2968. * doc/xmlrpc/README.txt
  2969. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2970. Bump up version number to 1.6.0.
  2971. * configure.ac
  2972. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2973. Added XML-RPC client scripts written in ruby.
  2974. * doc/Makefile.am
  2975. * doc/xmlrpc/aria2mon
  2976. * doc/xmlrpc/aria2rpc
  2977. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2978. Added support for IPv6 literal address in URI. Now aria2 can
  2979. handle URI such as http://[::1]/
  2980. * src/HttpRequest.cc
  2981. * src/HttpRequest.h
  2982. * src/Request.cc
  2983. * src/Request.h
  2984. * test/HttpRequestTest.cc
  2985. * test/OptionHandlerTest.cc
  2986. * test/RequestTest.cc
  2987. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2988. Fixed the bug that HTTP request header for XML-RPC request is not
  2989. parsed properly.
  2990. * src/HttpHeader.cc
  2991. * src/HttpHeaderProcessor.cc
  2992. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2993. Fixed the bug that XML-RPC authorization might be done before HTTP
  2994. request header is fully received.
  2995. * src/HttpServerCommand.cc
  2996. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. Documented --xml-rpc-listen-all option in man page.
  2998. * doc/aria2c.1.txt
  2999. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3000. Added --xml-rpc-listen-all option. If true is given to this
  3001. option, aria2 listens incoming XML-RPC requests on all network
  3002. interfaces. If false is given, listens only on local loopback
  3003. interface. The default value is false.
  3004. * src/HttpListenCommand.cc
  3005. * src/OptionHandlerFactory.cc
  3006. * src/SocketCore.cc
  3007. * src/SocketCore.h
  3008. * src/prefs.cc
  3009. * src/prefs.h
  3010. * src/usage_text.h
  3011. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3012. * Release 1.5.2
  3013. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3014. Updated Ukrainian and Russian translations. Thanks to all
  3015. translators.
  3016. * po/ru.po
  3017. * po/uk.po
  3018. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3019. Bump up version number to 1.5.2
  3020. * configure.ac
  3021. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3022. Get comment, comment.utf-8, created by and creation date from
  3023. .torrent file and print them in -S output.
  3024. * src/bittorrent_helper.cc
  3025. * src/bittorrent_helper.h
  3026. * test/BittorrentHelperTest.cc
  3027. * test/test.torrent
  3028. * test/utf8.torrent
  3029. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. Show exact file size along in -S option output.
  3031. * src/Util.h
  3032. * src/bittorrent_helper.cc
  3033. * test/UtilTest.cc
  3034. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3035. Avoided unnecessary memory allocation in
  3036. BitfieldMan::getCompletedLength().
  3037. * src/BitfieldMan.cc
  3038. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3039. Fixed the bug that download fails if
  3040. SocketCore::establishConnection() throws exception and aria2
  3041. doesn't try another address.
  3042. * src/AbstractCommand.cc
  3043. * src/InitiateConnectionCommand.cc
  3044. * src/message.h
  3045. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3046. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  3047. detected properly.
  3048. * m4/sqlite3.m4
  3049. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3050. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  3051. because it causes compile error if PARAMS macro is defined.
  3052. * src/XmlRpcElements.cc
  3053. * src/XmlRpcElements.h
  3054. * src/XmlRpcRequestParserStateImpl.cc
  3055. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3056. * Release 1.5.1
  3057. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3058. Bump up version number to 1.5.1
  3059. * configure.ac
  3060. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3061. Fixed compile error without BitTorrent support
  3062. * src/DefaultBtProgressInfoFile.cc
  3063. * src/DownloadEngine.cc
  3064. * src/DownloadEngine.h
  3065. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Added missing '=' in Download Results
  3067. * src/RequestGroupMan.cc
  3068. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Fixed compiler warning
  3070. * src/DefaultBtProgressInfoFile.cc
  3071. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3072. Fixed compiler warning on 32bit systems.
  3073. * src/DownloadCommand.cc
  3074. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3075. Call flush from ServerStatMan::save()
  3076. * src/ServerStatMan.cc
  3077. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3078. Check stream status after file is opened.
  3079. * src/CookieStorage.cc
  3080. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. Rewritten Signature::save()
  3082. * src/Signature.cc
  3083. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Rewritten RequestGroupMan::saveServerStat()
  3085. * src/RequestGroupMan.cc
  3086. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3087. Rewritten stream error handling
  3088. * src/DHTAutoSaveCommand.cc
  3089. * src/DHTRoutingTableDeserializer.cc
  3090. * src/DHTRoutingTableSerializer.cc
  3091. * src/DHTSetup.cc
  3092. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3093. Check stream status after file is opened.
  3094. * src/DefaultBtProgressInfoFile.cc
  3095. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3096. Rewritten stream error handling
  3097. * src/DefaultBtProgressInfoFile.cc
  3098. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3099. Make sure that stream is closed before renaming file. Unit test
  3100. fails on mingw32 in the previous implementation.
  3101. * src/CookieStorage.cc
  3102. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3103. Fixed the unit test error without sqlite3
  3104. * test/CookieStorageTest.cc
  3105. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3106. Fixed the undefined reference error
  3107. * test/HttpResponseTest.cc
  3108. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3109. * Release 1.5.0
  3110. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3111. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  3112. Ukrainian translations. Thanks to all translators.
  3113. * po/ru.po
  3114. * po/it.po
  3115. * po/da.po
  3116. * po/bg.po
  3117. * po/ja.po
  3118. * po/uk.po
  3119. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3120. Added missing src/Logger.cc
  3121. * src/Logger.cc
  3122. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3123. Rewritten Logger to avoiding constly virtual call.
  3124. * src/LogFactory.cc
  3125. * src/LogFactory.h
  3126. * src/Logger.h
  3127. * src/Makefile.am
  3128. * src/Makefile.in
  3129. * src/NullLogger.h: Removed.
  3130. * src/SimpleLogger.cc
  3131. * src/SimpleLogger.h
  3132. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3133. Updated doc
  3134. * src/main.cc
  3135. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3136. Updated debug log message
  3137. * src/AbstractCommand.cc
  3138. * src/message.h
  3139. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3140. Avoid to create zombie process when commands specified in
  3141. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  3142. X and NetBSD.
  3143. * src/main.cc
  3144. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3145. Fixed typo
  3146. * src/usage_text.h
  3147. * doc/aria2c.1.txt
  3148. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3149. Documented 'errorCode' of tellStatus in man page.
  3150. * doc/aria2c.1.txt
  3151. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3152. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  3153. This key is only available for stopped/completed downloads and its
  3154. value is the error code defined in EXIT STATUS in man page.
  3155. * src/XmlRpcMethodImpl.cc
  3156. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3157. Fixed the bug that session download length is not updated when
  3158. PeerStat is not fastest one.
  3159. * src/SegmentMan.cc
  3160. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3161. Updated doc.
  3162. * doc/aria2c.1.txt
  3163. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3164. Updated doc.
  3165. * src/AbstractCommand.cc
  3166. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3167. Handle the case when DownloadContext has no FileEntry.
  3168. * src/XmlRpcMethodImpl.cc
  3169. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3170. Handle the situation where struct option.name is char *.
  3171. * configure.ac
  3172. * src/OptionParser.cc
  3173. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3174. Code cleanup
  3175. * src/AbstractCommand.cc
  3176. * src/DownloadCommand.cc
  3177. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3178. Use option of each download to create AuthConfig instead of global
  3179. option.
  3180. * src/AuthConfigFactory.cc
  3181. * src/AuthConfigFactory.h
  3182. * src/FtpNegotiationCommand.cc
  3183. * src/HttpRequest.cc
  3184. * src/HttpRequest.h
  3185. * src/HttpRequestCommand.cc
  3186. * src/HttpSkipResponseCommand.cc
  3187. * src/MultiUrlRequestInfo.cc
  3188. * test/AuthConfigFactoryTest.cc
  3189. * test/FtpConnectionTest.cc
  3190. * test/HttpRequestTest.cc
  3191. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3192. Don't call prepareForRetry(1) if all segments are ignored in
  3193. SegmentMan.
  3194. * src/AbstractCommand.cc
  3195. * src/BitfieldMan.cc
  3196. * src/BitfieldMan.h
  3197. * src/SegmentMan.cc
  3198. * src/SegmentMan.h
  3199. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3200. Removed FileEntry::getAssociatedUris()
  3201. * src/FileEntry.h
  3202. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3203. Updated doc: TODO1.5 -> TODO
  3204. * src/FileEntry.cc
  3205. * src/HttpResponseCommand.cc
  3206. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. Added assertion fileEntries.size() == 1 if BitTorrent is not
  3208. involved.
  3209. * src/RequestGroup.cc
  3210. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3211. Eliminated duplicated filterBitfield initialization code.
  3212. * src/BitfieldMan.cc
  3213. * src/BitfieldMan.h
  3214. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3215. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  3216. relatively naive approach, though). For DownloadFailureException,
  3217. we handle the case when req is null properly.
  3218. * src/AbstractCommand.cc
  3219. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3220. Added function returning suffix of control file to
  3221. DefaultBtProgressInfoFile.
  3222. * src/DefaultBtProgressInfoFile.cc
  3223. * src/DefaultBtProgressInfoFile.h
  3224. * src/RequestGroup.cc
  3225. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3226. Documented getVersion in man page.
  3227. * doc/aria2c.1.txt
  3228. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Documented type of offset and num for tellWaiting xml-rpc method.
  3230. * doc/aria2c.1.txt
  3231. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Implemented getVersion xml-rpc method. This method returns struct
  3233. which has 2 key-value pairs: "version" key is associated to the
  3234. version of aria2, such as "1.5.0". "enabledFeatures" key is
  3235. associated to the list of enabled features, such as "Async DNS",
  3236. "BitTorrent".
  3237. * src/FeatureConfig.h
  3238. * src/XmlRpcMethodFactory.cc
  3239. * src/XmlRpcMethodImpl.cc
  3240. * src/XmlRpcMethodImpl.h
  3241. * test/XmlRpcMethodTest.cc
  3242. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3243. Removed TLS1.1 protocol support when aria2 is built with gnutls
  3244. for compatibility issue.
  3245. * src/SocketCore.cc
  3246. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3247. Fixed compile error with openSSL
  3248. * src/bittorrent_helper.cc
  3249. * src/messageDigest.h
  3250. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3251. Removed bad code: setting certificate type priority to key
  3252. exchange priority.
  3253. * src/SocketCore.cc
  3254. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3255. Disconnect seeder if client is also in seed state.
  3256. * src/BtBitfieldMessage.cc
  3257. * src/BtHaveAllMessage.cc
  3258. * src/BtHaveMessage.cc
  3259. * src/message.h
  3260. * test/BtBitfieldMessageTest.cc
  3261. * test/BtHaveAllMessageTest.cc
  3262. * test/BtHaveMessageTest.cc
  3263. * test/MockPieceStorage.h
  3264. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3265. Keep CreateRequestCommand in queue when no segment is available so
  3266. that they can pick up pieces which slow BitTorrent peers are
  3267. downloading.
  3268. * src/AbstractCommand.cc
  3269. * src/CreateRequestCommand.cc
  3270. * src/CreateRequestCommand.h
  3271. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3272. --bt-stop-timeout now only checks download speed.
  3273. * src/BtStopDownloadCommand.cc
  3274. * src/BtStopDownloadCommand.h
  3275. * src/BtSetup.cc
  3276. * src/usage_text.h
  3277. * doc/aria2c.1.txt
  3278. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3279. Fixed compile error regarding BUFSIZE.
  3280. * src/DownloadCommand.cc
  3281. * src/DownloadCommand.h
  3282. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3283. Documented tellWaiting xml-rpc method in man page.
  3284. * doc/aria2c.1.txt
  3285. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. Bump up version number to 1.5.0
  3287. * configure.ac
  3288. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3289. Removed resolved TODO1.5
  3290. * src/AbstractCommand.cc
  3291. * src/DownloadCommand.cc
  3292. * src/RequestGroup.cc
  3293. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3294. Release pooled and in-flight Request objectsand URIResult objects
  3295. in FileEntry after download completed.
  3296. * src/DownloadContext.cc
  3297. * src/DownloadContext.h
  3298. * src/FileEntry.cc
  3299. * src/FileEntry.h
  3300. * src/RequestGroup.cc
  3301. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3302. Set manual and source attribute in aria2c.1.txt
  3303. * doc/aria2c.1.txt
  3304. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3305. Documented that the default value of --use-head is 'false' in man
  3306. page.
  3307. * doc/aria2c.1.txt
  3308. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3309. Added bt-stop-timeout option to -i list.
  3310. * doc/aria2c.1.txt
  3311. * src/download_helper.cc
  3312. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3313. Fixed typo
  3314. * doc/aria2c.1.txt
  3315. * src/usage_text.h
  3316. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3317. Removed peer-id-prefix option from -i list.
  3318. * doc/aria2c.1.txt
  3319. * src/download_helper.cc
  3320. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3321. Fixed typo
  3322. * doc/aria2c.1.txt
  3323. * src/usage_text.h
  3324. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3325. Documented --bt-stop-timeout option in man page.
  3326. * doc/aria2c.1.txt
  3327. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3328. Updated README regarding multi-file torrent web-seeding.
  3329. * doc/README.txt
  3330. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3331. Updated man page regarding multi-file torrent web-seeding.
  3332. * doc/aria2c.1.txt
  3333. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3334. Updated doc
  3335. * src/version_usage.cc
  3336. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3337. Winsock select() doesn't work if no socket is in FD_SET. To
  3338. overcome this problem, a dummy socket is added to FD_SET and it is
  3339. given to select().
  3340. * src/SelectEventPoll.cc
  3341. * src/SelectEventPoll.h
  3342. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3343. Disabled --use-head option by default because --use-head=true
  3344. causes problems on some web sites.
  3345. * src/OptionHandlerFactory.cc
  3346. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3347. Print URL List in -S option for torrent.
  3348. * src/bittorrent_helper.cc
  3349. * src/bittorrent_helper.h
  3350. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3351. Allocate buffer in ctor of DownloadCommand.
  3352. * src/DownloadCommand.cc
  3353. * src/DownloadCommand.h
  3354. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3355. Removed DiskAdaptor::onDownloadComplete()
  3356. * src/DirectDiskAdaptor.cc
  3357. * src/DirectDiskAdaptor.h
  3358. * src/DiskAdaptor.h
  3359. * src/MultiDiskAdaptor.cc
  3360. * src/MultiDiskAdaptor.h
  3361. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3362. Committed missing BtStopDownloadCommand.{cc,h}
  3363. * src/BtStopDownloadCommand.cc
  3364. * src/BtStopDownloadCommand.h
  3365. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3366. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  3367. download if the download speed is 0 and the number of seeder is 0
  3368. in consecutive SEC seconds. By default, this function is disabled.
  3369. * src/BtSetup.cc
  3370. * src/Makefile.am
  3371. * src/OptionHandlerFactory.cc
  3372. * src/prefs.cc
  3373. * src/prefs.h
  3374. * src/usage_text.h
  3375. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3376. Removed the call to DiskAdaptor::onDownloadComplete() from
  3377. BtCheckIntegrityEntry and DefaultPieceStorage.
  3378. * src/BtCheckIntegrityEntry.cc
  3379. * src/DefaultPieceStorage.cc
  3380. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3381. Commented out throw statements when number of piece is 0 to
  3382. download 0 length torrent.
  3383. * src/bittorrent_helper.cc
  3384. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3385. Call RequestGroup::createNextCommandWithAdj() from
  3386. BtFileAllocationEntry if at least one FileEntry has URI. The
  3387. static function hasAssociatedUri in RequestGroup.cc is renamed as
  3388. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  3389. * src/BtFileAllocationEntry.cc
  3390. * src/FileEntry.h
  3391. * src/RequestGroup.cc
  3392. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3393. Generate peer ID after SimpleRandomizer is initialized.
  3394. * src/main.cc
  3395. * src/option_processing.cc
  3396. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. Removed unused method argument.
  3398. * src/CreateRequestCommand.cc
  3399. * src/RequestGroup.cc
  3400. * src/RequestGroup.h
  3401. * src/RequestGroupMan.cc
  3402. * src/TrackerWatcherCommand.cc
  3403. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3404. Made URI reusing function work.
  3405. * src/CreateRequestCommand.cc
  3406. * src/FileEntry.cc
  3407. * src/FileEntry.h
  3408. * test/FileEntryTest.cc
  3409. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3410. Add formerly fastest PeerStat's sessionDownloadLength to new
  3411. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  3412. bytes in a session.
  3413. * src/PeerStat.cc
  3414. * src/SegmentMan.cc
  3415. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3416. If pipelining is enabled, we can always pool socket.
  3417. * src/HttpDownloadCommand.cc
  3418. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3419. In a single file download, file size becomes known just after
  3420. downloading, set total length to FileEntry object when download
  3421. completed.
  3422. * src/DownloadCommand.cc
  3423. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3424. Use std::vector::reserve() for fileEntries and pieceHashes in
  3425. bittorrent_helper
  3426. * src/bittorrent_helper.cc
  3427. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3428. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3429. Removed hidden option PREF_RESET_URI.
  3430. * src/AbstractCommand.cc
  3431. * src/OptionHandlerFactory.cc
  3432. * src/prefs.cc
  3433. * src/prefs.h
  3434. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3435. Removed unused variable/function.
  3436. * src/PeerStat.h
  3437. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3438. Show first URL in Download Results if file path is not available.
  3439. * src/FileEntry.h
  3440. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3441. Throw exception if file path doesn't exist in FTP URL.
  3442. * src/InitiateConnectionCommandFactory.cc
  3443. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3444. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3445. * src/BitfieldMan.cc
  3446. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3447. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3448. of PeerStat in SegmentMan. peerStats is used for calculating
  3449. download speed. Therefore all active PeerStats should be in
  3450. there. Another one is _fastestPeerStats and it only contains
  3451. fastest PeerStat for each hostname/protocol pair. They are used
  3452. for updating ServerStat.
  3453. * src/DownloadCommand.cc
  3454. * src/Request.h
  3455. * src/RequestGroupMan.cc
  3456. * src/SegmentMan.cc
  3457. * src/SegmentMan.h
  3458. * test/SegmentManTest.cc
  3459. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3460. Try all available addresses returned by DNS until it gets
  3461. connected in HTTP(S)/FTP download
  3462. * src/AbstractCommand.cc
  3463. * src/AbstractCommand.h
  3464. * src/AbstractProxyRequestCommand.cc
  3465. * src/AbstractProxyRequestCommand.h
  3466. * src/DNSCache.h
  3467. * src/DownloadEngine.cc
  3468. * src/DownloadEngine.h
  3469. * src/FtpInitiateConnectionCommand.cc
  3470. * src/FtpInitiateConnectionCommand.h
  3471. * src/FtpNegotiationCommand.cc
  3472. * src/FtpNegotiationCommand.h
  3473. * src/HttpInitiateConnectionCommand.cc
  3474. * src/HttpInitiateConnectionCommand.h
  3475. * src/HttpRequestCommand.cc
  3476. * src/HttpRequestCommand.h
  3477. * src/InitiateConnectionCommand.cc
  3478. * src/InitiateConnectionCommand.h
  3479. * test/DNSCacheTest.cc
  3480. * test/Makefile.am
  3481. * test/SimpleDNSCacheTest.cc
  3482. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3483. Updated doc
  3484. * src/download_helper.cc
  3485. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3486. Refactored fieldMan ctor.
  3487. * src/BitfieldMan.cc
  3488. * src/BitfieldMan.h
  3489. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3490. Don't print "No files to download." message if -S is given.
  3491. * src/main.cc
  3492. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3493. Set referer and method to newly created Request object.
  3494. * src/CreateRequestCommand.cc
  3495. * src/FileEntry.cc
  3496. * src/FileEntry.h
  3497. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3498. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3499. * src/AbstractCommand.cc
  3500. * src/AbstractCommand.h
  3501. * src/CreateRequestCommand.cc
  3502. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3503. Get proxy download working
  3504. * src/AbstractProxyRequestCommand.cc
  3505. * src/AbstractProxyRequestCommand.h
  3506. * src/AbstractProxyResponseCommand.cc
  3507. * src/AbstractProxyResponseCommand.h
  3508. * src/FtpInitiateConnectionCommand.cc
  3509. * src/FtpTunnelRequestCommand.cc
  3510. * src/FtpTunnelRequestCommand.h
  3511. * src/FtpTunnelResponseCommand.cc
  3512. * src/FtpTunnelResponseCommand.h
  3513. * src/HttpInitiateConnectionCommand.cc
  3514. * src/HttpProxyRequestCommand.cc
  3515. * src/HttpProxyRequestCommand.h
  3516. * src/HttpProxyResponseCommand.cc
  3517. * src/HttpProxyResponseCommand.h
  3518. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3519. Use SegmentMan::getSegment(cuid) for single file download.
  3520. * src/AbstractCommand.cc
  3521. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. Fixed bufSize calculation
  3523. * src/DownloadCommand.cc
  3524. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3525. Don't append "/" if base URI ends with "/".
  3526. * src/bittorrent_helper.cc
  3527. * test/url-list-multiFile.torrent
  3528. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. HTTP pipelining is now working. Fixed Segmention fault in
  3530. BitfieldMan's copy ctor.
  3531. * src/AbstractCommand.cc
  3532. * src/BitfieldMan.cc
  3533. * src/BitfieldMan.h
  3534. * src/DownloadCommand.cc
  3535. * src/HttpDownloadCommand.cc
  3536. * src/HttpRequest.cc
  3537. * src/SegmentMan.cc
  3538. * src/SegmentMan.h
  3539. * test/BitfieldManTest.cc
  3540. * test/SegmentManTest.cc
  3541. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3542. Removed ServerHost. Same functionality is implemented using
  3543. FileEntry's in-flight Request objects.
  3544. * src/AbstractCommand.cc
  3545. * src/BtDependency.cc
  3546. * src/CreateRequestCommand.cc
  3547. * src/FileEntry.cc
  3548. * src/FileEntry.h
  3549. * src/FtpNegotiationCommand.cc
  3550. * src/HttpResponseCommand.cc
  3551. * src/Makefile.am
  3552. * src/Metalink2RequestGroup.cc
  3553. * src/RequestGroup.cc
  3554. * src/RequestGroup.h
  3555. * src/ServerHost.cc: Removed
  3556. * src/ServerHost.h: Removed
  3557. * test/BtDependencyTest.cc
  3558. * test/FileEntryTest.cc
  3559. * test/RequestGroupTest.cc
  3560. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3561. Rewritten PeerStat handling. In the previous implementation,
  3562. faster command tries to find slower command. In this new
  3563. implementation, slower command tries to find faster command.
  3564. PeerStat is now created in each HTTP/FTP request to get download
  3565. rate correctly. If the download range is small, the download rate
  3566. tends to small and this will occur at the later stage of download.
  3567. * src/AbstractCommand.cc
  3568. * src/DownloadCommand.cc
  3569. * src/FileEntry.cc
  3570. * src/FileEntry.h
  3571. * src/Request.cc
  3572. * src/Request.h
  3573. * src/RequestGroup.h
  3574. * src/RequestGroupMan.cc
  3575. * src/SegmentMan.cc
  3576. * src/SegmentMan.h
  3577. * test/SegmentManTest.cc
  3578. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3579. Removed _uris from RequestGroup. All functions that refer to _uris
  3580. were moved to FileEntry. Exit status code are now defined in
  3581. DownloadResultCode.h.
  3582. * src/AbstractCommand.cc
  3583. * src/AdaptiveURISelector.cc
  3584. * src/AdaptiveURISelector.h
  3585. * src/AutoSaveCommand.cc
  3586. * src/BtPostDownloadHandler.cc
  3587. * src/CheckIntegrityDispatcherCommand.cc
  3588. * src/CookieStorage.cc
  3589. * src/DHTAutoSaveCommand.cc
  3590. * src/DHTBucketRefreshCommand.cc
  3591. * src/DHTEntryPointNameResolveCommand.cc
  3592. * src/DHTInteractionCommand.cc
  3593. * src/DHTPeerAnnounceCommand.cc
  3594. * src/DHTTokenUpdateCommand.cc
  3595. * src/DlAbortEx.h
  3596. * src/DlRetryEx.h
  3597. * src/DownloadCommand.cc
  3598. * src/DownloadContext.h
  3599. * src/DownloadFailureException.h
  3600. * src/DownloadResult.h
  3601. * src/DownloadResultCode.h
  3602. * src/FeedbackURISelector.cc
  3603. * src/FeedbackURISelector.h
  3604. * src/FileEntry.cc
  3605. * src/FileEntry.h
  3606. * src/FtpNegotiationCommand.cc
  3607. * src/HttpListenCommand.cc
  3608. * src/HttpResponseCommand.cc
  3609. * src/HttpServerResponseCommand.cc
  3610. * src/HttpSkipResponseCommand.cc
  3611. * src/InOrderURISelector.cc
  3612. * src/InOrderURISelector.h
  3613. * src/Makefile.am
  3614. * src/Makefile.in
  3615. * src/Metalink2RequestGroup.cc
  3616. * src/MultiUrlRequestInfo.cc
  3617. * src/MultiUrlRequestInfo.h
  3618. * src/OptionHandlerFactory.cc
  3619. * src/PeerListenCommand.cc
  3620. * src/RecoverableException.h
  3621. * src/RequestGroup.cc
  3622. * src/RequestGroup.h
  3623. * src/RequestGroupMan.cc
  3624. * src/RequestGroupMan.h
  3625. * src/TimedHaltCommand.cc
  3626. * src/TrackerWatcherCommand.cc
  3627. * src/URIResult.cc
  3628. * src/URIResult.h
  3629. * src/URISelector.h
  3630. * src/XmlRpcMethodImpl.cc
  3631. * src/bittorrent_helper.cc
  3632. * src/bittorrent_helper.h
  3633. * src/download_helper.cc
  3634. * src/main.cc
  3635. * src/option_processing.cc
  3636. * test/BtDependencyTest.cc
  3637. * test/BtPostDownloadHandlerTest.cc
  3638. * test/CookieStorageTest.cc
  3639. * test/DefaultBtMessageDispatcherTest.cc
  3640. * test/DownloadHandlerFactoryTest.cc
  3641. * test/DownloadHelperTest.cc
  3642. * test/FeedbackURISelectorTest.cc
  3643. * test/FileEntryTest.cc
  3644. * test/InOrderURISelectorTest.cc
  3645. * test/Metalink2RequestGroupTest.cc
  3646. * test/MetalinkPostDownloadHandlerTest.cc
  3647. * test/RequestGroupManTest.cc
  3648. * test/RequestGroupTest.cc
  3649. * test/XmlRpcMethodTest.cc
  3650. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3651. Removed MockBtContext.h
  3652. * test/Makefile.am
  3653. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3654. Removed _currentRequest from StreamCheckIntegrityEntry and
  3655. StreamFileAllocationEntry.
  3656. * src/AbstractCommand.cc
  3657. * src/HttpResponseCommand.cc
  3658. * src/RequestGroup.cc
  3659. * src/StreamCheckIntegrityEntry.cc
  3660. * src/StreamCheckIntegrityEntry.h
  3661. * src/StreamFileAllocationEntry.cc
  3662. * src/StreamFileAllocationEntry.h
  3663. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Rewritten DownloadContext and removed SingleFileDownloadContext
  3665. and BtContext and its derived classes. BitTorrent specific
  3666. attributes are now set by DownloadContext::setAttribute() with key
  3667. bittorrent::BITTORRENT.
  3668. * src/AbstractBtMessage.cc
  3669. * src/AbstractBtMessage.h
  3670. * src/AbstractCommand.cc
  3671. * src/AbstractCommand.h
  3672. * src/AbstractProxyRequestCommand.cc
  3673. * src/AbstractProxyResponseCommand.cc
  3674. * src/ActivePeerConnectionCommand.cc
  3675. * src/ActivePeerConnectionCommand.h
  3676. * src/AnnounceList.cc
  3677. * src/BtCheckIntegrityEntry.cc
  3678. * src/BtConstants.h
  3679. * src/BtContext.h: Removed
  3680. * src/BtDependency.cc
  3681. * src/BtExtendedMessage.cc
  3682. * src/BtPieceMessage.cc
  3683. * src/BtPieceMessage.h
  3684. * src/BtPostDownloadHandler.cc
  3685. * src/BtRegistry.cc
  3686. * src/BtRegistry.h
  3687. * src/BtSetup.cc
  3688. * src/CheckIntegrityCommand.cc
  3689. * src/CheckIntegrityEntry.cc
  3690. * src/ChecksumCheckIntegrityEntry.cc
  3691. * src/ConsoleStatCalc.cc
  3692. * src/ContentTypeRequestGroupCriteria.cc
  3693. * src/DHTGetPeersCommand.cc
  3694. * src/DHTGetPeersCommand.h
  3695. * src/DHTPeerLookupTask.cc
  3696. * src/DHTPeerLookupTask.h
  3697. * src/DHTTaskFactory.h
  3698. * src/DHTTaskFactoryImpl.cc
  3699. * src/DHTTaskFactoryImpl.h
  3700. * src/DefaultBtAnnounce.cc
  3701. * src/DefaultBtAnnounce.h
  3702. * src/DefaultBtContext.cc: Removed
  3703. * src/DefaultBtContext.h: Removed
  3704. * src/DefaultBtInteractive.cc
  3705. * src/DefaultBtInteractive.h
  3706. * src/DefaultBtMessageDispatcher.cc
  3707. * src/DefaultBtMessageDispatcher.h
  3708. * src/DefaultBtMessageFactory.cc
  3709. * src/DefaultBtMessageFactory.h
  3710. * src/DefaultBtMessageReceiver.cc
  3711. * src/DefaultBtMessageReceiver.h
  3712. * src/DefaultBtProgressInfoFile.cc
  3713. * src/DefaultBtRequestFactory.cc
  3714. * src/DefaultBtRequestFactory.h
  3715. * src/DefaultExtensionMessageFactory.cc
  3716. * src/DefaultExtensionMessageFactory.h
  3717. * src/DefaultPeerStorage.cc
  3718. * src/DefaultPeerStorage.h
  3719. * src/DefaultPieceStorage.cc
  3720. * src/DefaultSegmentManFactory.cc
  3721. * src/DiskAdaptor.cc
  3722. * src/DiskAdaptor.h
  3723. * src/DownloadContext.cc
  3724. * src/DownloadContext.h
  3725. * src/DownloadEngine.cc
  3726. * src/DownloadEngineFactory.cc
  3727. * src/DownloadHandler.cc
  3728. * src/DownloadResult.h
  3729. * src/FileAllocationCommand.cc
  3730. * src/FileAllocationDispatcherCommand.cc
  3731. * src/FileAllocationEntry.cc
  3732. * src/FileEntry.h
  3733. * src/FillRequestGroupCommand.cc
  3734. * src/FtpDownloadCommand.cc
  3735. * src/FtpFinishDownloadCommand.cc
  3736. * src/FtpInitiateConnectionCommand.cc
  3737. * src/FtpNegotiationCommand.cc
  3738. * src/FtpTunnelRequestCommand.cc
  3739. * src/FtpTunnelResponseCommand.cc
  3740. * src/HandshakeExtensionMessage.cc
  3741. * src/HandshakeExtensionMessage.h
  3742. * src/HaveEraseCommand.cc
  3743. * src/HttpDownloadCommand.cc
  3744. * src/HttpInitiateConnectionCommand.cc
  3745. * src/HttpProxyRequestCommand.cc
  3746. * src/HttpProxyResponseCommand.cc
  3747. * src/HttpRequest.cc
  3748. * src/HttpRequest.h
  3749. * src/HttpRequestCommand.cc
  3750. * src/HttpResponseCommand.cc
  3751. * src/HttpServerBodyCommand.cc
  3752. * src/HttpServerCommand.cc
  3753. * src/HttpSkipResponseCommand.cc
  3754. * src/InitiateConnectionCommandFactory.cc
  3755. * src/InitiatorMSEHandshakeCommand.cc
  3756. * src/InitiatorMSEHandshakeCommand.h
  3757. * src/IteratableChecksumValidator.cc
  3758. * src/IteratableChecksumValidator.h
  3759. * src/IteratableChunkChecksumValidator.cc
  3760. * src/MSEHandshake.cc
  3761. * src/MSEHandshake.h
  3762. * src/Makefile.am
  3763. * src/Makefile.in
  3764. * src/Metalink2RequestGroup.cc
  3765. * src/MetalinkPostDownloadHandler.cc
  3766. * src/MultiDiskAdaptor.cc
  3767. * src/MultiDiskAdaptor.h
  3768. * src/MultiFileAllocationIterator.cc
  3769. * src/MultiUrlRequestInfo.cc
  3770. * src/PeerChokeCommand.cc
  3771. * src/PeerChokeCommand.h
  3772. * src/PeerInitiateConnectionCommand.cc
  3773. * src/PeerInitiateConnectionCommand.h
  3774. * src/PeerInteractionCommand.cc
  3775. * src/PeerInteractionCommand.h
  3776. * src/PeerReceiveHandshakeCommand.cc
  3777. * src/PieceHashCheckIntegrityEntry.cc
  3778. * src/RealtimeCommand.cc
  3779. * src/ReceiverMSEHandshakeCommand.cc
  3780. * src/RequestGroup.cc
  3781. * src/RequestGroup.h
  3782. * src/RequestGroupEntry.cc
  3783. * src/RequestGroupMan.cc
  3784. * src/SeedCheckCommand.cc
  3785. * src/SeedCheckCommand.h
  3786. * src/SegmentMan.cc
  3787. * src/ShareRatioSeedCriteria.h
  3788. * src/SingleFileDownloadContext.cc: Removed
  3789. * src/SingleFileDownloadContext.h: Removed
  3790. * src/SleepCommand.cc
  3791. * src/StreamCheckIntegrityEntry.cc
  3792. * src/TrackerWatcherCommand.cc
  3793. * src/TrackerWatcherCommand.h
  3794. * src/UnknownLengthPieceStorage.cc
  3795. * src/Util.cc
  3796. * src/Util.h
  3797. * src/XmlRpcMethodImpl.cc
  3798. * src/bittorrent_helper.cc
  3799. * src/bittorrent_helper.h
  3800. * src/download_helper.cc
  3801. * src/main.cc
  3802. * src/option_processing.cc
  3803. * test/BitfieldManTest.cc
  3804. * test/BittorrentHelperTest.cc
  3805. * test/BtCancelMessageTest.cc
  3806. * test/BtChokeMessageTest.cc
  3807. * test/BtDependencyTest.cc
  3808. * test/BtPieceMessageTest.cc
  3809. * test/BtPostDownloadHandlerTest.cc
  3810. * test/BtRegistryTest.cc
  3811. * test/BtRejectMessageTest.cc
  3812. * test/BtRequestMessageTest.cc
  3813. * test/DHTPeerAnnounceStorageTest.cc
  3814. * test/DefaultBtAnnounceTest.cc
  3815. * test/DefaultBtContextTest.cc: Removed
  3816. * test/DefaultBtMessageDispatcherTest.cc
  3817. * test/DefaultBtMessageFactoryTest.cc
  3818. * test/DefaultBtProgressInfoFileTest.cc
  3819. * test/DefaultBtRequestFactoryTest.cc
  3820. * test/DefaultExtensionMessageFactoryTest.cc
  3821. * test/DefaultPeerStorageTest.cc
  3822. * test/DefaultPieceStorageTest.cc
  3823. * test/DirectDiskAdaptorTest.cc
  3824. * test/DownloadContextTest.cc
  3825. * test/DownloadHandlerFactoryTest.cc
  3826. * test/DownloadHelperTest.cc
  3827. * test/HandshakeExtensionMessageTest.cc
  3828. * test/HttpRequestTest.cc
  3829. * test/HttpResponseTest.cc
  3830. * test/IteratableChecksumValidatorTest.cc
  3831. * test/IteratableChunkChecksumValidatorTest.cc
  3832. * test/MSEHandshakeTest.cc
  3833. * test/Makefile.am
  3834. * test/Makefile.in
  3835. * test/Metalink2RequestGroupTest.cc
  3836. * test/MetalinkPostDownloadHandlerTest.cc
  3837. * test/MockBtContext.h: Removed
  3838. * test/MockDHTTaskFactory.h
  3839. * test/MockDownloadContext.h: Removed
  3840. * test/MockPieceStorage.h
  3841. * test/MultiDiskAdaptorTest.cc
  3842. * test/MultiFileAllocationIteratorTest.cc
  3843. * test/RequestGroupManTest.cc
  3844. * test/RequestGroupTest.cc
  3845. * test/SegmentManTest.cc
  3846. * test/ShareRatioSeedCriteriaTest.cc
  3847. * test/SingleFileDownloadContextTest.cc: Removed
  3848. * test/UtilTest.cc
  3849. * test/XmlRpcMethodTest.cc
  3850. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3851. Added experimental support of WEB-Seeding for multi-file torrent.
  3852. Due to fundamental changes in file handling in HTTP/FTP code, many
  3853. functions are not working: PeerStat, ServerHost, proxy..etc
  3854. * src/AbstractCommand.cc
  3855. * src/AbstractCommand.h
  3856. * src/BitfieldMan.cc
  3857. * src/BitfieldMan.h
  3858. * src/CreateRequestCommand.cc
  3859. * src/CreateRequestCommand.h
  3860. * src/DefaultPieceStorage.cc
  3861. * src/DefaultPieceStorage.h
  3862. * src/DownloadCommand.cc
  3863. * src/DownloadCommand.h
  3864. * src/DownloadContext.cc
  3865. * src/DownloadContext.h
  3866. * src/FileEntry.cc
  3867. * src/FileEntry.h
  3868. * src/FtpDownloadCommand.cc
  3869. * src/FtpDownloadCommand.h
  3870. * src/FtpFinishDownloadCommand.cc
  3871. * src/FtpFinishDownloadCommand.h
  3872. * src/FtpInitiateConnectionCommand.cc
  3873. * src/FtpInitiateConnectionCommand.h
  3874. * src/FtpNegotiationCommand.cc
  3875. * src/FtpNegotiationCommand.h
  3876. * src/FtpTunnelResponseCommand.cc
  3877. * src/HttpDownloadCommand.cc
  3878. * src/HttpDownloadCommand.h
  3879. * src/HttpInitiateConnectionCommand.cc
  3880. * src/HttpInitiateConnectionCommand.h
  3881. * src/HttpProxyResponseCommand.cc
  3882. * src/HttpRequest.cc
  3883. * src/HttpRequest.h
  3884. * src/HttpRequestCommand.cc
  3885. * src/HttpRequestCommand.h
  3886. * src/HttpResponseCommand.cc
  3887. * src/HttpResponseCommand.h
  3888. * src/HttpSkipResponseCommand.cc
  3889. * src/HttpSkipResponseCommand.h
  3890. * src/InitiateConnectionCommand.cc
  3891. * src/InitiateConnectionCommand.h
  3892. * src/InitiateConnectionCommandFactory.cc
  3893. * src/InitiateConnectionCommandFactory.h
  3894. * src/Makefile.am
  3895. * src/PieceStorage.h
  3896. * src/RequestGroup.cc
  3897. * src/RequestGroup.h
  3898. * src/RequestGroupMan.cc
  3899. * src/SegmentMan.cc
  3900. * src/SegmentMan.h
  3901. * src/SingleFileDownloadContext.h
  3902. * src/StreamFileAllocationEntry.cc
  3903. * src/TrackerWatcherCommand.cc
  3904. * src/UnknownLengthPieceStorage.cc
  3905. * src/UnknownLengthPieceStorage.h
  3906. * src/array_fun.h
  3907. * src/bitfield.h
  3908. * src/download_helper.cc
  3909. * test/DownloadContextTest.cc
  3910. * test/Makefile.am
  3911. * test/MockDownloadContext.h
  3912. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3913. Added tellWaiting XML-RPC method.
  3914. * src/SingleFileDownloadContext.cc
  3915. * src/XmlRpcMethodFactory.cc
  3916. * src/XmlRpcMethodImpl.cc
  3917. * src/XmlRpcMethodImpl.h
  3918. * test/XmlRpcMethodTest.cc
  3919. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. Updated CookieStorageTest
  3921. * test/CookieStorageTest.cc
  3922. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3923. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3924. handle excepion inside these functions.
  3925. * src/LibgnutlsTLSContext.cc
  3926. * src/LibgnutlsTLSContext.h
  3927. * src/LibsslTLSContext.cc
  3928. * src/LibsslTLSContext.h
  3929. * src/MultiUrlRequestInfo.cc
  3930. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3931. Added comment
  3932. * src/RequestGroup.cc
  3933. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3934. In CookieStorage::load() and saveNsFormat(), handle exception
  3935. inside the functions. When saving Cookies, first write temporary
  3936. file and after successful writes, then renames it to final
  3937. destination.
  3938. * src/CookieStorage.cc
  3939. * src/CookieStorage.h
  3940. * src/MultiUrlRequestInfo.cc
  3941. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3942. The default value of --dir option is the absolute path to the
  3943. current directory. If getcwd() is failed, then it is ".", which is
  3944. the same value with old implementation. This change is necessary
  3945. because after daemon() call, the current working directory is
  3946. changed to /.
  3947. * src/File.cc
  3948. * src/File.h
  3949. * src/OptionHandlerFactory.cc
  3950. * src/option_processing.cc
  3951. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3952. Call daemon() with arguments(0,0), which means daemon() changes
  3953. current working directory to / and redirects stdin, stdout and
  3954. stderr to /dev/null.
  3955. * src/option_processing.cc
  3956. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3957. Small performance optimizations.
  3958. * src/RequestGroupMan.cc
  3959. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3960. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3961. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3962. * src/RequestGroupMan.cc
  3963. * src/RequestGroupMan.h
  3964. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3965. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3966. setNoWiat(true) if newly created command calls
  3967. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3968. * src/HttpListenCommand.cc
  3969. * src/HttpServerBodyCommand.cc
  3970. * src/HttpServerCommand.cc
  3971. * src/HttpServerResponseCommand.cc
  3972. * src/InitiateConnectionCommand.cc
  3973. * src/RequestGroup.cc
  3974. * src/StreamFileAllocationEntry.cc
  3975. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3976. Removed include vector
  3977. * src/BtRegistry.h
  3978. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3979. Rewritten BtRegistry
  3980. * src/BtRegistry.cc
  3981. * src/BtRegistry.h
  3982. * src/BtSetup.cc
  3983. * src/ConsoleStatCalc.cc
  3984. * src/PeerInteractionCommand.cc
  3985. * src/PeerReceiveHandshakeCommand.cc
  3986. * src/ReceiverMSEHandshakeCommand.cc
  3987. * src/RequestGroup.cc
  3988. * src/XmlRpcMethodImpl.cc
  3989. * test/BtRegistryTest.cc
  3990. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3991. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3992. * src/DefaultBtProgressInfoFile.cc
  3993. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3994. Throw an exception if position is less than 0.
  3995. * src/XmlRpcMethodImpl.cc
  3996. * test/XmlRpcMethodTest.cc
  3997. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3998. Use writeFilePath() in ConsoleStatCalc.cc
  3999. * src/ConsoleStatCalc.cc
  4000. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4001. Receive the return value as const reference from
  4002. DownloadContext::getFileEntries().
  4003. * src/DefaultPieceStorage.cc
  4004. * src/RequestGroupMan.cc
  4005. * src/XmlRpcMethodImpl.cc
  4006. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4007. DownloadContext now has _fileEntries so that
  4008. DownloadContext::getFileEntries() can returns its const reference.
  4009. * src/DefaultBtContext.cc
  4010. * src/DefaultBtContext.h
  4011. * src/DownloadContext.cc
  4012. * src/DownloadContext.h
  4013. * src/SingleFileDownloadContext.cc
  4014. * src/SingleFileDownloadContext.h
  4015. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4016. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  4017. writeFilePath() function template from RequestGroupMan.cc to
  4018. FileEntry.h
  4019. * src/FileEntry.h
  4020. * src/RequestGroupMan.cc
  4021. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4022. Documented 'position' parameter is starting from 0 in man page.
  4023. * doc/aria2c.1.txt
  4024. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4025. Updated doc.
  4026. * src/MSEHandshake.cc
  4027. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4028. Removed _acceptFeatures and its accessor functions from
  4029. RequestGroup since they are not used practically.
  4030. * src/HttpRequestCommand.cc
  4031. * src/RequestGroup.cc
  4032. * src/RequestGroup.h
  4033. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4034. Removed member _maxTries from RequestGroup class to avoid
  4035. duplicate option value. Those classes who refer this variable
  4036. should use option value of PREF_MAX_TRIES directly.
  4037. * src/AbstractCommand.cc
  4038. * src/RequestGroup.cc
  4039. * src/RequestGroup.h
  4040. * src/TrackerWatcherCommand.cc
  4041. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4042. * Release 1.4.1
  4043. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4044. Fixed compiler warnings on netbsd
  4045. * src/DHTConnectionImpl.cc
  4046. * src/PeerListenCommand.cc
  4047. * src/PeerSessionResource.cc
  4048. * src/SegmentMan.cc
  4049. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4050. Updated Ukrainian translation. Thanks to all translators.
  4051. * po/uk.po
  4052. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4053. Bump up version number to 1.4.1.
  4054. * configure.ac
  4055. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4056. Added unit tests for strjoin, strconcat and strappend.
  4057. * test/a2functionalTest.cc
  4058. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4059. Rewritten strconcat and strappend using operator+ instead of
  4060. append().
  4061. * src/a2functional.h
  4062. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4063. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  4064. is enabled.
  4065. * src/Makefile.am
  4066. * test/Makefile.am
  4067. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4068. Added countSeeder() function which counts seeder in the given
  4069. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  4070. * src/ConsoleStatCalc.cc
  4071. * src/Peer.h
  4072. * src/XmlRpcMethodImpl.cc
  4073. * test/PeerTest.cc
  4074. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4075. Documented missing seeder in getPeers xml-rpc method.
  4076. Documented uploadLength and numSeeders.
  4077. * doc/aria2c.1.txt
  4078. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4079. Added uploadLength and numSeeders to the response of tellStatus
  4080. xml-rpc method. Assert that PeerStorage instance is not null
  4081. instead of checking if statement. It should be non-null in this
  4082. context.
  4083. * src/XmlRpcMethodImpl.cc
  4084. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4085. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  4086. * src/XmlRpcResponse.cc
  4087. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4088. Avoid intermediate object during string concatenation.
  4089. * src/HttpRequest.cc
  4090. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4091. Added strjoin function template. Use it in pathJoin()
  4092. * src/Util.h
  4093. * src/a2functional.h
  4094. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4095. Avoid intermediate object during string concatenation. Replaced
  4096. post-increment unary operator with pre-increment one in for loop.
  4097. * src/AdaptiveURISelector.cc
  4098. * src/AnnounceList.cc
  4099. * src/AuthConfig.h
  4100. * src/BtBitfieldMessage.cc
  4101. * src/BtExtendedMessage.cc
  4102. * src/BtHandshakeMessage.cc
  4103. * src/BtPieceMessage.cc
  4104. * src/BtPortMessage.cc
  4105. * src/Cookie.cc
  4106. * src/DHTAnnouncePeerMessage.cc
  4107. * src/DHTAutoSaveCommand.cc
  4108. * src/DHTGetPeersReplyMessage.cc
  4109. * src/DHTNode.cc
  4110. * src/DHTQueryMessage.cc
  4111. * src/DHTResponseMessage.cc
  4112. * src/DHTUnknownMessage.cc
  4113. * src/DefaultBtAnnounce.cc
  4114. * src/DefaultBtContext.cc
  4115. * src/DefaultBtInteractive.cc
  4116. * src/DefaultBtProgressInfoFile.cc
  4117. * src/DefaultPeerStorage.cc
  4118. * src/DownloadEngine.cc
  4119. * src/FeatureConfig.cc
  4120. * src/File.cc
  4121. * src/FtpConnection.cc
  4122. * src/FtpNegotiationCommand.cc
  4123. * src/HandshakeExtensionMessage.cc
  4124. * src/HttpConnection.cc
  4125. * src/HttpRequest.cc
  4126. * src/HttpResponseCommand.cc
  4127. * src/HttpServer.cc
  4128. * src/IndexBtMessage.cc
  4129. * src/Metalink2RequestGroup.cc
  4130. * src/OptionHandlerImpl.h
  4131. * src/PStringBuildVisitor.cc
  4132. * src/Peer.cc
  4133. * src/PeerListenCommand.cc
  4134. * src/Piece.cc
  4135. * src/RangeBtMessage.cc
  4136. * src/Request.cc
  4137. * src/Request.h
  4138. * src/RequestGroup.cc
  4139. * src/RequestGroupMan.cc
  4140. * src/ServerStat.cc
  4141. * src/ServerStatMan.cc
  4142. * src/UTPexExtensionMessage.cc
  4143. * src/Util.cc
  4144. * src/a2functional.h
  4145. * src/download_helper.cc
  4146. * src/messageDigest.cc
  4147. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4148. Unchoke a peer randomly at first and second choke round in seed
  4149. state.
  4150. * src/BtSeederStateChoke.cc
  4151. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  4152. Added (sock_t) to quiet compiler warnings in MinGW
  4153. * src/SocketCore.cc
  4154. * src/SocketCore.h
  4155. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4156. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  4157. * src/EpollEventPoll.h
  4158. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  4159. Added fork() emulation using CreateProcess() in MinGW
  4160. * src/RequestGroupMan.cc
  4161. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4162. * Release 1.4.0
  4163. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4164. Added utf8.torrent to EXTRA_DIST
  4165. * test/Makefile.am
  4166. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4167. Fixed docs of aria2.addMetalink xml-rpc method.
  4168. * doc/aria2c.1.txt
  4169. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4170. Added Slovak translation. Updated Ukrainian and Brazilian
  4171. Portuguese translation. Thanks to all translators.
  4172. * po/sk.po
  4173. * po/uk.po
  4174. * po/pt_BR.po
  4175. * po/LINGUAS
  4176. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4177. Added test case for XmlRpcProcessor to fail to parse malformed
  4178. document.
  4179. * test/XmlRpcRequestProcessorTest.cc
  4180. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4181. Removed *.gmo files in po because they are generated on 'make
  4182. dist'
  4183. * po/*.gmo
  4184. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4185. Documented max-concurrent-downloads of changeGlobalOption method
  4186. in man page.
  4187. * doc/aria2c.1.txt
  4188. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4189. Added max-concurrent-downloads option to changeGlobalOption
  4190. xml-rpc method. Rewritten loop conditional in
  4191. RequestGroupMan::fillRequestGroupFromReserver().
  4192. * src/RequestGroupMan.cc
  4193. * src/RequestGroupMan.h
  4194. * src/XmlRpcMethod.cc
  4195. * src/XmlRpcMethodImpl.cc
  4196. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4197. Documented position parameter in man page.
  4198. * doc/aria2c.1.txt
  4199. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4200. Added 'position' parameter to addUri, addTorrent and addMetalink
  4201. xml-rpc method.
  4202. * src/RequestGroupMan.cc
  4203. * src/RequestGroupMan.h
  4204. * src/XmlRpcMethodImpl.cc
  4205. * test/XmlRpcMethodTest.cc
  4206. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4207. Removed Peer.cc from compile source list when --disable-bittorrent
  4208. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  4209. takes Peer.
  4210. * src/DefaultPieceStorage.cc
  4211. * src/DefaultPieceStorage.h
  4212. * src/Makefile.am
  4213. * src/PieceStorage.h
  4214. * src/UnknownLengthPieceStorage.cc
  4215. * src/UnknownLengthPieceStorage.h
  4216. * test/MockPieceStorage.h
  4217. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4218. Implemented getter methods in header files to give them more
  4219. chance of optimization.
  4220. Return const reference for SharadHandle if possible.
  4221. * src/AbstractAuthResolver.cc
  4222. * src/AbstractAuthResolver.h
  4223. * src/AbstractBtMessage.cc
  4224. * src/AbstractBtMessage.h
  4225. * src/AbstractSingleDiskAdaptor.cc
  4226. * src/AbstractSingleDiskAdaptor.h
  4227. * src/AsyncNameResolver.cc
  4228. * src/AsyncNameResolver.h
  4229. * src/BNode.cc
  4230. * src/BNode.h
  4231. * src/BitfieldMan.cc
  4232. * src/BitfieldMan.h
  4233. * src/BtAbortOutstandingRequestEvent.h
  4234. * src/BtExtendedMessage.cc
  4235. * src/BtExtendedMessage.h
  4236. * src/BtSeederStateChoke.cc
  4237. * src/BtSeederStateChoke.h
  4238. * src/Cookie.cc
  4239. * src/Cookie.h
  4240. * src/DHTBucket.cc
  4241. * src/DHTBucket.h
  4242. * src/DHTConnectionImpl.cc
  4243. * src/DHTConnectionImpl.h
  4244. * src/DHTFindNodeReplyMessage.cc
  4245. * src/DHTFindNodeReplyMessage.h
  4246. * src/DHTGetPeersReplyMessage.cc
  4247. * src/DHTGetPeersReplyMessage.h
  4248. * src/DHTInteractionCommand.cc
  4249. * src/DHTMessage.cc
  4250. * src/DHTMessage.h
  4251. * src/DHTMessageDispatcherImpl.cc
  4252. * src/DHTMessageEntry.cc
  4253. * src/DHTMessageReceiver.cc
  4254. * src/DHTMessageReceiver.h
  4255. * src/DHTMessageTrackerEntry.cc
  4256. * src/DHTMessageTrackerEntry.h
  4257. * src/DHTPeerAnnounceEntry.cc
  4258. * src/DHTPeerAnnounceEntry.h
  4259. * src/DHTPeerLookupTask.cc
  4260. * src/DHTPeerLookupTask.h
  4261. * src/DHTRoutingTableDeserializer.cc
  4262. * src/DHTRoutingTableDeserializer.h
  4263. * src/DefaultBtAnnounce.cc
  4264. * src/DefaultBtAnnounce.h
  4265. * src/DefaultBtMessageDispatcher.cc
  4266. * src/DefaultBtMessageDispatcher.h
  4267. * src/DefaultBtRequestFactory.cc
  4268. * src/DefaultBtRequestFactory.h
  4269. * src/DiskAdaptor.cc
  4270. * src/DiskAdaptor.h
  4271. * src/DownloadContext.cc
  4272. * src/DownloadContext.h
  4273. * src/DownloadEngine.cc
  4274. * src/DownloadEngine.h
  4275. * src/EpollEventPoll.cc
  4276. * src/EpollEventPoll.h
  4277. * src/FtpConnection.cc
  4278. * src/FtpConnection.h
  4279. * src/HttpConnection.cc
  4280. * src/HttpConnection.h
  4281. * src/HttpHeader.cc
  4282. * src/HttpHeader.h
  4283. * src/HttpRequest.cc
  4284. * src/HttpRequest.h
  4285. * src/HttpResponse.cc
  4286. * src/HttpResponse.h
  4287. * src/LibsslTLSContext.cc
  4288. * src/LibsslTLSContext.h
  4289. * src/MSEHandshake.cc
  4290. * src/MSEHandshake.h
  4291. * src/MetalinkEntry.cc
  4292. * src/MetalinkEntry.h
  4293. * src/MetalinkParserController.cc
  4294. * src/MetalinkParserController.h
  4295. * src/MetalinkParserStateMachine.cc
  4296. * src/MetalinkParserStateMachine.h
  4297. * src/MultiDiskAdaptor.cc
  4298. * src/MultiDiskAdaptor.h
  4299. * src/NetrcAuthResolver.cc
  4300. * src/NetrcAuthResolver.h
  4301. * src/Peer.cc
  4302. * src/Peer.h
  4303. * src/PeerSessionResource.cc
  4304. * src/PeerSessionResource.h
  4305. * src/Piece.cc
  4306. * src/Piece.h
  4307. * src/PieceStatMan.cc
  4308. * src/PieceStatMan.h
  4309. * src/Request.cc
  4310. * src/Request.h
  4311. * src/RequestGroup.cc
  4312. * src/RequestGroup.h
  4313. * src/RequestGroupMan.cc
  4314. * src/RequestGroupMan.h
  4315. * src/RequestSlot.cc
  4316. * src/RequestSlot.h
  4317. * src/SegmentMan.cc
  4318. * src/SegmentMan.h
  4319. * src/SelectEventPoll.cc
  4320. * src/SelectEventPoll.h
  4321. * src/ServerStat.cc
  4322. * src/ServerStat.h
  4323. * src/Signature.cc
  4324. * src/Signature.h
  4325. * src/URIResult.cc
  4326. * src/URIResult.h
  4327. * src/UTPexExtensionMessage.cc
  4328. * src/UTPexExtensionMessage.h
  4329. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4330. Fixed compile error without BitTorrent and Metalink support.
  4331. * src/XmlRpcMethod.cc
  4332. * src/XmlRpcMethodFactory.cc
  4333. * src/XmlRpcMethodImpl.cc
  4334. * src/XmlRpcMethodImpl.h
  4335. * test/XmlRpcMethodTest.cc
  4336. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Rewritten the help message for --allow-overwrite option.
  4338. * doc/aria2c.1.txt
  4339. * src/usage_text.h
  4340. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4341. Fixed typo
  4342. * doc/aria2c.1.txt
  4343. * src/usage_text.h
  4344. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4345. Updated README for 1.4.0 release. Use new table syntax of
  4346. asciidoc.
  4347. * README
  4348. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4349. Documented --xml-rpc-max-request-size option in man page.
  4350. * doc/aria2c.1.txt
  4351. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4352. Moved C_* constants from BtContext to DefaultBtContext.
  4353. * src/BtContext.cc: Removed.
  4354. * src/BtContext.h
  4355. * src/DefaultBtContext.cc
  4356. * src/DefaultBtContext.h
  4357. * src/Makefile.am
  4358. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4359. Use name.utf-8 and path.utf-8 key in higher priority than name and
  4360. path key respectively when persing .torrent file.
  4361. * src/BtContext.cc
  4362. * src/BtContext.h
  4363. * src/DefaultBtContext.cc
  4364. * test/DefaultBtContextTest.cc
  4365. * test/utf8.torrent
  4366. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4367. Added --xml-rpc-max-request-size option to limit the size of
  4368. XML-RPC request.
  4369. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4370. Documented XML-RPC API in man page.
  4371. * doc/aria2c.1.txt
  4372. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4373. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  4374. will break strict-aliasing rules
  4375. * src/PeerConnection.cc
  4376. * test/DHTRoutingTableSerializerTest.cc
  4377. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4378. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  4379. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  4380. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  4381. PKG_CHECK_MODULES macro uses latter name.
  4382. * m4/sqlite3.m4
  4383. * src/Makefile.am
  4384. * test/Makefile.am
  4385. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4386. Fixed typo
  4387. * configure.ac
  4388. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4389. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  4390. presence of libgnutls using pkg-config first. If it fails, fall
  4391. back to old macro libgnutls.m4.
  4392. * configure.ac
  4393. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4394. Use s itself instead of !s.bad()
  4395. * src/CookieStorage.cc
  4396. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4397. Documented --on-download-* option and --save-cookies option in man
  4398. page.
  4399. * doc/aria2c.1.txt
  4400. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4401. Set possible values for --load-cookie option to "/path/to/file".
  4402. * src/OptionHandlerFactory.cc
  4403. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4404. Added --save-cookies option.
  4405. * src/Cookie.cc
  4406. * src/Cookie.h
  4407. * src/CookieStorage.cc
  4408. * src/CookieStorage.h
  4409. * src/MultiUrlRequestInfo.cc
  4410. * src/OptionHandlerFactory.cc
  4411. * src/prefs.cc
  4412. * src/prefs.h
  4413. * src/usage_text.h
  4414. * test/CookieStorageTest.cc
  4415. * test/CookieTest.cc
  4416. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4417. Removed tellAll XML-RPC command because its reponse tends to be
  4418. big if stopped/waiting downloads pile up.
  4419. * src/XmlRpcMethodFactory.cc
  4420. * src/XmlRpcMethodImpl.cc
  4421. * src/XmlRpcMethodImpl.h
  4422. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4423. Added the ability to execute command when download starts and
  4424. stops. You can also specify command for particular cases such as
  4425. complete/error download. Added --on-download-start,
  4426. --on-download-stop, --on-download-complete and --on-download-error
  4427. option.
  4428. * src/OptionHandlerFactory.cc
  4429. * src/RequestGroupMan.cc
  4430. * src/prefs.cc
  4431. * src/prefs.h
  4432. * src/usage_text.h
  4433. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4434. Fixed test error
  4435. * test/BencodeTest.cc
  4436. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4437. Added unit tests.
  4438. * test/XmlRpcMethodTest.cc
  4439. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4440. Made exception message more verbose.
  4441. * src/bencode.cc
  4442. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4443. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4444. space in console readout. Also they are now shown in MiB/s if
  4445. speed > 1024KiB/s.
  4446. * src/ConsoleStatCalc.cc
  4447. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4448. Added SEED to console output, which represents the number of
  4449. seeders currently the client is connecting to.
  4450. * src/ConsoleStatCalc.cc
  4451. * src/ConsoleStatCalc.h
  4452. * src/DownloadEngine.cc
  4453. * src/NullStatCalc.h
  4454. * src/StatCalc.h
  4455. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Added source filename(__FILE__) and line number(__LINE__) to
  4457. exception message.
  4458. * src/AbstractCommand.cc
  4459. * src/AbstractDiskWriter.cc
  4460. * src/AbstractProxyResponseCommand.cc
  4461. * src/BDE.h
  4462. * src/BtAllowedFastMessage.cc
  4463. * src/BtHandshakeMessageValidator.h
  4464. * src/BtHaveAllMessage.cc
  4465. * src/BtHaveNoneMessage.cc
  4466. * src/BtPieceMessage.cc
  4467. * src/BtRejectMessage.cc
  4468. * src/ChunkedDecoder.cc
  4469. * src/CookieStorage.cc
  4470. * src/DHTAnnouncePeerMessage.cc
  4471. * src/DHTEntryPointNameResolveCommand.cc
  4472. * src/DHTMessageFactoryImpl.cc
  4473. * src/DHTMessageTracker.cc
  4474. * src/DHTRoutingTableDeserializer.cc
  4475. * src/DHTRoutingTableSerializer.cc
  4476. * src/DHTSetup.cc
  4477. * src/DHTTokenTracker.cc
  4478. * src/DefaultBtAnnounce.cc
  4479. * src/DefaultBtContext.cc
  4480. * src/DefaultBtInteractive.cc
  4481. * src/DefaultBtMessageFactory.cc
  4482. * src/DefaultBtProgressInfoFile.cc
  4483. * src/DefaultExtensionMessageFactory.cc
  4484. * src/DlAbortEx.h
  4485. * src/DlRetryEx.h
  4486. * src/DownloadCommand.cc
  4487. * src/DownloadEngineFactory.cc
  4488. * src/DownloadFailureException.h
  4489. * src/Exception.cc
  4490. * src/Exception.h
  4491. * src/ExpatMetalinkProcessor.cc
  4492. * src/ExpatXmlRpcRequestProcessor.cc
  4493. * src/FallocFileAllocationIterator.cc
  4494. * src/FatalException.h
  4495. * src/FtpConnection.cc
  4496. * src/FtpFinishDownloadCommand.cc
  4497. * src/FtpInitiateConnectionCommand.cc
  4498. * src/FtpNegotiationCommand.cc
  4499. * src/GZipDecoder.cc
  4500. * src/HandshakeExtensionMessage.cc
  4501. * src/HttpConnection.cc
  4502. * src/HttpHeaderProcessor.cc
  4503. * src/HttpInitiateConnectionCommand.cc
  4504. * src/HttpResponse.cc
  4505. * src/HttpResponseCommand.cc
  4506. * src/HttpServer.cc
  4507. * src/HttpSkipResponseCommand.cc
  4508. * src/InitiateConnectionCommandFactory.cc
  4509. * src/IteratableChunkChecksumValidator.cc
  4510. * src/LibgcryptARC4Context.h
  4511. * src/LibgcryptARC4Decryptor.h
  4512. * src/LibgcryptARC4Encryptor.h
  4513. * src/LibgcryptDHKeyExchange.h
  4514. * src/LibgnutlsTLSContext.cc
  4515. * src/LibsslARC4Context.h
  4516. * src/LibsslARC4Decryptor.h
  4517. * src/LibsslARC4Encryptor.h
  4518. * src/LibsslDHKeyExchange.h
  4519. * src/LibsslTLSContext.cc
  4520. * src/MSEHandshake.cc
  4521. * src/MessageDigestHelper.cc
  4522. * src/MetalinkHelper.cc
  4523. * src/MultiDiskAdaptor.cc
  4524. * src/NameMatchOptionHandler.h
  4525. * src/NameResolver.cc
  4526. * src/Netrc.cc
  4527. * src/NsCookieParser.cc
  4528. * src/OptionHandlerException.cc
  4529. * src/OptionHandlerException.h
  4530. * src/OptionHandlerImpl.h
  4531. * src/OptionParser.cc
  4532. * src/ParameterizedStringParser.cc
  4533. * src/PeerAbstractCommand.cc
  4534. * src/PeerConnection.cc
  4535. * src/PeerMessageUtil.cc
  4536. * src/PeerReceiveHandshakeCommand.cc
  4537. * src/Platform.cc
  4538. * src/ReceiverMSEHandshakeCommand.cc
  4539. * src/RecoverableException.h
  4540. * src/RequestGroup.cc
  4541. * src/SimpleLogger.cc
  4542. * src/SocketCore.cc
  4543. * src/Sqlite3MozCookieParser.cc
  4544. * src/UTPexExtensionMessage.cc
  4545. * src/Util.cc
  4546. * src/XML2SAXMetalinkProcessor.cc
  4547. * src/Xml2XmlRpcRequestProcessor.cc
  4548. * src/XmlRpcMethodImpl.cc
  4549. * src/bencode.cc
  4550. * src/download_helper.cc
  4551. * src/messageDigest.h
  4552. * test/ExceptionTest.cc
  4553. * test/TestUtil.cc
  4554. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4555. Bump up version number to 1.4.0
  4556. * configure.ac
  4557. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4558. Added 2files.metalink to EXTRA_DIST
  4559. * test/Makefile.am
  4560. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4561. Added missing 2files.metalink
  4562. * test/2files.metalink
  4563. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4564. Show "[MEMORY]" prefix before filename in download summary if it
  4565. is downloaded into memory.
  4566. * src/DownloadResult.h
  4567. * src/RequestGroup.cc
  4568. * src/RequestGroupMan.cc
  4569. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4570. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4571. * src/ExpatXmlRpcRequestProcessor.cc
  4572. * src/Xml2XmlRpcRequestProcessor.cc
  4573. * src/message.h
  4574. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4575. Defined const BDEs to avoid duplicate instantiation.
  4576. Defined MSG_GID_NOT_PROVIDED.
  4577. * src/XmlRpcMethodImpl.cc
  4578. * src/message.h
  4579. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4580. Code cleanup
  4581. * src/Xml2XmlRpcRequestProcessor.cc
  4582. * src/Xml2XmlRpcRequestProcessor.h
  4583. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4584. Defined ENABLE_XML_RPC
  4585. * configure.ac
  4586. * configure
  4587. * config.h.in
  4588. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4589. Added ExpatXmlRpcRequestProcessor
  4590. * src/ExpatXmlRpcRequestProcessor.cc
  4591. * src/ExpatXmlRpcRequestProcessor.h
  4592. * src/Makefile.am
  4593. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4594. Added tests for addTorrent and addMetalink command.
  4595. * test/TestUtil.cc
  4596. * test/TestUtil.h
  4597. * test/XmlRpcMethodTest.cc
  4598. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4599. Corrected the description of --file-allocation option.
  4600. * doc/aria2c.1.txt
  4601. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4602. Added tellAll command.
  4603. * src/XmlRpcMethodFactory.cc
  4604. * src/XmlRpcMethodImpl.cc
  4605. * src/XmlRpcMethodImpl.h
  4606. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4607. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4608. * src/XmlRpcMethodImpl.cc
  4609. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4610. Added changeGlobalOption command. Currently,
  4611. max-overall-download-limit and max-overall-upload-limit option are
  4612. available.
  4613. * src/RequestGroupMan.h
  4614. * src/XmlRpcMethod.cc
  4615. * src/XmlRpcMethod.h
  4616. * src/XmlRpcMethodFactory.cc
  4617. * src/XmlRpcMethodImpl.cc
  4618. * src/XmlRpcMethodImpl.h
  4619. * test/XmlRpcMethodTest.cc
  4620. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4621. Added changeOption command. Currently, max-download-limit,
  4622. max-upload-limit option are available in this command.
  4623. * src/RequestGroup.h
  4624. * src/XmlRpcMethod.cc
  4625. * src/XmlRpcMethod.h
  4626. * src/XmlRpcMethodFactory.cc
  4627. * src/XmlRpcMethodImpl.cc
  4628. * src/XmlRpcMethodImpl.h
  4629. * test/XmlRpcMethodTest.cc
  4630. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4631. Added purgeDownloadResult command.
  4632. * src/RequestGroupMan.cc
  4633. * src/RequestGroupMan.h
  4634. * src/XmlRpcMethodFactory.cc
  4635. * src/XmlRpcMethodImpl.cc
  4636. * src/XmlRpcMethodImpl.h
  4637. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4638. Refactored.
  4639. * src/XmlRpcMethod.cc
  4640. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4641. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4642. XmlRpcResponse.
  4643. * src/HttpServerBodyCommand.cc
  4644. * src/Makefile.am
  4645. * src/XmlRpcMethod.cc
  4646. * src/XmlRpcMethod.h
  4647. * src/XmlRpcMethodImpl.cc
  4648. * src/XmlRpcResponse.cc
  4649. * src/XmlRpcResponse.h
  4650. * test/XmlRpcMethodTest.cc
  4651. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4652. In XML-RPC option struct, header and index-out option can take
  4653. array as value.
  4654. * src/XmlRpcMethod.cc
  4655. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4656. Removed unused option member from PeerConnection.
  4657. * src/InitiatorMSEHandshakeCommand.cc
  4658. * src/PeerConnection.cc
  4659. * src/PeerConnection.h
  4660. * src/PeerInteractionCommand.cc
  4661. * src/PeerReceiveHandshakeCommand.cc
  4662. * src/ReceiverMSEHandshakeCommand.cc
  4663. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4664. Added "seeder" key to getPeers response.
  4665. * src/XmlRpcMethodImpl.cc
  4666. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4667. Added addMetalink XML-RPC command.
  4668. * src/XmlRpcMethodFactory.cc
  4669. * src/XmlRpcMethodImpl.cc
  4670. * src/XmlRpcMethodImpl.h
  4671. * src/download_helper.cc
  4672. * src/download_helper.h
  4673. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4674. Fixed the bug that POU peers are never choked in seeding.
  4675. * src/BtSeederStateChoke.cc
  4676. * src/BtSeederStateChoke.h
  4677. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4678. Added web-seeding URI handling in addTorrent command.
  4679. * src/XmlRpcMethodImpl.cc
  4680. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4681. Added "length" key to getFiles response.
  4682. * src/XmlRpcMethodImpl.cc
  4683. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4684. Moved --no-netrc option from ftp option section to http/ftp option
  4685. section.
  4686. * doc/aria2c.1.txt
  4687. * src/OptionHandlerFactory.cc
  4688. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4689. Removed garbage "\" character before '
  4690. * doc/aria2c.1.txt
  4691. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4692. Removed garbage "\" character before http.
  4693. * doc/aria2c.1.txt
  4694. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4695. Documented additional options that can be specified in -i list.
  4696. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4697. and --xml-rpc-passwd. Removed --enable-http-server and
  4698. --http-server-listen-port.
  4699. * doc/aria2c.1.txt
  4700. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4701. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4702. * src/DefaultPeerStorage.cc
  4703. * src/DefaultPeerStorage.h
  4704. * src/PeerStorage.h
  4705. * src/XmlRpcMethodImpl.cc
  4706. * test/MockPeerStorage.h
  4707. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4708. Put a call to Socket::isReadable() in try block.
  4709. * src/HttpServerBodyCommand.cc
  4710. * src/HttpServerCommand.cc
  4711. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4712. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4713. exception , so it is now in try block.
  4714. * src/HttpServerResponseCommand.cc
  4715. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4716. Added "amChoking" and "peerChoking" key in getPeers response.
  4717. * src/XmlRpcMethodImpl.cc
  4718. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4719. Added test case for zero-length filter.
  4720. * test/BitfieldManTest.cc
  4721. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4722. getFiles command now returns file data for finished/stopped
  4723. downloads.
  4724. * src/XmlRpcMethodImpl.cc
  4725. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4726. DownloadResult now has the list of FileEntry. The download
  4727. summary displays the path of first selected file and the number of
  4728. remaining files for multi-file torrent.
  4729. * src/DownloadResult.h
  4730. * src/RequestGroup.cc
  4731. * src/RequestGroupMan.cc
  4732. * test/RequestGroupTest.cc
  4733. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4734. Fixed segmentation fault error when no file is selected in
  4735. multi-file torrent.
  4736. * src/BitfieldMan.cc
  4737. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4738. Escaped <,>,& character in XML-RPC response.
  4739. * src/XmlRpcMethod.cc
  4740. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4741. Throw DlAbortEx instead of FatalException during parsing options
  4742. because we don't want for aria2 to quit when bad option is passed
  4743. via XML-RPC.
  4744. * src/OptionHandlerException.cc
  4745. * src/OptionHandlerException.h
  4746. * src/OptionHandlerImpl.h
  4747. * src/OptionParser.cc
  4748. * src/OptionParser.h
  4749. * src/PStringSegment.cc
  4750. * src/ParameterizedStringParser.cc
  4751. * src/download_helper.cc
  4752. * test/ParameterizedStringParserTest.cc
  4753. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4754. Selecting files are now done in
  4755. DefaultBtContext::setFileFileter().
  4756. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4757. functions are removed because they are no longer used. Creating
  4758. filter in BitfieldMan is done in new funtion
  4759. PieceStorage::setupFileFilter()
  4760. * src/BtContext.cc
  4761. * src/BtContext.h
  4762. * src/DefaultBtContext.cc
  4763. * src/DefaultBtContext.h
  4764. * src/DefaultPieceStorage.cc
  4765. * src/DefaultPieceStorage.h
  4766. * src/DiskAdaptor.cc
  4767. * src/DiskAdaptor.h
  4768. * src/PieceStorage.h
  4769. * src/RequestGroup.cc
  4770. * src/UnknownLengthPieceStorage.h
  4771. * src/XmlRpcMethodImpl.cc
  4772. * test/DefaultBtContextTest.cc
  4773. * test/MockBtContext.h
  4774. * test/MockPieceStorage.h
  4775. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4776. Fixed compile error on Mac OS X
  4777. * src/HttpServer.cc
  4778. * src/XmlRpcMethod.h
  4779. * src/XmlRpcMethodImpl.cc
  4780. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4781. Use std::binary_search instead of std::find
  4782. * src/DefaultPieceStorage.cc
  4783. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4784. Removed unnecessary BDE() call; leave them to implicit conversion.
  4785. * src/XmlRpcMethodImpl.cc
  4786. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4787. Return connections and gid in string
  4788. * src/XmlRpcMethodImpl.cc
  4789. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4790. Renamed addURI as addUri
  4791. * src/XmlRpcMethodFactory.cc
  4792. * src/XmlRpcMethodImpl.cc
  4793. * src/XmlRpcMethodImpl.h
  4794. * test/XmlRpcMethodTest.cc
  4795. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4796. Renamed addTorrentFile as addTorrent
  4797. * src/XmlRpcMethodFactory.cc
  4798. * src/XmlRpcMethodImpl.cc
  4799. * src/XmlRpcMethodImpl.h
  4800. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4801. The information for files, URIs, peers are removed from the
  4802. reponse of TellaActive, TellStatus command because they tend to be
  4803. large. Instead they can be retrieved by the dedicated commands:
  4804. getFiles, getUris and getPeers respectively.
  4805. * src/XmlRpcMethodFactory.cc
  4806. * src/XmlRpcMethodImpl.cc
  4807. * src/XmlRpcMethodImpl.h
  4808. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4809. Removed --max-overall-upload-limit and
  4810. --max-overall-download-limit option from listRequestOptions.
  4811. * src/download_helper.cc
  4812. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4813. Log incoming host in HttpListenCommand.
  4814. * src/HttpListenCommand.cc
  4815. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4816. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4817. --xml-rpc-passwd option.
  4818. * src/HttpServer.cc
  4819. * src/HttpServer.h
  4820. * src/HttpServerCommand.cc
  4821. * src/OptionHandlerFactory.cc
  4822. * src/prefs.cc
  4823. * src/prefs.h
  4824. * src/usage_text.h
  4825. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4826. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4827. processing 0 length request.
  4828. * src/HttpServerBodyCommand.cc
  4829. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4830. Removed --enable-http-server and --http-server-listen-port
  4831. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4832. instead. The original feature for --enable-http-server that
  4833. reports download progress in HTML was officially removed. Persist
  4834. XML-RPC connection if client supports keep-alive.
  4835. * src/DownloadEngineFactory.cc
  4836. * src/HttpServerCommand.cc
  4837. * src/HttpServerResponseCommand.cc
  4838. * src/Makefile.am
  4839. * src/Makefile.in
  4840. * src/OptionHandlerFactory.cc
  4841. * src/RequestGroupMan.cc
  4842. * src/main.cc
  4843. * src/option_processing.cc
  4844. * src/prefs.cc
  4845. * src/prefs.h
  4846. * src/usage_text.h
  4847. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4848. Added "uris" key to the response of tellStatus command. Added
  4849. "connections" key to the response of tellStatus and tellActive
  4850. command.
  4851. * src/XmlRpcMethodImpl.cc
  4852. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4853. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4854. Added TellStatusXmlRpcMethod. Remove command can now remove
  4855. waiting RequestGroup.
  4856. * src/RequestGroupMan.cc
  4857. * src/RequestGroupMan.h
  4858. * src/XmlRpcMethodFactory.cc
  4859. * src/XmlRpcMethodImpl.cc
  4860. * src/XmlRpcMethodImpl.h
  4861. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4862. Initialized _peerId
  4863. * src/Peer.cc
  4864. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4865. Return fault structure for error. FailXmlRpcMethod is renamed as
  4866. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4867. in non-torrent download. Return single param value.
  4868. * src/XmlRpcMethod.cc
  4869. * src/XmlRpcMethodFactory.cc
  4870. * src/XmlRpcMethodImpl.cc
  4871. * src/XmlRpcMethodImpl.h
  4872. * test/XmlRpcMethodTest.cc
  4873. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4874. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4875. command.
  4876. * src/RequestGroup.cc
  4877. * src/RequestGroup.h
  4878. * src/RequestGroupMan.cc
  4879. * src/XmlRpcMethodImpl.cc
  4880. * test/RequestGroupTest.cc
  4881. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4882. Added more options that can be specified in -i list and xml-rpc
  4883. add* command.
  4884. * src/download_helper.h
  4885. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4886. The available options in -i list should be listed in
  4887. listRequestOptions().
  4888. * src/download_helper.cc
  4889. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4890. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4891. command.
  4892. * src/XmlRpcMethodImpl.cc
  4893. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4894. Now RequestGroup has its own copy of Option object. This will help
  4895. to give custom option for each RequestGroup.
  4896. addTorrentFile command now takes options.
  4897. * src/AbstractCommand.cc
  4898. * src/AbstractCommand.h
  4899. * src/AbstractProxyRequestCommand.cc
  4900. * src/ActivePeerConnectionCommand.cc
  4901. * src/ActivePeerConnectionCommand.h
  4902. * src/AdaptiveURISelector.cc
  4903. * src/BtCheckIntegrityEntry.cc
  4904. * src/BtDependency.cc
  4905. * src/BtDependency.h
  4906. * src/BtFileAllocationEntry.cc
  4907. * src/BtPostDownloadHandler.cc
  4908. * src/CheckIntegrityEntry.cc
  4909. * src/DownloadCommand.cc
  4910. * src/FtpDownloadCommand.cc
  4911. * src/FtpFinishDownloadCommand.cc
  4912. * src/FtpInitiateConnectionCommand.cc
  4913. * src/FtpNegotiationCommand.cc
  4914. * src/HttpInitiateConnectionCommand.cc
  4915. * src/HttpRequestCommand.cc
  4916. * src/HttpResponseCommand.cc
  4917. * src/HttpSkipResponseCommand.cc
  4918. * src/InitiateConnectionCommand.cc
  4919. * src/InitiateConnectionCommandFactory.cc
  4920. * src/InitiatorMSEHandshakeCommand.cc
  4921. * src/InitiatorMSEHandshakeCommand.h
  4922. * src/Metalink2RequestGroup.cc
  4923. * src/Metalink2RequestGroup.h
  4924. * src/MetalinkPostDownloadHandler.cc
  4925. * src/MultiUrlRequestInfo.cc
  4926. * src/MultiUrlRequestInfo.h
  4927. * src/PeerAbstractCommand.cc
  4928. * src/PeerInteractionCommand.cc
  4929. * src/PeerInteractionCommand.h
  4930. * src/PeerReceiveHandshakeCommand.cc
  4931. * src/PeerReceiveHandshakeCommand.h
  4932. * src/RequestGroup.cc
  4933. * src/RequestGroup.h
  4934. * src/TrackerWatcherCommand.cc
  4935. * src/TrackerWatcherCommand.h
  4936. * src/XmlRpcMethod.cc
  4937. * src/XmlRpcMethod.h
  4938. * src/XmlRpcMethodImpl.cc
  4939. * src/download_helper.cc
  4940. * src/download_helper.h
  4941. * src/main.cc
  4942. * test/BtDependencyTest.cc
  4943. * test/BtPostDownloadHandlerTest.cc
  4944. * test/DefaultBtMessageDispatcherTest.cc
  4945. * test/DownloadHandlerFactoryTest.cc
  4946. * test/DownloadHelperTest.cc
  4947. * test/Metalink2RequestGroupTest.cc
  4948. * test/MetalinkPostDownloadHandlerTest.cc
  4949. * test/RequestGroupManTest.cc
  4950. * test/RequestGroupTest.cc
  4951. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4952. Added tellActiveStatus xml-rpc command which reports download
  4953. status of active downloads.
  4954. * src/XmlRpcMethodFactory.cc
  4955. * src/XmlRpcMethodImpl.cc
  4956. * src/XmlRpcMethodImpl.h
  4957. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4958. Added addTorrentFile xml-rpc command which receives uploaded
  4959. torrent file and add download for it.
  4960. * src/RequestGroupMan.cc
  4961. * src/XmlRpcMethodFactory.cc
  4962. * src/XmlRpcMethodImpl.cc
  4963. * src/XmlRpcMethodImpl.h
  4964. * src/download_helper.cc
  4965. * src/download_helper.h
  4966. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4967. Added remove xml-rpc command which removes specified download.
  4968. There is a known issue: the removed unfinished downloads are
  4969. reported ERR when aria2 exits. They should be reported as INPR.
  4970. * src/RequestGroupMan.cc
  4971. * src/RequestGroupMan.h
  4972. * src/XmlRpcMethodFactory.cc
  4973. * src/XmlRpcMethodImpl.cc
  4974. * src/XmlRpcMethodImpl.h
  4975. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4976. If --enable-http-server is enabled, don't stop aria2 when all
  4977. download finished and don't quit when no files to download at
  4978. start up.
  4979. * src/RequestGroupMan.cc
  4980. * src/main.cc
  4981. * src/option_processing.cc
  4982. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4983. Added missing AM_CONDITIONAL
  4984. * configure.ac
  4985. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4986. Added xml-rpc functionality. Currently only addURI commad is
  4987. supported. To enable xml-rpc, run aria2 with
  4988. --enable-http-server. This option name is temporal and will be
  4989. changed. The feature that reports download progress in html format
  4990. is temporarily disabled.
  4991. * src/HttpServer.cc
  4992. * src/HttpServer.h
  4993. * src/HttpServerBodyCommand.cc
  4994. * src/HttpServerBodyCommand.h
  4995. * src/HttpServerCommand.cc
  4996. * src/HttpServerResponseCommand.cc
  4997. * src/Makefile.am
  4998. * src/OptionParser.cc
  4999. * src/OptionParser.h
  5000. * src/RequestGroupMan.cc
  5001. * src/RequestGroupMan.h
  5002. * src/XmlRpcMethod.cc
  5003. * src/XmlRpcMethod.h
  5004. * src/XmlRpcMethodFactory.cc
  5005. * src/XmlRpcMethodFactory.h
  5006. * src/XmlRpcMethodImpl.cc
  5007. * src/XmlRpcMethodImpl.h
  5008. * src/download_helper.cc
  5009. * src/download_helper.h
  5010. * test/Makefile.am
  5011. * test/XmlRpcMethodTest.cc
  5012. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5013. Added xml-rpc request parser. The supported value types are:
  5014. i4/int, string, double, struct, array, base64. Currently only
  5015. libxml2 version is provided.
  5016. * src/Xml2XmlRpcRequestProcessor.cc
  5017. * src/Xml2XmlRpcRequestProcessor.h
  5018. * src/XmlRpcElements.cc
  5019. * src/XmlRpcElements.h
  5020. * src/XmlRpcRequest.h
  5021. * src/XmlRpcRequestParserController.cc
  5022. * src/XmlRpcRequestParserController.h
  5023. * src/XmlRpcRequestParserState.h
  5024. * src/XmlRpcRequestParserStateImpl.cc
  5025. * src/XmlRpcRequestParserStateImpl.h
  5026. * src/XmlRpcRequestParserStateMachine.cc
  5027. * src/XmlRpcRequestParserStateMachine.h
  5028. * src/XmlRpcRequestProcessor.h
  5029. * test/XmlRpcRequestParserControllerTest.cc
  5030. * test/XmlRpcRequestProcessorTest.cc
  5031. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. * Release 1.3.3
  5033. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5034. Fixed compile error since r1202.
  5035. * src/ExpatMetalinkProcessor.cc
  5036. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5037. Updated Ukrainian, Russian and Simplified Chinese
  5038. translations. Thanks to all translators.
  5039. * po/ru.po
  5040. * po/uk.po
  5041. * po/zh_CN.po
  5042. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5043. Pass reference of Option object instead of pointer.
  5044. * src/download_helper.cc
  5045. * src/download_helper.h
  5046. * src/main.cc
  5047. * test/DownloadHelperTest.cc
  5048. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  5050. from option directly. Instead, get them from RequestGroup.
  5051. * src/ActivePeerConnectionCommand.cc
  5052. * src/ActivePeerConnectionCommand.h
  5053. * src/PeerReceiveHandshakeCommand.cc
  5054. * src/RequestGroup.h
  5055. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Removed unused uploadLimitCheck and uploadLimit from
  5057. PeerAbstractCommand. Removed unused maxDownloadLimit from
  5058. PeerInteractionCommand.
  5059. * src/PeerAbstractCommand.cc
  5060. * src/PeerAbstractCommand.h
  5061. * src/PeerInteractionCommand.cc
  5062. * src/PeerInteractionCommand.h
  5063. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5064. Fixed broken file renaming feature since r1202.
  5065. * src/FtpNegotiationCommand.cc
  5066. * src/FtpNegotiationCommand.h
  5067. * src/HttpResponseCommand.cc
  5068. * src/RequestGroup.cc
  5069. * src/RequestGroup.h
  5070. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5071. Removed unused debug log
  5072. * src/SocketCore.cc
  5073. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5074. Generated configure and Makefile.in using autoconf 2.63 and
  5075. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  5076. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  5077. * configure.ac
  5078. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5079. Moved piece statistics stuff to new PieceStatMan class.
  5080. Refactored PieceSelector interface.
  5081. * src/DefaultPieceStorage.cc
  5082. * src/DefaultPieceStorage.h
  5083. * src/LongestSequencePieceSelector.cc
  5084. * src/LongestSequencePieceSelector.h
  5085. * src/Makefile.am
  5086. * src/PieceSelector.h
  5087. * src/PieceStatMan.cc
  5088. * src/PieceStatMan.h
  5089. * src/RarestPieceSelector.cc
  5090. * src/RarestPieceSelector.h
  5091. * src/RequestGroup.cc
  5092. * test/DefaultPieceStorageTest.cc
  5093. * test/InOrderPieceSelector.h
  5094. * test/Makefile.am
  5095. * test/PieceStatManTest.cc
  5096. * test/RarestPieceSelectorTest.cc
  5097. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5098. Added static member _protocolFamily to SocketCore. By default,
  5099. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  5100. address. Sometime SocketCore::bind() and
  5101. SocketCore::establishConnection() use difference protocl family
  5102. and latter cannot connect to former. To avoid this situation, we
  5103. limit protocol family to AF_INET for unit tests.
  5104. * src/SocketCore.cc
  5105. * src/SocketCore.h
  5106. * test/AllTest.cc
  5107. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5108. Avoid std::bad_alloc for negative bencode string length.
  5109. * src/bencode.cc
  5110. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5111. Supported segmented downloading with chunked transfer encoding and
  5112. content-length.
  5113. * src/DownloadCommand.cc
  5114. * src/HttpResponseCommand.cc
  5115. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5116. Bump up version number to 1.3.3
  5117. * configure.ac
  5118. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5119. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  5120. from 4096 to 65536 (for insanely large ftp login banners)
  5121. * src/FtpConnection.h
  5122. * test/FtpConnectionTest.cc
  5123. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5124. In DefaultBtContext::getActualBasePath(), return first
  5125. FileEntry::getPath() for single file torrent.
  5126. * src/DefaultBtContext.cc
  5127. * test/DefaultBtContextTest.cc
  5128. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5129. Removed directIOAllowed() from BinaryStream, DiskWriter,
  5130. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  5131. Removed _directIOAllowed member from DiskWriter.
  5132. * src/AbstractDiskWriter.cc
  5133. * src/AbstractDiskWriter.h
  5134. * src/AbstractSingleDiskAdaptor.cc
  5135. * src/AbstractSingleDiskAdaptor.h
  5136. * src/BinaryStream.h
  5137. * src/ByteArrayDiskWriter.h
  5138. * src/DefaultPieceStorage.cc
  5139. * src/DiskWriter.h
  5140. * src/MultiDiskAdaptor.cc
  5141. * src/MultiDiskAdaptor.h
  5142. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5143. Now the constructor of AbstractDiskWriter takes filename as an
  5144. argument and filename argument is removed from openFile(),
  5145. initAndOpenFile(), openExistingFile() interface. storeDir member
  5146. and its accessor functions are removed from DiskAdaptor because it
  5147. is not used anymore. size() member function of DefaultDiskWriter,
  5148. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  5149. opening file.
  5150. * src/AbstractDiskWriter.cc
  5151. * src/AbstractDiskWriter.h
  5152. * src/AbstractSingleDiskAdaptor.cc
  5153. * src/AbstractSingleDiskAdaptor.h
  5154. * src/ByteArrayDiskWriter.cc
  5155. * src/ByteArrayDiskWriter.h
  5156. * src/ByteArrayDiskWriterFactory.cc
  5157. * src/ByteArrayDiskWriterFactory.h
  5158. * src/DefaultDiskWriter.cc
  5159. * src/DefaultDiskWriter.h
  5160. * src/DefaultDiskWriterFactory.cc
  5161. * src/DefaultDiskWriterFactory.h
  5162. * src/DefaultPieceStorage.cc
  5163. * src/DirectDiskAdaptor.cc
  5164. * src/DirectDiskAdaptor.h
  5165. * src/DiskAdaptor.h
  5166. * src/DiskWriter.h
  5167. * src/DiskWriterFactory.h
  5168. * src/MessageDigestHelper.cc
  5169. * src/MultiDiskAdaptor.cc
  5170. * src/RequestGroup.cc
  5171. * src/UnknownLengthPieceStorage.cc
  5172. * src/Util.cc
  5173. * test/DefaultDiskWriterTest.cc
  5174. * test/DirectDiskAdaptorTest.cc
  5175. * test/FallocFileAllocationIteratorTest.cc
  5176. * test/MessageDigestHelperTest.cc
  5177. * test/MetalinkProcessorTest.cc
  5178. * test/MultiDiskAdaptorTest.cc
  5179. * test/MultiFileAllocationIteratorTest.cc
  5180. * test/SingleFileAllocationIteratorTest.cc
  5181. * test/UtilTest.cc
  5182. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5183. Fixed the bug that aria2 aborts when --select-file is used. This
  5184. bug was introduced in r1199.
  5185. * src/MultiDiskAdaptor.cc
  5186. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5187. Code cleanup
  5188. * test/MockPieceStorage.cc
  5189. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5190. Fixed the bug that read-only file with wrong file size will cause
  5191. error because it cannot be truncated to the correct size. Now if
  5192. file size is different than the expected one, re-open file in
  5193. writable mode.
  5194. * src/AbstractSingleDiskAdaptor.cc
  5195. * src/AbstractSingleDiskAdaptor.h
  5196. * src/BtCheckIntegrityEntry.cc
  5197. * src/DiskAdaptor.h
  5198. * src/MultiDiskAdaptor.h
  5199. * src/RequestGroup.cc
  5200. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5201. Fixed the bug that with --check-integrity option aria2 reports
  5202. downloaded file size is 0 even if some parts of file is correctly
  5203. downloaded. This bug is reproducible for the download that a file
  5204. includes last piece is missing. This bug doesn't reveal for
  5205. single-torrent with file allocation on.
  5206. * src/IteratableChecksumValidator.cc
  5207. * test/IteratableChecksumValidatorTest.cc
  5208. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5209. Avoid circular reference between RequestGroup and AdaptiveURISelector
  5210. * src/RequestGroupMan.cc
  5211. * src/AdaptiveURISelector.cc
  5212. * src/AdaptiveURISelector.h
  5213. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5214. * Release 1.3.2
  5215. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5216. Updated README
  5217. * README
  5218. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5219. Updated Ukrainian translations. Thanks to Alexander10.
  5220. * po/uk.po
  5221. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5222. Code cleanup
  5223. * src/MetalinkParserStateMachine.cc
  5224. * src/MetalinkParserStateMachine.h
  5225. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5226. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  5227. and expat simultaneously, MetalinkProcessor is now not base class
  5228. and it is directly implemented in XML2SAXMetalinkProcessor and
  5229. ExpatMetalinkProcessor.
  5230. * src/ExpatMetalinkProcessor.cc
  5231. * src/ExpatMetalinkProcessor.h
  5232. * src/Makefile.am
  5233. * src/MetalinkHelper.cc
  5234. * src/MetalinkProcessor.h
  5235. * src/MetalinkProcessorFactory.cc: Removed.
  5236. * src/MetalinkProcessorFactory.h: Removed
  5237. * src/XML2SAXMetalinkProcessor.cc
  5238. * src/XML2SAXMetalinkProcessor.h
  5239. * test/MetalinkProcessorTest.cc
  5240. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5241. Bump up version number to 1.3.2
  5242. * configure.ac
  5243. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5244. Added missing file.
  5245. * test/Makefile.am
  5246. * test/url-list-singleFileEndsWithSlash.torrent
  5247. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5248. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  5249. request.
  5250. * src/AnnounceList.cc
  5251. * src/AnnounceList.h
  5252. * src/BDE.cc: Added
  5253. * src/BDE.h: Added
  5254. * src/DHTAbstractMessage.cc
  5255. * src/DHTAbstractMessage.h
  5256. * src/DHTAnnouncePeerMessage.cc
  5257. * src/DHTAnnouncePeerMessage.h
  5258. * src/DHTAnnouncePeerReplyMessage.cc
  5259. * src/DHTAnnouncePeerReplyMessage.h
  5260. * src/DHTFindNodeMessage.cc
  5261. * src/DHTFindNodeMessage.h
  5262. * src/DHTFindNodeReplyMessage.cc
  5263. * src/DHTFindNodeReplyMessage.h
  5264. * src/DHTGetPeersMessage.cc
  5265. * src/DHTGetPeersMessage.h
  5266. * src/DHTGetPeersReplyMessage.cc
  5267. * src/DHTGetPeersReplyMessage.h
  5268. * src/DHTMessageFactory.h
  5269. * src/DHTMessageFactoryImpl.cc
  5270. * src/DHTMessageFactoryImpl.h
  5271. * src/DHTMessageReceiver.cc
  5272. * src/DHTMessageTracker.cc
  5273. * src/DHTMessageTracker.h
  5274. * src/DHTPingMessage.cc
  5275. * src/DHTPingMessage.h
  5276. * src/DHTPingReplyMessage.cc
  5277. * src/DHTPingReplyMessage.h
  5278. * src/DHTQueryMessage.cc
  5279. * src/DHTQueryMessage.h
  5280. * src/DHTResponseMessage.cc
  5281. * src/DHTResponseMessage.h
  5282. * src/DefaultBtAnnounce.cc
  5283. * src/DefaultBtContext.cc
  5284. * src/DefaultBtContext.h
  5285. * src/HandshakeExtensionMessage.cc
  5286. * src/Makefile.am
  5287. * src/PeerListProcessor.h
  5288. * src/UTPexExtensionMessage.cc
  5289. * src/bencode.cc
  5290. * src/bencode.h
  5291. * test/AnnounceListTest.cc
  5292. * test/BDETest.cc: Added
  5293. * test/BencodeTest.cc
  5294. * test/DHTAnnouncePeerMessageTest.cc
  5295. * test/DHTAnnouncePeerReplyMessageTest.cc
  5296. * test/DHTFindNodeMessageTest.cc
  5297. * test/DHTFindNodeReplyMessageTest.cc
  5298. * test/DHTGetPeersMessageTest.cc
  5299. * test/DHTGetPeersReplyMessageTest.cc
  5300. * test/DHTMessageFactoryImplTest.cc
  5301. * test/DHTMessageTrackerTest.cc
  5302. * test/DHTPingMessageTest.cc
  5303. * test/DHTPingReplyMessageTest.cc
  5304. * test/Makefile.am
  5305. * test/MockDHTMessageFactory.h
  5306. * test/PeerListProcessorTest.cc
  5307. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5308. Use url-list (web-seeding) only for single-file torrent. This is
  5309. basically the same behavior with Metalink file with torrent and
  5310. URIs.
  5311. * src/RequestGroup.cc
  5312. * src/DefaultBtContext.cc
  5313. * test/DefaultBtContextTest.cc
  5314. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5315. Rewritten expr
  5316. * src/array_fun.h
  5317. * test/array_funTest.cc
  5318. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5319. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  5320. * src/DefaultBtMessageDispatcher.cc
  5321. * src/a2algo.h
  5322. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5323. Removed ExtendedMessagingAware. Instead of using inheritance,
  5324. added ExtensionMessageRegistry and it is passed to
  5325. DefaultExtensionMessageFactory.
  5326. * src/DefaultBtInteractive.cc
  5327. * src/DefaultBtInteractive.h
  5328. * src/DefaultExtensionMessageFactory.cc
  5329. * src/DefaultExtensionMessageFactory.h
  5330. * src/ExtendedMessagingAware.h: Removed.
  5331. * src/ExtensionMessageFactory.h
  5332. * src/ExtensionMessageRegistry.h: Added.
  5333. * src/Makefile.am
  5334. * src/PeerInteractionCommand.cc
  5335. * test/DefaultExtensionMessageFactoryTest.cc
  5336. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5337. Fixed typo in log messages
  5338. * src/MSEHandshake.cc
  5339. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5340. Fixed the bug that prevents torrent download from finishing. The
  5341. bug doesn't reveal for all torrents. The torrents affected this
  5342. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  5343. of pieces.
  5344. * src/bitfield.h
  5345. * test/bitfieldTest.cc
  5346. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5347. Code cleanup
  5348. * src/PeerListProcessor.h
  5349. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5350. Removed RequestGroupAware
  5351. * src/AbstractCommand.cc
  5352. * src/AbstractCommand.h
  5353. * src/ActivePeerConnectionCommand.cc
  5354. * src/ActivePeerConnectionCommand.h
  5355. * src/DHTGetPeersCommand.cc
  5356. * src/DHTGetPeersCommand.h
  5357. * src/InitiatorMSEHandshakeCommand.cc
  5358. * src/InitiatorMSEHandshakeCommand.h
  5359. * src/Makefile.am
  5360. * src/PeerInitiateConnectionCommand.cc
  5361. * src/PeerInitiateConnectionCommand.h
  5362. * src/PeerInteractionCommand.cc
  5363. * src/PeerInteractionCommand.h
  5364. * src/RealtimeCommand.cc
  5365. * src/RealtimeCommand.h
  5366. * src/RequestGroupAware.cc: Removed
  5367. * src/RequestGroupAware.h: Removed
  5368. * src/SeedCheckCommand.cc
  5369. * src/SeedCheckCommand.h
  5370. * src/SleepCommand.cc
  5371. * src/TrackerWatcherCommand.cc
  5372. * src/TrackerWatcherCommand.h
  5373. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5374. Rewritten PeerListProcessor
  5375. * src/PeerListProcessor.h
  5376. * src/CompactPeerListProcessor.h: Removed
  5377. * src/CompactPeerListProcessor.cc: Removed
  5378. * src/DelegatingPeerListProcessor.cc: Removed.
  5379. * src/DefaultBtAnnounce.cc
  5380. * src/Makefile.am
  5381. * src/UTPexExtensionMessage.cc
  5382. * src/DefaultPeerListProcessor.h: Removed.
  5383. * src/DefaultPeerListProcessor.cc: Removed.
  5384. * src/DelegatingPeerListProcessor.h: Removed.
  5385. * test/Makefile.am
  5386. * test/PeerListProcessorTest.cc
  5387. * test/DefaultPeerListProcessorTest.cc: Removed.
  5388. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5389. Rewritten RequestGroupMan::calculateStat()
  5390. * src/RequestGroupMan.cc
  5391. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5392. Removed unnecessary virtual destructor for Request class.
  5393. * src/Request.cc
  5394. * src/Request.h
  5395. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5396. Avoid dynamic_pointer_cast.
  5397. * src/DHTGetPeersCommand.cc
  5398. * src/DHTGetPeersCommand.h
  5399. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5400. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  5401. BtEvent.
  5402. * src/AbstractBtEventListener.h: Removed.
  5403. * src/AbstractBtMessage.cc
  5404. * src/AbstractBtMessage.h
  5405. * src/BtAbortOutstandingRequestEvent.h
  5406. * src/BtCancelSendingPieceEvent.h
  5407. * src/BtChokedEvent.h: Removed.
  5408. * src/BtChokingEvent.h
  5409. * src/BtEvent.h: Removed
  5410. * src/BtEventListener.h: Removed.
  5411. * src/BtMessage.h
  5412. * src/BtPieceMessage.cc
  5413. * src/BtPieceMessage.h
  5414. * src/BtRequestMessage.cc
  5415. * src/BtRequestMessage.h
  5416. * src/DefaultBtMessageDispatcher.cc
  5417. * src/Makefile.am
  5418. * src/a2functional.h
  5419. * test/BtPieceMessageTest.cc
  5420. * test/BtRequestMessageTest.cc
  5421. * test/DefaultBtMessageDispatcherTest.cc
  5422. * test/MockBtMessage.h
  5423. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5424. Code cleanup
  5425. * src/RequestGroupMan.cc
  5426. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5427. Code cleanup
  5428. * src/DownloadCommand.cc
  5429. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5430. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5431. byte.
  5432. * src/DownloadCommand.cc
  5433. * src/bitfield.h
  5434. * test/bitfieldTest.cc
  5435. Fixed the bug that causes infinite loop if broken web server
  5436. returns chunked response without last "0" chunk-size marker and
  5437. closes connection.
  5438. * src/DownloadCommand.cc
  5439. Instantiate properly configured HttpDownloadCommand for
  5440. non-resumable downlaods.
  5441. * src/HttpResponseCommand.cc
  5442. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5443. Rewritten array operation functions.
  5444. * src/BitfieldMan.cc
  5445. * src/array_fun.h
  5446. * test/array_funTest.cc
  5447. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5448. Removed unused variable 'query'
  5449. * src/Request.cc
  5450. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5451. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5452. accidentally set to false in r1162.
  5453. * configure.ac
  5454. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5455. Code cleanup
  5456. * src/BNode.cc
  5457. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5458. Increase prefixLength for the bucket which doesn't own local node
  5459. ID when splitting bucket.
  5460. * src/DHTBucket.cc
  5461. * test/DHTBucketTest.cc
  5462. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5463. * Release 1.3.1
  5464. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5465. Bump up version number to 1.3.1
  5466. * configure.ac
  5467. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5468. Removed unused variable checkPoint. Also removed include directive
  5469. for TimeA2.h.
  5470. * src/SeedCheckCommand.h
  5471. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5472. Fixed the bug that upload limit exceeds the value specified in
  5473. --seed-ratio option depending on the timing of the execution of
  5474. SeedCheckCommand.
  5475. * src/SeedCheckCommand.cc
  5476. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5477. Fixed the bug that removed peer's session upload/download length
  5478. are counted twice in _cachedTransferStat before it is
  5479. re-calculated. This affected the calculation of shara ratio,
  5480. resulting aria2 wrongly determines that specified share ratio is
  5481. reached. Also fixed the typo in calculateStatFor function name.
  5482. * src/BtSetup.cc
  5483. * src/DefaultPeerStorage.cc
  5484. * src/ShareRatioSeedCriteria.h
  5485. * test/ShareRatioSeedCriteriaTest.cc
  5486. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5487. * Release 1.3.0
  5488. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5489. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5490. Nynorsk translations. Thanks to all translators.
  5491. * po/es.po
  5492. * po/ja.po
  5493. * po/nn.po
  5494. * po/ru.po
  5495. * po/uk.po
  5496. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5497. Rewritten isInRange()
  5498. * src/DHTBucket.cc
  5499. * test/DHTBucketTest.cc
  5500. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5501. Fixed typo
  5502. * doc/aria2c.1.txt
  5503. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5504. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5505. malloc/realloc is not used.
  5506. * src/configure.ac
  5507. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5508. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5509. char* bitfield instead of stl container for efficiency.
  5510. PieceSelector::select now takes this
  5511. bitfield. RarestPieceSelector::select now also performs
  5512. efficiently for this change. bitfield namespace is introduced and
  5513. it has several helper functions to handle basic bitfield
  5514. operations such as test, count set bits, etc.
  5515. * src/BitfieldMan.cc
  5516. * src/BitfieldMan.h
  5517. * src/DefaultBtRequestFactory.cc
  5518. * src/DefaultPieceStorage.cc
  5519. * src/DefaultPieceStorage.h
  5520. * src/LongestSequencePieceSelector.cc
  5521. * src/LongestSequencePieceSelector.h
  5522. * src/Makefile.am
  5523. * src/Piece.cc
  5524. * src/Piece.h
  5525. * src/PieceSelector.h
  5526. * src/RarestPieceSelector.cc
  5527. * src/RarestPieceSelector.h
  5528. * src/Util.cc
  5529. * src/Util.h
  5530. * src/bitfield.h
  5531. * test/BitfieldManTest.cc
  5532. * test/LongestSequencePieceSelectorTest.cc
  5533. * test/Makefile.am
  5534. * test/RarestPieceSelectorTest.cc
  5535. * test/UtilTest.cc
  5536. * test/bitfieldTest.cc
  5537. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5538. Made accepted socket non-block.
  5539. * src/FtpNegotiationCommand.cc
  5540. * src/HttpListenCommand.cc
  5541. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5542. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5543. * src/AbstractSingleDiskAdaptor.cc
  5544. * src/DefaultPieceStorage.cc
  5545. * src/DiskAdaptor.h
  5546. * src/DiskAdaptor.h
  5547. * src/MultiFileAllocationIterator.cc
  5548. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5549. Run
  5550. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5551. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5552. it doesn't need to be called every time when
  5553. DefaultBtInteractive::doInteractionProcessing() is called.
  5554. * src/DefaultBtInteractive.cc
  5555. * src/DefaultBtInteractive.h
  5556. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5557. Documented 'falloc' in man page.
  5558. * doc/aria2c.1.txt
  5559. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5560. Updated doc
  5561. * src/usage_text.h
  5562. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5563. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5564. allocation mode uses posix_fallocate() system call to allocate
  5565. file on disk. If you are using newer file systems such as ext4
  5566. (with extents support), btrfs or xfs, 'falloc' is your best
  5567. choice. It allocates large(few GiB) files almost instantly. Don't
  5568. use 'falloc' with legacy file systems such as ext3 because it
  5569. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5570. until allocation finishes. 'falloc' may not be available if your
  5571. system doesn't have posix_fallocate() system call.
  5572. * configure.ac
  5573. * src/AbstractDiskWriter.cc
  5574. * src/AbstractDiskWriter.h
  5575. * src/AbstractSingleDiskAdaptor.cc
  5576. * src/BinaryStream.h
  5577. * src/BtCheckIntegrityEntry.cc
  5578. * src/ByteArrayDiskWriter.h
  5579. * src/CheckIntegrityEntry.cc
  5580. * src/CheckIntegrityEntry.h
  5581. * src/DefaultPieceStorage.cc
  5582. * src/DiskAdaptor.cc
  5583. * src/DiskAdaptor.h
  5584. * src/DiskWriter.h
  5585. * src/FallocFileAllocationIterator.cc
  5586. * src/FallocFileAllocationIterator.h
  5587. * src/FileAllocationEntry.cc
  5588. * src/FileAllocationEntry.h
  5589. * src/Makefile.am
  5590. * src/MultiFileAllocationIterator.cc
  5591. * src/MultiFileAllocationIterator.h
  5592. * src/OptionHandlerFactory.cc
  5593. * src/RequestGroup.cc
  5594. * src/StreamCheckIntegrityEntry.cc
  5595. * src/prefs.cc
  5596. * src/prefs.h
  5597. * src/usage_text.h
  5598. * test/FallocFileAllocationIteratorTest.cc
  5599. * test/Makefile.am
  5600. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5601. Removed duplicate enableDirectIO() call.
  5602. * src/MultiFileAllocationIterator.cc
  5603. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5604. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5605. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5606. cost of std::rotate().
  5607. * src/RarestPieceSelector.cc
  5608. * src/RarestPieceSelector.h
  5609. * test/RarestPieceSelectorTest.cc
  5610. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5611. Updated usage doc for --bt-tracker-interval option.
  5612. * src/usage_text.h
  5613. * doc/aria2c.1.txt
  5614. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5615. Documented --bt-tracker-interval option in man page.
  5616. * doc/aria2c.1.txt
  5617. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5618. Added an option to specify the interval between tracker requests.
  5619. If non-zero value is specified, aria2 uses it and ignores the
  5620. interval value in the response of tracker. If zero is specified,
  5621. aria2 determines the inteval value based on the tarcker response
  5622. and download progress.
  5623. * src/DefaultBtAnnounce.cc
  5624. * src/DefaultBtAnnounce.h
  5625. * src/OptionHandlerFactory.cc
  5626. * src/RequestGroup.cc
  5627. * src/prefs.cc
  5628. * src/prefs.h
  5629. * src/usage_text.h
  5630. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5631. Added operator+=, operator-=, operator-
  5632. * src/TransferStat.cc
  5633. * src/TransferStat.h
  5634. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5635. Refactored RarestPieceSelector to reduce CPU load, especially for
  5636. addPieceStats.
  5637. * src/RarestPieceSelector.cc
  5638. * src/RarestPieceSelector.h
  5639. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5640. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5641. getAllMissingBlockIndexes to reduce a call to
  5642. array_function_base::operator[].
  5643. * src/BitfieldMan.cc
  5644. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5645. Cached TransferStat/download speed to avoid to sum them up in each
  5646. call.
  5647. * src/DefaultPeerStorage.cc
  5648. * src/DefaultPeerStorage.h
  5649. * src/SegmentMan.cc
  5650. * src/SegmentMan.h
  5651. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5652. Typedefed cuid_t as int32_t in Command.h
  5653. * src/CUIDCounter.h
  5654. * src/Command.cc
  5655. * src/Command.h
  5656. * src/DownloadEngine.cc
  5657. * src/DownloadEngine.h
  5658. * src/PeerStat.h
  5659. * src/SegmentMan.cc
  5660. * src/SegmentMan.h
  5661. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5662. Reduced the number of calls to PeerStorage::calculateStat() and
  5663. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5664. transfer rate.
  5665. * src/DefaultBtInteractive.cc
  5666. * src/DefaultBtMessageDispatcher.cc
  5667. * src/DefaultPeerStorage.cc
  5668. * src/DefaultPeerStorage.h
  5669. * src/DownloadCommand.cc
  5670. * src/DownloadEngine.cc
  5671. * src/PeerStorage.h
  5672. * src/SegmentMan.cc
  5673. * src/SegmentMan.h
  5674. * test/MockPeerStorage.h
  5675. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5676. Prepended _dir+"/" after joining path elements in torrent file.
  5677. * src/DefaultBtContext.cc
  5678. * test/DefaultBtContextTest.cc
  5679. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5680. Added missing IndexBtMessageValidator.h
  5681. * src/Makefile.am
  5682. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5683. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5684. Chinese translations. Thank you for contributing our project.
  5685. * po/id.po
  5686. * po/it.po
  5687. * po/ru.po
  5688. * po/uk.po
  5689. * po/zh_CN.po
  5690. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5691. Updated README
  5692. * README
  5693. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5694. Bump up version number to 1.3.0
  5695. * configure.ac
  5696. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5697. Updated doc
  5698. * src/DefaultBtContext.h
  5699. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5700. Slice/joinPath for name of single torrent.
  5701. * src/DefaultBtContext.cc
  5702. * test/DefaultBtContextTest.cc
  5703. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5704. Updated man page: Documented --dry-run and --index-out
  5705. options. Changed the default value of --uri-selector and
  5706. --http-auth-challenge options. Removed --direct-file-mapping
  5707. option. Added example for --index-out
  5708. * doc/aria2c.1.txt
  5709. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5710. Updated TEXT_DRY_RUN
  5711. * src/usage_text.h
  5712. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5713. Changed the default value of --uri-selector option from 'inorder'
  5714. to 'feedback'
  5715. * src/OptionHandlerFactory.cc
  5716. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5717. Included current URI in exception message.
  5718. * src/AbstractCommand.cc
  5719. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5720. Renamed ServerStatURISelector as FeedbackURISelector.
  5721. * src/FeedbackURISelector.cc
  5722. * src/FeedbackURISelector.h
  5723. * src/Makefile.am
  5724. * src/RequestGroupMan.cc
  5725. * src/ServerStatURISelector.cc
  5726. * src/ServerStatURISelector.h
  5727. * test/FeedbackURISelectorTest.cc
  5728. * test/Makefile.am
  5729. * test/ServerStatURISelectorTest.cc
  5730. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5731. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5732. all URIs are tested and their timeout is not reached.
  5733. * src/AdaptiveURISelector.cc
  5734. * src/AdaptiveURISelector.h
  5735. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5736. Changed the default value of --http-auth-challenge option to false.
  5737. * src/OptionHandlerFactory.cc
  5738. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5739. Reuse URIs when all unused URIs run out.
  5740. * src/OptionHandlerFactory.cc
  5741. * src/RequestGroup.cc
  5742. * src/prefs.cc
  5743. * src/prefs.h
  5744. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5745. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5746. and BtRejectMessage are derived from RangeBtMessage class.
  5747. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5748. derived from IndexBtMessage class. BtChokeMessage,
  5749. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5750. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5751. ZeroBtMessage class.
  5752. * src/AbstractBtMessage.cc
  5753. * src/AbstractBtMessage.h
  5754. * src/BtAllowedFastMessage.cc
  5755. * src/BtAllowedFastMessage.h
  5756. * src/BtAllowedFastMessageValidator.h: Removed
  5757. * src/BtBitfieldMessage.cc
  5758. * src/BtBitfieldMessage.h
  5759. * src/BtCancelMessage.cc
  5760. * src/BtCancelMessage.h
  5761. * src/BtCancelMessageValidator.h: Removed
  5762. * src/BtChokeMessage.cc
  5763. * src/BtChokeMessage.h
  5764. * src/BtExtendedMessage.cc
  5765. * src/BtExtendedMessage.h
  5766. * src/BtHandshakeMessage.cc
  5767. * src/BtHandshakeMessage.h
  5768. * src/BtHaveAllMessage.cc
  5769. * src/BtHaveAllMessage.h
  5770. * src/BtHaveMessage.cc
  5771. * src/BtHaveMessage.h
  5772. * src/BtHaveMessageValidator.h: Removed
  5773. * src/BtHaveNoneMessage.cc
  5774. * src/BtHaveNoneMessage.h
  5775. * src/BtInterestedMessage.cc
  5776. * src/BtInterestedMessage.h
  5777. * src/BtKeepAliveMessage.cc
  5778. * src/BtKeepAliveMessage.h
  5779. * src/BtNotInterestedMessage.cc
  5780. * src/BtNotInterestedMessage.h
  5781. * src/BtPieceMessage.cc
  5782. * src/BtPieceMessage.h
  5783. * src/BtPortMessage.cc
  5784. * src/BtPortMessage.h
  5785. * src/BtRejectMessage.cc
  5786. * src/BtRejectMessage.h
  5787. * src/BtRejectMessageValidator.h: Removed
  5788. * src/BtRequestMessage.cc
  5789. * src/BtRequestMessage.h
  5790. * src/BtRequestMessageValidator.h: Removed
  5791. * src/BtSuggestPieceMessage.cc
  5792. * src/BtSuggestPieceMessage.h
  5793. * src/BtSuggestPieceMessageValidator.h: Removed
  5794. * src/BtUnchokeMessage.cc
  5795. * src/BtUnchokeMessage.h
  5796. * src/DefaultBtMessageFactory.cc
  5797. * src/IndexBtMessage.cc
  5798. * src/IndexBtMessage.h
  5799. * src/IndexBtMessageValidator.h
  5800. * src/Makefile.am
  5801. * src/PeerMessageUtil.cc
  5802. * src/PeerMessageUtil.h
  5803. * src/RangeBtMessage.cc
  5804. * src/RangeBtMessage.h
  5805. * src/RangeBtMessageValidator.h
  5806. * src/SimpleBtMessage.cc
  5807. * src/SimpleBtMessage.h
  5808. * src/ZeroBtMessage.cc
  5809. * src/ZeroBtMessage.h
  5810. * test/BtRequestMessageTest.cc
  5811. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5812. Reverted usage_text.h to r1093 to avoid to lose translated
  5813. messages.
  5814. * src/usage_text.h
  5815. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5816. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5817. declared as non-const previously is now const and defined in class
  5818. definition.
  5819. * src/AbstractBtMessage.cc
  5820. * src/AbstractBtMessage.h
  5821. * src/BtAllowedFastMessage.cc
  5822. * src/BtAllowedFastMessage.h
  5823. * src/BtBitfieldMessage.h
  5824. * src/BtCancelMessage.cc
  5825. * src/BtCancelMessage.h
  5826. * src/BtChokeMessage.cc
  5827. * src/BtChokeMessage.h
  5828. * src/BtExtendedMessage.cc
  5829. * src/BtExtendedMessage.h
  5830. * src/BtHandshakeMessage.cc
  5831. * src/BtHandshakeMessage.h
  5832. * src/BtHaveAllMessage.cc
  5833. * src/BtHaveAllMessage.h
  5834. * src/BtHaveMessage.cc
  5835. * src/BtHaveMessage.h
  5836. * src/BtHaveNoneMessage.cc
  5837. * src/BtHaveNoneMessage.h
  5838. * src/BtInterestedMessage.cc
  5839. * src/BtInterestedMessage.h
  5840. * src/BtKeepAliveMessage.cc
  5841. * src/BtKeepAliveMessage.h
  5842. * src/BtMessage.h
  5843. * src/BtNotInterestedMessage.cc
  5844. * src/BtNotInterestedMessage.h
  5845. * src/BtPieceMessage.h
  5846. * src/BtPortMessage.cc
  5847. * src/BtPortMessage.h
  5848. * src/BtRejectMessage.cc
  5849. * src/BtRejectMessage.h
  5850. * src/BtRequestMessage.cc
  5851. * src/BtRequestMessage.h
  5852. * src/BtSuggestPieceMessage.cc
  5853. * src/BtSuggestPieceMessage.h
  5854. * src/BtUnchokeMessage.cc
  5855. * src/BtUnchokeMessage.h
  5856. * src/SimpleBtMessage.cc
  5857. * src/SimpleBtMessage.h
  5858. * test/MockBtMessage.h
  5859. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5860. Use FileEntry::exists()
  5861. * src/MultiDiskAdaptor.cc
  5862. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5863. Added exists()
  5864. * src/FileEntry.cc
  5865. * src/FileEntry.h
  5866. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5867. Added missing prefix dir.
  5868. * src/download_helper.cc
  5869. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5870. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5871. * src/CopyDiskAdaptor.cc: Removed
  5872. * src/CopyDiskAdaptor.h: Removed
  5873. * src/DefaultPieceStorage.cc
  5874. * src/Makefile.am
  5875. * src/OptionHandlerFactory.cc
  5876. * src/prefs.cc
  5877. * src/prefs.h
  5878. * src/usage_text.h
  5879. * test/CopyDiskAdaptorTest.cc: Removed
  5880. * test/Makefile.am
  5881. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5882. Rewritten isSameFileBeingDownloaded()
  5883. * src/RequestGroupMan.cc
  5884. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5885. Removed getName() from DownloadContext. getName() is declared in
  5886. BtContext.
  5887. * src/BtContext.h
  5888. * src/DownloadContext.h
  5889. * src/SingleFileDownloadContext.cc
  5890. * src/SingleFileDownloadContext.h
  5891. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5892. in AbstractSingleDiskAdaptor.
  5893. * src/AbstractSingleDiskAdaptor.h
  5894. * src/DiskAdaptor.h
  5895. * src/MultiDiskAdaptor.h
  5896. * src/RequestGroup.cc
  5897. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5898. MultiDiskAdaptor.
  5899. * src/DefaultPieceStorage.cc
  5900. * src/MultiDiskAdaptor.cc
  5901. * src/MultiDiskAdaptor.h
  5902. * test/MultiDiskAdaptorTest.cc
  5903. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5904. FileEntry::getPath() contains store(top level) directory to
  5905. simplify path handling operation. In the previous implementation,
  5906. store directory is concatenated to FileEntry::getPath() in
  5907. DownloadContext.
  5908. * src/BtDependency.cc
  5909. * src/BtPostDownloadHandler.cc
  5910. * src/CopyDiskAdaptor.cc
  5911. * src/DefaultBtContext.cc
  5912. * src/DirectDiskAdaptor.cc
  5913. * src/FileEntry.cc
  5914. * src/FileEntry.h
  5915. * src/FtpNegotiationCommand.cc
  5916. * src/HttpResponse.cc
  5917. * src/HttpResponseCommand.cc
  5918. * src/Metalink2RequestGroup.cc
  5919. * src/MultiDiskAdaptor.cc
  5920. * src/MultiDiskAdaptor.h
  5921. * src/MultiFileAllocationIterator.cc
  5922. * src/RequestGroup.cc
  5923. * src/SingleFileDownloadContext.cc
  5924. * src/SingleFileDownloadContext.h
  5925. * src/download_helper.cc
  5926. * test/BtDependencyTest.cc
  5927. * test/CopyDiskAdaptorTest.cc
  5928. * test/DefaultBtContextTest.cc
  5929. * test/DefaultBtProgressInfoFileTest.cc
  5930. * test/DirectDiskAdaptorTest.cc
  5931. * test/DownloadHelperTest.cc
  5932. * test/FileEntryTest.cc
  5933. * test/MultiDiskAdaptorTest.cc
  5934. * test/MultiFileAllocationIteratorTest.cc
  5935. * test/RequestGroupTest.cc
  5936. * test/SingleFileDownloadContextTest.cc
  5937. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5938. Fixed compiler warning
  5939. * src/download_helper.cc
  5940. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5941. Throw exception if same infohash torrent is now downloading.
  5942. * src/RequestGroup.cc
  5943. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5944. Added --dry-run option. In this mode, aria2 just checks whether
  5945. the remote file is available and doesn't download data. This
  5946. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5947. are canceled in this mode.
  5948. * src/FtpNegotiationCommand.cc
  5949. * src/HttpResponseCommand.cc
  5950. * src/HttpResponseCommand.h
  5951. * src/OptionHandlerFactory.cc
  5952. * src/RequestGroup.cc
  5953. * src/RequestGroupMan.cc
  5954. * src/prefs.cc
  5955. * src/prefs.h
  5956. * src/usage_text.h
  5957. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5958. Fixed compiler waring
  5959. * test/UriListParserTest.cc
  5960. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5961. Parse options in -i list using OptionParser.
  5962. * src/UriListParser.cc
  5963. * src/UriListParser.h
  5964. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5965. Don't reset URI in retry to avoid additional round trips because
  5966. of redirects.
  5967. * src/AbstractCommand.cc
  5968. * src/OptionHandlerFactory.cc
  5969. * src/prefs.cc
  5970. * src/prefs.h
  5971. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5972. Declared hide() in OptionHandler.
  5973. * src/NameMatchOptionHandler.h
  5974. * src/OptionHandler.h
  5975. * src/OptionHandlerImpl.h
  5976. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5977. Updated doc
  5978. * src/Peer.h
  5979. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5980. Added log message in setStatusInternal()
  5981. * src/ServerStat.cc
  5982. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5983. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5984. effectively exclude failed server.
  5985. * src/AbstractCommand.cc
  5986. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5987. Added --index-out option to specify each file path for torrent.
  5988. Here index shown in --show-files option is used to specify which
  5989. file path should be altered. For example, to change the file path
  5990. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5991. option multiple times: --index-out=1=aria2.tar.bz2
  5992. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5993. available. This option can be specified in -i list.
  5994. * src/DefaultBtContext.cc
  5995. * src/DefaultBtContext.h
  5996. * src/MultiDiskAdaptor.cc
  5997. * src/MultiDiskAdaptor.h
  5998. * src/MultiFileAllocationIterator.cc
  5999. * src/OptionHandlerFactory.cc
  6000. * src/OptionHandlerImpl.h
  6001. * src/Util.cc
  6002. * src/Util.h
  6003. * src/download_helper.cc
  6004. * src/prefs.cc
  6005. * src/prefs.h
  6006. * src/usage_text.h
  6007. * test/DefaultBtContextTest.cc
  6008. * test/MultiDiskAdaptorTest.cc
  6009. * test/MultiFileAllocationIteratorTest.cc
  6010. * test/UtilTest.cc
  6011. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6012. Use Util::pathJoin()
  6013. * src/MetalinkParserController.cc
  6014. * test/test.xml
  6015. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6016. Use Util::pathJoin()
  6017. * src/DefaultBtContext.cc
  6018. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6019. Added Util::pathJoin()
  6020. * src/Util.h
  6021. * test/UtilTest.cc
  6022. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6023. Applied basename function to remove directory element in
  6024. content-disposition value.
  6025. Return empty string if content-disposition value is ".." or ".".
  6026. * src/Util.cc
  6027. * test/UtilTest.cc
  6028. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6029. Added --max-overall-download-limit in man page.
  6030. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  6031. * doc/aria2c.1.txt
  6032. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6033. Added --max-overall-download-limit option. Now --max-upload-limit
  6034. option is not ignored when --max-overall-upload-limit option has
  6035. non-zero value. aria2 checks download(upload) speed in the order:
  6036. first checks overall speed limit and if it is not exceeded, then
  6037. checks speed limit per download. Thus you can specify both
  6038. value. For example, set --max-overall-download-limit=1M and
  6039. --max-download-limit=500K to prevent from one download from eating
  6040. all overall speed limit.
  6041. * src/DefaultBtInteractive.cc
  6042. * src/DefaultBtInteractive.h
  6043. * src/DefaultBtMessageDispatcher.cc
  6044. * src/DefaultBtMessageDispatcher.h
  6045. * src/DownloadCommand.cc
  6046. * src/DownloadCommand.h
  6047. * src/FtpNegotiationCommand.cc
  6048. * src/HttpResponseCommand.cc
  6049. * src/OptionHandlerFactory.cc
  6050. * src/PeerInteractionCommand.cc
  6051. * src/RequestGroup.cc
  6052. * src/RequestGroup.h
  6053. * src/RequestGroupMan.cc
  6054. * src/RequestGroupMan.h
  6055. * src/prefs.cc
  6056. * src/prefs.h
  6057. * src/usage_text.h
  6058. * test/DefaultBtMessageDispatcherTest.cc
  6059. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6060. Documented select-file option in Input File section.
  6061. Documented --http-auth-challenge option.
  6062. * doc/aria2c.1.txt
  6063. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6064. Now select-file can be specified in the uri list(-i list).
  6065. * src/BtContext.cc
  6066. * src/BtContext.h
  6067. * src/RequestGroup.cc
  6068. * src/Sequence.h
  6069. * src/download_helper.cc
  6070. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6071. Made the upper value of --max-concurrent-downloads options unlimited.
  6072. * src/OptionHandlerFactory.cc
  6073. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6074. Fixed the bug that disk writer is not created even if it shares
  6075. same piece with the preceding file if the length of previous file
  6076. is 0.
  6077. * src/MultiDiskAdaptor.cc
  6078. * test/MultiDiskAdaptorTest.cc
  6079. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6080. In BitTorrent, Open files in read-only mode for hash check. After
  6081. that, re-open file in read/write mode only when the download is
  6082. not finished.
  6083. * src/AbstractDiskWriter.cc
  6084. * src/AbstractDiskWriter.h
  6085. * src/AbstractSingleDiskAdaptor.cc
  6086. * src/AbstractSingleDiskAdaptor.h
  6087. * src/BtCheckIntegrityEntry.cc
  6088. * src/DiskAdaptor.h
  6089. * src/DiskWriter.h
  6090. * src/MultiDiskAdaptor.cc
  6091. * src/MultiDiskAdaptor.h
  6092. * src/RequestGroup.cc
  6093. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6094. Added --http-auth-challenge option. If it is set to true(by
  6095. default), aria2 sends HTTP authorization header only when it is
  6096. requested by the server. If false is set, then authorization
  6097. header is always sent to the server. This is useful for servers
  6098. that don't respond 401 code when authentication is required.
  6099. There is an exception: if username and password are embedded in
  6100. URI, authorization header is always sent to the server regardless
  6101. of this option.
  6102. * src/AuthConfigFactory.cc
  6103. * src/HttpSkipResponseCommand.cc
  6104. * src/OptionHandlerFactory.cc
  6105. * src/prefs.cc
  6106. * src/prefs.h
  6107. * src/usage_text.h
  6108. * test/AuthConfigFactoryTest.cc
  6109. * test/HttpRequestTest.cc
  6110. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6111. * Release 1.2.0
  6112. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6113. Updated Spanish, Ukrainian, Russian and Japanese translations.
  6114. Thanks to all translators.
  6115. * po/es.po
  6116. * po/ja.po
  6117. * po/ru.po
  6118. * po/uk.po
  6119. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6120. Call deleteSocketForReadCheck() before socket is closed.
  6121. * src/HttpListenCommand.cc
  6122. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6123. Defined virtual destructor for BObject.
  6124. * src/bencode.h
  6125. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6126. Rewritten BDE to make it efficient.
  6127. * src/bencode.cc
  6128. * src/bencode.h
  6129. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6130. Removed function throw list.
  6131. * src/bencode.cc
  6132. * src/bencode.h
  6133. * test/BencodeTest.cc
  6134. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6135. Enclosed all URLs in double quotes in command-line examples.
  6136. * doc/aria2c.1.txt
  6137. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6138. Updated reference/see also section.
  6139. * README
  6140. * doc/aria2c.1.txt
  6141. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6142. Reorganized man page based on man man-pages.
  6143. * doc/aria2c.1.txt
  6144. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6145. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  6146. because same documents are available in man page. Added
  6147. References section.
  6148. * README
  6149. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6150. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  6151. PERFORMANCE PROFILE section.
  6152. * doc/aria2c.1.txt
  6153. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6154. Rewritten the section for configuration file.
  6155. * README
  6156. * doc/aria2c.1.txt
  6157. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6158. Fixed the segmentation fault during execution of choking algorithm
  6159. in leecher state because of broken compare operator
  6160. implementation.
  6161. * src/BtLeecherStateChoke.cc
  6162. * src/BtLeecherStateChoke.h
  6163. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6164. Open file in binary mode.
  6165. * src/CookieStorage.cc
  6166. * src/DHTSetup.cc
  6167. * src/DHTUtil.cc
  6168. * src/Netrc.cc
  6169. * src/NsCookieParser.cc
  6170. * src/ProtocolDetector.cc
  6171. * src/RequestGroupMan.cc
  6172. * src/Signature.cc
  6173. * src/bencode.cc
  6174. * src/download_helper.cc
  6175. * src/option_processing.cc
  6176. * test/CookieParserTest.cc
  6177. * test/DefaultBtProgressInfoFileTest.cc
  6178. * test/FileTest.cc
  6179. * test/GZipDecoderTest.cc
  6180. * test/RequestGroupManTest.cc
  6181. * test/SignatureTest.cc
  6182. * test/SingleFileAllocationIteratorTest.cc
  6183. * test/UriListParserTest.cc
  6184. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6185. Removed operator[] because it is ambiguous with built-in []
  6186. operator.
  6187. * src/array_fun.h
  6188. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6189. Fixed compile error
  6190. * src/OptionParser.cc
  6191. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6192. Added missing call to arrayWrapperConst
  6193. * test/array_funTest.cc
  6194. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6195. Use array_wrapper instead of array_ptr.
  6196. * src/DHTRoutingTableDeserializer.cc
  6197. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6198. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  6199. * src/array_fun.h
  6200. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6201. Added array_wrapper template.
  6202. * src/array_fun.h
  6203. * test/array_funTest.cc
  6204. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6205. Use operator T* of array_ptr.
  6206. * src/OptionParser.cc
  6207. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6208. Use localhost instead of 127.0.0.1
  6209. * test/FtpConnectionTest.cc
  6210. * test/MSEHandshakeTest.cc
  6211. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6212. Added operator T*
  6213. * src/array_fun.h
  6214. * test/array_funTest.cc
  6215. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6216. Use dynamically allocated char array to detect memory access
  6217. violation.
  6218. * src/DHTRoutingTableDeserializer.cc
  6219. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6220. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  6221. defined.
  6222. * src/PeerMessageUtil.cc
  6223. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6224. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  6225. * configure.ac
  6226. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6227. Added a check to see struct sockaddr_in has sin_len member.
  6228. * configure.ac
  6229. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6230. Fixed buffer overrun.
  6231. * src/DHTRoutingTableDeserializer.cc
  6232. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6233. Added LL for long long int constant.
  6234. * test/FtpConnectionTest.cc
  6235. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6236. Casted to unsigned int to suppress compiler warning on netbsd.
  6237. * src/BtRuntime.h
  6238. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6239. Assign the value of tv.tv_sec to time_t timesec instead of giving
  6240. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  6241. type time_t.
  6242. * src/SimpleLogger.cc
  6243. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6244. Added test for FtpConnection::receiveSizeResponse().
  6245. * test/FtpConnectionTest.cc
  6246. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6247. Fix epoll error on the old kernel 2.6.8 or ealier.
  6248. * src/EpollEventPoll.cc
  6249. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6250. Use Util::parseLLInt instead of sscanf for portability. The
  6251. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  6252. * src/FtpConnection.cc
  6253. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6254. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  6255. block. It should not filter anything.
  6256. * src/BitfieldMan.cc
  6257. * src/ConsoleStatCalc.cc
  6258. * test/BitfieldManTest.cc
  6259. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6260. Fixed the bug that the boolean options that don't take arguments
  6261. don't work.
  6262. * src/OptionHandlerImpl.h
  6263. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6264. Fixed broken selected file BitTorrent download.
  6265. * src/MultiDiskAdaptor.cc
  6266. * test/MultiDiskAdaptorTest.cc
  6267. * test/MultiFileAllocationIteratorTest.cc
  6268. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6269. Fixed #define guard for EpollEventPoll
  6270. * src/EpollEventPoll.h
  6271. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6272. Wait 2 seconds. 1 second is sometimes not enough.
  6273. * test/TimeSeedCriteriaTest.cc
  6274. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6275. Use localhost instead of 127.0.0.1.
  6276. * test/DHTConnectionImplTest.cc
  6277. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6278. Suppressed compiler warning.
  6279. * src/AdaptiveURISelector.cc
  6280. * src/DefaultPieceStorage.cc
  6281. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6282. Defined virtual destructor.
  6283. * src/MetalinkParserState.h
  6284. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6285. Give NULL for second argument of getaddrinfo instead of "0".
  6286. * src/NameResolver.cc
  6287. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6288. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  6289. included strptime doesn't parse data for this format.
  6290. * src/FtpConnection.cc
  6291. * test/FtpConnectionTest.cc
  6292. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6293. Removed tests giving -1 for unsigned argument.
  6294. * test/SingleFileDownloadContextTest.cc
  6295. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6296. Don't use sha256 in tests because it might not be supported by the
  6297. SSL library.
  6298. * test/MetalinkProcessorTest.cc
  6299. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6300. Removed tests giving -1 for unsigned argument.
  6301. * test/AlphaNumberDecoratorTest
  6302. * test/BitfieldManTest.cc
  6303. * test/DefaultBtContextTest.cc
  6304. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6305. Fixed compile error without libcares when epoll is available.
  6306. * src/EpollEventPoll.cc
  6307. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6308. Included fstream instead of iostream.
  6309. * test/SignatureTest.cc
  6310. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6311. Removed #include <algorithm>
  6312. * test/RequestGroupTest.cc
  6313. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6314. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  6315. using RequestGroup::extractURIResult().
  6316. * src/AdaptiveURISelector.cc
  6317. * src/RequestGroup.cc
  6318. * src/RequestGroup.h
  6319. * test/RequestGroupTest.cc
  6320. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6321. Added tests for array_ptr.
  6322. * test/array_funTest.cc
  6323. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6324. Don't send ip parameter to a tracker if ip parameter is empty
  6325. string.
  6326. * src/DefaultBtAnnounce.cc
  6327. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6328. Adjusted line feed.
  6329. * src/version_usage.cc
  6330. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6331. Print tags, possible values when OptionHandlerException is caught.
  6332. * src/option_processing.cc
  6333. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6334. Changed the message for FatalException.
  6335. * src/OptionParser.cc
  6336. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6337. Documented --bt-external-ip option in man page. Updated man pages
  6338. for --proxy-method option.
  6339. * doc/aria2c.1.txt
  6340. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6341. Use GET method for FTP via HTTP proxy.
  6342. * src/FtpInitiateConnectionCommand.cc
  6343. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6344. Changed the default value of --proxy-method option from 'tunnel'
  6345. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  6346. option.
  6347. * src/AbstractCommand.cc
  6348. * src/AbstractCommand.h
  6349. * src/FtpInitiateConnectionCommand.cc
  6350. * src/HttpDownloadCommand.cc
  6351. * src/HttpInitiateConnectionCommand.cc
  6352. * src/HttpInitiateConnectionCommand.h
  6353. * src/OptionHandlerFactory.cc
  6354. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6355. Initialized _logger
  6356. * src/SelectEventPoll.cc
  6357. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6358. Defined a copy constructor for the same type.
  6359. * src/SharedHandle.h
  6360. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6361. Added OptionParser::parseArg() which internally uses getopt_long
  6362. to parse command-line options. All command-line options are now
  6363. configured by OptionHandler. No manual editing of struct option*
  6364. is required any more.
  6365. * src/NameMatchOptionHandler.h
  6366. * src/OptionHandler.h
  6367. * src/OptionHandlerFactory.cc
  6368. * src/OptionHandlerImpl.h
  6369. * src/OptionParser.cc
  6370. * src/OptionParser.h
  6371. * src/array_fun.h
  6372. * src/main.cc
  6373. * src/option_processing.cc
  6374. * test/OptionHandlerTest.cc
  6375. * test/OptionParserTest.cc
  6376. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6377. Fixed configure error with --disable-epoll
  6378. * configure.ac
  6379. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6380. Fixed compile error when HAVE_EPOLL is not defined.
  6381. Fixed linker error on bigendian systems.
  6382. * src/SocketCore.cc
  6383. * src/SocketCore.h
  6384. * test/DefaultBtProgressInfoFileTest.cc
  6385. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6386. Added --bt-external-ip option. You can specify the external IP
  6387. address to report to a BitTorrent tracker. Although this function
  6388. is named 'external', it can accept any kind of IP addresses.
  6389. * src/DefaultBtAnnounce.cc
  6390. * src/OptionHandlerFactory.cc
  6391. * src/option_processing.cc
  6392. * src/prefs.cc
  6393. * src/prefs.h
  6394. * src/usage_text.h
  6395. * test/DefaultBtAnnounceTest.cc
  6396. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6397. Extracted the algorithm to find the longest incremental sequence
  6398. as max_sequence template.
  6399. * src/LongestSequencePieceSelector.cc
  6400. * src/a2algo.h
  6401. * test/Makefile.am
  6402. * test/a2algoTest.cc
  6403. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6404. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  6405. * src/usage_text.h
  6406. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6407. Updated doc for --uri-selector, --http-server-listen-port and
  6408. --enable-http-server option. Documented --event-poll option.
  6409. * doc/aria2c.1.txt
  6410. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6411. Updated doc for --enable-http-server.
  6412. * src/usage_text.h
  6413. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6414. Documented --http-server-listen-port and --enable-http-server in
  6415. man page.
  6416. * doc/aria2c.1.txt
  6417. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6418. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6419. translations. Thanks to all translators.
  6420. * po/es.po
  6421. * po/id.po
  6422. * po/it.po
  6423. * po/ru.po
  6424. * po/uk.po
  6425. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6426. Bump up version number to 1.2.0
  6427. * configure.ac
  6428. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6429. BtContext::getAnnounceTiers() now returns const reference.
  6430. * src/BtContext.h
  6431. * src/DefaultBtContext.cc
  6432. * src/DefaultBtContext.h
  6433. * test/MockBtContext.h
  6434. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6435. Change the number of retries for tracker request based on the
  6436. number of available tracker in a torrent file.
  6437. * src/TrackerWatcherCommand.cc
  6438. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6439. Added _maxTries property to RequestGroup and assign the option
  6440. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6441. RequestGroup::getMaxTries() instead of
  6442. Option::getAsInt(PREF_MAX_TRIES).
  6443. * src/AbstractCommand.cc
  6444. * src/RequestGroup.cc
  6445. * src/RequestGroup.h
  6446. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6447. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6448. Mandriva. I modified the patch: make RequestGroup have the
  6449. timeout value and AdaptiveURISelector directly modifies that
  6450. value.
  6451. * src/AbstractCommand.cc
  6452. * src/AdaptiveURISelector.cc
  6453. * src/AdaptiveURISelector.h
  6454. * src/FtpNegotiationCommand.cc
  6455. * src/RequestGroup.cc
  6456. * src/RequestGroup.h
  6457. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6458. Fixed compiler warning
  6459. * test/IteratableChecksumValidatorTest.cc
  6460. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6461. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6462. integrated downloads. This PieceSelector subclass finds the
  6463. longest continuous sequence in the available missing pieces and
  6464. selects the last index of such sequence. This makes HTTP/FTP
  6465. connections less interrupted by the pieces obtained by BitTorrent
  6466. peers.
  6467. * src/DefaultPieceStorage.cc
  6468. * src/DefaultPieceStorage.h
  6469. * src/LongestSequencePieceSelector.cc
  6470. * src/LongestSequencePieceSelector.h
  6471. * src/Makefile.am
  6472. * src/PieceSelector.h
  6473. * src/RarestPieceSelector.h
  6474. * src/RequestGroup.cc
  6475. * test/BtDependencyTest.cc
  6476. * test/DefaultPieceStorageTest.cc
  6477. * test/IteratableChecksumValidatorTest.cc
  6478. * test/LongestSequencePieceSelectorTest.cc
  6479. * test/Makefile.am
  6480. * test/SegmentManTest.cc
  6481. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6482. Fixed the bug that the average speed is wrong in
  6483. http/ftp/BitTorrent integrated download. Only the download bytes
  6484. in BitTorrent were considered.
  6485. * src/RequestGroup.cc
  6486. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6487. Choose port for BitTorrent/DHT randomly from the specified range.
  6488. * src/DHTConnectionImpl.cc
  6489. * src/PeerListenCommand.cc
  6490. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6491. Send HTTP Authorization header only if it is requested by the
  6492. server(response 401). There are some exceptions. The authorization
  6493. header for proxy is always sent if it is available without request
  6494. by the server. If username/password is specified in the URI, it
  6495. is immediately sent to the server without request by the server.
  6496. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6497. SharedHandle<AuthConfig>().
  6498. NetrcAuthResolver::resolveAuthConfig() returns
  6499. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6500. * src/AbstractAuthResolver.cc
  6501. * src/AbstractProxyRequestCommand.cc
  6502. * src/AuthConfigFactory.cc
  6503. * src/AuthConfigFactory.h
  6504. * src/HttpConnection.cc
  6505. * src/HttpRequest.cc
  6506. * src/HttpRequest.h
  6507. * src/HttpResponse.cc
  6508. * src/HttpResponseCommand.cc
  6509. * src/HttpSkipResponseCommand.cc
  6510. * test/AuthConfigFactoryTest.cc
  6511. * test/HttpRequestTest.cc
  6512. * test/HttpResponseTest.cc
  6513. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6514. Remove leading "--" from help keyword and a substring after "="
  6515. from help keyword, so that one can query options by '-h--max-' or
  6516. '-hmax-peers=10'.
  6517. * src/option_processing.cc
  6518. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6519. Rewritten PStringVisitor and its implementation.
  6520. * src/PStringBuildVisitor.cc
  6521. * src/PStringBuildVisitor.h
  6522. * src/PStringDatum.h
  6523. * src/PStringNumLoop.h
  6524. * src/PStringSegment.cc
  6525. * src/PStringSegment.h
  6526. * src/PStringSelect.h
  6527. * src/PStringVisitor.h
  6528. * src/download_helper.cc
  6529. * test/PStringBuildVisitorTest.cc
  6530. * test/ParameterizedStringParserTest.cc
  6531. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6532. Persist connection between the built-in HTTP server and a client
  6533. if a client supports keep-alive. Fixed the bug that aria2 exits
  6534. when the HTTP server receives EOF from a client.
  6535. * src/HttpServer.cc
  6536. * src/HttpServer.h
  6537. * src/HttpServerCommand.cc
  6538. * src/HttpServerCommand.h
  6539. * src/HttpServerResponseCommand.cc
  6540. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6541. Added experimental built-in HTTP server. Currently, when a client
  6542. accesses to the server, it responds with the current download
  6543. progress. By default, it is disabled. To enable the server, give
  6544. --enable-http-server option. To change the default port number
  6545. for the server to listen to, use --http-server-listen-port option.
  6546. The response HTML is very simple and refreshes it self each 1
  6547. second. Because of this refresh, you see flicker in normal web
  6548. browser such as Firefox. I recommend to use console-based browser
  6549. such as elinks, w3m. To connect to the server, run 'elinks
  6550. http://localhost:6800/' while running aria2. Please replace port
  6551. number '6800'(which is default) with your preference.
  6552. * src/DownloadEngineFactory.cc
  6553. * src/HttpHeader.cc
  6554. * src/HttpHeader.h
  6555. * src/HttpHeaderProcessor.cc
  6556. * src/HttpHeaderProcessor.h
  6557. * src/HttpListenCommand.cc
  6558. * src/HttpListenCommand.h
  6559. * src/HttpServer.cc
  6560. * src/HttpServer.h
  6561. * src/HttpServerCommand.cc
  6562. * src/HttpServerCommand.h
  6563. * src/HttpServerResponseCommand.cc
  6564. * src/HttpServerResponseCommand.h
  6565. * src/Makefile.am
  6566. * src/OptionHandlerFactory.cc
  6567. * src/Util.cc
  6568. * src/Util.h
  6569. * src/help_tags.h
  6570. * src/option_processing.cc
  6571. * src/prefs.cc
  6572. * src/prefs.h
  6573. * src/usage_text.h
  6574. * test/HttpHeaderProcessorTest.cc
  6575. * test/UtilTest.cc
  6576. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6577. Removed.
  6578. * src/CheckIntegrityMan.cc
  6579. * src/FileAllocationMan.cc
  6580. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6581. Made (piece) hash check sequential for each RequestGroup because
  6582. simultaneous hash check is slower than sequential execution.
  6583. * src/CheckIntegrityCommand.cc
  6584. * src/CheckIntegrityDispatcherCommand.cc
  6585. * src/CheckIntegrityDispatcherCommand.h
  6586. * src/CheckIntegrityMan.h
  6587. * src/ConsoleStatCalc.cc
  6588. * src/DownloadCommand.cc
  6589. * src/DownloadEngine.cc
  6590. * src/DownloadEngine.h
  6591. * src/DownloadEngineFactory.cc
  6592. * src/Makefile.am
  6593. * src/Makefile.in
  6594. * src/RequestGroup.cc
  6595. * src/StatCalc.h
  6596. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6597. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6598. SequentialDispatcherCommand.
  6599. * src/FileAllocationDispatcherCommand.cc
  6600. * src/SequentialDispatcherCommand.h
  6601. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6602. Rewritten FileAllocationDispatcherCommand using brand new
  6603. SequentialDispatcherCommand.
  6604. * src/DownloadEngineFactory.cc
  6605. * src/FileAllocationCommand.cc
  6606. * src/FileAllocationDispatcherCommand.cc
  6607. * src/FileAllocationDispatcherCommand.h
  6608. * src/Makefile.am
  6609. * src/SequentialDispatcherCommand.h
  6610. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6611. Replaced FileAllocationMan with
  6612. SequentialPicker<FileAllocationEntry>.
  6613. * src/BtCheckIntegrityEntry.cc
  6614. * src/ConsoleStatCalc.cc
  6615. * src/DownloadEngine.cc
  6616. * src/DownloadEngine.h
  6617. * src/DownloadEngineFactory.cc
  6618. * src/FileAllocationCommand.cc
  6619. * src/FileAllocationDispatcherCommand.cc
  6620. * src/FileAllocationMan.h
  6621. * src/Makefile.am
  6622. * src/SequentialPicker.h
  6623. * src/StatCalc.h
  6624. * src/StreamCheckIntegrityEntry.cc
  6625. * test/Makefile.am
  6626. * test/SequentialPickerTest.cc
  6627. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6628. Added doc for adaptive URI selector.
  6629. * doc/aria2c.1.txt
  6630. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6631. Added doc for adaptive URI selector.
  6632. * src/usage_text.h
  6633. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6634. Added doc for --bt-max-peers option.
  6635. * doc/aria2c.1.txt
  6636. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6637. Added doc for --bt-hash-check-seed option.
  6638. * doc/aria2c.1.txt
  6639. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6640. Documented exit codes.
  6641. * doc/aria2c.1.txt
  6642. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6643. Added --bt-max-peers option to specify the maximum number of peers
  6644. per torrent. 0 means unlimited number of peers.
  6645. * src/ActivePeerConnectionCommand.cc
  6646. * src/BtRuntime.h
  6647. * src/DefaultPeerStorage.cc
  6648. * src/DefaultPeerStorage.h
  6649. * src/OptionHandlerFactory.cc
  6650. * src/RequestGroup.cc
  6651. * src/option_processing.cc
  6652. * src/prefs.cc
  6653. * src/prefs.h
  6654. * src/usage_text.h
  6655. * test/DefaultPeerStorageTest.cc
  6656. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6657. Added --bt-hash-check-seed option. If true is given to this
  6658. option, after hash check using --check-integrity option and file
  6659. is complete, continue to seed file. If you want to check file and
  6660. download it only when it is damaged or incomplete, set this option
  6661. to false. This option has effect only on BitTorrent download.
  6662. The default value is true(This is the same behavior with the
  6663. previous release).
  6664. * src/BtCheckIntegrityEntry.cc
  6665. * src/OptionHandlerFactory.cc
  6666. * src/option_processing.cc
  6667. * src/prefs.cc
  6668. * src/prefs.h
  6669. * src/usage_text.h
  6670. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6671. Updated copyright year.
  6672. * src/version_usage.cc
  6673. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6674. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6675. * doc/aria2c.1.txt
  6676. * src/usage_text.h
  6677. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6678. Made the max value of split option unlimited.
  6679. * doc/aria2c.1.txt
  6680. * src/OptionHandlerFactory.cc
  6681. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6682. Fixed compile warning/error.
  6683. * src/DownloadResult.h
  6684. * src/HttpDownloadCommand.cc
  6685. * src/ServerStat.cc
  6686. * test/RequestGroupTest.cc
  6687. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6688. Added --event-poll option to select the method for polling events.
  6689. The available methods are "select" and "epoll". "epoll" is
  6690. available on Linux only. The earlier release has the compile
  6691. option to choose from these methods.
  6692. * configure.ac
  6693. * src/RequestGroupMan.cc
  6694. * src/OptionHandlerFactory.cc
  6695. * src/EpollEventPoll.h
  6696. * src/StreamFileAllocationEntry.cc
  6697. * src/a2io.h
  6698. * src/SelectEventPoll.h
  6699. * src/option_processing.cc
  6700. * src/prefs.h
  6701. * src/EpollEventPoll.cc
  6702. * src/EventPoll.h
  6703. * src/SocketCore.h
  6704. * src/Makefile.am
  6705. * src/main.cc
  6706. * src/DownloadEngine.h
  6707. * src/SelectEventPoll.cc
  6708. * src/DownloadEngine.cc
  6709. * src/SocketCore.cc
  6710. * src/DownloadEngineFactory.cc
  6711. * src/Makefile.in
  6712. * src/prefs.cc
  6713. * src/usage_text.h
  6714. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6715. Included RecoverableException.h from main.cc
  6716. * src/main.cc
  6717. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6718. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6719. now returns last error encountered in the HTTP/FTP downloads as a
  6720. exit status value. If all downloads finished successfully, aria2
  6721. returns 0. The error code is defined in src/DownloadResult.h.
  6722. The error occurred in the download currently in progress is not
  6723. reported as a last error. If no error has encountered but there
  6724. are in progress or waiting downloads, aria2 returns 7.
  6725. * src/AbstractCommand.cc
  6726. * src/DlAbortEx.h
  6727. * src/DlRetryEx.h
  6728. * src/DownloadCommand.cc
  6729. * src/DownloadFailureException.h
  6730. * src/DownloadResult.h
  6731. * src/FtpNegotiationCommand.cc
  6732. * src/HttpSkipResponseCommand.cc
  6733. * src/Makefile.am
  6734. * src/MultiUrlRequestInfo.cc
  6735. * src/MultiUrlRequestInfo.h
  6736. * src/RecoverableException.h
  6737. * src/RequestGroup.cc
  6738. * src/RequestGroup.h
  6739. * src/RequestGroupMan.cc
  6740. * src/RequestGroupMan.h
  6741. * src/URIResult.cc
  6742. * src/URIResult.h
  6743. * src/main.cc
  6744. * src/option_processing.cc
  6745. * test/RequestGroupTest.cc
  6746. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6747. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6748. patch adds AdaptiveURISelector, which selects one of the bests
  6749. mirrors for first and reserved connections. For supplementary
  6750. ones, it returns mirrors which has not been tested yet, and if
  6751. each of them already tested, returns mirrors which has to be
  6752. tested again. Otherwise, it doesn't return anymore mirrors.
  6753. * src/AdaptiveURISelector.cc
  6754. * src/AdaptiveURISelector.h
  6755. * src/FtpNegotiationCommand.cc
  6756. * src/HttpResponseCommand.cc
  6757. * src/Makefile.am
  6758. * src/Makefile.in
  6759. * src/OptionHandlerFactory.cc
  6760. * src/RequestGroup.cc
  6761. * src/RequestGroup.h
  6762. * src/RequestGroupMan.cc
  6763. * src/ServerStat.cc
  6764. * src/ServerStat.h
  6765. * src/ServerStatMan.cc
  6766. * src/SpeedCalc.cc
  6767. * src/URISelector.h
  6768. * src/prefs.cc
  6769. * src/prefs.h
  6770. * test/RequestGroupManTest.cc
  6771. * test/ServerStatManTest.cc
  6772. * test/ServerStatTest.cc
  6773. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6774. Fixed unit test error.
  6775. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6776. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6777. * Release 1.1.2
  6778. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6779. Updated Russian translation. Thanks to the translators.
  6780. * po/ru.po
  6781. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6782. Added the description of --use-head option to man page.
  6783. * doc/aria2c.1.txt
  6784. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6785. Bump up version number to 1.1.2
  6786. * configure.ac
  6787. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6788. Added --use-head option to toggle whether HEAD method should be
  6789. used in the first HTTP request. By default aria2 uses HEAD method
  6790. as the first request. When the server doesn't recognize HEAD, then
  6791. give aria2 --use-head=false to force aria2 to use GET method
  6792. instead.
  6793. * src/OptionHandlerFactory.cc
  6794. * src/RequestGroupMan.cc
  6795. * src/option_processing.cc
  6796. * src/prefs.cc
  6797. * src/prefs.h
  6798. * src/usage_text.h
  6799. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6800. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6801. message is received before CHOKE message. The old implementation
  6802. doen't clear the use-bit of the piece when recieved REJECT
  6803. message.
  6804. * src/DefaultBtMessageDispatcher.cc
  6805. * test/DefaultBtMessageDispatcherTest.cc
  6806. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6807. * Release 1.1.1
  6808. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6809. Bump up version number to 1.1.1.
  6810. * configure.ac
  6811. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6812. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6813. is printed repeatedly.
  6814. * src/ConsoleStatCalc.cc
  6815. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6816. * Release 1.1.0
  6817. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6818. Added ifdef clause for conditional compilation.
  6819. * src/main.cc
  6820. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6821. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6822. translations. Thanks to all translators.
  6823. * po/ja.po
  6824. * po/ru.po
  6825. * po/uk.po
  6826. * po/zh_CN.po
  6827. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6828. Added the preceding ">>> " before the message "Printing the
  6829. contents of file..." to make the output more readable.
  6830. * src/main.cc
  6831. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6832. Added try-catch block in the loop in showFiles() to continue the
  6833. operation even if the exception occurred in one file.
  6834. * src/main.cc (showFiles)
  6835. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6836. Made messages in showFiles() translatable.
  6837. * po/aria2.pot
  6838. * src/main.cc
  6839. * src/message.h
  6840. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6841. Print the contents of Torrent/Metalink files are printed without
  6842. -T/-M options.
  6843. * src/main.cc
  6844. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6845. Escaped '--' with '\--'
  6846. * README
  6847. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6848. Updated "How to build" section in README. Mentioned about
  6849. --with-ca-bundle compile option.
  6850. * README
  6851. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6852. Bump up version number to 1.1.0.
  6853. * configure.ac
  6854. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6855. Added a note for --dht-listen-port option.
  6856. * doc/aria2c.1.txt
  6857. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6858. Update doc for --realtime-chunk-checksum option.
  6859. * doc/aria2c.1.txt
  6860. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6861. Update doc for --realtime-chunk-checksum option.
  6862. * src/usage_text.h
  6863. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6864. Updated French, Japanese, Russian and Ukrainian translations.
  6865. Thanks to all translators.
  6866. * po/fr.po
  6867. * po/ja.po
  6868. * po/ru.po
  6869. * po/uk.po
  6870. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6871. Renamed aria2c.pot to aria2.pot
  6872. * po/aria2.pot
  6873. * po/aria2c.pot: Removed.
  6874. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6875. Removed MetaEntry.h
  6876. * src/Makefile.am
  6877. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6878. Rename file by appending digits if a local file exists and its
  6879. file size is larger than that of remote file with --continue
  6880. option. The old implementation just throws exception in such case.
  6881. * src/RequestGroup.cc
  6882. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6883. Fixed the bug that download progress summary is not printed in the
  6884. interval specified by the option.
  6885. * src/ConsoleStatCalc.cc
  6886. * src/ConsoleStatCalc.h
  6887. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6888. Fixed compiler warning
  6889. * src/Cookie.cc
  6890. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6891. Fixed the cookie implementation based on RFC2965.
  6892. Now if a value in domain field is not started with dot, then
  6893. prepend dot. That means a cookie with domain=sf.net is sent to
  6894. wiki.sf.net.
  6895. * src/Cookie.cc
  6896. * test/CookieParserTest.cc
  6897. * test/CookieStorageTest.cc
  6898. * test/CookieTest.cc
  6899. * test/NsCookieParserTest.cc
  6900. * test/Sqlite3MozCookieParserTest.cc
  6901. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6902. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6903. is enabled and the server doesn't support keep-alive.
  6904. * src/AbstractCommand.cc
  6905. * src/DownloadCommand.cc
  6906. * src/HttpDownloadCommand.cc
  6907. * src/HttpDownloadCommand.h
  6908. * src/HttpResponseCommand.cc
  6909. * src/Request.cc
  6910. * src/Request.h
  6911. * test/RequestTest.cc
  6912. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6913. Removed Dictionary/List/Data and its related classes.
  6914. * src/BencodeVisitor.cc: Removed.
  6915. * src/BencodeVisitor.h: Removed.
  6916. * src/Data.cc: Removed.
  6917. * src/Data.h: Removed.
  6918. * src/Dictionary.cc: Removed.
  6919. * src/Dictionary.h: Removed.
  6920. * src/List.cc: Removed.
  6921. * src/List.h: Removed.
  6922. * src/Makefile.am
  6923. * src/MetaEntry.h: Removed.
  6924. * src/MetaEntryVisitor.h: Removed.
  6925. * src/MetaFileUtil.cc: Removed.
  6926. * src/MetaFileUtil.h: Removed.
  6927. * test/BencodeVisitorTest.cc: Removed.
  6928. * test/DataTest.cc: Removed.
  6929. * test/DictionaryTest.cc: Removed.
  6930. * test/ListTest.cc: Removed.
  6931. * test/Makefile.am
  6932. * test/MetaFileUtilTest.cc: Removed.
  6933. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6934. Removed include of MetaEntry.h
  6935. * test/DHTMessageTrackerEntryTest.cc
  6936. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6937. Use BDE instead of Dictionary/List/Data.
  6938. * src/AnnounceList.cc
  6939. * src/AnnounceList.h
  6940. * test/AnnounceListTest.cc
  6941. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6942. Use BDE instead of Dictionary/List/Data.
  6943. * src/DHTAbstractMessage.cc
  6944. * src/DHTAbstractMessage.h
  6945. * src/DHTAnnouncePeerMessage.cc
  6946. * src/DHTAnnouncePeerMessage.h
  6947. * src/DHTAnnouncePeerReplyMessage.cc
  6948. * src/DHTAnnouncePeerReplyMessage.h
  6949. * src/DHTFindNodeMessage.cc
  6950. * src/DHTFindNodeMessage.h
  6951. * src/DHTFindNodeReplyMessage.cc
  6952. * src/DHTFindNodeReplyMessage.h
  6953. * src/DHTGetPeersMessage.cc
  6954. * src/DHTGetPeersMessage.h
  6955. * src/DHTGetPeersReplyMessage.cc
  6956. * src/DHTGetPeersReplyMessage.h
  6957. * src/DHTMessageFactory.h
  6958. * src/DHTMessageFactoryImpl.cc
  6959. * src/DHTMessageFactoryImpl.h
  6960. * src/DHTMessageReceiver.cc
  6961. * src/DHTMessageTracker.cc
  6962. * src/DHTMessageTracker.h
  6963. * src/DHTPingMessage.cc
  6964. * src/DHTPingMessage.h
  6965. * src/DHTPingReplyMessage.cc
  6966. * src/DHTPingReplyMessage.h
  6967. * src/DHTQueryMessage.cc
  6968. * src/DHTQueryMessage.h
  6969. * src/DHTResponseMessage.cc
  6970. * src/DHTResponseMessage.h
  6971. * test/DHTAnnouncePeerMessageTest.cc
  6972. * test/DHTAnnouncePeerReplyMessageTest.cc
  6973. * test/DHTFindNodeMessageTest.cc
  6974. * test/DHTFindNodeReplyMessageTest.cc
  6975. * test/DHTGetPeersMessageTest.cc
  6976. * test/DHTGetPeersReplyMessageTest.cc
  6977. * test/DHTMessageFactoryImplTest.cc
  6978. * test/DHTMessageTrackerTest.cc
  6979. * test/DHTPingMessageTest.cc
  6980. * test/DHTPingReplyMessageTest.cc
  6981. * test/MockDHTMessageFactory.h
  6982. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6983. Added tests the case where length < 0 is specified.
  6984. * test/BencodeTest.cc
  6985. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6986. Fixed memory leak in decoderawstring()
  6987. * src/bencode.cc
  6988. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6989. Added missing #ifdef guard. Added uc() function for String and
  6990. removeKey() for Dict.
  6991. * src/bencode.cc
  6992. * src/bencode.h
  6993. * test/BencodeTest.cc
  6994. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6995. Use BDE instead of Dictionary/List/Data.
  6996. * src/HandshakeExtensionMessage.cc
  6997. * src/HandshakeExtensionMessage.h
  6998. * test/HandshakeExtensionMessageTest.cc
  6999. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7000. Added --max-overall-upload-limit option. This option limits the
  7001. overall upload speed. Stated in help message that the existing
  7002. --max-upload-limit option limits the upload speed per each
  7003. torrent. Man page is also updated.
  7004. * doc/aria2c.1.txt
  7005. * src/DefaultBtMessageDispatcher.cc
  7006. * src/DefaultBtMessageDispatcher.h
  7007. * src/OptionHandlerFactory.cc
  7008. * src/PeerInteractionCommand.cc
  7009. * src/option_processing.cc
  7010. * src/prefs.cc
  7011. * src/prefs.h
  7012. * src/usage_text.h
  7013. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7014. Use BDE instead of Dictionary/List/Data classes.
  7015. * src/CompactPeerListProcessor.cc
  7016. * src/CompactPeerListProcessor.h
  7017. * src/DefaultBtAnnounce.cc
  7018. * src/DefaultBtContext.cc
  7019. * src/DefaultBtContext.h
  7020. * src/DefaultPeerListProcessor.cc
  7021. * src/DefaultPeerListProcessor.h
  7022. * src/DelegatingPeerListProcessor.cc
  7023. * src/DelegatingPeerListProcessor.h
  7024. * src/PeerListProcessor.h
  7025. * src/UTPexExtensionMessage.cc
  7026. * src/Util.h
  7027. * src/message.h
  7028. * test/DefaultBtContextTest.cc
  7029. * test/DefaultPeerListProcessorTest.cc
  7030. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7031. Added bencode helper functions and BDE class.
  7032. They will replace MetaFileUtil and Dictionary/List/Data classes.
  7033. * src/Makefile.am
  7034. * src/bencode.cc
  7035. * src/bencode.h
  7036. * test/BencodeTest.cc
  7037. * test/Makefile.am
  7038. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7039. Fixed the bug that bad URI is sent to the tracker when the announe
  7040. URI in torrent file includes query.
  7041. * src/DefaultBtAnnounce.cc
  7042. * test/DefaultBtAnnounceTest.cc
  7043. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7044. Added Option::blank().
  7045. Use !Option::blank(name) instead of Option::defined(name) for
  7046. the options that take filename.
  7047. * src/MultiUrlRequestInfo.cc
  7048. * src/Option.cc
  7049. * src/Option.h
  7050. * src/main.cc
  7051. * src/option_processing.cc
  7052. * test/OptionTest.cc
  7053. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7054. Documented the default value of --check-certificate option in man
  7055. page.
  7056. * doc/aria2c.1.txt
  7057. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7058. Enabled --check-certificate by default. Added compile
  7059. time(configure) option --with-ca-bundle to specify CA bundle.
  7060. Warn if --check-certificate=true and --ca-certificate is not
  7061. specified or loading CA certificate is failed.
  7062. * configure.ac
  7063. * src/MultiUrlRequestInfo.cc
  7064. * src/OptionHandlerFactory.cc
  7065. * src/message.h
  7066. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7067. Mentioned https tag in help option.
  7068. * doc/aria2c.1.txt
  7069. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7070. Added `https' tag to help option category. Added https tag to
  7071. --ca-certificate, --certificate, --check-certificate and
  7072. --private-key option.
  7073. * src/OptionHandlerFactory.cc
  7074. * src/help_tags.h
  7075. * src/option_processing.cc
  7076. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7077. Changed the package name from `aria2c' to `aria2' in order to fix
  7078. the packaging issue in Debian and Fedora. The name of the
  7079. executable is not changed.
  7080. * configure.ac
  7081. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7082. Fixed typos
  7083. * src/usage_text.h
  7084. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7085. Fixed typos and updated doc.
  7086. * README
  7087. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7088. Fixed typos
  7089. * doc/aria2c.1.txt
  7090. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7091. Fixed typos
  7092. * src/usage_text.h
  7093. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7094. Print a message when no files to download.
  7095. * src/download_helper.cc
  7096. * src/main.cc
  7097. * src/message.h
  7098. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7099. RFC3986 complied Percent-Encoding(urlencode).
  7100. Use uppercase hexadecimal digits for encoded text instead of lowercase
  7101. ones.
  7102. * src/Request.cc
  7103. * src/Util.cc
  7104. * src/Util.h
  7105. * test/BtHandshakeMessageTest.cc
  7106. * test/DefaultBtAnnounceTest.cc
  7107. * test/DefaultBtContextTest.cc
  7108. * test/RequestTest.cc
  7109. * test/UtilTest.cc
  7110. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7111. Fixed the bug that prevents aria2 from downloading 0-length files
  7112. via HTTP/FTP.
  7113. * src/DefaultBtContext.cc
  7114. * src/DefaultBtContext.h
  7115. * src/DownloadContext.h
  7116. * src/FtpNegotiationCommand.cc
  7117. * src/HttpResponseCommand.cc
  7118. * src/HttpResponseCommand.h
  7119. * src/RequestGroup.cc
  7120. * src/SingleFileDownloadContext.cc
  7121. * src/SingleFileDownloadContext.h
  7122. * test/BtPostDownloadHandlerTest.cc
  7123. * test/MetalinkPostDownloadHandlerTest.cc
  7124. * test/MockBtContext.h
  7125. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7126. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  7127. * src/option_processing.cc
  7128. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7129. Applied aria2-1.0.1-mingw.patch.
  7130. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  7131. mingw.
  7132. Collected 4th and 5th argument types for getsockopt and setsockopt.
  7133. * src/SocketCore.cc
  7134. * src/a2netcompat.h
  7135. * test/SocketCoreTest.cc
  7136. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7137. * Release 1.0.1
  7138. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7139. Updated Ukrainian and Norwegian Nynorsk translations.
  7140. Thanks to all translators.
  7141. * po/nn.po
  7142. * po/uk.po
  7143. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7144. Don't show download result when -S option is used.
  7145. * src/main.cc
  7146. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7147. Bump up version number to 1.0.1
  7148. * configure.ac
  7149. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7150. Closed files after the test cases in MultiDiskWriterTest::
  7151. testResetDiskWriterEntries(). This will fix the unit test error
  7152. in mingw32 build.
  7153. * test/MultiDiskWriterTest.cc
  7154. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7155. Use HEAD method to get file size from HTTP server for segmented
  7156. downloading.
  7157. The request to the BitTorrent Tracker always uses GET method because
  7158. the response of the tracker is small and it doesn't need segmented
  7159. download.
  7160. * src/FtpNegotiationCommand.cc
  7161. * src/HttpRequest.cc
  7162. * src/HttpResponseCommand.cc
  7163. * src/HttpSkipResponseCommand.cc
  7164. * src/RequestGroup.cc
  7165. * src/RequestGroup.h
  7166. * src/TrackerWatcherCommand.cc
  7167. * test/HttpRequestTest.cc
  7168. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7169. Fixed the bug that causes floating exception when -T option is used and
  7170. no URIs are given.
  7171. * src/download_helper.cc
  7172. * test/DownloadHelperTest.cc
  7173. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  7174. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  7175. errors in MinGW:
  7176. Closed file after saving server stats (RequestGroupMan.cc)
  7177. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  7178. Ignored case & handled 2-digit years (strptime.c)
  7179. Added missing suseconds_t definition (a2time.h)
  7180. Fixed socket CLOSE() define (SocketCore.cc)
  7181. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  7182. Changed utime() test values from x000 to x00000 as MinGW failed on
  7183. values less than timezone offset from Unix epoch
  7184. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  7185. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  7186. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  7187. handle negative dates (CookieParserTest.cc)
  7188. * src/a2time.h
  7189. * src/FtpConnection.cc
  7190. * src/RequestGroupMan.cc
  7191. * src/SocketCore.cc
  7192. * src/strptime.c
  7193. * test/CookieParserTest.cc
  7194. * test/CopyDiskAdaptorTest.cc
  7195. * test/FileTest.cc
  7196. * test/FtpConnectionTest.cc
  7197. * test/MultiDiskAdaptorTest.cc
  7198. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7199. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  7200. * doc/aria2c.1.txt
  7201. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7202. * Release 1.0.0
  7203. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7204. Added '~' to reserved characters.
  7205. * src/Util.cc
  7206. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7207. Do not urlencode Request::url in setUrl() because we want unmodified
  7208. URL using Request::getUrl()
  7209. * src/Request.cc
  7210. * src/Request.h
  7211. * test/RequestTest.cc
  7212. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7213. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  7214. Thanks to all translators.
  7215. * po/bg.po
  7216. * po/fr.po
  7217. * po/ja.po
  7218. * po/ru.po
  7219. * po/uk.po
  7220. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7221. Bump up version number to 1.0.0
  7222. * configure.ac
  7223. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7224. Added nosqlite3 build to build_test.sh.
  7225. Renamed noxml as expat.
  7226. * build_test.sh
  7227. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7228. Updated INPUT FILE section.
  7229. * doc/aria2c.1.txt
  7230. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7231. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  7232. on big endian systems because test .aria2 files are made for little
  7233. endian systems.
  7234. * test/DefaultBtProgressInfoFileTest.cc
  7235. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7236. Dropped ares support.
  7237. * README
  7238. * configure.ac
  7239. * m4/libares.m4: Removed.
  7240. * src/AsyncNameResolver.cc
  7241. * src/Makefile.am
  7242. * test/Makefile.am
  7243. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7244. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  7245. Removed const qualifier from DiskWriter::size().
  7246. * src/AbstractDiskWriter.cc
  7247. * src/AbstractDiskWriter.h
  7248. * src/ByteArrayDiskWriter.cc
  7249. * src/ByteArrayDiskWriter.h
  7250. * src/DiskWriter.h
  7251. * test/ByteArrayDiskWriterTest.cc
  7252. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7253. Fixed the bug that causes segmentation fault/bus error during executing
  7254. choking algorithm while seeding. This is caused by improper
  7255. implementation of compare function which returns inconsistent results
  7256. depending on the timing of last unchoke.
  7257. * src/BtSeederStateChoke.cc
  7258. * src/BtSeederStateChoke.h
  7259. * src/DefaultPeerStorage.cc
  7260. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7261. Removed TODO
  7262. * TODO
  7263. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7264. Added a section that explains how to pass argument to options that
  7265. takes optional arguments with its short form.
  7266. * doc/aria2c.1.txt
  7267. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7268. Added -u for the short form of --max-upload-limit option.
  7269. * doc/aria2c.1.txt
  7270. * src/option_processing.cc
  7271. * src/usage_text.h
  7272. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7273. Added -V for the short form of --check-integrity option.
  7274. Now the argument of --check-integrity option is optional:
  7275. if it is omitted, it is evaluated as true.
  7276. * doc/aria2c.1.txt
  7277. * src/option_processing.cc
  7278. * src/usage_text.h
  7279. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7280. Made the default value of --ftp-pasv option set to true and it can take
  7281. true/false values.
  7282. * src/OptionHandlerFactory.cc
  7283. * src/option_processing.cc
  7284. * src/usage_text.h
  7285. * doc/aria2c.1.txt
  7286. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7287. Given custom random number generator to std::random_shuffle.
  7288. * src/AnnounceList.cc
  7289. * src/BtLeecherStateChoke.cc
  7290. * src/BtSeederStateChoke.cc
  7291. * src/DefaultBtRequestFactory.cc
  7292. * src/MetalinkEntry.cc
  7293. * src/RarestPieceSelector.cc
  7294. * src/SimpleRandomizer.cc
  7295. * src/SimpleRandomizer.h
  7296. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7297. Now the default value of --enable-direct-io is true.
  7298. * src/OptionHandlerFactory.cc
  7299. * doc/aria2c.1.txt
  7300. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7301. Erase peer before executing onReturningPeer and onErasingPeer
  7302. because choking algorithm called from onReturningPeer doesn't
  7303. like erasing peer in the active peer list.
  7304. * src/DefaultPeerStorage.cc
  7305. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7306. Instead of creating special filename in createDownloadResult() if
  7307. inMemoryDownload() is true, now it is done in getFilePath().
  7308. * src/RequestGroup.cc
  7309. * test/RequestGroupTest.cc
  7310. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7311. Print "[MEMORY]" and filename if a file is not saved in disk and just
  7312. processed in memory. This is the fix for previous comment out.
  7313. * src/MemoryBufferPreDownloadHandler.cc
  7314. * src/RequestGroup.cc
  7315. * src/RequestGroup.h
  7316. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7317. Commented out the code which sets virtual directory path "[MEMORY]"
  7318. propagate directory to store to following RequestGroup.
  7319. * src/MemoryBufferPreDownloadHandler.cc
  7320. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7321. Bump up version number to 1.0.0b
  7322. * configure.ac
  7323. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7324. Added input_uris.txt to EXTRA_DIST
  7325. * test/Makefile.am
  7326. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7327. Removed PeerObject.h from Makefile.am
  7328. * src/Makefile.am
  7329. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7330. Avoid slow seeding
  7331. * src/PeerInteractionCommand.cc
  7332. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7333. Updated usage for -i option.
  7334. * src/usage_text.h (TEXT_INPUT_FILE)
  7335. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7336. Added INPUT FILE section to man page.
  7337. Escaped fake URLs.
  7338. * doc/aria2c.1.txt
  7339. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7340. Fixed wrong note position for -o option.
  7341. * doc/aria2c.1.txt
  7342. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7343. Fixed compile error without SSL/XML library.
  7344. * src/DefaultBtProgressInfoFile.cc
  7345. * src/DefaultBtProgressInfoFile.h
  7346. * src/FileMetalinkParserState.cc
  7347. * src/RequestGroup.h
  7348. * src/SocketCore.cc
  7349. * src/SocketCore.h
  7350. * src/VerificationMetalinkParserState.cc
  7351. * src/download_helper.h
  7352. * src/main.cc
  7353. * test/DefaultBtProgressInfoFileTest.cc
  7354. * test/DownloadHelperTest.cc
  7355. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7356. Rewritten URI handling functions. They are now provided as a testable
  7357. functions.
  7358. * src/Makefile.am
  7359. * src/RequestGroup.cc
  7360. * src/RequestGroup.h
  7361. * src/download_helper.cc
  7362. * src/download_helper.h
  7363. * src/main.cc
  7364. * test/DownloadHelperTest.cc
  7365. * test/Makefile.am
  7366. * test/input_uris.txt
  7367. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7368. Quickly terminate commands when ctrl-c is pressed.
  7369. * src/DownloadEngine.cc
  7370. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7371. Quickly terminate idle commands when download finished.
  7372. * src/AbstractCommand.cc
  7373. * src/DownloadCommand.cc
  7374. * src/DownloadEngine.cc
  7375. * src/DownloadEngine.h
  7376. * src/SleepCommand.cc
  7377. * src/SleepCommand.h
  7378. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7379. Added the ability to specify output filename and directory in input
  7380. file.
  7381. Additional parameters are added in the following line of URIs
  7382. with proceeding white space(s), 1 parameter in 1 line.
  7383. The parameter names are the same with the command-line option name
  7384. without proceeding "--". Not all the options are available here:
  7385. at the moment, 'dir' and 'out' options are avialable.
  7386. Please note that out option has no effect against Metalink or BitTorrent
  7387. downloads.
  7388. Example input file:
  7389. http://host/foo-1.1.tar.bz2
  7390. out=foo.tar.bz2
  7391. dir=/tmp/downloads
  7392. http://host/thundermonkey-2.0.tar.bz2
  7393. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  7394. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  7395. thundermonkey-2.0.tar.bz2 is saved as
  7396. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  7397. * src/BtPostDownloadHandler.cc
  7398. * src/Metalink2RequestGroup.cc
  7399. * src/Metalink2RequestGroup.h
  7400. * src/MetalinkPostDownloadHandler.cc
  7401. * src/UriListParser.cc
  7402. * src/UriListParser.h
  7403. * src/main.cc
  7404. * test/Metalink2RequestGroupTest.cc
  7405. * test/UriListParserTest.cc
  7406. * test/filelist1.txt
  7407. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7408. Fixed error when SSL library is not found.
  7409. * configure.ac
  7410. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7411. Cross referenced among -s, -C and -j options.
  7412. Updated usage of -C and -s options.
  7413. * src/usage_text.h
  7414. * doc/aria2c.1.txt
  7415. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7416. Fixed bad cast in 32bit platforms.
  7417. * test/DefaultPieceStorageTest.cc
  7418. (DefaultPieceStorageTest::testGetCompletedLength)
  7419. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7420. Fixed unit test fails on 32bit platforms.
  7421. * test/CookieParserTest.cc
  7422. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7423. Show an average download speed in Download results.
  7424. * src/BtFileAllocationEntry.cc
  7425. * src/DefaultPieceStorage.cc
  7426. * src/DownloadContext.cc
  7427. * src/DownloadContext.h
  7428. * src/DownloadResult.h
  7429. * src/RequestGroup.cc
  7430. * src/RequestGroupMan.cc
  7431. * src/StreamFileAllocationEntry.cc
  7432. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7433. Fixed the bug that metalink file is not processed if Content-Type
  7434. field has a paramter.
  7435. * src/HttpResponse.cc
  7436. * src/HttpResponse.h
  7437. * test/HttpResponseTest.cc
  7438. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7439. Removed unused code.
  7440. * src/DefaultBtAnnounce.cc
  7441. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7442. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7443. the value larger than DefaultPieceStorage::getTotalLength() when
  7444. in flight pieces are involved.
  7445. * src/DefaultPieceStorage.cc
  7446. * test/DefaultPieceStorageTest.cc
  7447. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7448. Bump up version number to 1.0.0a.
  7449. * configure.ac
  7450. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7451. Updated configure.ac
  7452. * configure.ac
  7453. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7454. Added usege for proxy.
  7455. * doc/aria2c.1.txt
  7456. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7457. Added usage for --ca-certificate, --certificate, --private-key and
  7458. --check-certificate options.
  7459. * doc/aria2c.1.txt
  7460. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7461. Updated man page
  7462. * doc/aria2c.1.txt
  7463. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7464. Added --no-proxy option. It receives comman separated hostname or
  7465. domains to which proxy should not be used.
  7466. aria2 honors the environment variable no_proxy to override no-proxy
  7467. value in configuration file. The user can override the environment
  7468. variable no_proxy with --no-proxy command-line option.
  7469. * src/AbstractCommand.cc
  7470. * src/OptionHandlerFactory.cc
  7471. * src/option_processing.cc
  7472. * src/prefs.cc
  7473. * src/prefs.h
  7474. * src/usage_text.h
  7475. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7476. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7477. The CA certificates are specified in --ca-certificate option.
  7478. By default, the verification is disabled. Use --check-certificate
  7479. option to enable it.
  7480. * src/HttpRequestCommand.cc
  7481. * src/LibgnutlsTLSContext.cc
  7482. * src/LibgnutlsTLSContext.h
  7483. * src/LibsslTLSContext.cc
  7484. * src/LibsslTLSContext.h
  7485. * src/MultiUrlRequestInfo.cc
  7486. * src/OptionHandlerFactory.cc
  7487. * src/SocketCore.cc
  7488. * src/SocketCore.h
  7489. * src/a2functional.h
  7490. * src/message.h
  7491. * src/option_processing.cc
  7492. * src/prefs.cc
  7493. * src/prefs.h
  7494. * src/usage_text.h
  7495. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7496. Added client certificate authentication for SSL/TLS.
  7497. Currently a private key must be decrypted for use with aria2.
  7498. If a user accidentally gives encrypted file to aria2 then following
  7499. thing happens:
  7500. If encrypted private key is given to aria2, it behaves differently
  7501. depending on the ssl library it uses. If aria2 built with openssl then
  7502. openssl prompts the user for password. If aria2 build with gnutls then
  7503. aria2 exists with error at start up.
  7504. * src/DownloadEngineFactory.cc
  7505. * src/MultiUrlRequestInfo.cc
  7506. * src/OptionHandlerFactory.cc
  7507. * src/option_processing.cc
  7508. * src/prefs.cc
  7509. * src/prefs.h
  7510. * src/usage_text.h
  7511. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7512. Introduced TLSContext that holds TLS related data that can be shared
  7513. with multiple SSL connections.
  7514. * src/DownloadEngineFactory.cc
  7515. * src/LibgnutlsTLSContext.cc
  7516. * src/LibgnutlsTLSContext.h
  7517. * src/LibsslTLSContext.cc
  7518. * src/LibsslTLSContext.h
  7519. * src/Makefile.am
  7520. * src/SocketCore.cc
  7521. * src/SocketCore.h
  7522. * src/TLSContext.h
  7523. * src/message.h
  7524. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7525. Fixed the bug that the DiskWriter of the first FileEntry whose
  7526. `needsFileAllocation' property is false is not created
  7527. even if it shares a piece with next FileEntry which `requested' property
  7528. is true.
  7529. Fixed the bug that zero-length file is not created if pre file
  7530. allocation is not done.
  7531. * src/MultiDiskAdaptor.cc
  7532. * src/MultiDiskAdaptor.h
  7533. * test/MultiDiskAdaptorTest.cc
  7534. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7535. Added the ability to pool proxy connection.
  7536. The conneciton in FTP with proxy-method=GET is not pooled.
  7537. Proxy-Connection header will not be sent when sending CONNECT method.
  7538. * src/DownloadEngine.cc
  7539. * src/DownloadEngine.h
  7540. * src/FtpFinishDownloadCommand.cc
  7541. * src/FtpInitiateConnectionCommand.cc
  7542. * src/FtpNegotiationCommand.cc
  7543. * src/HttpDownloadCommand.cc
  7544. * src/HttpInitiateConnectionCommand.cc
  7545. * src/HttpRequest.cc
  7546. * src/HttpRequest.h
  7547. * src/HttpResponse.cc
  7548. * src/HttpSkipResponseCommand.cc
  7549. * test/HttpRequestTest.cc
  7550. * test/HttpResponseTest.cc
  7551. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7552. Handle date before epoch.
  7553. To create *bad* Time object, call Time::null().
  7554. * src/CookieParser.cc
  7555. * src/FtpConnection.cc
  7556. * src/FtpConnection.h
  7557. * src/FtpNegotiationCommand.cc
  7558. * src/RequestGroup.cc
  7559. * src/TimeA2.cc
  7560. * src/TimeA2.h
  7561. * test/CookieParserTest.cc
  7562. * test/FtpConnectionTest.cc
  7563. * test/TimeTest.cc
  7564. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Added support for following envrionment variables: http_proxy,
  7566. https_proxy, ftp_proxy and all_proxy.
  7567. Each variable is equivalent to the aria2 option whose name is the
  7568. variable name with '_' replaced with '-'.
  7569. They overrides options specified in aria2.conf file.
  7570. The envrionment variables can be overrode using command-line option.
  7571. * src/option_processing.cc
  7572. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7573. Renamed --http-proxy-method as --proxy-method.
  7574. * src/AbstractCommand.cc
  7575. * src/FtpInitiateConnectionCommand.cc
  7576. * src/HttpInitiateConnectionCommand.cc
  7577. * src/OptionHandlerFactory.cc
  7578. * src/option_processing.cc
  7579. * src/prefs.cc
  7580. * src/prefs.h
  7581. * src/usage_text.h
  7582. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7583. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7584. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7585. Above 3 options and --http-proxy option can handle proxy in URL format
  7586. like: http://user:passwd@host:port.
  7587. If a proxy requires user/password, they must be specified in a URL.
  7588. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7589. instead.
  7590. * src/AbstractCommand.cc
  7591. * src/AbstractCommand.h
  7592. * src/AbstractProxyRequestCommand.cc
  7593. * src/AbstractProxyRequestCommand.h
  7594. * src/AuthConfigFactory.cc
  7595. * src/AuthConfigFactory.h
  7596. * src/FtpFinishDownloadCommand.cc
  7597. * src/FtpInitiateConnectionCommand.cc
  7598. * src/FtpInitiateConnectionCommand.h
  7599. * src/FtpNegotiationCommand.cc
  7600. * src/FtpTunnelRequestCommand.cc
  7601. * src/FtpTunnelRequestCommand.h
  7602. * src/HttpDownloadCommand.cc
  7603. * src/HttpInitiateConnectionCommand.cc
  7604. * src/HttpInitiateConnectionCommand.h
  7605. * src/HttpProxyRequestCommand.cc
  7606. * src/HttpProxyRequestCommand.h
  7607. * src/HttpRequest.cc
  7608. * src/HttpRequest.h
  7609. * src/HttpRequestCommand.cc
  7610. * src/HttpRequestCommand.h
  7611. * src/HttpSkipResponseCommand.cc
  7612. * src/InitiateConnectionCommand.cc
  7613. * src/InitiateConnectionCommand.h
  7614. * src/OptionHandlerFactory.cc
  7615. * src/OptionHandlerImpl.h
  7616. * src/Request.cc
  7617. * src/option_processing.cc
  7618. * src/prefs.cc
  7619. * src/prefs.h
  7620. * src/usage_text.h
  7621. * test/AuthConfigFactoryTest.cc
  7622. * test/HttpRequestTest.cc
  7623. * test/OptionHandlerTest.cc
  7624. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Execute choking algorithm when unchoked and interested peer is
  7626. disconected.
  7627. * src/DefaultPeerStorage.cc
  7628. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. Added testcase for BtNotInterestedMessage from unchoked peer.
  7630. * test/BtNotInterestedMessageTest.cc
  7631. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Execute choking algorithm when BtInterestedMessage arrives from
  7633. unchoked peer.
  7634. * src/BtInterestedMessage.cc
  7635. * src/BtInterestedMessage.h
  7636. * src/DefaultBtMessageFactory.cc
  7637. * test/BtInterestedMessageTest.cc
  7638. * test/MockPeerStorage.h
  7639. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7640. AuthConfigFactory is now part of DownloadEngine.
  7641. * src/AbstractProxyRequestCommand.cc
  7642. * src/AuthConfigFactory.h
  7643. * src/DownloadEngine.cc
  7644. * src/DownloadEngine.h
  7645. * src/FtpConnection.cc
  7646. * src/FtpConnection.h
  7647. * src/FtpNegotiationCommand.cc
  7648. * src/HttpConnection.cc
  7649. * src/HttpRequest.cc
  7650. * src/HttpRequest.h
  7651. * src/HttpRequestCommand.cc
  7652. * src/HttpResponse.cc
  7653. * src/HttpResponseCommand.cc
  7654. * src/HttpSkipResponseCommand.cc
  7655. * src/MultiUrlRequestInfo.cc
  7656. * src/main.cc
  7657. * test/FtpConnectionTest.cc
  7658. * test/HttpRequestTest.cc
  7659. * test/HttpResponseTest.cc
  7660. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7661. Corrected catched exception type.
  7662. * src/ServerStatMan.cc
  7663. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7664. DNSCache is now part of DownloadEngine.
  7665. * src/DNSCache.h
  7666. * src/DownloadEngine.cc
  7667. * src/DownloadEngine.h
  7668. * src/InitiateConnectionCommand.cc
  7669. * src/MultiUrlRequestInfo.cc
  7670. * test/Makefile.am
  7671. * test/Makefile.in
  7672. * test/SimpleDNSCacheTest.cc
  7673. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7674. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7675. DownloadEngine.
  7676. * src/ActivePeerConnectionCommand.cc
  7677. * src/BtSetup.cc
  7678. * src/CUIDCounter.h
  7679. * src/DHTSetup.cc
  7680. * src/DownloadCommand.cc
  7681. * src/DownloadEngine.cc
  7682. * src/DownloadEngine.h
  7683. * src/DownloadEngineFactory.cc
  7684. * src/FileAllocationDispatcherCommand.cc
  7685. * src/InitiatorMSEHandshakeCommand.cc
  7686. * src/PeerInitiateConnectionCommand.cc
  7687. * src/PeerInteractionCommand.cc
  7688. * src/PeerListenCommand.cc
  7689. * src/RequestGroup.cc
  7690. * src/StreamFileAllocationEntry.cc
  7691. * src/TrackerWatcherCommand.cc
  7692. * src/main.cc
  7693. * test/RequestGroupManTest.cc
  7694. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7695. Implemented commented code in BtSeederStateChoke
  7696. * src/BtSeederStateChoke.cc
  7697. * src/Peer.cc
  7698. * src/Peer.h
  7699. * src/PeerInteractionCommand.cc
  7700. * src/PeerSessionResource.cc
  7701. * src/PeerSessionResource.h
  7702. * test/MockBtMessageDispatcher.h
  7703. * test/PeerSessionResourceTest.cc
  7704. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7705. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7706. its object.
  7707. * src/AbstractBtMessage.cc
  7708. * src/ActivePeerConnectionCommand.cc
  7709. * src/ActivePeerConnectionCommand.h
  7710. * src/BtContextAwareCommand.cc
  7711. * src/BtContextAwareCommand.h
  7712. * src/BtExtendedMessage.cc
  7713. * src/BtExtendedMessage.h
  7714. * src/BtInterestedMessage.cc
  7715. * src/BtInterestedMessage.h
  7716. * src/BtNotInterestedMessage.cc
  7717. * src/BtNotInterestedMessage.h
  7718. * src/BtRegistry.cc
  7719. * src/BtRegistry.h
  7720. * src/BtSeederStateChoke.cc
  7721. * src/BtSetup.cc
  7722. * src/DHTGetPeersCommand.cc
  7723. * src/DHTGetPeersCommand.h
  7724. * src/DHTPeerAnnounceEntry.cc
  7725. * src/DHTPeerAnnounceEntry.h
  7726. * src/DHTPeerAnnounceStorage.cc
  7727. * src/DHTPeerAnnounceStorage.h
  7728. * src/DHTPeerLookupTask.cc
  7729. * src/DHTPeerLookupTask.h
  7730. * src/DHTSetup.cc
  7731. * src/DHTSetup.h
  7732. * src/DHTTaskFactory.h
  7733. * src/DHTTaskFactoryImpl.cc
  7734. * src/DHTTaskFactoryImpl.h
  7735. * src/DefaultBtAnnounce.cc
  7736. * src/DefaultBtInteractive.cc
  7737. * src/DefaultBtInteractive.h
  7738. * src/DefaultBtMessageDispatcher.cc
  7739. * src/DefaultBtMessageDispatcher.h
  7740. * src/DefaultBtMessageFactory.cc
  7741. * src/DefaultBtMessageFactory.h
  7742. * src/DefaultBtMessageReceiver.cc
  7743. * src/DefaultBtProgressInfoFile.cc
  7744. * src/DefaultBtProgressInfoFile.h
  7745. * src/DefaultBtRequestFactory.cc
  7746. * src/DefaultBtRequestFactory.h
  7747. * src/DefaultExtensionMessageFactory.cc
  7748. * src/DefaultExtensionMessageFactory.h
  7749. * src/DefaultPeerStorage.cc
  7750. * src/DefaultPeerStorage.h
  7751. * src/DownloadEngine.cc
  7752. * src/DownloadEngine.h
  7753. * src/InitiatorMSEHandshakeCommand.cc
  7754. * src/InitiatorMSEHandshakeCommand.h
  7755. * src/MSEHandshake.cc
  7756. * src/MSEHandshake.h
  7757. * src/Makefile.am
  7758. * src/Makefile.in
  7759. * src/PeerChokeCommand.cc
  7760. * src/PeerChokeCommand.h
  7761. * src/PeerInitiateConnectionCommand.cc
  7762. * src/PeerInitiateConnectionCommand.h
  7763. * src/PeerInteractionCommand.cc
  7764. * src/PeerInteractionCommand.h
  7765. * src/PeerObject.h
  7766. * src/PeerReceiveHandshakeCommand.cc
  7767. * src/PeerReceiveHandshakeCommand.h
  7768. * src/ReceiverMSEHandshakeCommand.cc
  7769. * src/RequestGroup.cc
  7770. * src/RequestGroup.h
  7771. * src/RequestGroupMan.cc
  7772. * src/RequestGroupMan.h
  7773. * src/SeedCheckCommand.cc
  7774. * src/SeedCheckCommand.h
  7775. * src/ShareRatioSeedCriteria.h
  7776. * src/SimpleBtMessage.cc
  7777. * src/TrackerWatcherCommand.cc
  7778. * src/TrackerWatcherCommand.h
  7779. * src/UTPexExtensionMessage.cc
  7780. * src/UTPexExtensionMessage.h
  7781. * test/BtCancelMessageTest.cc
  7782. * test/BtChokeMessageTest.cc
  7783. * test/BtExtendedMessageTest.cc
  7784. * test/BtInterestedMessageTest.cc
  7785. * test/BtNotInterestedMessageTest.cc
  7786. * test/BtPieceMessageTest.cc
  7787. * test/BtPortMessageTest.cc
  7788. * test/BtRegistryTest.cc
  7789. * test/BtRejectMessageTest.cc
  7790. * test/BtRequestMessageTest.cc
  7791. * test/DHTPeerAnnounceEntryTest.cc
  7792. * test/DHTPeerAnnounceStorageTest.cc
  7793. * test/DefaultBtMessageDispatcherTest.cc
  7794. * test/DefaultBtMessageFactoryTest.cc
  7795. * test/DefaultBtProgressInfoFileTest.cc
  7796. * test/DefaultBtRequestFactoryTest.cc
  7797. * test/DefaultExtensionMessageFactoryTest.cc
  7798. * test/MSEHandshakeTest.cc
  7799. * test/MockDHTTaskFactory.h
  7800. * test/ShareRatioSeedCriteriaTest.cc
  7801. * test/UTPexExtensionMessageTest.cc
  7802. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7803. Fixed compiler warning.
  7804. * test/UtilTest.cc
  7805. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Treat Cookie object as session cookie if expiry = 0 is given.
  7807. With this change, you can specify session scoped cookies in an external
  7808. file setting expiry value to 0.
  7809. * src/Cookie.cc
  7810. * src/Cookie.h
  7811. * test/CookieParserTest.cc
  7812. * test/CookieStorageTest.cc
  7813. * test/CookieTest.cc
  7814. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Changed signature of DHTMessageFactory::createResponseMessage().
  7816. Removed unused validateIDMatch.
  7817. * src/DHTMessageFactory.h
  7818. * src/DHTMessageFactoryImpl.cc
  7819. * src/DHTMessageFactoryImpl.h
  7820. * src/DHTMessageTracker.cc
  7821. * test/DHTMessageFactoryImplTest.cc
  7822. * test/MockDHTMessageFactory.h
  7823. Dropped DHT message coming from same ID of localhost.
  7824. * src/DHTMessageReceiver.cc
  7825. Rejected adding node whose ID is the same as localhost's.
  7826. * src/DHTRoutingTable.cc
  7827. * test/BtPortMessageTest.cc
  7828. * test/DHTRoutingTableTest.cc
  7829. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7830. Pool connection when redirection occurs with Content-Length = 0.
  7831. * src/HttpSkipResponseCommand.cc
  7832. * src/HttpSkipResponseCommand.h
  7833. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7834. Fixed the bug that causes time out when redirection occurs with
  7835. content-length 0.
  7836. * src/HttpResponseCommand.cc
  7837. * src/HttpSkipResponseCommand.cc
  7838. * src/HttpSkipResponseCommand.h
  7839. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. Now each status legends is shown only when it appears in Download
  7841. Result. If Download Result has no item, then status legend will not
  7842. be printed.
  7843. * src/RequestGroupMan.cc
  7844. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7845. Removed duplicate creation of OptionHandlers.
  7846. * src/option_processing.cc
  7847. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Fixed the bug that causes segmentation fault when accessing files which
  7849. don't exist or are not included in --select-file option while
  7850. validating chunk checksum.
  7851. * src/MultiDiskAdaptor.cc
  7852. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Fixed compiler warning.
  7854. * test/UtilTest.cc
  7855. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7857. * src/IteratableChecksumValidator.cc
  7858. * src/IteratableChunkChecksumValidator.cc
  7859. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. * Release 0.16.2
  7861. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7862. Added Serbian translation. Updated Ukrainian translation.
  7863. Thanks to all translators.
  7864. * po/sr.po
  7865. * po/uk.po
  7866. * po/LINGUAS
  7867. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7868. Bump up version number to 0.16.2
  7869. * configure.ac
  7870. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7871. Added length equality test to operator== to drop a piece message
  7872. whose length does not match to the requested one.
  7873. * src/RequestSlot.cc
  7874. * test/DefaultBtMessageDispatcherTest.cc
  7875. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7877. recieved.
  7878. In this fix, if a request larger than 16KiB length is received, aria2
  7879. disconnects the peer.
  7880. * src/BtConstants.h
  7881. * src/PeerMessageUtil.cc
  7882. * src/PeerMessageUtil.h
  7883. * test/BtRequestMessageTest.cc
  7884. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7885. * Release 0.16.1
  7886. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7888. * doc/aria2c.1.txt
  7889. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7890. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7891. Updated French, Simplified Chinese and Japanese translations.
  7892. Thanks to all translators.
  7893. en@quot and en@boldquot are also added.
  7894. * po/LINGUAS
  7895. * po/fr.po
  7896. * po/ja.po
  7897. * po/uk.po
  7898. * po/vi.po
  7899. * po/zh_CN.po
  7900. * po/zh_TW.po
  7901. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. Bump up version number to 0.16.1.
  7903. * configure.ac
  7904. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7905. Updated README.
  7906. * README
  7907. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7909. not to replace '--' with em dash character.
  7910. * doc/aria2c.1.txt
  7911. * doc/makeman
  7912. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7913. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7914. every SEC seconds.
  7915. * src/DownloadEngineFactory.cc
  7916. * src/OptionHandlerFactory.cc
  7917. * src/option_processing.cc
  7918. * src/usage_text.h
  7919. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7920. Fixed compile warning on linux-amd64
  7921. * src/FtpConnection.cc
  7922. * src/IteratableChunkChecksumValidator.cc
  7923. * src/MultiDiskAdaptor.cc
  7924. Fixed the bug that unit test fails on linux-amd64
  7925. * test/UtilTest.cc
  7926. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7927. Added --dht-file-path option to change the path to dht.dat, which is a
  7928. serialized DHT routing table.
  7929. * src/OptionHandlerFactory.cc
  7930. * src/option_processing.cc
  7931. * src/usage_text.h
  7932. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7933. Fixed possible underflow.
  7934. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7935. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7936. Fixed the bug that last character in URI is not encoded.
  7937. * src/Request.cc
  7938. * test/RequestTest.cc
  7939. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7940. Fixed the bug that referer header field contains fragment.
  7941. Now Request class removes fragment part of URI and encodes it
  7942. in Request::setUri() and setReferer().
  7943. * src/Request.h
  7944. * src/Request.cc
  7945. * test/RequestTest.cc
  7946. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Added missing m4 macros.
  7948. * m4/cppunit.m4
  7949. * m4/libgcrypt.m4
  7950. * m4/libgnutls-extra.m4
  7951. * m4/libgnutls.m4
  7952. * m4/libxml2.m4
  7953. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7954. Fixed compile error with gcc-4.4(snapshot)
  7955. * src/File.cc
  7956. * src/FtpConnection.cc
  7957. * src/OptionHandlerImpl.h
  7958. * src/Util.cc
  7959. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7960. Removed assert()
  7961. * src/SocketBuffer.cc (SocketBuffer::send)
  7962. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7963. Changed the type of _numNewConnection to unsigned int.
  7964. * src/ActivePeerConnectionCommand.cc
  7965. * src/ActivePeerConnectionCommand.h
  7966. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7967. * Release 0.16.0
  7968. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7969. Updated doc
  7970. * README
  7971. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7972. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7973. translations. Thanks to all translators.
  7974. * po/bg.po
  7975. * po/de.po
  7976. * po/fr.po
  7977. * po/ja.po
  7978. * po/zh_CN.po
  7979. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. Bump up version number to 0.16.0.
  7981. * configure.ac
  7982. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7983. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7984. int32_t.
  7985. Changed the type of count to int32_t.
  7986. * src/Metalink2RequestGroup.cc
  7987. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7988. Added test for Time::elapsed(time_t).
  7989. * test/TimeTest.cc
  7990. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7991. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7992. Util::difftv() should be used instead.
  7993. * src/TimeA2.cc
  7994. * src/TimeA2.h
  7995. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Made socket for dht connections non-blocking
  7997. * src/DHTAbstractMessage.cc
  7998. * src/DHTAbstractMessage.h
  7999. * src/DHTConnection.h
  8000. * src/DHTConnectionImpl.cc
  8001. * src/DHTConnectionImpl.h
  8002. * src/DHTMessage.h
  8003. * src/DHTMessageDispatcherImpl.cc
  8004. * src/DHTMessageDispatcherImpl.h
  8005. * src/DHTUnknownMessage.cc
  8006. * src/DHTUnknownMessage.h
  8007. * src/SocketCore.cc
  8008. * src/SocketCore.h
  8009. * test/MockDHTMessage.h
  8010. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8011. Changed the type of offset to int.
  8012. * src/ParameterizedStringParser.cc
  8013. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8014. Made getAsInt() return int32_t
  8015. * src/Option.h
  8016. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  8018. build.
  8019. * configure.ac
  8020. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8021. Use sqlite3_open if sqlite3_open_v2 is not available.
  8022. * src/Sqlite3MozCookieParser.cc
  8023. * src/Sqlite3MozCookieParser.h
  8024. * m4/sqlite3.m4
  8025. * test/Sqlite3MozCookieParserTest.cc
  8026. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8027. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  8028. * src/BtPieceMessage.cc
  8029. * src/DHTPeerAnnounceStorage.cc
  8030. * src/DefaultPieceStorage.cc
  8031. * src/DownloadCommand.cc
  8032. * src/DownloadEngine.cc
  8033. * src/FtpConnection.cc
  8034. * src/PeerConnection.cc
  8035. * src/PeerMessageUtil.cc
  8036. * src/RequestGroup.cc
  8037. * src/RequestGroupMan.cc
  8038. * src/SimpleBtMessage.cc
  8039. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  8041. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  8042. * src/AbstractDiskWriter.cc
  8043. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8044. Don't set Request::supportsPersistentConnection() in HttpConnection
  8045. since this code is also used in AbstractProxyResponseCommand.
  8046. Moved those code to HttpResponse.
  8047. * src/HttpResponse.cc
  8048. * src/HttpResponse.h
  8049. * src/HttpConnection.cc
  8050. * src/HttpConnection.h
  8051. * src/HttpResponseCommand.cc
  8052. * test/HttpResponseTest.cc
  8053. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8054. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  8055. The configuration is minimum: no torrent, no metalink, so there may be
  8056. other compile error on their code.
  8057. * src/a2netcompat.h
  8058. * src/File.cc
  8059. * src/File.h
  8060. * src/SocketCore.cc
  8061. * src/SocketCore.h
  8062. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8063. Made a socket of incoming peer non-blocking.
  8064. * src/PeerListenCommand.cc
  8065. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8066. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  8067. whole message data is not sent in one send() call.
  8068. * src/BtPieceMessage.cc
  8069. * src/BtPieceMessage.h
  8070. * src/PeerConnection.cc
  8071. * src/PeerConnection.h
  8072. * src/SimpleBtMessage.cc
  8073. * src/SimpleBtMessage.h
  8074. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. Fixed the bug that aria2 downloads faster than max-download-limit when
  8076. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  8077. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  8078. , instead of sum of them.
  8079. * src/ActivePeerConnectionCommand.cc
  8080. * src/DefaultBtInteractive.cc
  8081. * src/DownloadCommand.cc
  8082. * src/PeerInteractionCommand.cc
  8083. * src/PeerReceiveHandshakeCommand.cc
  8084. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. Fixed the bug that HTTPS download fails.
  8086. * src/AbstractCommand.cc
  8087. * src/AbstractCommand.h
  8088. * src/DownloadCommand.cc
  8089. * src/FtpConnection.cc
  8090. * src/HttpConnection.cc
  8091. * src/HttpRequestCommand.cc
  8092. * src/HttpResponseCommand.cc
  8093. * src/HttpSkipResponseCommand.cc
  8094. * src/MSEHandshake.cc
  8095. * src/PeerConnection.cc
  8096. * src/SocketCore.cc
  8097. * src/SocketCore.h
  8098. Fixed the bug that aria2 doesn't download whole content body and cannot
  8099. reuse connection if chunked transfer encoding and gzip content encoding
  8100. are set.
  8101. * src/DownloadCommand.cc
  8102. * src/HttpSkipResponseCommand.cc
  8103. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. Updated man page.
  8105. * doc/aria2c.1.txt
  8106. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8107. When error occurred while aria2 was parsing an .aria2.conf file, print
  8108. the usage of the option that caused error.
  8109. * src/option_processing.cc
  8110. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Fixed compile error on OptionHandlerException
  8112. * src/Makefile.am
  8113. * src/OptionHandlerException.cc
  8114. * src/OptionHandlerException.h
  8115. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8116. Moved message of the error to OptionHandlerException.h
  8117. * src/NameMatchOptionHandler.h
  8118. * src/OptionHandlerException.h
  8119. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. When error occurs while aria2 is parsing an command-line option, print
  8121. the usage of the option.
  8122. * src/Makefile.am
  8123. * src/NameMatchOptionHandler.h
  8124. * src/OptionHandlerException.h
  8125. * src/option_processing.cc
  8126. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8127. Reverted previous change.
  8128. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  8129. username is not in URI.
  8130. * src/HttpRequest.cc
  8131. * src/Request.cc
  8132. * test/HttpRequestTest.cc
  8133. * test/RequestTest.cc
  8134. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8135. Now colon is required for username and password in FTP URL, like:
  8136. ftp://username:password@host.
  8137. If colon is not there, aria2 don't parse it as a username. For example,
  8138. aria2 don't retrieve username from ftp://username@host.
  8139. This fix was made in order to login FTP server via non-transparent ftp
  8140. proxy.
  8141. * src/Request.cc
  8142. * test/RequestTest.cc
  8143. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8144. Use netrc for HTTP.
  8145. Now FTP user/password is sent in Authorization header when
  8146. --ftp-via-http-proxy=get is given.
  8147. * src/AuthConfigFactory.cc
  8148. * src/HttpRequest.cc
  8149. * src/HttpRequest.h
  8150. * src/NetrcAuthResolver.cc
  8151. * src/NetrcAuthResolver.h
  8152. * src/OptionHandlerFactory.cc
  8153. * src/option_processing.cc
  8154. * src/prefs.cc
  8155. * src/prefs.h
  8156. * test/AuthConfigFactoryTest.cc
  8157. * test/HttpRequestTest.cc
  8158. * test/NetrcAuthResolverTest.cc
  8159. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8160. Issue PWD command first and get working directory and use it as a prefix
  8161. for CWD command.
  8162. * src/DownloadEngine.cc
  8163. * src/DownloadEngine.h
  8164. * src/FtpConnection.cc
  8165. * src/FtpConnection.h
  8166. * src/FtpFinishDownloadCommand.cc
  8167. * src/FtpInitiateConnectionCommand.cc
  8168. * src/FtpNegotiationCommand.cc
  8169. * src/FtpNegotiationCommand.h
  8170. * test/FtpConnectionTest.cc
  8171. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8172. Removed default user/pass for FTP user/pass, since it should not have
  8173. precedence over netrc configuration by default.
  8174. * src/OptionHandlerFactory.cc
  8175. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8176. Added debug log for socket event.
  8177. * src/AbstractCommand.cc
  8178. * src/PeerAbstractCommand.cc
  8179. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8180. Log microseconds.
  8181. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8182. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Replaced HelpItem.cc with OptionHandler.cc.
  8184. * po/POTFILES.in
  8185. Updated po files with 'make update-po'
  8186. * po/aria2c.pot
  8187. * po/*.po
  8188. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8189. Removed possible values from the text.
  8190. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  8191. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8192. Removed unused preferences:
  8193. PREF_NO_PREALLOCATION
  8194. PREF_STDOUT_LOG
  8195. PREF_TRACKER_MAX_TRIES
  8196. PREF_DIRECT_DOWNLOAD_TIMEOUT
  8197. PREF_MIN_SEGMENT_SIZE
  8198. * src/option_processing.cc
  8199. * src/prefs.cc
  8200. * src/prefs.h
  8201. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Integrated HelpItem into OptionParser to ease the workload for adding
  8203. new options. Removed default value from usage text.
  8204. * src/HelpItem.cc: Removed.
  8205. * src/HelpItem.h: Removed.
  8206. * src/HelpItemFactory.cc: Removed.
  8207. * src/HelpItemFactory.h: Removed.
  8208. * src/Makefile.am
  8209. * src/Makefile.in
  8210. * src/NameMatchOptionHandler.h
  8211. * src/OptionHandler.cc
  8212. * src/OptionHandler.h
  8213. * src/OptionHandlerFactory.cc
  8214. * src/OptionHandlerImpl.h
  8215. * src/OptionParser.cc
  8216. * src/OptionParser.h
  8217. * src/TagContainer.cc: Removed.
  8218. * src/TagContainer.h: Removed.
  8219. * src/TaggedItem.cc: Removed.
  8220. * src/TaggedItem.h: Removed.
  8221. * src/main.cc
  8222. * src/option_processing.cc
  8223. * src/usage_text.h
  8224. * src/version_usage.cc
  8225. * test/HelpItemTest.cc: Removed.
  8226. * test/Makefile.am
  8227. * test/Makefile.in
  8228. * test/OptionHandlerTest.cc
  8229. * test/OptionParserTest.cc
  8230. * test/TagContainerTest.cc: Removed.
  8231. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8232. Moved `TransferStat stat = ...' to inside the `if' clause.
  8233. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  8234. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. Fixed the bug that a block in a piece is requested when same block is
  8236. already requested to the same peer in end game mode.
  8237. * src/BtRequestFactory.h
  8238. * src/DefaultBtInteractive.cc
  8239. * src/DefaultBtRequestFactory.cc
  8240. * src/DefaultBtRequestFactory.h
  8241. * src/DefaultPieceStorage.cc
  8242. * src/DefaultPieceStorage.h
  8243. * src/PieceStorage.h
  8244. * src/UnknownLengthPieceStorage.cc
  8245. * src/UnknownLengthPieceStorage.h
  8246. * test/DefaultBtRequestFactoryTest.cc
  8247. * test/DefaultPieceStorageTest.cc
  8248. * test/MockBtRequestFactory.h
  8249. * test/MockPieceStorage.h
  8250. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8251. Removed _uploadLength and _downloadLength from PeerSessionResource
  8252. and use PeerStat::_sessionUploadLength and
  8253. PeerStat::_sessionDownloadLength.
  8254. * src/PeerSessionResource.cc
  8255. * src/PeerSessionResource.h
  8256. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8257. Fixed the bug that prefixLength of split bucket which doesn't include
  8258. local node ID is incremented.
  8259. * src/DHTBucket.cc
  8260. * src/DHTBucket.h
  8261. * test/DHTBucketTest.cc
  8262. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8263. Added cookies.sqlite to EXTRA_DIST
  8264. * test/Makefile.am
  8265. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Added Turkish translation. Updated French, German, Russian and
  8267. Simplified Chinese translations. Thanks to all translators.
  8268. * po/LINGUAS
  8269. * po/de.po
  8270. * po/fr.po
  8271. * po/ru.po
  8272. * po/tr.po
  8273. * po/zh_CN.po
  8274. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8275. Added deliminating text to the beginning of the log so that one can find
  8276. where the log starts easily.
  8277. * src/main.cc
  8278. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8279. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  8280. to fix compile error when async DNS is not enabled by configuration.
  8281. * src/AbstractCommand.cc
  8282. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. If establishing conneciton to a server is failed, then mark error on
  8284. its ServerStat.
  8285. Added the cause of error to log when error event occurred.
  8286. Moved message string to message.h for translation.
  8287. * src/AbstractCommand.cc
  8288. * src/AbstractCommand.h
  8289. * src/FtpNegotiationCommand.cc
  8290. * src/HttpRequestCommand.cc
  8291. * src/PeerAbstractCommand.cc
  8292. * src/message.h
  8293. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8294. Added the function to get error message from socket.
  8295. * src/SocketCore.cc
  8296. * src/SocketCore.h
  8297. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. Added convenient method RequestGroupMan::getOrCreateServerStat()
  8299. * src/RequestGroupMan.cc
  8300. * src/RequestGroupMan.h
  8301. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. If error event is received in epoll, then abort download immediately.
  8303. * src/AbstractCommand.cc
  8304. * src/Command.cc
  8305. * src/Command.h
  8306. * src/DownloadEngine.cc
  8307. * src/PeerAbstractCommand.cc
  8308. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8309. Added usage message for --uri-selector, --server-stat-of,
  8310. --server-stat-in, --server-stat-timeout options.
  8311. * src/HelpItemFactory.cc
  8312. * src/usage_text.h
  8313. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8314. Added upper limit of FTP response buffer. The current implementation
  8315. uses 4096bytes as a limit.
  8316. * src/FtpConnection.cc
  8317. * src/FtpConnection.h
  8318. * test/FtpConnectionTest.cc
  8319. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8320. Use non-blocking socket for TCP communication to avoid possible
  8321. blocking due to buffer full.
  8322. * src/AbstractProxyRequestCommand.cc
  8323. * src/FtpConnection.cc
  8324. * src/FtpConnection.h
  8325. * src/FtpNegotiationCommand.cc
  8326. * src/FtpNegotiationCommand.h
  8327. * src/HttpConnection.cc
  8328. * src/HttpConnection.h
  8329. * src/HttpRequestCommand.cc
  8330. * src/InitiatorMSEHandshakeCommand.cc
  8331. * src/InitiatorMSEHandshakeCommand.h
  8332. * src/MSEHandshake.cc
  8333. * src/MSEHandshake.h
  8334. * src/Makefile.am
  8335. * src/PeerConnection.cc
  8336. * src/PeerConnection.h
  8337. * src/PeerInteractionCommand.cc
  8338. * src/PeerListenCommand.cc
  8339. * src/ReceiverMSEHandshakeCommand.cc
  8340. * src/ReceiverMSEHandshakeCommand.h
  8341. * src/SocketBuffer.cc
  8342. * src/SocketBuffer.h
  8343. * src/SocketCore.cc
  8344. * src/SocketCore.h
  8345. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8346. Call setStatusRealtime() in constructor.
  8347. * src/RealtimeCommand.cc
  8348. * src/RealtimeCommand.h
  8349. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8350. Call Download::setNoWait(true) to execute newly created command without
  8351. a pause.
  8352. * src/AbstractCommand.cc
  8353. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8354. Added --max-file-not-found=NUM option. If aria2 receives `file not
  8355. found' error from HTTP/FTP server NUM times without getting single
  8356. bytes of data, then force the download to fail.
  8357. Basically aria2 tris all URIs available. So if long list of URIs are
  8358. specified in Metalink, then aria2 will take a long time to fail
  8359. eventually if all URIs are outdated. This option eases this situation
  8360. to limit the number of servers to try.
  8361. * src/FtpNegotiationCommand.cc
  8362. * src/HelpItemFactory.cc
  8363. * src/HttpResponseCommand.cc
  8364. * src/OptionHandlerFactory.cc
  8365. * src/PeerStat.h
  8366. * src/RequestGroup.cc
  8367. * src/RequestGroup.h
  8368. * src/SegmentMan.cc
  8369. * src/SegmentMan.h
  8370. * src/option_processing.cc
  8371. * src/prefs.cc
  8372. * src/prefs.h
  8373. * src/usage_text.h
  8374. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8375. Fixed the bug that bulkReceiveResponse() reads all received data as a
  8376. response even if more than one response is in it.
  8377. * src/FtpConnection.cc
  8378. * src/FtpConnection.h
  8379. * test/FtpConnectionTest.cc
  8380. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8381. Merged from stable-0.15
  8382. * m4/libcares.m4
  8383. Use pkg-config
  8384. * m4/sqlite3.m4
  8385. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. Removed unnecessary if statement.
  8387. * src/DefaultPieceStorage.cc (initPieceStorage)
  8388. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8389. Added --connect-timeout option to specify connect timeout in seconds.
  8390. This option is in effect for HTTP/FTP/proxy server. The timeout for
  8391. connecting to BitTorrent peer is not controlled by this option.
  8392. * src/AbstractProxyRequestCommand.cc
  8393. * src/FtpNegotiationCommand.cc
  8394. * src/HelpItemFactory.cc
  8395. * src/HttpRequestCommand.cc
  8396. * src/OptionHandlerFactory.cc
  8397. * src/option_processing.cc
  8398. * src/prefs.cc
  8399. * src/prefs.h
  8400. * src/usage_text.h
  8401. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Added help message for -R option.
  8403. * src/HelpItemFactory.cc
  8404. * src/usage_text.h
  8405. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8406. Added the message that the time is in local time zone.
  8407. * src/RequestGroup.cc
  8408. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Implemented the ability to get timestamp from remote FTP server using
  8410. MDTM command described in RFC3659.
  8411. * src/FtpConnection.cc
  8412. * src/FtpConnection.h
  8413. * src/FtpNegotiationCommand.cc
  8414. * src/FtpNegotiationCommand.h
  8415. * test/FtpConnectionTest.cc
  8416. * test/Makefile.am
  8417. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Implemented the ability to get timestamp from remote HTTP server and
  8419. apply it to local file. To enable this feature, --remote-time option
  8420. is added. No usage text has been written yet.
  8421. If several servers returns difference timestamp, then aria2 uses latest
  8422. one.
  8423. * src/CopyDiskAdaptor.cc
  8424. * src/CopyDiskAdaptor.h
  8425. * src/DirectDiskAdaptor.cc
  8426. * src/DirectDiskAdaptor.h
  8427. * src/DiskAdaptor.h
  8428. * src/File.cc
  8429. * src/File.h
  8430. * src/HttpHeader.cc
  8431. * src/HttpHeader.h
  8432. * src/HttpResponse.cc
  8433. * src/HttpResponse.h
  8434. * src/HttpResponseCommand.cc
  8435. * src/HttpResponseCommand.h
  8436. * src/MultiDiskAdaptor.cc
  8437. * src/MultiDiskAdaptor.h
  8438. * src/OptionHandlerFactory.cc
  8439. * src/RequestGroup.cc
  8440. * src/RequestGroup.h
  8441. * src/RequestGroupMan.cc
  8442. * src/option_processing.cc
  8443. * src/prefs.cc
  8444. * src/prefs.h
  8445. * test/CopyDiskAdaptorTest.cc
  8446. * test/FileTest.cc
  8447. * test/Makefile.am
  8448. * test/Makefile.in
  8449. * test/MultiDiskAdaptorTest.cc
  8450. * test/TestUtil.cc
  8451. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Fixed the bug that DiskWriterEntry is not created when its
  8453. FileEntry.isRequested() is false and it doesn't share a piece with
  8454. other FileEntries that are requested. This bug causes segmentation fault
  8455. in the end.
  8456. * src/MultiDiskAdaptor.cc
  8457. * src/MultiDiskAdaptor.h
  8458. * src/MultiFileAllocationIterator.cc
  8459. * test/MultiDiskAdaptorTest.cc
  8460. * test/MultiFileAllocationIteratorTest.cc
  8461. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8462. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8463. called if the number of file entries are greater than max open files.
  8464. * src/AbstractSingleDiskAdaptor.cc
  8465. * src/AbstractSingleDiskAdaptor.h
  8466. * src/DiskAdaptor.h
  8467. * src/MultiDiskAdaptor.cc
  8468. * src/MultiDiskAdaptor.h
  8469. * test/MultiDiskAdaptorTest.cc
  8470. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8471. Added a constuctor that receives struct timeval.
  8472. Added operator<.
  8473. * src/TimeA2.cc
  8474. * src/TimeA2.h
  8475. * test/TimeTest.cc
  8476. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8477. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8478. * src/CookieParser.cc
  8479. * test/CookieParserTest.cc
  8480. * test/HttpResponseTest.cc
  8481. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8482. Implmented the functions to parse date.
  8483. * src/TimeA2.cc
  8484. * src/TimeA2.h
  8485. * test/TimeTest.cc
  8486. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Added "Firefox3 Cookie" feature to FeatureConfig
  8488. * src/FeatureConfig.cc
  8489. * src/FeatureConfig.h
  8490. * test/FeatureConfigTest.cc
  8491. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8492. Bump up version number to 0.16.0b
  8493. * configure.ac
  8494. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Use pkg-config if is is available.
  8496. * m4/openssl.m4
  8497. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8499. * src/BtAnnounce.h
  8500. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8501. If an error occurred with a URI, remove identical URI from remaining
  8502. URI list because it is likely that same error occurred in the end and it
  8503. is waste of time.
  8504. * src/AbstractCommand.cc
  8505. * src/RequestGroup.cc
  8506. * src/RequestGroup.h
  8507. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8508. Removed wrong comment.
  8509. * src/DefaultPeerStorage.cc
  8510. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8511. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8512. Added return value of getpid() to argument of srand() to achieve more
  8513. randomized value.
  8514. * src/SimpleRandomizer.cc
  8515. * src/SimpleRandomizer.h
  8516. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8517. Contact tracker frequently when the number of connections are 0 and
  8518. download is not finished yet.
  8519. * src/ActivePeerConnectionCommand.cc
  8520. * src/BtAnnounce.h
  8521. * src/DefaultBtAnnounce.cc
  8522. * src/DefaultBtAnnounce.h
  8523. * test/MockBtAnnounce.h
  8524. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8525. Moved threshold values to UTPexExtensionMessage.
  8526. * src/DefaultBtInteractive.cc
  8527. * src/Peer.cc
  8528. * src/Peer.h
  8529. * src/UTPexExtensionMessage.cc
  8530. * src/UTPexExtensionMessage.h
  8531. * test/UTPexExtensionMessageTest.cc
  8532. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8533. Added _incoming member to Peer class and made it true if the peer
  8534. initiated connection. Don't add those peer to UTPex message.
  8535. If extended handshake is received, assign _incoming to false.
  8536. * src/DefaultBtInteractive.cc
  8537. * src/HandshakeExtensionMessage.cc
  8538. * src/Peer.cc
  8539. * src/Peer.h
  8540. * src/PeerListenCommand.cc
  8541. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8543. Encoding Decoder. Removed size threshold for turning off on the fly
  8544. inflation because resulting file may or may not be inflated depending
  8545. on the file size and I think it is not expected by users.
  8546. This change fixes segmentation fault when Metalink file contains gzipped
  8547. file and its filesize is provided.
  8548. * src/HttpResponseCommand.cc
  8549. * src/HttpResponseCommand.h
  8550. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8551. Made Cookie immutable.
  8552. * src/Cookie.cc
  8553. * src/Cookie.h
  8554. * src/CookieParser.cc
  8555. * src/CookieParser.h
  8556. * src/CookieStorage.cc
  8557. * test/CookieParserTest.cc
  8558. * test/CookieStorageTest.cc
  8559. * test/NsCookieParserTest.cc
  8560. * test/Sqlite3MozCookieParserTest.cc
  8561. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8562. Removed CookieBox, CookieBoxFactory.
  8563. * src/CookieBox.cc
  8564. * src/CookieBox.h
  8565. * src/CookieBoxFactory.cc
  8566. * src/CookieBoxFactory.h
  8567. * src/Makefile.am
  8568. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8569. Use CookieStorage class instead of CookieBox class.
  8570. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8571. * src/AbstractProxyRequestCommand.cc
  8572. * src/CookieStorage.cc
  8573. * src/DownloadEngine.cc
  8574. * src/DownloadEngine.h
  8575. * src/HttpConnection.cc
  8576. * src/HttpConnection.h
  8577. * src/HttpRequest.cc
  8578. * src/HttpRequest.h
  8579. * src/HttpRequestCommand.cc
  8580. * src/HttpResponse.cc
  8581. * src/HttpResponseCommand.cc
  8582. * src/HttpSkipResponseCommand.cc
  8583. * src/Makefile.am
  8584. * src/MultiUrlRequestInfo.cc
  8585. * src/Request.cc
  8586. * src/Request.h
  8587. * src/main.cc
  8588. * test/AllTest.cc
  8589. * test/CookieStorageTest.cc
  8590. * test/CookieTest.cc
  8591. * test/HttpRequestTest.cc
  8592. * test/HttpResponseTest.cc
  8593. * test/Makefile.am
  8594. * test/NsCookieParserTest.cc
  8595. * test/Sqlite3MozCookieParserTest.cc
  8596. * test/nscookietest.txt
  8597. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8598. Updated
  8599. * test/Cookies.sqlite
  8600. * test/nscookietest.txt
  8601. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8602. Added tests for CookieStorage::load()
  8603. * test/CookieStorageTest.cc
  8604. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Added CookieStorage class which is based on RFC2109 and manages cookies
  8606. more strictly than CookieBox and CookieBoxFactory class.
  8607. * src/CookieStorage.cc
  8608. * src/CookieStorage.h
  8609. * src/Cookie.cc
  8610. * src/Cookie.h
  8611. * test/CookieStorageTest.cc
  8612. * test/CookieTest.cc
  8613. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8614. Fixed the bug that commands are created more than the number of pieces.
  8615. * src/RequestGroup.cc
  8616. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8617. Fixed infinite loop bug in FTP when SIZE command failed.
  8618. * src/FtpNegotiationCommand.cc
  8619. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8620. Removed DirectDiskAdaptorTest.h
  8621. * test/Makefile.am
  8622. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8623. Fixed chunk checksum validation cannot detect trailing garbage data.
  8624. BUG#2074141
  8625. * src/AbstractSingleDiskAdaptor.cc
  8626. * src/AbstractSingleDiskAdaptor.h
  8627. * src/CheckIntegrityEntry.cc
  8628. * src/CheckIntegrityEntry.h
  8629. * src/DiskAdaptor.h
  8630. * src/MultiDiskAdaptor.cc
  8631. * src/MultiDiskAdaptor.h
  8632. * src/RequestGroup.cc
  8633. * test/DirectDiskAdaptorTest.cc
  8634. * test/MultiDiskAdaptorTest.cc
  8635. * test/TestUtil.cc
  8636. * test/TestUtil.h
  8637. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8638. Bump up version number of dht.dat file to 3. In version 3 format, time
  8639. is stored in 64bit, network byte order.
  8640. New build can load old format(version 2) but it saves the file in new
  8641. format. It means once you used new build, your dht.dat becomes
  8642. incompatible with older build.
  8643. * src/DHTRoutingTableDeserializer.cc
  8644. * src/DHTRoutingTableSerializer.cc
  8645. * test/DHTRoutingTableSerializerTest.cc
  8646. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8648. * test/Makefile.am
  8649. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Bump up version number of .aria2 control file to 0001.
  8651. New aria2 can still load version 0000 file but it saves the file in
  8652. version 0001 format. It means that new aria2 can resume download
  8653. started by old aria2 but the opposite is not true.
  8654. * src/DefaultBtProgressInfoFile.cc
  8655. * src/DefaultBtProgressInfoFile.h
  8656. * test/DefaultBtProgressInfoFileTest.cc
  8657. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. Added ntoh64 and hton64 as inline functions.
  8659. * src/Util.cc
  8660. * test/UtilTest.cc
  8661. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8662. Added sqlite3 depenency and Firefox3 cookie support.
  8663. * README
  8664. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8665. State that firefox3 cookie is supported explicitly in the usage.
  8666. * src/usage_text.h
  8667. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8668. Externalized message.
  8669. * src/RequestGroupMan.cc
  8670. * src/message.h
  8671. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8672. Save temporary file first and rename to the destination on success.
  8673. Added test cases.
  8674. * src/RequestGroupMan.cc
  8675. * test/RequestGroupManTest.cc
  8676. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8677. Fixed the bug that the number of connected peer is exceeding the limit
  8678. (55 by default) in seeding mode.
  8679. Multiplied 0.8 to _maxUploadSpeedLimit.
  8680. * src/ActivePeerConnectionCommand.cc
  8681. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. Clear table item.
  8683. * src/Dictionary.cc
  8684. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Fixed error handling of lseek.
  8686. * src/AbstractDiskWriter.cc
  8687. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8689. style cookie file.
  8690. * src/usage_text.h
  8691. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8692. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8693. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8694. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8695. * src/Util.cc
  8696. * src/Util.h
  8697. * src/CookieParser.cc
  8698. * test/UtilTest.cc
  8699. * test/CookieParserTest.cc
  8700. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8701. Separate the implementation to load old mozilla format of cookie to
  8702. NsCookieParser class.
  8703. * src/CookieBoxFactory.cc
  8704. * src/CookieBoxFactory.h
  8705. * src/NsCookieParser.cc
  8706. * src/NsCookieParser.h
  8707. * test/NsCookieParserTest.cc
  8708. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8709. Made parse() const
  8710. * src/Sqlite3MozCookieParser.cc
  8711. * src/Sqlite3MozCookieParser.h
  8712. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8713. Added firefox3 cookie support based on the patch submitted by
  8714. tizianomueller.
  8715. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8716. this functionality.
  8717. * configure.ac
  8718. * m4/sqlite3.m4
  8719. * src/CookieBoxFactory.cc
  8720. * src/CookieBoxFactory.h
  8721. * src/Makefile.am
  8722. * src/Makefile.in
  8723. * src/Sqlite3MozCookieParser.cc
  8724. * src/Sqlite3MozCookieParser.h
  8725. * src/main.cc
  8726. * test/CookieBoxFactoryTest.cc
  8727. * test/Makefile.am
  8728. * test/Makefile.in
  8729. * test/Sqlite3MozCookieParserTest.cc
  8730. * test/badcookies.sqlite
  8731. * test/cookies.sqlite
  8732. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8733. Added Danish and Greek translations.
  8734. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8735. Great thanks to all translators.
  8736. * po/LINGUAS
  8737. * po/el.po
  8738. * po/da.po
  8739. * po/es.po
  8740. * po/ca.po
  8741. * po/nn.po
  8742. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8743. Fixed man page: --follow-bittorrent should be --follow-torrent
  8744. * doc/aria2c.1.txt
  8745. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8746. Fixed: numCommand is less than the value specified in -C option.
  8747. * src/RequestGroup.cc
  8748. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Fixed occasional assertion failure in PieceSegment.
  8750. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8751. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8752. creation of duplicate segments and one of the segment was finished then
  8753. assertion failure was caused.
  8754. * src/SegmentMan.cc
  8755. * test/SegmentManTest.cc
  8756. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Added options to load/save the server's performance/status to a file
  8758. and the timeout to drop their data.
  8759. --server-stat-of=FILE specifies the file to which performance data
  8760. is saved.
  8761. --server-stat-if=FILE specifies the file to read previously saved
  8762. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8763. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8764. TIMEOUT is specified in seconds and the default value is 24hours.
  8765. * src/MultiUrlRequestInfo.cc
  8766. * src/OptionHandlerFactory.cc
  8767. * src/RequestGroupMan.cc
  8768. * src/RequestGroupMan.h
  8769. * src/ServerStatMan.cc
  8770. * src/ServerStatMan.h
  8771. * src/option_processing.cc
  8772. * src/prefs.cc
  8773. * src/prefs.h
  8774. * test/ServerStatManTest.cc
  8775. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8777. * src/ServerStatMan.cc
  8778. * src/ServerStatMan.h
  8779. * test/ServerStatManTest.cc
  8780. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8781. Implemented ServerStatMan::load(...) function and its test case.
  8782. * src/ServerStat.cc
  8783. * src/ServerStat.h
  8784. * src/ServerStatMan.cc
  8785. * test/ServerStatManTest.cc
  8786. * test/ServerStatTest.cc
  8787. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. Use time_t instead of int32_t. Use int64_t where milli second is
  8789. expected.
  8790. * src/TimeA2.cc
  8791. * src/TimeA2.h
  8792. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Implemented ServerStatMan::save(...) function and its test case.
  8794. * src/ServerStat.cc
  8795. * src/ServerStat.h
  8796. * src/ServerStatMan.cc
  8797. * src/ServerStatMan.h
  8798. * test/ServerStatManTest.cc
  8799. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8800. Now aria2 uses name attribute in Metalink as local filename in
  8801. BitTorrent downloads. BUG#2033999
  8802. * src/BtContext.h
  8803. * src/BtDependency.cc
  8804. * src/DefaultBtContext.cc
  8805. * src/DefaultBtContext.h
  8806. * src/SingleFileDownloadContext.cc
  8807. * src/SingleFileDownloadContext.h
  8808. * test/BtDependencyTest.cc
  8809. * test/DefaultBtContextTest.cc
  8810. * test/MockBtContext.h
  8811. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8812. Added AC_C_BIGENDIAN
  8813. * src/configure.ac
  8814. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Limited numCommand less than or equal to the number of piece.
  8816. * src/RequestGroup.cc
  8817. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8818. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8819. directive.
  8820. * test/DefaultPieceStorageTest.cc
  8821. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8822. Fixed memory leak in test code
  8823. * test/AnnounceListTest.cc
  8824. * test/DefaultPeerListProcessorTest.cc
  8825. * test/DefaultPeerStorageTest.cc
  8826. * test/MetaFileUtilTest.cc
  8827. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8828. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8829. * src/DefaultPieceStorage.cc
  8830. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8831. Initialized _directIOAllowed
  8832. * src/MultiDiskAdaptor.cc
  8833. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8834. Fixed memory leak
  8835. * src/GZipDecoder.cc
  8836. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8837. Fixed memory leak
  8838. * src/MetalinkParserStateMachine.cc
  8839. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8840. Fixed memory leak
  8841. * src/Dictionary.cc
  8842. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. Fixed memory leak
  8844. * src/IteratableChunkChecksumValidator.h
  8845. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8846. Fixed unmatched malloc/free.
  8847. * src/IteratableChunkChecksumValidator.cc
  8848. * src/IteratableChecksumValidator.cc
  8849. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8850. Removed max chunk size check. This change fixes BUG#2040169
  8851. * src/ChunkedDecoder.cc
  8852. * src/ChunkedDecoder.h
  8853. * test/ChunkedDecoderTest.cc
  8854. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8855. Implemented download speed based URI selection algorithm.
  8856. Introduced new option --uri-selector.
  8857. If --uri-selector=feedback is given, aria2 uses download speed observed
  8858. in the previous downloads and chooses fastest server in the URI list.
  8859. Currently at most 10 URIs are considered to introduce randomeness for
  8860. finding better servers. The speed is average download speed in the
  8861. downloads.
  8862. On the other hand, if --uri-selector=inorder is given, which is default,
  8863. URI is tried in order in URI list.
  8864. The usage text for the new option has not been written yet.
  8865. * src/AbstractCommand.cc
  8866. * src/DownloadCommand.cc
  8867. * src/DownloadEngine.cc
  8868. * src/DownloadEngineFactory.cc
  8869. * src/InOrderURISelector.cc
  8870. * src/InOrderURISelector.h
  8871. * src/OptionHandlerFactory.cc
  8872. * src/PeerStat.h
  8873. * src/RequestGroup.cc
  8874. * src/RequestGroup.h
  8875. * src/RequestGroupMan.cc
  8876. * src/RequestGroupMan.h
  8877. * src/SegmentMan.cc
  8878. * src/SegmentMan.h
  8879. * src/ServerStat.cc
  8880. * src/ServerStat.h
  8881. * src/ServerStatMan.cc
  8882. * src/ServerStatMan.h
  8883. * src/ServerStatURISelector.cc
  8884. * src/ServerStatURISelector.h
  8885. * src/URISelector.h
  8886. * src/option_processing.cc
  8887. * src/prefs.cc
  8888. * src/prefs.h
  8889. * test/InOrderURISelectorTest.cc
  8890. * test/RequestGroupManTest.cc
  8891. * test/ServerStatManTest.cc
  8892. * test/ServerStatURISelectorTest.cc
  8893. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. * Release 0.15.1+2
  8895. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. Bump up version number to 0.15.1+2
  8897. * configure.ac
  8898. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8899. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8900. * m4/aria2_arg.m4
  8901. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8902. * Release 0.15.1+1
  8903. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Bump up version number to 0.15.1+1
  8905. * configure.ac
  8906. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8907. Fixed the bug that causes segmentaion fault when resuming download
  8908. using metalink without size tag. Reproducible only using HTTP URI.
  8909. * src/HttpResponseCommand.cc
  8910. * src/FtpNegotiationCommand.cc
  8911. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8912. * Release 0.15.1
  8913. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8914. Updated Bulgarian and French translations, thanks to all translators.
  8915. * po/bg.po
  8916. * po/fr.po
  8917. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8918. Bump up version number to 0.15.1
  8919. * configure.ac
  8920. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8921. Avoid repeated call of gettimeofday() when calculating speed.
  8922. * src/SpeedCalc.cc
  8923. * src/SpeedCalc.h
  8924. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. Removed writable check when socket's send buffer is full in BitTorrent
  8926. downloads to lower CPU usage.
  8927. * src/PeerInteractionCommand.cc
  8928. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8929. Fixed broken gzip inflation.
  8930. Turn off segmented downloading if gzip content is smaller than or equal
  8931. to 1MiB and inflate the data on the fly, because HTTP response header
  8932. doesn't contain the length of inflated file we can't determin where
  8933. the chunk of data should be written.
  8934. On the other hand, if gzip content is larger than 1MB, then turn off
  8935. on the fly inflation, because some servers returns "content-type: gzip"
  8936. for *.tgz, *.gz files.
  8937. * src/DownloadCommand.cc
  8938. * src/HttpResponseCommand.cc
  8939. * src/HttpResponseCommand.h
  8940. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8941. Applied tizianomueller's patch to fix compile error.
  8942. * test/BitfieldManTest.cc
  8943. * test/BtRequestMessageTest.cc
  8944. * test/DefaultBtContextTest.cc
  8945. * test/DefaultDiskWriterTest.cc
  8946. * test/DefaultPieceStorageTest.cc
  8947. * test/HttpHeaderProcessorTest.cc
  8948. * test/HttpResponseTest.cc
  8949. * test/Metalink2RequestGroupTest.cc
  8950. * test/MetalinkParserControllerTest.cc
  8951. * test/MetalinkProcessorTest.cc
  8952. * test/PeerSessionResourceTest.cc
  8953. * test/UtilTest.cc
  8954. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8955. * Release 0.15.0
  8956. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Reordered src files in POTFILES.in so that usage text appears first.
  8958. * po/POTFILES.in
  8959. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8960. Bump up version number to 0.15.0
  8961. * configure.ac
  8962. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8963. Added Bulgarian translation.
  8964. Updated Catalan, Spanish, French and Japanese translations.
  8965. Thanks to all translators.
  8966. * po/LINGUAS
  8967. * po/bg.po
  8968. * po/ca.po
  8969. * po/es.po
  8970. * po/fr.po
  8971. * po/ja.po
  8972. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Updated feature list. Added libz for dependency section.
  8974. Added a description about unit testing using CppUnit.
  8975. * README
  8976. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. Added a test for libz. Quoted where it is necessary.
  8978. * build_test.sh
  8979. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. Added GZip to `Enabled Features' list.
  8981. * src/FeatureConfig.cc
  8982. * src/FeatureConfig.h
  8983. * test/FeatureConfigTest.cc
  8984. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8985. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8986. the transfer has not yet started.
  8987. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8988. * src/SegmentMan.cc
  8989. * src/SegmentMan.h
  8990. * test/SegmentManTest.cc
  8991. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Cache last calculated average download/upload speed.
  8993. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8994. cached value.
  8995. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8996. * src/PeerStat.h
  8997. * src/SpeedCalc.cc
  8998. * src/SpeedCalc.h
  8999. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9000. Call parseUrl directly.
  9001. * src/Request.cc (resetUrl)
  9002. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Supported absolute/relative path in Location header field.
  9004. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  9005. * src/HttpHeader.cc
  9006. * src/HttpHeader.h
  9007. * src/HttpResponse.cc
  9008. * src/HttpSkipResponseCommand.cc
  9009. * src/Request.cc
  9010. * test/HttpHeaderTest.cc
  9011. * test/HttpResponseTest.cc
  9012. * test/RequestTest.cc
  9013. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9014. Changed help text for --load-cookie option.
  9015. * doc/aria2c.1.txt
  9016. * src/usage_text.h
  9017. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9018. Regenerated test/Makefile.in to remove stale ChangeLog.
  9019. * test/Makefile.in
  9020. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9021. Updated po files.
  9022. * po/aria2c.pot
  9023. * po/*.po
  9024. * po/*.gmo
  9025. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9026. Bump up version number to 0.15.0b
  9027. * configure.ac
  9028. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9029. Externalize messages.
  9030. * src/RequestGroupMan.cc
  9031. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  9032. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9033. Use File::exists() instead of File::isFile() to allow non-regular file
  9034. such as block special files.
  9035. * src/AbstractDiskWriter.cc
  9036. * src/MultiDiskWriter.cc
  9037. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  9039. * src/gai_strerror.h
  9040. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. Fixed compile error. Thanks gknauf for the patch.
  9042. * src/asctime_r.c
  9043. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9044. Included asctime_r.h from a2time.h.
  9045. * src/a2time.h
  9046. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9047. Added a message "aria2 doesn't verify signature" to log message when
  9048. signature file is saved.
  9049. * src/RequestGroupMan.cc
  9050. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Added the ability to save signature when download is completed if
  9052. signature is available. The filename of signature file is the path to
  9053. download file followed by ".sig". If it already exists, then signature
  9054. will not be saved.
  9055. * src/RequestGroupMan.cc
  9056. * src/Signature.cc
  9057. * test/SignatureTest.cc
  9058. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9059. Updated the descriptions for --bt-seed-unverified.
  9060. * doc/aria2c.1
  9061. * doc/aria2c.1.html
  9062. * doc/aria2c.1.txt
  9063. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9064. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  9065. that this is not going to verify files using piece hashes.
  9066. * src/HelpItemFactory.cc
  9067. * src/OptionHandlerFactory.cc
  9068. * src/RequestGroup.cc
  9069. * src/option_processing.cc
  9070. * src/prefs.cc
  9071. * src/prefs.h
  9072. * src/usage_text.h
  9073. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. Added the ability to retrieve signature from Metalink file.
  9075. A retrieved signature is stored in Signature class and it is held by
  9076. DownloadContext class. Note that aria2 doesn't verify signature.
  9077. * src/DownloadContext.cc
  9078. * src/DownloadContext.h
  9079. * src/Makefile.am
  9080. * src/Makefile.in
  9081. * src/Metalink2RequestGroup.cc
  9082. * src/MetalinkEntry.cc
  9083. * src/MetalinkEntry.h
  9084. * src/MetalinkParserController.cc
  9085. * src/MetalinkParserController.h
  9086. * src/MetalinkParserStateMachine.cc
  9087. * src/MetalinkParserStateMachine.h
  9088. * src/Signature.cc
  9089. * src/Signature.h
  9090. * src/SignatureMetalinkParserState.cc
  9091. * src/SignatureMetalinkParserState.h
  9092. * src/VerificationMetalinkParserState.cc
  9093. * src/VerificationMetalinkParserState.h
  9094. * test/Metalink2RequestGroupTest.cc
  9095. * test/MetalinkParserControllerTest.cc
  9096. * test/MetalinkProcessorTest.cc
  9097. * test/test.xml
  9098. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9099. Close DiskAdaptor after renaming file.
  9100. * src/RequestGroup.cc
  9101. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9102. Corrected indentation
  9103. * src/DefaultBtProgressInfoFile.cc
  9104. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9105. Moved the calls of std::ios::exceptions() inside of try-catch block
  9106. because if an error occurred in constructor of std::fstream, then
  9107. exception is thrown immediately when std::ios::exceptions() is called
  9108. which results unhandled exception and aria2c aborts.
  9109. * src/DefaultBtProgressInfoFile.cc
  9110. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9111. Added the test for the previous change in DefaultBtContext.cc
  9112. * test/DefaultBtContextTest.cc
  9113. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9114. Fixed the bug that causes infinite loop when the number of pieces are
  9115. fewer than allowed fast set size which is 10 by default.
  9116. * src/DefaultBtContext.cc
  9117. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9118. Updated the descriptions for -j, -s. Added --bt-seed.
  9119. * doc/aria2c.1
  9120. * doc/aria2c.1.html
  9121. * doc/aria2c.1.txt
  9122. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9123. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  9124. aria2 seeds previously downloaded files without validating piece hashs.
  9125. * src/HelpItemFactory.cc
  9126. * src/OptionHandlerFactory.cc
  9127. * src/RequestGroup.cc
  9128. * src/option_processing.cc
  9129. * src/prefs.cc
  9130. * src/prefs.h
  9131. * src/usage_text.h
  9132. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. Updated DESCRIPTION of man page.
  9134. * doc/aria2c.1
  9135. * doc/aria2c.1.html
  9136. * doc/aria2c.1.txt
  9137. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9138. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  9139. Don't define `struct addrinfo' when __sun is defined.
  9140. * src/getaddrinfo.h
  9141. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9142. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  9143. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  9144. second argument is of type `struct _stati64'. Otherwise it is defined as
  9145. `struct stat'.
  9146. * src/AbstractDiskWriter.cc
  9147. * src/File.cc
  9148. * src/File.h
  9149. * src/a2io.h
  9150. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Fixed the compile error in hurd-i386
  9152. See the original bug report:
  9153. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  9154. * src/a2io.h
  9155. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. Code cleanup.
  9157. * src/PeerAbstractCommand.cc
  9158. * src/PeerAbstractCommand.h
  9159. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9160. Removed TransferEncoding.
  9161. * src/DownloadCommand.cc
  9162. * src/DownloadCommand.h
  9163. * src/HttpResponseCommand.cc
  9164. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Updated po files.
  9166. * po/aria2c.pot
  9167. * po/*.po
  9168. * po/*.gmo
  9169. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9170. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  9171. * src/A2STR.cc
  9172. * src/A2STR.h
  9173. * src/ChunkedDecoder.cc
  9174. * src/ChunkedDecoder.h
  9175. * src/ChunkedEncoding.cc: Removed
  9176. * src/ChunkedEncoding.h: Removed
  9177. * src/DownloadCommand.cc
  9178. * src/DownloadCommand.h
  9179. * src/HttpDownloadCommand.cc
  9180. * src/HttpResponse.cc
  9181. * src/HttpResponse.h
  9182. * src/HttpResponseCommand.cc
  9183. * src/HttpSkipResponseCommand.cc
  9184. * src/HttpSkipResponseCommand.h
  9185. * src/Makefile.am
  9186. * src/TransferEncoding.h: Removed
  9187. * test/ChunkedDecoderTest.cc
  9188. * test/ChunkedEncodingTest.cc: Removed
  9189. * test/HttpResponseTest.cc
  9190. * test/Makefile.am
  9191. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. Use append instead of insert.
  9193. * src/GZipDecoder.cc
  9194. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Updated doc
  9196. * src/Decoder.h
  9197. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9198. Updated usage text for -s option.
  9199. * src/usage_text.h
  9200. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9201. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  9202. * src/Request.cc
  9203. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9204. Cleaned up configure.ac.
  9205. * configure.ac
  9206. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9207. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  9208. AC_ARG_ENABLE.
  9209. * configure.ac
  9210. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9211. Added gzip, deflate decoding support in HTTP using libz. If compiled
  9212. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  9213. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  9214. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  9215. fly and writes decoded data to a local disk.
  9216. * README
  9217. * README.html
  9218. * configure.ac
  9219. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  9220. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  9221. * m4/libz.m4
  9222. * src/Decoder.h
  9223. * src/DownloadCommand.cc
  9224. * src/DownloadCommand.h
  9225. * src/Exception.h
  9226. * src/GZipDecoder.cc
  9227. * src/GZipDecoder.h
  9228. * src/HttpHeader.cc
  9229. * src/HttpHeader.h
  9230. * src/HttpRequest.cc
  9231. * src/HttpRequest.h
  9232. * src/HttpResponse.cc
  9233. * src/HttpResponse.h
  9234. * src/HttpResponseCommand.cc
  9235. * src/Makefile.am
  9236. * test/GZipDecoderTest.cc
  9237. * test/HttpRequestTest.cc
  9238. * test/HttpResponseTest.cc
  9239. * test/Makefile.am
  9240. * test/Makefile.in
  9241. * test/gzip_decode_test.gz
  9242. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9243. Clarified usage of -j option.
  9244. * src/usage_text.h
  9245. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. Disabled getting size from the response of RETR.
  9247. If SIZE command failed, then disable resuming and segmented downloading.
  9248. * src/FtpConnection.cc
  9249. * src/FtpConnection.h
  9250. * src/FtpNegotiationCommand.cc
  9251. * src/FtpNegotiationCommand.h
  9252. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9253. Use digits to find first byte of file size, which makes the intention
  9254. of the code clearer.
  9255. * src/FtpConnection.cc
  9256. Don't call validateTotalLength() when size is 0.
  9257. * src/FtpNegotiationCommand.cc
  9258. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9259. Updated po files.
  9260. * po/aria2c.pot
  9261. * po/*.gmo
  9262. * po/*.po
  9263. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9264. Clarified usage text for --split option.
  9265. * src/usage_text.h
  9266. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9267. Bump up version number to 0.15.0dev. "dev" means "development"
  9268. version, which means I started the development of the next release!
  9269. * src/configure.ac
  9270. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9271. If FTP server returns negative response with REST raw command and
  9272. requested range is not 0, throw exception. If requested range is 0,
  9273. continue download a file from 0 byte.
  9274. * src/FtpNegotiationCommand.cc
  9275. * src/FtpNegotiationCommand.h
  9276. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9277. Supported FTP server which don't recognize SIZE raw command.
  9278. If SIZE raw command is failed, aria2 will try to get file size
  9279. from the response of RETR raw command. If both attempts are failed,
  9280. then resuming and segmented downloading are disabled.
  9281. * src/FtpConnection.cc
  9282. * src/FtpConnection.h
  9283. * src/FtpNegotiationCommand.cc
  9284. * src/FtpNegotiationCommand.h
  9285. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9286. * Release 0.14.0+1
  9287. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9288. Bump up version number to 0.14.0+1
  9289. * src/configure.ac
  9290. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9291. Fixed the code that refers static member variable from non-static
  9292. context.
  9293. * src/DefaultPeerStorage.cc
  9294. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9295. * Release 0.14.0
  9296. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9297. Added build test script
  9298. * build_test.sh
  9299. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9300. Updated ja.po
  9301. * src/ja.po
  9302. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9303. Bump up version number to 0.14.0
  9304. * src/configure.ac
  9305. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9306. Updated ja.po and fr.po. Great thanks for french translators and
  9307. Sebastien WILLEMIJNS.
  9308. * po/fr.po
  9309. * po/ja.po
  9310. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9311. Added configure option to enable/disable epoll support.
  9312. * configure.ac
  9313. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. Updated man page.
  9315. * doc/aria2c.1.txt
  9316. * doc/aria2c.1
  9317. * doc/aria2c.1.html
  9318. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9319. Added missing default value '5' to the usage of --split option.
  9320. * src/HelpItemFactory.cc
  9321. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9322. Filled up pieces based on the number of missing blocks, rather than
  9323. simplay the number of piece * block length.
  9324. * src/BtRequestFactory.h
  9325. * src/DefaultBtInteractive.cc
  9326. * src/DefaultBtInteractive.h
  9327. * src/DefaultBtRequestFactory.cc
  9328. * src/DefaultBtRequestFactory.h
  9329. * src/Piece.cc
  9330. * src/Piece.h
  9331. * test/BitfieldManTest.cc
  9332. * test/DefaultBtRequestFactoryTest.cc
  9333. * test/MockBtRequestFactory.h
  9334. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. Made _epEvents a member variable.
  9336. * src/DownloadEngine.cc
  9337. * src/DownloadEngine.h
  9338. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Cancel download if http redirect is bounded more than 20 times.
  9340. * src/AbstractCommand.cc
  9341. * src/HttpSkipResponseCommand.cc
  9342. * src/Request.cc
  9343. * src/Request.h
  9344. * test/RequestTest.cc
  9345. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9346. Fixed unhandled exception(removed keyword `new').
  9347. * src/SocketCore.cc (initEPOLL)
  9348. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9349. Removed visit(const MetaEntry*)
  9350. * src/MetaEntryVisitor.h:
  9351. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  9352. and made them virtual.
  9353. * src/BencodeVisitor.h
  9354. * src/BencodeVisitor.cc
  9355. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9356. Updated po files.
  9357. * po/aria2c.pot
  9358. * po/*.po
  9359. * po/*.gmo
  9360. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9361. Moved the call setWriteCheckSocket inside the previous clause to reduce
  9362. the number of socket to watch out.
  9363. * src/PeerInteractionCommand.cc
  9364. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. When there is not enough space in disk when writing a chunk of data,
  9366. aria2 now prints the message to the console to warn user and aborts
  9367. its download. Not all downloads are canceled because some downloads
  9368. may use another disk or partition. BUG#1640332
  9369. * src/AbstractDiskWriter.cc
  9370. * src/PeerAbstractCommand.cc
  9371. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  9372. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  9373. setHaltRequested(true) to cancel download.
  9374. * src/PeerInteractionCommand.h
  9375. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  9377. socket from int to sock_t as sockets are unsigned in Windows.
  9378. For AsyncNameResolver, DownloadEngine, I did additional modification
  9379. for the portion of the code changed according to epoll support.
  9380. I defined sock_t in a2netcompat.h to use sock_t without including
  9381. SocketCore.h.
  9382. * src/AsyncNameResolver.cc
  9383. * src/AsyncNameResolver.h
  9384. * src/DownloadEngine.cc
  9385. * src/DownloadEngine.h
  9386. * src/SocketCore.cc
  9387. * src/SocketCore.h
  9388. * src/a2netcompat.h
  9389. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  9391. changes in the patch were applied.
  9392. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  9393. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  9394. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  9395. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  9397. a2io.h and common.h were modified.
  9398. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  9399. MinGW.
  9400. * src/common.h: Changed off_t to 64 bit in MinGW.
  9401. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9402. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9403. only a2netcompat.h is modified.
  9404. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  9405. directives.
  9406. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9407. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  9408. only gai_strerror.h is modified.
  9409. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  9410. winsock errors in MinGW.
  9411. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9412. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  9413. follow sources are applied.
  9414. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  9415. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  9416. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  9417. I included locale.h from Platform.cc.
  9418. * src/main.cc: Moved common setup/teardown code to Platform class.
  9419. * test/AllTest.cc: Use Platform class.
  9420. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9421. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9423. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9424. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9425. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9427. aria2-0.13.2+1-mingw-2.patch.
  9428. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9429. systems which don't have termious.h. I moved the directive inside of
  9430. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9431. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9432. anyway.
  9433. * src/asctime_r.h
  9434. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9435. I added 2nd argument to the prototype declaration.
  9436. * src/StringFormat.cc: Get rid of vasprintf.
  9437. * src/getaddrinfo.h: Fixed constants.
  9438. * configure.ac: Added the check for asctime_r function.
  9439. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9440. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Added writable test for Socket when the sending message is in progress.
  9442. Usually the sending message is piece message. Without wriable check,
  9443. upload latency is dropped to more than 1sec.
  9444. * src/PeerInteractionCommand.cc
  9445. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9446. Create only requested files and files which shares a piece with
  9447. requested file in multi-torrent downloads. Directory structures are
  9448. also created in the same rule.
  9449. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9450. DiskWriterEntry as in the previous implementation.
  9451. * src/MultiDiskWriter.cc
  9452. * src/MultiFileAllocationIterator.cc
  9453. * src/MultiFileAllocationIterator.h
  9454. * test/MultiFileAllocationIteratorTest.cc
  9455. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9456. Commented out -lprofiler
  9457. * src/Makefile.am
  9458. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9459. Bump up version number to 0.14.0b.
  9460. * src/configure.ac
  9461. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9462. Actively establish connection to peers in seeding, when peer cache
  9463. is not full and max upload speed limit is not reached.
  9464. * src/ActivePeerConnectionCommand.cc
  9465. * src/ActivePeerConnectionCommand.h
  9466. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9468. to make room more fleshy, recently found peers.
  9469. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9470. it.
  9471. * src/DefaultPeerStorage.cc
  9472. * test/DefaultPeerStorageTest.cc
  9473. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9474. Returns cached data only when the previous receiveHandshake() is called
  9475. with peek = true.
  9476. * src/PeerConnection.cc (receiveHandshake)
  9477. * src/PeerConnection.h (receiveHandshake)
  9478. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9479. Changed default value of -s option from 1 to 5.
  9480. Also max value of -s option is changed from 5 to 16.
  9481. * src/HelpItemFactory.cc
  9482. * src/OptionHandlerFactory.cc
  9483. * src/option_processing.cc
  9484. * src/usage_text.h
  9485. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9486. Changed -s options behavior. Now it means the number of connections
  9487. made simultaneously in each http/ftp download.
  9488. If 1 URL is specified, the behavior is the same with old implementation.
  9489. If -s N is given and more than N URLs are specified, first N URLs are
  9490. used and remaining URLs are used for backup. If less than N URLs are
  9491. specified, some of URLs are used more than once so that totally N
  9492. connections are made simultaneously.
  9493. * src/main.cc
  9494. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9495. Included missing iosfwd or ostream header.
  9496. * src/RequestGroupMan.cc
  9497. * src/TaggedItem.cc
  9498. * src/TaggedItem.h
  9499. * src/Util.cc
  9500. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9502. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9503. * src/HttpConnection.cc: Included missing sstream.
  9504. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9505. Added --bt-max-open-files option.
  9506. * src/DefaultPieceStorage.cc
  9507. * src/HelpItemFactory.cc
  9508. * src/MultiDiskAdaptor.cc
  9509. * src/MultiDiskAdaptor.h
  9510. * src/OptionHandlerFactory.cc
  9511. * src/option_processing.cc
  9512. * src/prefs.cc
  9513. * src/prefs.h
  9514. * src/usage_text.h
  9515. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9516. Fixed the bug that aria2 aborts when a path to a directory is given
  9517. in command-line.
  9518. * src/ProtocolDetector.cc
  9519. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. Limited the number files opened in each BitTorrent download. The default
  9521. value is 100. The option to change this value will be added.
  9522. * src/MultiDiskAdaptor.cc
  9523. * src/MultiDiskAdaptor.h
  9524. * src/MultiFileAllocationIterator.cc
  9525. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9526. Fixed the bug that HTTP downloads don't start with old libraries.
  9527. * src/HttpHeaderProcessor.cc
  9528. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9529. Use empty() instead of size() > 0.
  9530. * src/HttpConnection.cc
  9531. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9532. Drop connection if the incoming peer ID is the same with localhost's
  9533. one. The previous implementation drops connection when incoming peer's
  9534. IP address is the same with localhost's one.
  9535. * src/PeerListenCommand.cc
  9536. * src/DefaultBtInteractive.cc
  9537. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. Returns cached data without checking whether socket is readable
  9539. if the cache is available.
  9540. * src/PeerConnection.cc (receiveHandshake)
  9541. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9542. Included stdint.h
  9543. * src/common.h
  9544. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9545. Removed duplicate HAVE_GETTIMEOFDAY
  9546. * src/Makefile.am
  9547. * src/Makefile.in
  9548. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9549. Use interval as a minInterval when minInterval is not supplied.
  9550. * src/DefaultBtAnnounce.cc
  9551. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9553. attempt is failed, then 2nd attempt get kicked out more quickly.
  9554. And it is now static const member of DefaultBtAnnounce.
  9555. * src/DefaultBtAnnounce.h
  9556. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9557. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9558. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9559. * src/ActivePeerConnectionCommand.cc
  9560. * src/BtConstants.h
  9561. * src/BtRuntime.h
  9562. * src/DHTGetPeersCommand.cc
  9563. * src/DefaultBtAnnounce.cc
  9564. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9565. BtRuntime::MAX_PEERS.
  9566. * src/DefaultPeerStorage.h
  9567. * src/InitiatorMSEHandshakeCommand.cc
  9568. * src/PeerInitiateConnectionCommand.cc
  9569. * src/PeerInteractionCommand.cc
  9570. * src/PeerReceiveHandshakeCommand.cc
  9571. * src/TrackerWatcherCommand.cc
  9572. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9573. Always Connect to _numNewConnection
  9574. * src/ActivePeerConnectionCommand.cc
  9575. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Made `begin' unsigned int.
  9577. * src/GrowSegment.h
  9578. * src/Piece.cc
  9579. * src/Piece.h
  9580. * src/PiecedSegment.cc
  9581. * src/PiecedSegment.h
  9582. * src/Segment.h
  9583. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9584. Calculate piece hash when data is arrived if the data is arrived in
  9585. order. This removes additional read operation for hash calculation.
  9586. If the data is arrived in out of order, the hash is calucated when the
  9587. piece is completed. This is the same behavior as the old implementation.
  9588. * src/BtPieceMessage.cc
  9589. * src/DefaultBtProgressInfoFile.cc
  9590. * src/DefaultPieceStorage.cc
  9591. * src/DownloadCommand.cc
  9592. * src/DownloadCommand.h
  9593. * src/DownloadEngine.cc
  9594. * src/GrowSegment.cc
  9595. * src/GrowSegment.h
  9596. * src/Piece.cc
  9597. * src/Piece.h
  9598. * src/PiecedSegment.cc
  9599. * src/PiecedSegment.h
  9600. * src/Segment.h
  9601. * test/PieceTest.cc
  9602. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9603. Try to keep the ordering of outgoing piece message.
  9604. * src/DefaultBtMessageDispatcher.cc
  9605. (DefaultBtMessageDispatcher::sendMessages)
  9606. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9607. Fixed busy loop when error/hup epoll events occur.
  9608. * src/AbstractCommand.cc
  9609. * src/PeerAbstractCommand.cc
  9610. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9611. Added --bt-request-peer-speed-limit option, which was a constant
  9612. SLOW_SPEED_THRESHOLD.
  9613. * src/ActivePeerConnectionCommand.cc
  9614. * src/ActivePeerConnectionCommand.h
  9615. * src/BtConstants.h
  9616. * src/HelpItemFactory.cc
  9617. * src/OptionHandlerFactory.cc
  9618. * src/PeerReceiveHandshakeCommand.cc
  9619. * src/option_processing.cc
  9620. * src/prefs.cc
  9621. * src/prefs.h
  9622. * src/usage_text.h
  9623. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9624. Removed repeated call of getTopDirPath(). Instead, call it once and
  9625. cache the result.
  9626. * src/MultiDiskAdaptor.cc
  9627. * src/MultiDiskAdaptor.h
  9628. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9629. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9630. Fixed compile error on debian etch.
  9631. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9632. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9633. it is undefined.
  9634. * src/Util.cc (ULLONG_MAX)
  9635. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Added epoll support. Use epoll if it is available. If not, use select.
  9637. When async dns is enabled in compile time, epoll support is enabled
  9638. only when aria2 is built with c-ares. This condition statement is
  9639. defined in a2io.h.
  9640. Currently aria2 supports both c-ares and ares, but ares is maintained
  9641. for quite a while and debian already has c-ares package, ares support
  9642. will be dropped in the future version.
  9643. * configure.ac
  9644. * src/AbstractCommand.cc
  9645. * src/AsyncNameResolver.cc
  9646. * src/AsyncNameResolver.h
  9647. * src/Command.cc
  9648. * src/Command.h
  9649. * src/DownloadEngine.cc
  9650. * src/DownloadEngine.h
  9651. * src/PeerAbstractCommand.cc
  9652. * src/SocketCore.cc
  9653. * src/SocketCore.h
  9654. * src/a2io.h
  9655. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9656. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9657. directive.
  9658. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9659. Do not do write operation to /dev/null file.
  9660. * src/LogFactory.cc
  9661. * src/SimpleLogger.cc
  9662. Replaced vasprintf with vsnprintf
  9663. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9664. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9665. * src/BtRequestMessage.cc
  9666. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9667. for segmentation fault caused by previous commit.
  9668. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9669. Reduced the usage of gettimeofday().
  9670. * src/DefaultBtMessageDispatcher.cc
  9671. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9672. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9673. * src/RequestSlot.cc
  9674. * src/RequestSlot.h
  9675. (RequestSlot::isTimeout)
  9676. Made RequestSlot have a reference to Piece object to avoid find
  9677. Piece repeatedly.
  9678. * src/DefaultBtMessageDispatcher.cc
  9679. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9680. * src/RequestSlot.cc
  9681. * src/RequestSlot.h
  9682. (RequestSlot::getPiece)
  9683. * test/DefaultBtMessageDispatcherTest.cc
  9684. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9685. * src/TimeA2.cc
  9686. * src/TimeA2.h
  9687. (Time::difference): New function.
  9688. (Time::elapsed): Done optimization.
  9689. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9690. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9691. directive.
  9692. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9693. * src/option_processing.cc: Added missing `defined' keyword to #if
  9694. directive.
  9695. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9696. Bump up version number to 0.13.2+1
  9697. * src/configure.ac
  9698. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9699. Refactored broken outstanding piece handling.
  9700. * src/DefaultPieceStorage.cc
  9701. * src/DefaultPieceStorage.h
  9702. * src/Piece.cc
  9703. * src/Piece.h
  9704. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9705. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9706. name collision of static variable and predefined macro.
  9707. * src/BtContext.cc
  9708. * src/BtContext.h
  9709. * src/CookieBoxFactory.cc
  9710. * src/CookieBoxFactory.h
  9711. * src/CookieParser.cc
  9712. * src/CookieParser.h
  9713. * src/DefaultBtContext.cc
  9714. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9715. * src/RequestGroup.cc
  9716. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9717. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9718. * Release 0.13.2
  9719. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9720. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9721. * po/fr.po
  9722. * po/ja.po
  9723. * po/aria2c.pot
  9724. * po/*.po
  9725. * po/*.gmo
  9726. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9727. Bump up version number to 0.13.2
  9728. * src/configure.ac
  9729. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9730. Refactord.
  9731. * src/RequestGroupMan.cc
  9732. (removeStoppedGroup)
  9733. (fillRequestGroupFromReserver)
  9734. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9735. Fixed compile error on Ubuntu.
  9736. * src/BtPieceMessage.cc
  9737. * src/MessageDigestHelper.cc
  9738. * src/Util.cc
  9739. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9740. Fixed compile error when configured with --disable-bittorrent
  9741. * test/DownloadHandlerFactoryTest.cc
  9742. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9743. Done make update-po
  9744. * po/aria2c.pot
  9745. * po/*.po
  9746. * po/*.gmo
  9747. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9748. Bump up version number to 0.13.2rc.
  9749. * src/configure.ac
  9750. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9751. Made option name bold. Updated SYNOPSIS to make it more readable.
  9752. * doc/aria2c.1.txt
  9753. * doc/aria2c.1
  9754. * doc/aria2c.1.html
  9755. * src/version_usage.cc
  9756. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. Refactored. Use std::string instead of size and char*.
  9758. * Data.cc
  9759. * Data.h
  9760. * test/Data.cc
  9761. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9762. Added trimSelf(). Rewritten trim() to use trimSelf().
  9763. * Util.cc
  9764. * Util.h
  9765. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9766. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9767. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9768. Fixed compile error when configured with --disable-metalink.
  9769. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9770. * test/FeatureConfigTest.cc
  9771. * test/DownloadHandlerFactoryTest.cc
  9772. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9773. Fixed compile error when configured with --without-gnutls
  9774. --without-openssl
  9775. * src/main.cc
  9776. * test/DefaultBtProgressInfoFileTest.cc
  9777. * test/SegmentManTest.cc
  9778. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9779. Fixed compile error with OpenSSL.
  9780. * src/IteratableChunkChecksumValidator.cc
  9781. * src/LibsslDHKeyExchange.h
  9782. * src/MessageDigestHelper.cc
  9783. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9784. Revert the default value of --max-concurrent-downloads to 5.
  9785. Revert the default value of --metalink-servers to 5.
  9786. Man pages was also updated.
  9787. * src/option_processing.cc
  9788. * doc/aria2c.1.txt
  9789. * doc/aria2c.1.html
  9790. * doc/aria2c.1
  9791. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9792. Returns const reference:
  9793. DownloadContext::getPieceHash, DownloadContext::getName,
  9794. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9795. BtContext::getInfoHashAsString,
  9796. * src/BtContext.h
  9797. * src/DefaultBtContext.cc
  9798. * src/DefaultBtContext.h
  9799. * src/DownloadContext.h
  9800. * src/SingleFileDownloadContext.h
  9801. * test/MockBtContext.h
  9802. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9803. * src/RequestGroup.h (getDir): Removed.
  9804. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Returns const reference. The internal urlencode function was optimized
  9806. a little bit.
  9807. * src/Request.cc
  9808. * src/Request.h
  9809. * src/HttpRequest.cc
  9810. * src/HttpRequest.h
  9811. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9812. Defined option name and possible values as std::string to reduce
  9813. temporary string object creation in runtime.
  9814. * src/HelpItemFactory.cc
  9815. * src/LogFactory.cc
  9816. * src/Option.cc
  9817. * src/OptionHandlerFactory.cc
  9818. * src/option_processing.cc
  9819. * src/prefs.cc
  9820. * src/prefs.h
  9821. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9822. Return const reference.
  9823. * src/DownloadHandlerConstants.cc
  9824. * src/DownloadHandlerConstants.h
  9825. (getMetalinkExtensions)
  9826. (getMetalinkContentTypes)
  9827. (getBtExtensions)
  9828. (getBtContentTypes)
  9829. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9830. * src/HttpHeader.cc (get): Rewritten.
  9831. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. Make HttpHeader::getFirst(...) return const reference.
  9833. * src/HttpHeader.cc
  9834. * src/HttpHeader.h
  9835. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9836. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9837. it with V_TRUE.
  9838. * src/DefaultPieceStorage.cc
  9839. * src/DownloadCommand.cc
  9840. * src/FtpNegotiationCommand.cc
  9841. * src/HttpRequest.cc
  9842. * src/InitiateConnectionCommand.cc
  9843. * src/RequestGroup.cc
  9844. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Made Option::get(...) return const reference of std::string.
  9846. * src/Option.cc
  9847. * src/Option.h
  9848. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9849. Replaced std:copy with insert.
  9850. * src/DefaultBtMessageDispatcher.cc
  9851. * src/DefaultPieceStorage.cc
  9852. * src/DownloadEngineFactory.cc
  9853. * src/RequestGroup.cc
  9854. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9855. Included SocketCore.h to fix compiler warning.
  9856. * src/InitiateConnectionCommand.cc
  9857. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9858. Put piece selection strategy algorithm to RarestPieceSelector class,
  9859. Added a switch to choose whether randomized selection so that unit
  9860. tests emit same results in, possibly, win32.
  9861. * src/DefaultPieceStorage.cc
  9862. * src/DefaultPieceStorage.h
  9863. * src/RarestPieceSelector.cc
  9864. * src/RarestPieceSelector.h
  9865. * test/DefaultPieceStorageTest.cc
  9866. * test/RarestPieceSelectorTest.cc
  9867. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9868. Don't pool connection if HTTP proxy is enabled.
  9869. * src/FtpFinishDownloadCommand.cc
  9870. * src/FtpNegotiationCommand.cc
  9871. * src/HttpSkipResponseCommand.cc
  9872. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9873. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9874. * src/AbstractCommand.cc
  9875. * src/AbstractCommand.h
  9876. * src/ActivePeerConnectionCommand.cc
  9877. * src/FtpInitiateConnectionCommand.cc
  9878. * src/HttpInitiateConnectionCommand.cc
  9879. * src/InitiateConnectionCommandFactory.cc
  9880. * src/PeerAbstractCommand.cc
  9881. * src/PeerAbstractCommand.h
  9882. * src/PeerInitiateConnectionCommand.cc
  9883. * src/TrackerWatcherCommand.cc
  9884. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9885. Sort RequestSlot in ascending order and manipulate them using
  9886. lower_bound.
  9887. * src/DefaultBtMessageDispatcher.cc
  9888. * src/DefaultBtMessageDispatcher.h
  9889. (getMessageQueue): Added const qualifier.
  9890. (getRequestSlots): Added const qualifier.
  9891. (sendMessages): Use empty() instead of size().
  9892. (doCancelSendingPieceAction): Use HandleEvent object.
  9893. (doAbortOutstandingRequestAction): Rewritten.
  9894. (doChokedAction): Rewritten.
  9895. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9896. (isOutstandingRequest): Rewritten.
  9897. (getOutstandingRequest): Rewritten.
  9898. (removeOutstandingRequest): Rewritten.
  9899. (addOutstandingRequest): Rewritten.
  9900. * src/RequestSlot.cc
  9901. * src/RequestSlot.h
  9902. (operator=): Rewritten.
  9903. (operator!=): New function.
  9904. (operator<): New function.
  9905. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9906. * src/DefaultBtRequestFactory.cc
  9907. (doChokedAction): Rewritten.
  9908. (removeCompletedPiece): Rewritten.
  9909. (removeTargetPiece): Rewritten.
  9910. (createRequestMessages): Added the debug log.
  9911. (createRequestMessagesOnEndGame: Added the debug log.
  9912. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9913. Added the debug log message.
  9914. * src/BtPieceMessage.cc (doReceivedAction)
  9915. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9916. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9917. used lower_bound to process them rather than linear search.
  9918. * src/DHTPeerAnnounceStorage.cc
  9919. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9920. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9921. peer has at least one completed piece.
  9922. * src/Peer.cc
  9923. * src/Peer.h
  9924. * src/PeerInteractionCommand.cc
  9925. * src/PeerSessionResource.cc
  9926. * src/PeerSessionResource.h
  9927. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9928. Removed unnecessary sorting
  9929. * src/DefaultPieceStorage (DefaultPieceStorage)
  9930. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Rewritten the portion of the code that mangaes allowed fast indexes.
  9932. * src/PeerSessionResource.cc
  9933. * src/PeerSessionResource.h
  9934. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9935. Removed the invalid string including '\r' from ru.po and
  9936. did make update-po.
  9937. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9938. Added --log-level and --summary-interval to man page.
  9939. * doc/aria2c.1.txt
  9940. * doc/aria2c.1.html
  9941. * doc/aria2c.1
  9942. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9943. Added --log-level option to specify log level. Log messages under
  9944. the specified level are not output. Default value is `debug'.
  9945. * src/HelpItemFactory.cc
  9946. * src/LogFactory.cc
  9947. * src/LogFactory.h
  9948. * src/Logger.h
  9949. * src/OptionHandlerFactory.cc
  9950. * src/SimpleLogger.cc
  9951. * src/SimpleLogger.h
  9952. * src/main.cc
  9953. * src/option_processing.cc
  9954. * src/prefs.h
  9955. * src/usage_text.h
  9956. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9957. Print download progress summary of all parallel downloads in specified
  9958. interval, default 60 secs. While aria2 could download several files
  9959. in parallel (see -j option), it displayed just first download progress,
  9960. and the other downloads are hidden from the users. This new feature
  9961. prints all downloads currently in-progress to the console so that you
  9962. can check the status of all downloads. The interval can be adjusted
  9963. by --summary-interval option.
  9964. The progress readout is now cut so that all fits in the one line of
  9965. console.
  9966. * src/ConsoleStatCalc.cc
  9967. * src/ConsoleStatCalc.h
  9968. * src/HelpItemFactory.cc
  9969. * src/OptionHandlerFactory.cc
  9970. * src/RequestGroupMan.cc
  9971. * src/RequestGroupMan.h
  9972. * src/main.cc
  9973. * src/option_processing.cc
  9974. * src/prefs.h
  9975. * src/usage_text.h
  9976. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9977. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9978. * src/DownloadEngine.cc (DownloadEngine)
  9979. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9980. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9981. defined.
  9982. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9983. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9984. Use erase+lower_bound+insert instead of sort.
  9985. * src/DefaultPieceStorage.cc (addPieceStats)
  9986. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9987. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9988. * src/A2STR.cc
  9989. * src/A2STR.h
  9990. * src/OptionParser.cc (parse)
  9991. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9992. Defined fake filename `[tracker.announce]' as static const std::string.
  9993. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9994. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9995. Defined default filename `index.html' as static const std::string
  9996. * src/SingleFileDownloadContext.cc
  9997. * src/SingleFileDownloadContext.h
  9998. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9999. Defined "[MEMORY]" as static const std::string.
  10000. * src/MemoryBufferPreDownloadHandler.cc (execute)
  10001. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10002. Defined control file's version number as static const std::string.
  10003. * src/DefaultBtProgressInfoFile.cc
  10004. * src/DefaultBtProgressInfoFile.h
  10005. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10006. Use Request::METHOD_GET
  10007. * src/RequestGroup.cc (createNextCommandWithAdj)
  10008. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10009. Defined "OK", "ERR", "INPR" as static const std::string
  10010. * src/RequestGroupMan.cc (showDownloadResults)
  10011. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10012. Defined default client used in extended handshake as static const
  10013. std::string
  10014. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  10015. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10016. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  10017. * src/HttpConnection.cc (eraseConfidentialInfo)
  10018. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10019. Defined default ftp user and password as static const std::string
  10020. * src/AuthConfigFactory.cc
  10021. * src/AuthConfigFactory.h
  10022. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. Defined strings used in netrc as static const std::string
  10024. * src/Netrc.cc
  10025. * src/Netrc.h
  10026. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10027. Defined HTTP status as static const std::string
  10028. * src/AbstractProxyResponseCommand.cc
  10029. * src/HttpHeader.cc
  10030. * src/HttpHeader.h
  10031. * src/HttpResponse.cc
  10032. * src/HttpResponseCommand.cc
  10033. * src/HttpSkipResponseCommand.cc
  10034. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10035. Defined "\r\n", "A", "I" as static const std::string
  10036. * src/A2STR.cc
  10037. * src/A2STR.h
  10038. * src/FtpConnection.cc
  10039. * src/FtpConnection.h
  10040. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10041. Added COLON_C(".") and used it in Request::parseUrl()
  10042. * src/A2STR.cc
  10043. * src/A2STR.h
  10044. * src/Request.cc (parseUrl)
  10045. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10046. Changed the type of padName from `const std::string&' to `const char*'.
  10047. * src/MSEHandshake.cc (verifyPadLength)
  10048. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10049. Defined "sha1" as static const std::string.
  10050. * src/MetalinkParserController.cc
  10051. * src/MetalinkParserController.h
  10052. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10053. Defined message digest algorithm name as static const std::string
  10054. * src/DHTTokenTracker.cc
  10055. * src/DHTUtil.cc
  10056. * src/DefaultBtContext.cc
  10057. * src/MSEHandshake.cc
  10058. * src/MessageDigestHelper.cc
  10059. * src/Peer.cc
  10060. * src/messageDigest.cc
  10061. * src/messageDigest.h
  10062. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10063. Made string literals used in SAX parser static const std::string.
  10064. * src/FileMetalinkParserState.cc
  10065. * src/FileMetalinkParserState.h
  10066. * src/FilesMetalinkParserState.cc
  10067. * src/FilesMetalinkParserState.h
  10068. * src/InitialMetalinkParserState.cc
  10069. * src/InitialMetalinkParserState.h
  10070. * src/MetalinkMetalinkParserState.cc
  10071. * src/MetalinkMetalinkParserState.h
  10072. * src/PiecesMetalinkParserState.cc
  10073. * src/PiecesMetalinkParserState.h
  10074. * src/ResourcesMetalinkParserState.cc
  10075. * src/ResourcesMetalinkParserState.h
  10076. * src/VerificationMetalinkParserState.cc
  10077. * src/VerificationMetalinkParserState.h
  10078. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  10080. * src/A2STR.cc
  10081. * src/A2STR.h
  10082. * src/File.cc
  10083. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10084. Defined static const std::string IP("ip"), PORT("port") and use them
  10085. instead of string literals.
  10086. * src/DefaultPeerListProcessor.cc
  10087. * src/DefaultPeerListProcessor.h
  10088. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10089. Made string literals for torrent file processing static const
  10090. std::string.
  10091. * src/BtContext.cc
  10092. * src/BtContext.h
  10093. * src/DefaultBtContext.cc
  10094. * src/DefaultBtContext.h
  10095. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10096. Made string literal for tracker response static const std::string
  10097. * src/BtAnnounce.cc
  10098. * src/BtAnnounce.h
  10099. * src/DefaultBtAnnounce.cc
  10100. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10101. Use DHTMessage::T instead of "t".
  10102. * src/DHTMessageTracker.cc (messageArrived)
  10103. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10104. Made keyName static const. Made trimmed charset static const
  10105. std::string.
  10106. * src/Util.cc (getContentDispositionFilename)
  10107. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10108. Made USER_AGENT const. Made "/" static const std::string.
  10109. * src/A2STR.cc
  10110. * src/A2STR.h
  10111. * src/HttpRequest.cc
  10112. * src/HttpRequest.h
  10113. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. Made string listeral to static const std::string:
  10115. "Content-Range", "Content-Length"
  10116. * src/HttpHeader.cc
  10117. * src/HttpHeader.h
  10118. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10119. Made string listeral to static const std::string.
  10120. * src/HttpConnection.cc
  10121. * src/HttpHeader.cc
  10122. * src/HttpHeader.h
  10123. * src/HttpResponse.cc
  10124. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10125. Made string listeral to static const std::string.
  10126. * src/A2STR.cc
  10127. * src/A2STR.h
  10128. * src/SimpleLogger.cc
  10129. * src/SimpleLogger.h
  10130. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10131. Made string literal to static const std::string.
  10132. Rewritten CookieParser::setField.
  10133. * src/A2STR.cc
  10134. * src/A2STR.h
  10135. * src/CookieBoxFactory.cc
  10136. * src/CookieBoxFactory.h
  10137. * src/CookieParser.cc
  10138. * src/CookieParser.h
  10139. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10140. Made string literal to static const std::string
  10141. * src/DHTAbstractMessage.cc
  10142. * src/DHTAnnouncePeerMessage.cc
  10143. * src/DHTAnnouncePeerMessage.h
  10144. * src/DHTAnnouncePeerReplyMessage.cc
  10145. * src/DHTAnnouncePeerReplyMessage.h
  10146. * src/DHTFindNodeMessage.cc
  10147. * src/DHTFindNodeMessage.h
  10148. * src/DHTFindNodeReplyMessage.cc
  10149. * src/DHTFindNodeReplyMessage.h
  10150. * src/DHTGetPeersMessage.cc
  10151. * src/DHTGetPeersMessage.h
  10152. * src/DHTGetPeersReplyMessage.cc
  10153. * src/DHTGetPeersReplyMessage.h
  10154. * src/DHTMessage.cc
  10155. * src/DHTMessage.h
  10156. * src/DHTMessageFactoryImpl.cc
  10157. * src/DHTMessageReceiver.cc
  10158. * src/DHTPingMessage.cc
  10159. * src/DHTPingMessage.h
  10160. * src/DHTPingReplyMessage.cc
  10161. * src/DHTPingReplyMessage.h
  10162. * src/DHTQueryMessage.cc
  10163. * src/DHTQueryMessage.h
  10164. * src/DHTResponseMessage.cc
  10165. * src/DHTResponseMessage.h
  10166. * src/DHTUnknownMessage.cc
  10167. * src/DHTUnknownMessage.h
  10168. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10169. Made string literal to static const std::string
  10170. * src/BtChokeMessage.cc (toString)
  10171. * src/BtHaveAllMessage.cc (toString)
  10172. * src/BtHaveNoneMessage.cc (toString)
  10173. * src/BtInterestedMessage.cc (toString)
  10174. * src/BtNotInterestedMessage.cc (toString)
  10175. * src/BtUnchokeMessage.cc (toString)
  10176. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10177. Replaced "" with static const variable A2STR::NIL.
  10178. Replaced string comparison against "" with std::string::empty().
  10179. Added PROTO_* to Request class and use them as a protocol string
  10180. constant.
  10181. Made "started", "stopped", "completed" static const variable in
  10182. AnnounceList class.
  10183. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10184. Updated translations. Great thanks to translators.
  10185. * po/ca.po
  10186. * po/de.po
  10187. * po/fr.po
  10188. * po/it.po
  10189. * po/ja.po
  10190. * po/ru.po
  10191. * po/zh_CN.po
  10192. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10193. Updated man page; categorized options and fixed typo.
  10194. * doc/aria2c.1.txt
  10195. * doc/aria2c.1.html
  10196. * doc/aria2c.1
  10197. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10198. Removed const ref
  10199. * src/MetalinkEntry.cc (AddProtocolPreference)
  10200. * src/RequestGroup.cc (FindServerHostByHostname)
  10201. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10202. Rewritten Accept-Features handling.
  10203. * src/HttpRequestCommand.cc (createHttpRequest)
  10204. * src/a2functional.h
  10205. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10206. Changed method signature:
  10207. DHTAbstractNodeLookupTask::toEntries
  10208. * src/DHTAbstractNodeLookupTask.cc
  10209. * src/DHTAbstractNodeLookupTask.h
  10210. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10211. Changed method signature:
  10212. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  10213. * src/BtContext.h
  10214. * src/DefaultBtContext.cc
  10215. * src/DefaultBtContext.h
  10216. * src/DefaultBtInteractive.cc
  10217. * test/DefaultBtContextTest.cc
  10218. * test/MockBtContext.h
  10219. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10220. Changed method signature:
  10221. MultiFileAllocationIterator::makeDiskWriterEntries
  10222. * src/MultiFileAllocationIterator.cc
  10223. * src/MultiFileAllocationIterator.h
  10224. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10225. Changed method sinature:
  10226. MetalinkEntry::toFileEntry,
  10227. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  10228. Metalinker::queryEntry
  10229. * src/Metalink2RequestGroup.cc
  10230. * src/MetalinkEntry.cc
  10231. * src/MetalinkEntry.h
  10232. * src/MetalinkHelper.cc
  10233. * src/MetalinkHelper.h
  10234. * src/Metalinker.cc
  10235. * src/Metalinker.h
  10236. * src/main.cc
  10237. * test/MetalinkHelperTest.cc
  10238. * test/MetalinkerTest.cc
  10239. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10240. Changed method sinature:
  10241. RequestGroup::getURIs
  10242. * src/RequestGroup.cc
  10243. * src/RequestGroup.h
  10244. * test/Metalink2RequestGroupTest.cc
  10245. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10246. Changed method signature:
  10247. PeerListProcessor::extractPeer
  10248. * src/CompactPeerListProcessor.cc
  10249. * src/CompactPeerListProcessor.h
  10250. * src/DefaultBtAnnounce.cc
  10251. * src/DefaultPeerListProcessor.cc
  10252. * src/DefaultPeerListProcessor.h
  10253. * src/DelegatingPeerListProcessor.cc
  10254. * src/DelegatingPeerListProcessor.h
  10255. * src/PeerListProcessor.h
  10256. * src/UTPexExtensionMessage.cc
  10257. * test/DefaultPeerListProcessorTest.cc
  10258. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. Changed method signature:
  10260. BtRequestFactory::createRequestMessages,
  10261. BtRequestFactory::createRequestMessagesOnEndGame
  10262. * src/BtRequestFactory.h
  10263. * src/DefaultBtInteractive.cc
  10264. * src/DefaultBtRequestFactory.cc
  10265. * src/DefaultBtRequestFactory.h
  10266. * test/DefaultBtRequestFactoryTest.cc
  10267. * test/MockBtRequestFactory.h
  10268. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10269. Changed method signature:
  10270. PieceStorage::getInFlightPieces
  10271. * src/DefaultBtProgressInfoFile.cc
  10272. * src/DefaultPieceStorage.cc
  10273. * src/DefaultPieceStorage.h
  10274. * src/PieceStorage.h
  10275. * src/UnknownLengthPieceStorage.cc
  10276. * src/UnknownLengthPieceStorage.h
  10277. * test/DefaultBtProgressInfoFileTest.cc
  10278. * test/MockPieceStorage.h
  10279. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. Changed method signature:
  10281. PostDownloadHandler::getNextRequestGroups
  10282. Metalink2RequestGroup::generate
  10283. RequestGroup::postDownloadProcessing
  10284. * src/BtPostDownloadHandler.cc
  10285. * src/BtPostDownloadHandler.h
  10286. * src/Metalink2RequestGroup.cc
  10287. * src/Metalink2RequestGroup.h
  10288. * src/MetalinkPostDownloadHandler.cc
  10289. * src/MetalinkPostDownloadHandler.h
  10290. * src/PostDownloadHandler.h
  10291. * src/RequestGroup.cc
  10292. * src/RequestGroup.h
  10293. * src/RequestGroupMan.cc
  10294. * src/main.cc
  10295. * test/BtPostDownloadHandlerTest.cc
  10296. * test/Metalink2RequestGroupTest.cc
  10297. * test/MetalinkPostDownloadHandlerTest.cc
  10298. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10299. Rewritten AccRequestGroup
  10300. * src/main.cc
  10301. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10302. Rewritten.
  10303. * src/TaggedItem.cc (toTagString)
  10304. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10305. Rewritten Accept-Features handling.
  10306. * src/HttpRequestCommand.cc (createHttpRequest)
  10307. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10308. Rewritten accept types handling.
  10309. * HttpRequest.cc (createRequest)
  10310. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10311. Rewritten
  10312. * src/FeatureConfig.cc (featureSummary)
  10313. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10314. Changed method signature:
  10315. PeerStorage::getActivePeers
  10316. * src/DHTPeerAnnounceEntry.cc
  10317. * src/DefaultPeerStorage.cc
  10318. * src/DefaultPeerStorage.h
  10319. * src/PeerStorage.h
  10320. * test/DefaultPeerStorageTest.cc
  10321. * test/MockPeerStorage.h
  10322. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10323. Changed method signature:
  10324. DHTPeerAnnounceStorage::getPeers,
  10325. DHTPeerAnnounceEntry::getPeers
  10326. * src/DHTGetPeersMessage.cc
  10327. * src/DHTPeerAnnounceEntry.cc
  10328. * src/DHTPeerAnnounceEntry.h
  10329. * src/DHTPeerAnnounceStorage.cc
  10330. * src/DHTPeerAnnounceStorage.h
  10331. * test/DHTAnnouncePeerMessageTest.cc
  10332. * test/DHTPeerAnnounceEntryTest.cc
  10333. * test/DHTPeerAnnounceStorageTest.cc
  10334. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10335. Changed method signature:
  10336. NameResolver::resolve
  10337. * src/DHTEntryPointNameResolveCommand.cc
  10338. * src/InitiateConnectionCommand.cc
  10339. * src/NameResolver.cc
  10340. * src/NameResolver.h
  10341. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10342. Changed method signature:
  10343. PieceStorage::getAdvertisedPieceIndexes
  10344. * src/DefaultBtInteractive.cc
  10345. * src/DefaultPieceStorage.cc
  10346. * src/DefaultPieceStorage.h
  10347. * src/PieceStorage.h
  10348. * src/UnknownLengthPieceStorage.h
  10349. * test/MockPieceStorage.h
  10350. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10351. Changed method signature:
  10352. SegmentMan::getInFlightSegment
  10353. * src/AbstractCommand.cc
  10354. * src/SegmentMan.cc
  10355. * src/SegmentMan.h
  10356. * test/SegmentManTest.cc
  10357. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10358. Changed method signature:
  10359. DHTAbstractNodeLookupTask::getNodesFromMessage
  10360. * src/DHTAbstractNodeLookupTask.cc
  10361. * src/DHTAbstractNodeLookupTask.h
  10362. * src/DHTNodeLookupTask.cc
  10363. * src/DHTNodeLookupTask.h
  10364. * src/DHTPeerLookupTask.cc
  10365. * src/DHTPeerLookupTask.h
  10366. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10367. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  10368. * src/AbstractCommand.cc
  10369. * src/BtCheckIntegrityEntry.cc
  10370. * src/BtCheckIntegrityEntry.h
  10371. * src/BtFileAllocationEntry.cc
  10372. * src/BtFileAllocationEntry.h
  10373. * src/BtSetup.cc
  10374. * src/BtSetup.h
  10375. * src/CheckIntegrityCommand.cc
  10376. * src/CheckIntegrityEntry.h
  10377. * src/ChecksumCheckIntegrityEntry.cc
  10378. * src/ChecksumCheckIntegrityEntry.h
  10379. * src/DHTSetup.cc
  10380. * src/DHTSetup.h
  10381. * src/DownloadEngine.cc
  10382. * src/FileAllocationCommand.cc
  10383. * src/FileAllocationEntry.h
  10384. * src/RequestGroup.cc
  10385. * src/RequestGroup.h
  10386. * src/RequestGroupMan.cc
  10387. * src/RequestGroupMan.h
  10388. * src/StreamCheckIntegrityEntry.cc
  10389. * src/StreamCheckIntegrityEntry.h
  10390. * src/StreamFileAllocationEntry.cc
  10391. * src/StreamFileAllocationEntry.h
  10392. * src/TrackerWatcherCommand.cc
  10393. * src/a2functional.h
  10394. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10395. Changed method signature:
  10396. BNode::findClosestKNodes, BNode:: enumerateBucket,
  10397. DHTBucket::getGoodNodes,
  10398. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  10399. * src/BNode.cc
  10400. * src/BNode.h
  10401. * src/DHTAbstractNodeLookupTask.cc
  10402. * src/DHTAutoSaveCommand.cc
  10403. * src/DHTBucket.cc
  10404. * src/DHTBucket.h
  10405. * src/DHTBucketRefreshTask.cc
  10406. * src/DHTFindNodeMessage.cc
  10407. * src/DHTGetPeersMessage.cc
  10408. * src/DHTRoutingTable.cc
  10409. * src/DHTRoutingTable.h
  10410. * test/BNodeTest.cc
  10411. * test/DHTBucketTest.cc
  10412. * test/DHTRoutingTableTest.cc
  10413. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10414. In piece selection functions, Pass std::deque<...> by reference rather
  10415. than returning it.
  10416. * src/BitfieldMan.cc
  10417. * src/BitfieldMan.h
  10418. * src/DefaultBtRequestFactory.cc
  10419. * src/DefaultPieceStorage.cc
  10420. * src/Piece.cc
  10421. * src/Piece.h
  10422. * test/BitfieldManTest.cc
  10423. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10424. Implemented rarest piece first piece selection strategy.
  10425. * src/AbstractBtMessage.cc
  10426. * src/AbstractBtMessage.h
  10427. * src/BitfieldMan.cc
  10428. * src/BitfieldMan.h
  10429. * src/BtBitfieldMessage.cc
  10430. * src/BtHaveAllMessage.cc
  10431. * src/BtHaveMessage.cc
  10432. * src/DefaultPieceStorage.cc
  10433. * src/DefaultPieceStorage.h
  10434. * src/PeerInteractionCommand.cc
  10435. * src/PieceStorage.h
  10436. * src/UnknownLengthPieceStorage.h
  10437. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. Rewritten readData and writeData.
  10439. * src/MultiDiskAdaptor.cc
  10440. * src/MultiDiskAdaptor.h
  10441. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10442. Move \n out of the message "Usage: ...".
  10443. * src/version_usage.cc
  10444. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10445. Bump up version number to 0.13.2b.
  10446. * configure.ac
  10447. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10448. Added const qualifier to argument Exception& e.
  10449. * src/Logger.h
  10450. * src/SimpleLogger.cc
  10451. * src/SimpleLogger.h
  10452. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10453. Pool connection when CWD, SIZE command fails.
  10454. * src/FtpNegotiationCommand.cc
  10455. * src/FtpNegotiationCommand.h
  10456. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10457. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10458. * src/HttpResponseCommand.cc
  10459. * src/HttpSkipResponseCommand.cc
  10460. * src/HttpSkipResponseCommand.h
  10461. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10462. Pool connection when a server returns 4xx, 5xx responses.
  10463. * src/HttpNullDownloadCommand.cc
  10464. * src/HttpNullDownloadCommand.h
  10465. * src/HttpResponse.cc
  10466. * src/HttpResponse.h
  10467. * src/HttpResponseCommand.cc
  10468. * src/HttpResponseCommand.h
  10469. * test/HttpResponseTest.cc
  10470. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10471. Print usage when no URL is specifed or bad command-line option is
  10472. specified.
  10473. * src/HelpItemFactory.cc
  10474. * src/help_tags.h
  10475. * src/option_processing.cc
  10476. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10477. Removed duplicate log message.
  10478. * src/AbstractCommand.cc (asyncResolveHostname)
  10479. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10480. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10481. Changed -j option's default value from 5 to 1.
  10482. Added new examples using protocol auto detection feature.
  10483. Removed -T, -M usage where it can be omitted.
  10484. * doc/aria2c.1.txt
  10485. * doc/aria2c.1.html
  10486. * doc/aria2c.1.txt
  10487. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10488. Updated command-line usage text, so that it tells users that they
  10489. can specify any number of torrent files and metalink files in
  10490. command-line.
  10491. * src/version_usage.cc
  10492. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10493. Changed the default value of -j option to 1.
  10494. * src/HelpItemFactory.cc
  10495. * src/option_processing.cc
  10496. * src/usage_text.h
  10497. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10498. Added the ability to reuse connection in FTP and it is enabled by
  10499. default. It can be disabled by --ftp-reuse-connection=false option.
  10500. * src/Command.cc
  10501. * src/DownloadCommand.cc
  10502. * src/FtpDownloadCommand.cc
  10503. * src/FtpDownloadCommand.h
  10504. * src/FtpFinishDownloadCommand.cc
  10505. * src/FtpFinishDownloadCommand.h
  10506. * src/FtpInitiateConnectionCommand.cc
  10507. * src/FtpNegotiationCommand.cc
  10508. * src/FtpNegotiationCommand.h
  10509. * src/HelpItemFactory.cc
  10510. * src/Makefile.am
  10511. * src/Makefile.in
  10512. * src/OptionHandlerFactory.cc
  10513. * src/option_processing.cc
  10514. * src/prefs.h
  10515. * src/usage_text.h
  10516. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10517. Call Command::transitStatus() before calling Command::execute(),
  10518. so that the status change made in execute() is not cleared.
  10519. * src/DownloadEngine.cc
  10520. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10521. Removed forward declaration of SocketCore class.
  10522. * src/HttpDownloadCommand.h
  10523. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10524. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10525. in InitiateConnectionCommandFactory. They should be set only when
  10526. the protocol is HTTP or HTTPS.
  10527. * src/InitiateConnectionCommandFactory.cc
  10528. * src/RequestGroup.cc
  10529. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10530. Fixed infinite loop in checksum checking.
  10531. * src/IteratableChecksumValidator.cc
  10532. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10533. Set _supportsPersistentConnection to true by default.
  10534. * src/Request.cc
  10535. * src/RequestGroup.cc
  10536. * test/HttpRequestTest.cc
  10537. * test/RequestTest.cc
  10538. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10539. Added timeout to socket pool. The default timeout is 15 seconds,
  10540. which is the same value Apache uses.
  10541. * src/DownloadEngine.cc
  10542. * src/DownloadEngine.h
  10543. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10544. Fixed misuse of multimap::find()
  10545. * src/HttpHeader.cc
  10546. * test/HttpHeaderTest.cc
  10547. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10548. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10549. option.
  10550. The asynchronous DNS is not capable of IPv6 yet.
  10551. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10552. least for HTTP download.
  10553. * src/AbstractCommand.cc
  10554. * src/AbstractCommand.h
  10555. * src/AsyncNameResolver.cc
  10556. * src/AsyncNameResolver.h
  10557. * src/DHTEntryPointNameResolveCommand.cc
  10558. * src/DHTEntryPointNameResolveCommand.h
  10559. * src/DownloadEngine.cc
  10560. * src/DownloadEngine.h
  10561. * src/FtpInitiateConnectionCommand.cc
  10562. * src/FtpInitiateConnectionCommand.h
  10563. * src/HelpItemFactory.cc
  10564. * src/HttpInitiateConnectionCommand.cc
  10565. * src/HttpInitiateConnectionCommand.h
  10566. * src/InitiateConnectionCommand.cc
  10567. * src/InitiateConnectionCommand.h
  10568. * src/Makefile.am
  10569. * src/Makefile.in
  10570. * src/NameResolver.cc
  10571. * src/NameResolver.h
  10572. * src/OptionHandlerFactory.cc
  10573. * src/SocketCore.cc
  10574. * src/SocketCore.h
  10575. * src/Util.cc
  10576. * src/Util.h
  10577. * src/option_processing.cc
  10578. * src/prefs.h
  10579. * src/usage_text.h
  10580. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10581. Updated man page: --quiet, --header were added.
  10582. --metalink-servers and --enable-http-keep-alive option were updated.
  10583. * doc/aria2c.1
  10584. * doc/aria2c.1.html
  10585. * doc/aria2c.1.txt
  10586. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10587. Enable HTTP keep-alive by default.
  10588. * src/HelpItemFactory.cc
  10589. * src/option_processing.cc
  10590. * src/usage_text.h
  10591. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10592. Disable http keep-alive if the remote server is not HTTP/1.1.
  10593. * src/HttpConnection.cc
  10594. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10595. Receive content body of 302 response so that the connection can be
  10596. reused later when http keep-alive is enabled.
  10597. * src/HttpNullDownloadCommand.cc
  10598. * src/HttpNullDownloadCommand.h
  10599. * src/HttpResponseCommand.cc
  10600. * src/HttpResponseCommand.h
  10601. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10602. const SharedHandle<Request> -> const SharedHandle<Request>&
  10603. * src/FtpDowndloadCommand.cc
  10604. * src/FtpDowndloadCommand.h
  10605. * src/HttpDownloadCommand.cc
  10606. * src/HttpDownloadCommand.h
  10607. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10608. Fixed the bug that the control file(.aria2 file) is not renamed
  10609. according to tryAutoFileRenaming().
  10610. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10611. its control file exist, use them and continue download.
  10612. The old implementation didn't take into account of control file's
  10613. existence, so basically you couldn't continue download of renamed file.
  10614. * src/BtProgressInfoFile.h
  10615. * src/DefaultBtProgressInfoFile.cc
  10616. * src/DefaultBtProgressInfoFile.h
  10617. * src/NullProgressInfoFile.h
  10618. * src/RequestGroup.cc
  10619. * test/DefaultBtProgressInfoFileTest.cc
  10620. * test/MockBtProgressInfoFile.h
  10621. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10622. Change the default value of --metalink-servers option from `5' to `1'.
  10623. * src/HelpItemFactory.cc
  10624. * src/option_processing.cc
  10625. * src/usage_text.h
  10626. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10627. Reimplemented transparent metalink using Accept request header.
  10628. * src/HttpRequest.cc
  10629. * src/HttpRequest.h
  10630. * src/HttpRequestCommand.cc
  10631. * src/Metalink2RequestGroup.cc
  10632. * src/RequestGroup.cc
  10633. * src/RequestGroup.h
  10634. * test/HttpRequestTest.cc
  10635. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10636. Bump up version number to 0.13.2a
  10637. * configure.ac
  10638. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10639. Updated configure.ac using the result of autoscan.
  10640. * configure.ac
  10641. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. Fixed compilation error without gcrypt/openssl.
  10643. * src/DownloadCommand.cc
  10644. * src/DownloadCommand.h
  10645. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10646. Reorganized version information so that it can be displayed in a
  10647. standard terminal screen without scrolling.
  10648. Removed http, ftp from Configuration section, because they are always
  10649. enabled.
  10650. * src/FeatureConfig.cc
  10651. * src/FeatureConfig.h
  10652. * src/main.cc
  10653. * src/messageDigest.cc
  10654. * src/messageDigest.h
  10655. * src/version_usage.cc
  10656. * test/FeatureConfigTest.cc
  10657. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10658. Masked user ID in log.
  10659. * src/FtpConnection.cc (sendUser)
  10660. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10661. Removed query part from filename in HTTP download. The query part means
  10662. the substring after "?" in URL. Firefox seems do the same thing.
  10663. A query part is sometimes very long and not suitable to filename,
  10664. so I think it is better to remove it from filename.
  10665. * src/HttpRequest.cc
  10666. * src/HttpRequest.h
  10667. * src/Request.cc
  10668. * src/Request.h
  10669. * test/HttpRequestTest.cc
  10670. * test/RequestTest.cc
  10671. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10672. Rewritten Exception class. Throw exception object, not its pointer and
  10673. catch by reference, so that remove problematic delete operator for
  10674. catched exception.
  10675. * src/Exception.cc
  10676. * src/Exception.h
  10677. * test/ExceptionTest.cc
  10678. * src/*: All files throwing/catching exception.
  10679. * test/*: All files throwing/catching exception.
  10680. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10681. Now auto protocol detection is enabled without -Z option.
  10682. But there is a important difference between with/without -Z optoin.
  10683. For example, if you type:
  10684. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10685. then, aria2 interprets there are 3 request groups:
  10686. (1) http://host/file, http://mirror/file <-- multi-source download
  10687. (2) file1.torrent
  10688. (3) file2.metalink
  10689. On the other hand, if you invoke above command with -Z option, it is
  10690. interpreted as 4 request groups:
  10691. (1) http://host/file
  10692. (2) file1.torrent
  10693. (3) file2.metalink
  10694. (4) http://mirror/file
  10695. I think usually user don't mix multi-source URLs and torrent files, so
  10696. there is no big problem here.
  10697. * src/main.cc
  10698. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10699. Fixed the bug that causes segmentaion fault when reading XML containing
  10700. unescapsed character like '&'.
  10701. Also a modification was made which avoids adding unnecessary
  10702. characters stack and appending unused string.
  10703. * src/ExpatMetalinkProcessor.cc
  10704. * src/FileMetalinkParserState.h
  10705. * src/FilesMetalinkParserState.h
  10706. * src/FinMetalinkParserState.h
  10707. * src/HashMetalinkParserState.h
  10708. * src/InitialMetalinkParserState.h
  10709. * src/LanguageMetalinkParserState.h
  10710. * src/MetalinkMetalinkParserState.h
  10711. * src/MetalinkParserState.h
  10712. * src/MetalinkParserStateMachine.cc
  10713. * src/MetalinkParserStateMachine.h
  10714. * src/OSMetalinkParserState.h
  10715. * src/PieceHashMetalinkParserState.h
  10716. * src/PiecesMetalinkParserState.h
  10717. * src/ResourcesMetalinkParserState.h
  10718. * src/SizeMetalinkParserState.h
  10719. * src/SkipTagMetalinkParserState.h
  10720. * src/URLMetalinkParserState.h
  10721. * src/VerificationMetalinkParserState.h
  10722. * src/VersionMetalinkParserState.h
  10723. * src/XML2SAXMetalinkProcessor.cc
  10724. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10725. Added StringFormat class, which internally calls vasprintf.
  10726. operator<< is defined for this class, so it can be used with iostream
  10727. classes nicely. SimpleLogger and following functions are rewritten
  10728. using StringFormat class.
  10729. Besides, now Logger class's methods are non-const, many classes
  10730. that has a const Logger* as a member variable are modified to remove
  10731. const qualifier from the variable declaration.
  10732. * src/HelpItemFactory.cc
  10733. * src/Request.cc
  10734. * src/SimpleLogger.cc
  10735. * src/StringFormat.cc
  10736. * src/StringFormat.h
  10737. * src/Util.cc
  10738. * src/option_processing.cc
  10739. * src/version_usage.cc
  10740. * test/StringFormatTest.cc
  10741. * src/*.h: The classes that has const Logger* as a member variable.
  10742. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10743. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10744. failed. Also fixed memory link when exception is thrown there.
  10745. * src/main.cc (AccRequestGroup)
  10746. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10747. Added build-in "Accept-Features" support. For now only "metalink" is
  10748. used in this header field.
  10749. This "metalink" value is removed from the list when connecting URLs
  10750. fed by metalink file to avoid loop in "transparent" metlaink.
  10751. * src/HttpRequest.cc
  10752. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10753. header is also held in this variable. Also renamed setUserHeaders as
  10754. addHeader and it was rewritten to add header not just to clear the old
  10755. value.
  10756. * src/HttpRequestCommand.cc
  10757. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10758. from "Accept-Features" list.
  10759. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10760. default.
  10761. * src/RequestGroup.h
  10762. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10763. * src/a2functional.h: Included <string> because Concat class depends on
  10764. it.
  10765. * test/HttpRequestTest.cc
  10766. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10767. Added comment
  10768. * src/RequestGroup.cc (createNextCommand)
  10769. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10770. Capitalized METHOD_GET and METHOD_HEAD
  10771. * src/Request.cc
  10772. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10773. Added getDownloadResults() method
  10774. * src/RequestGroupMan.cc
  10775. * src/RequestGroupMan.h
  10776. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10777. Fixed the bug that aria2 exits when commands is empty() but
  10778. _routineCommands are not.
  10779. * src/DownloadEngine.cc
  10780. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10781. Use the default value pulled from Option object in HelpItemFactory.
  10782. except options whose defualt value is embedded in a usage text.
  10783. * src/HelpItemFactory.cc
  10784. * src/HelpItemFactory.h
  10785. * src/option_processing.cc
  10786. * src/version_usage.cc
  10787. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10788. Added --quiet option to make aria2 quiet (no console output).
  10789. --quiet option is tagged with ADVANCED.
  10790. * src/HelpItemFactory.cc
  10791. * src/LogFactory.cc
  10792. * src/LogFactory.h
  10793. * src/MultiUrlRequestInfo.cc
  10794. * src/MultiUrlRequestInfo.h
  10795. * src/NullStatCalc.h: New class. This class prints nothing.
  10796. * src/OptionHandlerFactory.cc
  10797. * src/main.cc
  10798. * src/option_processing.cc
  10799. * src/prefs.h
  10800. * src/usage_text.h
  10801. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10802. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10803. * src/HelpItemFactory.cc (createHelpItems):
  10804. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10805. Fixed compilation error in ExpatMetalinkProcessor.cc
  10806. * src/ExpatMetalinkProcessor.cc
  10807. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10808. Reuse socket if the origin server supports HTTP keep-alive and
  10809. --enable-http-keep-alive or --enable-http-pipelining is given.
  10810. The current implementation doesn't reuse the connections established
  10811. against proxy server.
  10812. * src/AbstractCommand.cc
  10813. * src/DownloadEngine.cc
  10814. * src/DownloadEngine.h
  10815. * src/HttpDownloadCommand.cc
  10816. * src/HttpInitiateConnectionCommand.cc
  10817. * src/HttpResponseCommand.cc
  10818. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10819. Rewritten HTTP keep-alive and pipelining routine.
  10820. * src/AbstractCommand.cc
  10821. * src/HttpConnection.cc
  10822. * src/HttpDownloadCommand.cc
  10823. * src/HttpRequest.cc
  10824. * src/HttpRequestCommand.cc
  10825. * src/HttpResponseCommand.cc
  10826. * src/Request.cc
  10827. * src/Request.h
  10828. * src/RequestGroup.cc
  10829. * test/HttpRequestTest.cc
  10830. * test/HttpResponseTest.cc
  10831. * test/RequestTest.cc
  10832. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10833. Added missing setUserHeaders call
  10834. * src/HttpRequestCommand.cc
  10835. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10836. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10837. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10838. waste of time because it is more likey false.
  10839. * src/FileAllocationDispatcherCommand.cc (execute)
  10840. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10841. Now HTTP status and version are a member variable of HttpHeader.
  10842. HTTP status is processed as a string, not integer.
  10843. * src/AbstractProxyResponseCommand.cc
  10844. * src/HttpConnection.cc
  10845. * src/HttpHeader.cc
  10846. * src/HttpHeader.h
  10847. * src/HttpHeaderProcessor.cc
  10848. * src/HttpHeaderProcessor.h
  10849. * src/HttpResponse.cc
  10850. * src/HttpResponse.h
  10851. * test/HttpHeaderProcessorTest.cc
  10852. * test/HttpResponseTest.cc
  10853. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10854. Added --header option. You can specify any number of additional HTTP headers
  10855. like:
  10856. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10857. Unlike other commad-line option, you can use --header option multiple times.
  10858. * src/HelpItemFactory.cc
  10859. * src/HttpRequest.{cc, h}
  10860. * src/HttpRequestCommand.cc
  10861. * src/OptionHandlerFactory.cc
  10862. * src/OptionHandlerImpl.h
  10863. * src/option_processing.cc
  10864. * src/prefs.h
  10865. * src/usage_text.h
  10866. * test/HttpRequestTest.cc (testUserHeaders)
  10867. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10868. Eliminates the time lag between sequential downloads and commands in
  10869. the same RequestGroup.
  10870. In old implementation, aria2 occasionally waits 1 seconds before
  10871. executing next command or RequestGroup.
  10872. This is really a waste of time, and new implementation eliminates
  10873. this unnecessary time lag.
  10874. * src/AbstractCommand.cc
  10875. * src/AutoSaveCommand.cc
  10876. * src/CheckIntegrityCommand.cc
  10877. * src/Command.{cc, h}
  10878. * src/DownloadEngine.{cc, h}
  10879. * src/DownloadEngineFactory.cc
  10880. * src/FileAllocationCommand.cc
  10881. * src/FileAllocationDispatcherCommand.cc
  10882. * src/FillRequestGroupCommand.cc
  10883. * src/FtpInitiateConnectionCommand.cc
  10884. * src/HaveEraseCommand.cc
  10885. * src/HttpInitiateConnectionCommand.cc
  10886. * src/HttpResponseCommand.cc
  10887. * src/RealtimeCommand.cc
  10888. * src/RequestGroup.cc
  10889. * src/RequestGroupMan.cc
  10890. * src/StreamFileAllocationEntry.cc
  10891. * src/TimeBasedCommand.{cc, h}
  10892. * src/TimedHaltCommand.cc
  10893. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10895. keyword explicit and SharedHandle's default constructor initializes
  10896. its internal obj to null, old implementation initializes it using
  10897. obj's default constructor.
  10898. To assign null, write SharedHandle<T> x(...); x.reset();
  10899. TODO: test/SharedHandleTest.cc needs more tests.
  10900. * src/SharedHandle.h
  10901. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10902. Fixed type in man page.
  10903. * doc/aria2c.1.txt
  10904. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10905. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10906. * src/SimpleLogger.{cc, h}
  10907. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10908. Implemented auto protocol detection.
  10909. Now you can do:
  10910. aria2c -Z http://host/file file1.torrent file2.metalink
  10911. (Note: -Z option is required for auto protcol detection.)
  10912. Then aria2c downloads 3 files simultaneously:
  10913. 1. http://host/file
  10914. 2. file1.torrent <-- read local torrent file
  10915. 3. file2.metalink <-- read local Metalink file.
  10916. Same thing goes with -i option. Assume your uris.txt contans:
  10917. http://host/file
  10918. file1.torrent
  10919. file2.metalink
  10920. Then you can do: aria2c -i uris.txt
  10921. (Note: -Z option is not needed if -i option is given.)
  10922. * src/main.cc
  10923. * src/ProtocolDetector.{cc, h}
  10924. * test/ProtocolDetectorTest.cc
  10925. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10926. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10927. installed
  10928. * src/ARC4Encryptor.h
  10929. * src/ARC4Decryptor.h
  10930. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10931. Renamed argument from 'errno' to 'err', since errno is confused with
  10932. errno defined in errno.h.
  10933. * src/LibgcryptARC4Decryptor.h
  10934. * src/LibgcryptARC4Context.h
  10935. * src/LibgcryptDHKeyExchange.h
  10936. * src/LibgcryptARC4Encryptor.h
  10937. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10938. Rewritten choking algorithm.
  10939. * src/PeerChokeCommand.{cc, h}
  10940. * src/BtInterestedMessage.cc
  10941. * src/PeerSessionResource.{cc, h}
  10942. * src/DefaultPeerStorage.{cc, h}
  10943. * src/BtNotInterestedMessage.cc
  10944. * src/DefaultBtMessageDispatcher.{cc, h}
  10945. * src/BtMessageDispatcher.h
  10946. * src/Peer.{cc, h}
  10947. * src/BtLeecherStateChoke.{cc, h}
  10948. * src/BtSetup.cc
  10949. * src/BtSeederStateChoke.{cc, h}
  10950. * src/PeerStorage.h
  10951. * test/MockPeerStorage.h
  10952. * test/MockBtMessageDispatcher.h
  10953. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10954. Fixed compilation error on x84-64 platform.
  10955. * src/AuthConfig.cc: Included ostream.
  10956. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10957. Rewritten getBasename() and getDirname(), without standard library
  10958. basename(), dirname().
  10959. * src/File.cc
  10960. * test/FileTest.cc
  10961. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10962. Added Simplified Chinese translation. Also updated the following
  10963. translations: Polish, Dutch, German. Great thanks to all translators.
  10964. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10965. Suppress content-range error when 'Content-Range' response header
  10966. doesn't contains bytes-unit specifier 'bytes'
  10967. * src/HttpHeader.cc (getRange)
  10968. * test/HttpHeaderTest.cc
  10969. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10970. Fixed compilation error with g++-4.3
  10971. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10972. Added missing include files for MinGW
  10973. * test/HttpHeaderProcessorTest.cc
  10974. * test/DHTRoutingTableSerializerTest.cc
  10975. * test/DHTRoutingTableDeserializerTest.cc
  10976. * test/UriListParserTest.cc
  10977. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10978. Now download line is printed nicely with no garbage at the end of
  10979. line. I use ioctl to get the columns of terminal.
  10980. If stdout is redirected to another device, instead of carriage return,
  10981. end of line '\n' character is used. This is feature request#1909659
  10982. * src/ConsoleStatCalc.cc (calculateStat)
  10983. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10984. Included a2time.h
  10985. * src/DHTMessageDispatcher.h
  10986. * src/DHTMessageEntry.h
  10987. * src/DHTReplaceNodeTask.h
  10988. * src/DHTMessageTracker.h
  10989. * src/Util.h
  10990. * src/CookieBox.h
  10991. * src/SocketCore.h
  10992. * src/DefaultBtMessageDispatcher.h
  10993. * src/SocketCore.cc
  10994. * src/Util.cc
  10995. * src/DHTPingTask.h
  10996. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10997. Fixed high memory footprint when DHT is enabled.
  10998. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10999. queued than it is processed and the queue is getting longer. As a
  11000. consequence, momory usage is increased.
  11001. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  11002. replacement cache in DHTBucket which is described in Kademlia paper.
  11003. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  11004. DHTReplaceNodeTask.
  11005. * src/DHTBucket.{h, cc}
  11006. (cacheNode): New function.
  11007. (getCachedNodes): New function.
  11008. (dropNode): Push back cached node to _nodes.
  11009. * test/DHTBucketTest.cc
  11010. (testCacheNode): New test
  11011. (testDropNode): New test
  11012. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11013. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  11014. the unused 4KB memory when ssl is not used.
  11015. * src/SocketCore.cc
  11016. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Added summary log for peer announce storage.
  11018. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  11019. Removed cast
  11020. * src/DefaultPeerStorage.cc (addPeer)
  11021. Log exception message
  11022. * src/DHTMessageTracker.cc (handleTimeout)
  11023. Fixed casting
  11024. * test/HttpRequestTest.cc
  11025. * test/MetalinkProcessorTest.cc
  11026. * test/PieceTest.cc
  11027. * test/MetalinkEntryTest.cc
  11028. * test/SequenceTest.cc
  11029. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11030. * src/ParameterizedStringParser.cc (createLoop):
  11031. Removed unused variable sstep.
  11032. * src/AlphaNumberDecorator.h (decode): Rewritten.
  11033. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11034. * src/Util.{h, cc}
  11035. (parseUInt): New function.
  11036. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  11037. The actual range is uint32_t.
  11038. * test/UtilTest.cc
  11039. * src/ParameterizedStringParser.cc:
  11040. Use Util::parseUInt() for loop variables.
  11041. * test/ParameterizedStringParserTest.cc
  11042. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  11043. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11044. Rewritten the functions for binding port.
  11045. * src/DHTConnectionImpl.{h, cc}
  11046. * src/PeerListenCommand.{h, cc}
  11047. * src/DHTSetup.cc
  11048. * src/BtSetup.cc
  11049. * test/DHTConnectionImplTest.cc
  11050. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11051. type cleanup for allmost all remaining files.
  11052. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11053. Type clarification
  11054. * src/PeerSessionResource.{h, cc}
  11055. * src/DefaultPieceStorage.{h, cc}
  11056. * src/Peer.{h, cc}
  11057. * test/PeerSessionResourceTest.cc
  11058. Use div function
  11059. * src/BtPieceMessage.cc (erasePieceOnDisk)
  11060. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11061. Type clarification
  11062. * src/DefaultPeerStorage.{h, cc}
  11063. * test/DefaultPeerStorageTest.cc
  11064. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11065. Type clarification: size_t for length or size, uint64_t for file
  11066. length, off_t for file offset.
  11067. * src/DefaultBtProgressInfoFile.cc
  11068. * src/DefaultBtContext.{h, cc}
  11069. * src/DefaultBtInteractive.cc
  11070. * src/DownloadCommand.{h, cc}
  11071. * src/IteratableChunkChecksumValidator.{h, cc}
  11072. * src/SegmentMan.{h, cc}
  11073. * src/SingleFileDownloadContext.{h, cc}
  11074. * src/IteratableChecksumValidator.{h, cc}
  11075. * src/BtContext.h
  11076. * src/IteratableValidator.h
  11077. * src/DownloadContext.h
  11078. * test/SingleFileDownloadContextTest.cc
  11079. * test/DefaultBtContextTest.cc
  11080. * test/MockBtContext.h
  11081. * test/Metalink2RequestGroupTest.cc
  11082. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11083. Type clarification: size_t for length or size, uint64_t for file
  11084. length, off_t for file offset.
  11085. * src/PiecedSegment.cc
  11086. * src/GrowSegment.h
  11087. * src/DefaultBtRequestFactory.h
  11088. * src/DefaultBtProgressInfoFile.cc
  11089. * src/UnknownLengthPieceStorage.h
  11090. * src/DefaultPieceStorage.cc
  11091. * src/UnknownLengthPieceStorage.cc
  11092. * src/DefaultBtInteractive.cc
  11093. * src/GrowSegment.cc
  11094. * src/BitfieldMan.h
  11095. * src/DownloadCommand.cc
  11096. * src/BtRequestFactory.h
  11097. * src/PiecedSegment.h
  11098. * src/DefaultPieceStorage.h
  11099. * src/Piece.cc
  11100. * src/DefaultBtRequestFactory.cc
  11101. * src/PieceStorage.h
  11102. * src/Segment.h
  11103. * src/Piece.h
  11104. * src/BitfieldMan.cc
  11105. * src/Util.cc
  11106. * test/DefaultBtProgressInfoFileTest.cc
  11107. * test/DefaultPieceStorageTest.cc
  11108. * test/MockPieceStorage.h
  11109. * test/BtRequestMessageTest.cc
  11110. * test/DefaultBtMessageDispatcherTest.cc
  11111. * test/BitfieldManTest.cc
  11112. * test/GrowSegmentTest.cc
  11113. * test/PieceTest.cc
  11114. * test/SegmentTest.cc
  11115. * test/SegmentManTest.cc
  11116. * test/DefaultBtRequestFactoryTest.cc
  11117. * test/MockBtRequestFactory.h
  11118. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11119. Fixed compilation error with --disable-nls
  11120. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  11121. in gettext.h causes the problem.
  11122. * src/common.h
  11123. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11124. Removed subPiece related functions.
  11125. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  11126. * src/DefaultPieceStorage.{h, cc}
  11127. * test/PieceTest.cc
  11128. * test/DefaultPieceStorageTest.cc
  11129. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11130. Use unsigned char for data store.
  11131. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11132. Bump up version number to 0.13.0+1
  11133. * configure.ac
  11134. * Release 0.13.0+1
  11135. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11136. Changed inactive connection timeout to 120.
  11137. To accept more mulually interested peers, disconnect peer when there
  11138. is no interest between us after certain time passed.
  11139. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  11140. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11141. Fixed the bug that aria2 only uses first dns server in resolv.conf
  11142. when compiled with async DNS support.
  11143. * src/DownloadEngine.cc
  11144. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  11145. value '10' will be a little bit short when some DNS servers are
  11146. offline and several DNS servers are tried. It should be configured
  11147. by command-line option.
  11148. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11149. Merged Ross's mingw patch.
  11150. * src/DHTRoutingTableDeserializer.cc
  11151. * src/DHTRoutingTableSerializer.cc
  11152. * src/Platform.{h, cc}
  11153. * src/timegm.h
  11154. * src/gettimeofday.h
  11155. * src/getaddrinfo.h
  11156. * src/SocketCore.h
  11157. * src/common.h
  11158. * src/inet_aton.h
  11159. * src/DownloadEngine.h
  11160. * src/gai_strerror.h
  11161. * src/a2netcompat.h
  11162. * configure.ac
  11163. * configure
  11164. * aclocal.m4
  11165. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11166. Included missing iostream.
  11167. * test/AllTest.cc
  11168. * test/BtDependencyTest.cc
  11169. * test/BtExtendedMessageTest.cc
  11170. * test/DHTConnectionImplTest.cc
  11171. * test/DHTMessageFactoryImplTest.cc
  11172. * test/DHTMessageTrackerEntryTest.cc
  11173. * test/DHTNodeTest.cc
  11174. * test/DHTRoutingTableSerializerTest.cc
  11175. * test/DefaultBtAnnounceTest.cc
  11176. * test/DefaultBtContextTest.cc
  11177. * test/DefaultBtMessageFactoryTest.cc
  11178. * test/DefaultExtensionMessageFactoryTest.cc
  11179. * test/HandshakeExtensionMessageTest.cc
  11180. * test/HttpResponseTest.cc
  11181. * test/MetalinkProcessorTest.cc
  11182. * test/MultiFileAllocationIteratorTest.cc
  11183. * test/SocketCoreTest.cc
  11184. * test/UTPexExtensionMessageTest.cc
  11185. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11186. Reorganized includes.
  11187. * src/NameResolver.cc
  11188. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11189. Fixed compilation error without ares/c-ares
  11190. * src/NameResolver.h:
  11191. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11192. Added a test for large file.
  11193. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  11194. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11195. Fixed the bug that file size is ignored if size > INT32_MAX
  11196. * src/SizeMetalinkParserState.cc (endElement):
  11197. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11198. Bump up version number to 0.13.0
  11199. * configure.ac
  11200. * Release 0.13.0
  11201. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11202. Updated Makfefile.am to make 'make dist' work.
  11203. Now packaged filename is aria2c-VERSION.tar.bz2.
  11204. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  11205. Added LICENSE.OpenSSL to dist_noinst_DATA.
  11206. Large file support is now configured by configure script.
  11207. * configure.ac
  11208. Removed unsused source files
  11209. * src/
  11210. * test/
  11211. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  11212. Peer.h and BtContext.h respectively.
  11213. * src/Peer.h
  11214. * src/BtContext.h
  11215. Updated translations.
  11216. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  11217. translations. Great thanks to all translators!;)
  11218. * po/*.{po, gmo}
  11219. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11220. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  11221. statically declared sha1 MessageDigestContext.
  11222. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  11223. initialization of short-lived MessageDigestContext.
  11224. * src/MessageDigestHelper.{h, cc}
  11225. * src/main.cc
  11226. Now DownloadCommand has a reference to MessageDigestContext to avoid
  11227. the initialization of MessageDigestContext every time in validating
  11228. chunk checksum.
  11229. * src/DownloadCommand.{h, cc}
  11230. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11231. Add a file descriptor which connected to fast peer(latency<1500) to
  11232. select(). This change reduced CPU load.
  11233. * src/PeerInteractionCommand.cc
  11234. * src/DefaultBtInteractive.{h, cc}
  11235. * src/BtInteractive.h
  11236. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11237. Fixed the previous insufficient fix for possible busy loop.
  11238. * src/MSEHandshake.cc (identifyHandshakeType)
  11239. Removed unused functions.
  11240. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  11241. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11242. Fixed possible busy loop if first 20 bytes are not received for a few
  11243. minutes.
  11244. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  11245. * src/ReceiverMSEHandshakeCommand.cc
  11246. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11247. Fixed compilation error
  11248. * src/ExpatMetalinkProcessor.cc
  11249. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11250. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  11251. * src/DHTBucket.cc
  11252. Removed unnecessary cast.
  11253. * src/HandshakeExtensionMessage.cc
  11254. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11255. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  11256. is missing.
  11257. * src/OptionHandlerFactory.cc
  11258. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11259. Fixed the bug that HAVE message is not sent for a piece they are
  11260. downloaded fom http/ftp server before any BitTorrent handshake is done
  11261. with peers.
  11262. * src/DefaultBtInteractive.cc
  11263. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11264. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  11265. * src/Makefile.am
  11266. * src/Makefile.in
  11267. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11268. Updated README. Added html version of README and man page.
  11269. * README
  11270. * README.html
  11271. * readme2html: Shell script to generate README.html from README using
  11272. asciidoc.
  11273. * doc/aria2c.1.html
  11274. * doc/makeman: Added the line to generate aria2c.1.html
  11275. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11276. Fixed offset calculation.
  11277. * src/LibgcryptDHKeyExchange.h (computeSecret)
  11278. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11279. Rewritten itos and uitos using template. llitos and ullitos are
  11280. replaced with itos and uitos respectively.
  11281. * src/Util.{h, cc}
  11282. * test/UtilTest.cc
  11283. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11284. Fixed the bug that DH key exchange sometimes fails due to bad handling
  11285. of the number of bytes required for storing public key and shared
  11286. secret.
  11287. * src/LibgcryptDHKeyExchange.h
  11288. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  11289. * src/MSEHandshake.cc
  11290. * test/DHKeyExchangeTest.cc
  11291. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11292. Removed since they are not used.
  11293. * src/Xml2MetalinkProcessor.{h, cc}
  11294. * src/Socket.cc
  11295. * src/SegmentSplitter.{h, cc}
  11296. * test/Xml2MetalinkProcessorTest.cc
  11297. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11298. Fixed the bug that prevents aria2 from stopping other than by pressing
  11299. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  11300. option. aria2 doesn't stop even after --seed-time is satisfied and
  11301. continues to output blank lines in the console.
  11302. * src/ReceiverMSEHandshakeCommand.cc
  11303. * src/PeerReceiveHandshakeCommand.cc
  11304. * src/PeerListenCommand.cc
  11305. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11306. Bump up version number to 0.13.0rc
  11307. * configure.ac
  11308. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11309. Updated man page and some usage text.
  11310. * doc/aria2c.1.txt
  11311. * src/usage_text.h
  11312. * po/*.{po, gmo}
  11313. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11314. Updated translations. Added Finnish and Hebrew translations.
  11315. Great thanks to all translators!
  11316. * po/*.{po, gmo}
  11317. * po/LINGUAS
  11318. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11319. Log more detailed information about each message.
  11320. * src/DHTQueryMessage.{h, cc}
  11321. * src/DHTGetPeersMessage.{h, cc}
  11322. * src/DHTFindNodeReplyMessage.{h, cc}
  11323. * src/DHTGetPeersReplyMessage.{h, cc}
  11324. * src/DHTAnnouncePeerMessage.{h, cc}
  11325. * src/DHTResponseMessage.{h, cc}
  11326. * src/DHTFindNodeMessage.{h, cc}
  11327. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11328. Use constants defined in prefs.h
  11329. * src/option_processing.cc
  11330. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11331. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  11332. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11333. Make room for future enchancements for IPv6 addresses.
  11334. Bump up version number of dht.dat file format to 2.
  11335. Not compatible with previous version.
  11336. * src/DHTRoutingTableSerializer.cc
  11337. * src/DHTRoutingTableDeserializer.cc
  11338. * test/DHTRoutingTableSerializerTest.cc
  11339. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11340. Added handling for the return values from
  11341. PeerMessageUtil::createcompact().
  11342. * src/DefaultBtContext.cc (computeFastSet):
  11343. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11344. Fixed abort when peer's ip address is IPv4-mapped address.
  11345. * src/DefaultBtContext.cc (computeFastSet)
  11346. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  11347. cannot handle IPv4-mapped addresses.
  11348. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  11349. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11350. Proper return value handling for OpenSSL functions.
  11351. * src/LibsslDHKeyExchange.h
  11352. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11353. Random bytes generation using libgcrypt and OpenSSL.
  11354. * src/DHTUtil.{h, cc}
  11355. * test/DHTUtilTest.cc
  11356. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11357. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  11358. received.
  11359. * src/DHTMessageReceiver.cc (receiveMessage)
  11360. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11361. Fixed the bug that a return code is always 0. BUG#1897704
  11362. If error occurred during the download or there exist unfinished
  11363. downloads, aria2 returns with code 1.
  11364. * src/RequestGroupMan.{h, cc}
  11365. * src/MultiUrlRequestInfo.{h, cc}
  11366. * src/main.cc
  11367. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11368. IPv6 support for SocketCore class.
  11369. TODO: In SocketCore::establishConnection(), this is insufficient to
  11370. determin the failure of connect() here because the socket is
  11371. non-blocking state. The next addresses should be tried after select().
  11372. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  11373. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  11374. instead which address family independent.
  11375. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  11376. information in a compact peer format which is for IPv4 only.
  11377. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  11378. this is a spec of BitTorrent protocol.
  11379. * src/SocketCore.{h, cc}
  11380. * src/PeerMessageUtil.cc
  11381. * test/SocketCoreTest.cc
  11382. * test/PeerMessageUtilTest.cc
  11383. * test/DHTConnectionImplTest.cc
  11384. Handle IPv4-mapped addresses.
  11385. * src/DHTNode.cc: Now identity is determined by node id.
  11386. * src/DHTMessageTrackerEntry.cc
  11387. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  11388. should handle it.
  11389. * src/DHTRoutingTableDeserializer.cc
  11390. * src/DHTMessageFactoryImpl.cc
  11391. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11392. Change the unit of --stop option from a minute to a second.
  11393. * src/usage_text.h
  11394. * src/DownloadEngineFactory.cc
  11395. * src/OptionHandlerFactory.cc
  11396. * src/message.h
  11397. * src/TimedHaltCommand.cc
  11398. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11399. Make listening socket non-block mode.
  11400. * src/FtpConnection.cc
  11401. * src/FtpNegotiationCommand.{h, cc}
  11402. * src/PeerListenCommand.cc
  11403. Fixed the bug that cause slow ftp negotiation.
  11404. * src/FtpNegotiationCommand.{h, cc}
  11405. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11406. Added basic tag to --enable-dht, --dht-listen-port option.
  11407. * src/HelpItemFactory.cc (createHelpItems)
  11408. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11409. Updated text.
  11410. * src/usage_text.h
  11411. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11412. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  11413. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11414. Determin _threadtholdSpeed in each constructor for
  11415. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  11416. * src/ActivePeerConnectionCommand.{h, cc}
  11417. * src/PeerReceiveHandshakeCommand.{h, cc}
  11418. * src/BtSetup.cc
  11419. * src/BtConstants.h
  11420. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11421. Added --bt-min-crypto-level and --bt-require-crypto options.
  11422. * src/OptionHandlerFactory.cc
  11423. * src/MSEHandshake.cc
  11424. * src/HelpItemFactory.cc
  11425. * src/option_processing.cc
  11426. * src/ReceiverMSEHandshakeCommand.cc
  11427. * src/prefs.h
  11428. * src/DefaultBtAnnounce.cc
  11429. * src/InitiatorMSEHandshakeCommand.cc
  11430. * src/usage_text.h
  11431. * test/MSEHandshakeTest.cc
  11432. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11433. Bump version number to 0.13.0b
  11434. * configure.ac
  11435. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11436. Updated doc.
  11437. * src/MessageDigestHelper.h:
  11438. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11439. Use raw message digest as a token instead of its hexadecimal
  11440. representation.
  11441. * src/DHTTokenTracker.cc (generateToken)
  11442. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11443. Added Message Stream Encryption(MSE) support.
  11444. Currently, aria2 accepts incoming connections with Obfuscation Header
  11445. and legacy BitTorrent Header and establishes connections with
  11446. Obfuscation Header first and if failed then retry with legacy
  11447. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11448. choose ARC4. The new option to change the default behavior is planned.
  11449. For tracker extension, "supportcrypto=1" is added statically.
  11450. * src/PeerInitiateConnectionCommand.{h, cc}
  11451. * src/PeerConnection.{h, cc}
  11452. * src/HandleRegistry.h
  11453. * src/SocketCore.h
  11454. * src/PeerReceiveHandshakeCommand.{h, cc}
  11455. * src/BtRegistry.{h, cc}
  11456. * src/PeerListenCommand.cc
  11457. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11458. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11459. * src/MSEHandshake.{h, cc}
  11460. * src/ARC4Encryptor.h
  11461. * src/ARC4Decryptor.h
  11462. * src/LibgcryptARC4Encryptor.h
  11463. * src/LibgcryptARC4Decryptor.h
  11464. * src/LibgcryptARC4Context.h
  11465. * src/LibsslARC4Encryptor.h
  11466. * src/LibsslARC4Decryptor.h
  11467. * src/LibsslARC4Context.h
  11468. * src/DHKeyExchange.h
  11469. * src/LibgcryptDHKeyExchange.h
  11470. * src/LibsslDHKeyExchange.h
  11471. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11472. * test/DefaultBtAnnounceTest.cc
  11473. * test/ARC4Test.cc
  11474. * test/DHKeyExchangeTest.cc
  11475. Removed prepareForRetry() because it is not used.
  11476. * src/PeerAbstractCommand.{h, cc}
  11477. * src/PeerInteractionCommand.{h, cc}
  11478. * src/PeerInitiateConnectionCommand.{h, cc}
  11479. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11480. Added the ability to load nodes from torrent file. These nodes are
  11481. added to the routing table when downloading that torrent.
  11482. * src/BtContext.h
  11483. * src/DefaultBtContext.{h, cc}
  11484. * src/DHTSetup.cc
  11485. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11486. hostname and port pair, and resolves all of them.
  11487. * src/NameResolver.{h, cc}: Added reset().
  11488. * src/RequestGroup.cc
  11489. * test/DefaultBtContextTest.cc
  11490. * test/MockBtContext.h
  11491. Removed assert() from DefaultBtContext and throw exception instead.
  11492. * src/DefaultBtContext.cc
  11493. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11494. Fixed segmentation fault bug when exiting if dht is disabled.
  11495. * src/RequestGroup.cc
  11496. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11497. Fixed typo in log message and define the message in message.h
  11498. * src/TimedHaltCommand.cc
  11499. * src/message.h
  11500. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11501. Included RecoverableException.h to fix compilation error.
  11502. * test/DHTMessageFactoryImplTest.cc
  11503. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11504. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11505. * test/DHTPingMessageTest.cc
  11506. * test/DHTGetPeersMessageTest.cc
  11507. * test/DHTFindNodeMessageTest.cc
  11508. * test/DHTAnnouncePeerMessageTest.cc
  11509. * test/MockDHTMessage.h
  11510. * test/MockDHTMessageFactory.h
  11511. * test/MockDHTMessageDispatcher.h: New class.
  11512. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11513. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11514. virtual.
  11515. * src/DHTMessageDispatcher.h
  11516. * src/DHTMessageDispatcherImpl.{h, cc}
  11517. * src/DHTSetup.cc
  11518. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11519. Adding handling of DHT error message. Just log error message and
  11520. throw exception.
  11521. * src/DHTMessageFactoryImpl.cc
  11522. * test/DHTMessageFactoryImplTest.cc
  11523. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11524. Added handling of dynamic cast failure.
  11525. * src/DHTNodeLookupTask.cc
  11526. * src/DHTPeerLookupTask.cc
  11527. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11528. Added the ability to stop aria2 itself when given time has passed
  11529. from start. Use --stop option to specify time in minutes.
  11530. When 0 is given, this feature is disabled.
  11531. * src/OptionHandlerFactory.cc
  11532. * src/TimeBasedCommand.h: Make _interval protected scope.
  11533. * src/HelpItemFactory.cc
  11534. * src/option_processing.cc
  11535. * src/prefs.h
  11536. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11537. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11538. Without this modification, the result list shows "ERR" when aria2 is
  11539. stopped by --stop option. It should be "INPR".
  11540. * src/DownloadEngine.{h, cc}
  11541. * src/DownloadEngineFactory.cc
  11542. * src/usage_text.h
  11543. * src/TimedHaltCommand.{h, cc}: New class.
  11544. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11545. Bootstrap through node added by port message.
  11546. Currently bootstrap is executed if the number of buckets in routing
  11547. table is 1.
  11548. * src/BtPortMessage.{h, cc}
  11549. * src/DefaultBtMessageFactory.{h, cc}
  11550. * src/PeerInteractionCommand.cc
  11551. * test/BtPortMessageTest.cc
  11552. * test/MockDHTTask.h
  11553. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11554. Extract the Peer class's member variables, which are only needed after
  11555. PeerInteractionCommand, into PeerSessionResource class.
  11556. This class is instantiated in PeerInteractionCommand class's ctor and
  11557. released in its dtor.
  11558. This will make Peer class lightweight and uses less memory for peers
  11559. which are not connected and wait in the queue.
  11560. * src/PeerChokeCommand.cc
  11561. * src/PeerSessionResource.{h, cc}
  11562. * src/PeerInteractionCommand.cc
  11563. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11564. * src/DefaultBtInteractive.cc
  11565. * src/BtPieceMessage.cc
  11566. * src/BtInterestedMessage.cc
  11567. * src/BtUnchokeMessage.cc
  11568. * src/DefaultPeerStorage.{h, cc}
  11569. * src/PeerInitiateConnectionCommand.cc
  11570. * src/ActivePeerConnectionCommand.cc
  11571. * src/BtNotInterestedMessage.cc
  11572. * src/DefaultBtMessageDispatcher.cc
  11573. * src/BtChokeMessage.cc
  11574. * src/BtRequestMessage.cc
  11575. * src/Peer.{h, cc}
  11576. * src/BtRegistry.h
  11577. * src/TrackerWatcherCommand.cc
  11578. * src/PeerReceiveHandshakeCommand.cc
  11579. * test/BtExtendedMessageTest.cc
  11580. * test/BtAllowedFastMessageTest.cc
  11581. * test/BtCancelMessageTest.cc
  11582. * test/DefaultPieceStorageTest.cc
  11583. * test/BtBitfieldMessageTest.cc
  11584. * test/BtHaveMessageTest.cc
  11585. * test/BtNotInterestedMessageTest.cc
  11586. * test/BtRequestMessageTest.cc
  11587. * test/PeerSessionResourceTest.cc
  11588. * test/DefaultBtMessageDispatcherTest.cc
  11589. * test/PeerTest.cc
  11590. * test/BtInterestedMessageTest.cc
  11591. * test/BtRejectMessageTest.cc
  11592. * test/BtChokeMessageTest.cc
  11593. * test/DefaultPeerStorageTest.cc
  11594. * test/BtHaveNoneMessageTest.cc
  11595. * test/BtHaveAllMessageTest.cc
  11596. * test/DefaultExtensionMessageFactoryTest.cc
  11597. * test/BtUnchokeMessageTest.cc
  11598. * test/DefaultBtMessageFactoryTest.cc
  11599. * test/HandshakeExtensionMessageTest.cc
  11600. * test/UTPexExtensionMessageTest.cc
  11601. * test/DefaultBtRequestFactoryTest.cc
  11602. * test/BtPieceMessageTest.cc
  11603. Removed typedef PeerStats.
  11604. * src/PeerStat.h
  11605. * src/SegmentMan.cc
  11606. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11607. Added std namespace to copy, remove_copy, back_inserter,
  11608. front_inserter.
  11609. * src/RequestGroupMan.cc
  11610. * src/DefaultPieceStorage.cc
  11611. * src/StreamFileAllocationEntry.cc
  11612. * src/BtFileAllocationEntry.cc
  11613. * src/RequestGroup.cc
  11614. * src/MetalinkEntry.cc
  11615. * src/DelegatingPeerListProcessor.cc
  11616. * src/DefaultBtRequestFactory.cc
  11617. * src/DefaultBtMessageDispatcher.cc
  11618. * src/version_usage.cc: Included <algorithm>
  11619. * src/main.cc
  11620. * src/MetalinkParserController.cc
  11621. * src/DefaultBtContext.cc
  11622. * src/DownloadEngineFactory.cc
  11623. * src/a2algo.h
  11624. Removed.
  11625. * test/StreamUriListParserTest.cc
  11626. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11627. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11628. ActivePeerConnectionCommand when it is given and
  11629. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11630. * src/ActivePeerConnectionCommand.{h, cc}
  11631. * src/BtSetup.cc
  11632. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11633. Only add socket to DownloadEngine's select routine when peer or
  11634. localhost is unchoked and interested. This lowers CPU usage a
  11635. little bit.
  11636. * src/PeerInteractionCommand.cc
  11637. * src/PeerAbstractCommand.{h, cc}
  11638. * src/BtInteractive.h
  11639. * src/DefaultBtInteractive.{h, cc}
  11640. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11641. Revert previous change because get_peers message is needed for
  11642. announce_peer anyway.
  11643. * src/DHTGetPeersCommand.cc
  11644. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11645. Request peers thought DHT only when download hasn't finished.
  11646. * src/DHTGetPeersCommand.cc
  11647. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11648. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11649. * src/DHTBucketRefreshTask.{h, cc}
  11650. * src/DHTSetup.cc
  11651. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11652. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11653. standard classes.
  11654. Included string.h where mem* function are used.
  11655. Added namespace aria2.
  11656. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11657. Create directory before saving DHT routing table.
  11658. Now ios::failure is now handled properly.
  11659. * src/DHTAutoSaveCommand.cc
  11660. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11661. Removed unnecessary cerr.
  11662. * src/DownloadEngine.cc
  11663. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11664. Catch exception inside DHTMessageReceiver::receiveMessage().
  11665. Log unknown message.
  11666. * src/DHTMessageReceiver.{h, cc}
  11667. * src/DHTMessageFactory.h
  11668. * src/DHTMessageFactoryImpl.{h, cc}
  11669. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11670. * src/DHTInteractionCommand.cc
  11671. * src/DHTUnknownMessage.{h, cc}
  11672. * test/DHTUnknownMessageTest.cc
  11673. * test/MockDHTMessageFactory.h
  11674. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11675. Commented out ip address comparison because a host can have multiple
  11676. ip addresses and it is hard to predict the hostname is resolved into
  11677. which one.
  11678. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11679. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11680. * po/Makefile.in: Removed since this is generated by configure.
  11681. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11682. Fixed compiler warning about redefinition of SIZE_MAX.
  11683. Use common.h instead of config.h directly here.
  11684. * src/Platform.{h, cc}
  11685. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11686. here.
  11687. * common.h
  11688. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11689. Updated gettext related files.
  11690. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11691. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11692. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11693. Added DHT functionality, compatible with mainline.
  11694. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11695. You may need to specify entry point to DHT network using
  11696. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11697. Use --dht-listen-port to specify port number. Make sure that your
  11698. firewall configuration can pass through UDP traffic to the port.
  11699. The routing table is saved in $HOME/.aria2/dht.dat.
  11700. * src/DHT*
  11701. * src/BNode.{h, cc}
  11702. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11703. particular torrent.
  11704. * src/Data.cc: Rewritten ctor.
  11705. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11706. --dht-entry-point.
  11707. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11708. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11709. ends, remove BtContext from DHTPeerAnnounceStorage.
  11710. * src/BtPortMessage.{h, cc}: Rewritten.
  11711. * src/message.h
  11712. * src/OptionHandlerImpl.cc
  11713. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11714. --dht-entry-point.
  11715. * src/Dictionary.{h, cc} (remove): New function.
  11716. * src/prefs.h
  11717. * src/DefaultBtMessageFactory.h
  11718. * src/BtHandshakeMessage.cc
  11719. * src/ActivePeerConnectionCommand.cc
  11720. * src/SocketCore.{h, cc}: Added datagram socket support.
  11721. * src/DefaultBtMessageFactory.cc
  11722. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11723. Create DHT commands.
  11724. * src/BtMessageFactory.h
  11725. * src/PeerMessageUtil.{h, cc}
  11726. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11727. Fixed the bug that log file is not written when configuration file doesn't exist.
  11728. This is caused by using Logger class before LogFactory is not configured.
  11729. BUG #1875079
  11730. * src/option_processing.cc
  11731. Warning message "configuration doesn't exist" is only printed when --conf is
  11732. given.
  11733. * src/option_processing.cc
  11734. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11735. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11736. ShaVisitor is now deprecated and slated to be removed.
  11737. * src/DefaultBtContext.cc
  11738. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11739. Externalize message to message.h
  11740. * src/Platform.cc
  11741. * src/message.h
  11742. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11743. Set default domain and default path to cookie.
  11744. * src/HttpResponse.cc
  11745. * src/CookieBox.{h, cc}
  11746. * src/CookieParser.{h, cc}
  11747. * test/CookieParserTest.cc
  11748. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11749. Added --no-conf and --conf-path command-line option.
  11750. --no-conf option disables loading aria2.conf file.
  11751. --conf-path option changes the configuration file path. The default
  11752. file path is $HOME/.aria2/aria2.conf
  11753. Added a warning message when the configuration file is not found.
  11754. * src/HelpItemFactory.cc
  11755. * src/option_processing.cc
  11756. * src/prefs.h
  11757. * src/usage_text.h
  11758. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11759. Added the message to inform users that other help categories are
  11760. available in -h option.
  11761. * src/version_usage.cc
  11762. * src/TagContainer.{h, cc}
  11763. * test/TagContainerTest.cc
  11764. * src/TaggedItem.{h, cc}
  11765. * test/TaggedItemTest.cc
  11766. * src/HelpItem.h
  11767. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11768. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11769. from PiecedSegment's ctor.
  11770. Previously Piece::getAllMissingBlockIndexes() is called from
  11771. PiecedSegment() but it is rather expensive since only first element is
  11772. used.
  11773. * src/PiecedSegment.cc
  11774. * src/Piece.{h, cc}
  11775. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11776. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11777. each time these functions are called.
  11778. * src/BitfieldMan.{h, cc}
  11779. * test/BitfieldManTest.cc
  11780. * src/array_fun.h
  11781. * test/array_funTest.cc
  11782. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11783. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11784. filtered. Removed unnecessary cast to int32_t.
  11785. * src/BitfieldMan.{h, cc}
  11786. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11787. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11788. payload length(4bytes) are received. This happens because lenbufLength
  11789. is not updated in this particular case and successive call of
  11790. receiveMessage() overwrites payload length with bytes recieved which
  11791. are payload body.
  11792. * src/PeerConnection.{h, cc}
  11793. * src/message.h
  11794. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11795. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11796. peer if there are peers that have same ipaddr and port.
  11797. I've experiened segmentation fault and "pure virtual function was
  11798. called" error.
  11799. * src/Peer.h
  11800. * test/PeerTest.cc
  11801. * src/DefaultPeerStorage.cc
  11802. * test/DefaultPeerStorageTest.cc
  11803. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11804. Removed a call to isPowerOf() because it is no longer necessary here
  11805. and a request block is not always power of 2.
  11806. BUG#1866924
  11807. * src/PeerMessageUtil.cc (checkLength)
  11808. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11809. Fixed the bug that always first found Segment is removed from
  11810. usedSegmentEntries. Removed unused functions.
  11811. * src/SegmentMan.{h, cc}
  11812. * test/SegmentManTest.cc
  11813. Fixed the bug that ServerHost is not removed.
  11814. * src/RequestGroup.cc
  11815. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11816. Fixed the bug that SegmentMan::completeSegment() is not called
  11817. even if Segment is complete when --lowest-speed-limit is enabled.
  11818. BUG#1864525
  11819. * src/DownloadCommand.{h, cc}
  11820. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11821. Fixed: hash algorithm 'sha1' is always used.
  11822. * src/DownloadCommand.cc (validatePieceHash)
  11823. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11824. Added --enable-peer-exchange command-line option.
  11825. * src/OptionHandlerFactory.cc
  11826. * src/HelpItemFactory.cc
  11827. * src/option_processing.cc
  11828. * src/usage_text.h
  11829. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11830. Move extension from BtRuntime to ExtensionMessageFactory, because
  11831. extension can be specified per peer, not per torrent.
  11832. * src/DefaultBtInteractive.cc
  11833. * src/BtRuntime.h
  11834. * src/ExtendedMessagingAware.h
  11835. * src/ExtensionMessageFactory.h
  11836. * src/DefaultExtensionMessageFactory.cc
  11837. * test/DefaultExtensionMessageFactoryTest.cc
  11838. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11839. Added categorized option help. Specify category using --help option.
  11840. Also added the ability to search options in forward match.
  11841. * src/HelpItem.{h, cc}
  11842. * test/HelpItemTest.cc
  11843. * src/HelpItemFactory.{h, cc}
  11844. * src/TagContainer.{h, cc}
  11845. * test/TagContainerTest.cc
  11846. * src/option_processing.cc
  11847. * src/prefs.h
  11848. * src/TaggedItem.{h, cc}
  11849. * test/TaggedItemTest.cc
  11850. * src/version_usage.cc
  11851. * src/help_tags.h
  11852. * src/usage_text.h
  11853. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11854. Fixed segmentation fault when bad torrent metainfo is parsed.
  11855. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11856. and then throw exception or skip it.
  11857. * src/DefaultBtContext.{h, cc}
  11858. * test/DefaultBtContextTest.cc
  11859. * src/AnnounceList.cc
  11860. * src/CompactPeerListProcessor.cc
  11861. * src/message.h
  11862. * src/DefaultBtAnnounce.{h, cc}
  11863. * test/DefaultBtAnnounceTest.cc
  11864. * src/BencodeVisitor.cc
  11865. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11866. Added missing "B"(=Byte). So now the message looks like this:
  11867. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11868. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11869. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11870. Show the seed ratio after torrent downloads.
  11871. For example, after torrent download completed and --seed-time and
  11872. --seed-ratio conditions are fulfilled, following message is printed
  11873. right after "Download complete: .....":
  11874. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11875. * src/RequestGroupMan.cc
  11876. * src/RequestGroup.{h, cc}
  11877. * src/message.h
  11878. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11879. Remove a defunct control file. A defunct control file means that while
  11880. it exists, but the corresponding download file is missing.
  11881. After its removal, a download restarts from the beginning.
  11882. * src/RequestGroup.cc
  11883. * src/message.h
  11884. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11885. Allocate bitfield in Peer when it is really used. More specifically,
  11886. bitfield in Peer is allocated after the connection is established and
  11887. deallocated when the connection is dropped.
  11888. Since 2 parameters(piece length and total length) was removed from the
  11889. constructor of Peer class, many test classes were modified accordingly.
  11890. See svn log for more detailed information.
  11891. * src/PeerInteractionCommand.cc
  11892. * src/CompactPeerListProcessor.cc
  11893. * src/Peer.cc
  11894. * src/DefaultPeerListProcessor.cc
  11895. * src/PeerListenCommand.cc
  11896. * src/PeerReceiveHandshakeCommand.cc
  11897. Fixed memory leak
  11898. * src/Piece.cc
  11899. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11900. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11901. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11902. command-line options.
  11903. * src/option_processing.cc
  11904. * src/ActivePeerConnectionCommand.cc
  11905. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11906. Send have message to peer if it already has the piece.
  11907. * src/BtHaveMessage.{h, cc}
  11908. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11909. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11910. port.
  11911. * src/DefaultPeerStorage.{h, cc}
  11912. * test/DefaultPeerStorageTest.cc
  11913. * src/HandshakeExtensionMessage.cc
  11914. * test/HandshakeExtensionMessageTest.cc
  11915. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11916. * src/PeerStorage.h
  11917. * test/MockPeerStorage.h
  11918. * src/PeerListenCommand.cc
  11919. * src/PeerReceiveHandshakeCommand.cc
  11920. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11921. Added --metalink-enable-unique-protocol option.
  11922. * src/Metalink2RequestGroup.cc
  11923. * src/option_processing.cc
  11924. * src/prefs.h
  11925. * src/version_usage.cc
  11926. * doc/aria2c.1.txt
  11927. * doc/aria2c.1
  11928. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11929. Allow a peer in incomingPeer to be added peers.
  11930. * src/DefaultPeerStorage.cc
  11931. * test/DefaultPeerStorageTest.cc
  11932. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11933. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11934. I could reproduce this bug in following procedure:
  11935. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11936. 2. Restart aria2.
  11937. 3. You see the download stopped around 99%.
  11938. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11939. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11940. If timeout is reached, then _nextCommand is unused and it may contains
  11941. segments and they won't be canceled. Actually, timeout is not needed
  11942. here because if the server dropped connection, then retry is made.
  11943. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11944. Added uTorrent compatible Peer Exchange.
  11945. * src/BencodeVisitor.{h, cc}
  11946. * test/BencodeVisitorTest.cc
  11947. * src/BtConstants.h
  11948. * src/BtContext.h: Added 'private' flag.
  11949. * src/BtExtendedMessage.{h, cc}
  11950. * test/BtExtendedMessageTest.cc
  11951. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11952. reserved field.
  11953. * test/BtHandshakeMessageTest.cc
  11954. * src/BtMessageFactory.h
  11955. * src/BtRegistry.h
  11956. * src/BtRuntime.h: This class holds default extension message IDs for
  11957. aria2. By default, aria2 uses ID 8 for ut_pex.
  11958. * src/DefaultBtContext.cc
  11959. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11960. When it is true, aria2 enables ut_pex. This value is set by
  11961. PeerInteractionCommand.
  11962. * src/DefaultBtMessageFactory.{h, cc}
  11963. * test/DefaultBtMessageFactoryTest.cc
  11964. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11965. handling to DefaultBtInteractive class.
  11966. * src/DefaultExtensionMessageFactory.{h, cc}
  11967. * test/DefaultExtensionMessageFactoryTest.cc
  11968. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11969. the container(peers and incomingPeers. The equality is determined by
  11970. Peer::id).
  11971. * test/DefaultPeerStorageTest.cc
  11972. * src/ExtensionMessage.h
  11973. * test/MockExtensionMessage.h
  11974. * src/ExtensionMessageFactory.h
  11975. * test/MockExtensionMessageFactory.h
  11976. * src/HandshakeExtensionMessage.{h, cc}
  11977. * test/HandshakeExtensionMessageTest.cc
  11978. * src/MetaEntry.h
  11979. * src/Peer.{h, cc}
  11980. * src/PeerInteractionCommand.cc
  11981. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11982. addIncomingPeer.
  11983. * src/PeerMessageUtil.{h, cc}
  11984. * src/PeerObject.h
  11985. * src/UTPexExtensionMessage.{h, cc}
  11986. * test/UTPexExtensionMessageTest.cc
  11987. * src/message.h
  11988. * src/prefs.h
  11989. Fixed the bug that returns incomplete data when it contains null
  11990. character. A convenient constructor was also added.
  11991. * src/Data.{h, cc}
  11992. Rewritten.
  11993. * src/CompactPeerListProcessor.cc
  11994. Fixed typos.
  11995. * src/message.h
  11996. * src/MetaFileUtil.cc
  11997. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11998. Added "Status Legend" label to the explanation text of 'stat' in
  11999. download result and moved it to the last. BUG#1848214
  12000. * src/RequestGroupMan.cc
  12001. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12002. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  12003. * src/Makefie.am
  12004. * test/Makefile.am
  12005. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12006. Fixed the bug that prevents aria2 from loading cookie file when expire
  12007. value is greater than 2^31-1. BUG#1851066
  12008. * src/CookieBoxFactory.cc
  12009. * test/CookieBoxFactoryTest.cc
  12010. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12011. Fixed possible memory leak when an exception is thrown.
  12012. * src/XML2SAXMetalinkProcessor.cc
  12013. Added Expat support. If both libxml2 and Expat are installed, then
  12014. libxml2 is used by default.
  12015. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  12016. ExpatMetalinkProcessor according to the configuration.
  12017. * src/ExpatMetalinkProcessor.{h, cc}
  12018. * src/main.cc: Removed libxml2 specific header and init/free function.
  12019. * src/MetalinkProcessorFactory.{h, cc}
  12020. * src/MetalinkHelper.cc
  12021. * src/Metalinker.h: Removed unnecessary libxml2 header.
  12022. * src/MetalinkProcessor.h
  12023. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  12024. MetalinkProcessorTest is used instead.
  12025. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  12026. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  12027. MetalinkProcessorFactory::newInstance().
  12028. * m4/libexpat.m4
  12029. * configure.ac: Added configuration options for libexpat.
  12030. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12031. Disabled -s option in metalink download.
  12032. * src/Metalink2RequestGroup.cc
  12033. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12034. If several protocols are available for a mirror in metalink file,
  12035. aria2 now use one of them. --metalink-preferred-protocol option was
  12036. added to specify the preference of protocol.
  12037. * src/AbstractCommand.cc
  12038. * src/OptionHandlerFactory.cc
  12039. * src/ServerHost.{h, cc}
  12040. * src/Metalink2RequestGroup.cc
  12041. * src/RequestGroup.{h, cc}
  12042. * test/RequestGroupTest.cc
  12043. * src/option_processing.cc
  12044. * src/prefs.h
  12045. * src/HttpResponseCommand.cc
  12046. * src/MetalinkResource.{h, cc}
  12047. * src/FtpNegotiationCommand.cc
  12048. * src/MetalinkEntry.{h, cc}
  12049. * src/MetalinkEntryTest.cc
  12050. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12051. Code cleanup and added debug log.
  12052. * src/PeerConnection.cc
  12053. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12054. Compiler error fix: applied the patch by Tiziano Mueller
  12055. * src/RequestGroup.cc
  12056. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12057. Fixed the bug: only first announce URL is tried in AnnounceTier,
  12058. in stopped and completed event.
  12059. * src/AnnounceList.{h, cc}
  12060. * test/AnnounceListTest.cc
  12061. * src/DefaultBtAnnounce.cc
  12062. * test/DefaultBtAnnounceTest.cc
  12063. Sorted URLs.
  12064. * test/Metalink2RequestGroupTest.cc
  12065. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12066. Removed unnecessary string copy. Updated doc and corrected indentation.
  12067. * src/Base64.cc
  12068. Fixed compilation warnings
  12069. * test/DataTest.cc
  12070. * test/HttpRequestTest.cc
  12071. * test/MetaFileUtilTest.cc
  12072. * test/RequestTest.cc
  12073. * Release 0.12.0
  12074. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12075. Updated translations
  12076. * po/{de,fr,ja,nl,ru}.po
  12077. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  12078. translations. Many thanks to translators.
  12079. * po/{ca,es,it,pt_BR,sv}.po
  12080. * po/LINGUAS
  12081. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12082. Added a notice about URL
  12083. * src/version_usage.cc
  12084. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  12085. Fixed the bug#1845750; CTRL+C does not stop torrent.
  12086. aria2 repeatedly sends stopped request when tracker returns error code.
  12087. * src/AnnounceList.cc
  12088. * test/AnnounceListTest.cc
  12089. * src/AnnounceTier.h
  12090. Added a message when ctrl-c is hit.
  12091. Now second ctrl-c is also handled in signal handler.
  12092. * src/RequestGroupMan.{h, cc}
  12093. * src/RequestGroup.{h, cc}
  12094. * src/MultiUrlRequestInfo.cc
  12095. * src/DownloadEngine.cc
  12096. * src/TrackerWatcherCommand.cc
  12097. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12098. Code cleanup
  12099. * src/Base64.cc (encode)
  12100. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12101. Changed Direct/IO enable/disable procesure in file allocation routine.
  12102. * src/SingleFileAllocationIterator.cc
  12103. (SingleFileAllocationIterator):
  12104. Disable directIO if offset is not multiple of 512.
  12105. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  12106. * src/MultiFileAllocationIterator.cc (allocateChunk):
  12107. Enable created SingleFileAllocationIterator's directIO.
  12108. * src/FileAllocationEntry.cc
  12109. (FileAllocationEntry): Enable directIO here.
  12110. (~FileAllocationEntry): Disable directIO here.
  12111. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12112. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  12113. * src/Peer.{h, cc}
  12114. * src/DefaultPieceStorage.cc
  12115. * test/DefaultPieceStorageTest.cc
  12116. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12117. Rewritten direct I/O support routine
  12118. * src/SingleFileAllocationIterator.cc
  12119. * src/MultiDiskAdaptor.{h, cc}
  12120. * src/ByteArrayDiskWriter.h
  12121. * src/AbstractSingleDiskAdaptor.h
  12122. * src/AbstractDiskWriter.cc
  12123. * src/DefaultPieceStorage.cc
  12124. * src/DiskWriter.h
  12125. * src/BinaryStream.h
  12126. * src/IteratableChunkChecksumValidator.cc
  12127. * src/IteratableChecksumValidator.cc
  12128. * src/CheckIntegrityEntry.cc
  12129. * src/FileAllocationEntry.cc
  12130. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12131. Fixed typo
  12132. * src/version_usage.cc
  12133. Updated doc
  12134. * doc/aria2c.1.txt
  12135. * doc/aria2c.1
  12136. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12137. Fixed compile error without message digest support.
  12138. * src/FileMetalinkParserState.cc
  12139. * src/MetalinkParserController.{h, cc}
  12140. * test/XML2SAXMetalinkProcessorTest.cc
  12141. * test/MetalinkParserControllerTest.cc
  12142. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12143. Enable direct I/O support in checksum checking.
  12144. * src/IteratableChunkChecksumValidator.{h, cc}
  12145. * test/IteratableChunkChecksumValidatorTest.cc
  12146. * src/CheckIntegrityEntry.cc
  12147. * src/PieceHashCheckIntegrityEntry.cc
  12148. * src/IteratableChecksumValidator.{h, cc}
  12149. * src/BtCheckIntegrityEntry.cc: Added doc.
  12150. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12151. Added --allow-piece-length-change option.
  12152. * src/DefaultBtProgressInfoFile.cc
  12153. * test/DefaultBtProgressInfoFileTest.cc
  12154. * src/OptionHandlerFactory.cc
  12155. * src/option_processing.cc
  12156. * src/prefs.h
  12157. * src/version_usage.cc
  12158. * doc/aria2c.1.txt
  12159. * doc/aria2c.1
  12160. Fixed: duplicated result entry appears when exception is thrown in
  12161. RequestGroup::createInitiateConnectionCommand().
  12162. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  12163. Add RequestGroup to _requestGroup after RequetGroup::
  12164. createInitiateConnectionCommand() succeeds.
  12165. Externalized message
  12166. * src/XML2SAXMetalinkProcessor.cc
  12167. * src/message.h
  12168. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12169. Forced download abort when received negative response from http/ftp
  12170. server.
  12171. * src/HttpResponseCommand.cc
  12172. * src/FtpNegotiationCommand.cc
  12173. * src/HttpResponse.cc
  12174. * src/FtpConnection.cc
  12175. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12176. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  12177. the predecessor, Xml2MetalinkParser class.
  12178. I tested them against 94KB metalink file with 1234 chunk checksums.
  12179. The new one parsed it in 22msec, while it took 6000msec with old one.
  12180. * src/XML2SAXMetalinkProcessor.{h, cc}
  12181. * test/XML2SAXMetalinkProcessorTest.cc
  12182. * src/MetalinkParserController.{h, cc}
  12183. * test/MetalinkParserControllerTest.cc
  12184. * src/MetalinkParserState.h: Also added 16 subclasses.
  12185. * src/main.cc
  12186. * src/Metalink2RequestGroup.cc
  12187. * src/MetalinkHelper.cc
  12188. * src/MetalinkEntry.cc
  12189. * src/ChunkChecksum.h
  12190. Rewritten Base64 class for better performance.
  12191. * src/Base64.{h, cc}
  12192. * test/Base64Test.cc
  12193. * src/HttpRequest.cc
  12194. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12195. Fixed the bug#1841757: aria2 will connect to server to only get
  12196. file size.
  12197. * src/StreamFileAllocationEntry.cc
  12198. * src/option_processing.cc
  12199. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  12200. downloads.
  12201. * src/FtpNegotiationCommand.cc
  12202. Suppressed wrong message when finding PreDownloadHandler
  12203. * src/RequestGroup.cc
  12204. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12205. Updated usage
  12206. * src/version_usage.cc
  12207. Updated man page
  12208. * doc/aria2c.1.txt
  12209. * doc/aria2c.1
  12210. Updated po files
  12211. * po/aria2c.pot
  12212. * po/*.po
  12213. * po/*.gmo
  12214. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12215. Eliminated g++-4.2 warning
  12216. * src/DownloadHandlerConstants.{h, cc}
  12217. * src/Util.cc
  12218. * test/MetaFileUtilTest.cc
  12219. * test/PStringBuildVisitorTest.cc
  12220. Fixed bug: --check-integrity doesn't work for multi file torrent.
  12221. * src/RequestGroup.cc
  12222. * src/BtCheckIntegrityEntry.cc
  12223. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12224. Fixed a2io.h
  12225. * src/a2io.h
  12226. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12227. Added direct I/O support. The current implementation uses O_DIRECT,
  12228. which is not posix standard and is tested on linux 2.6.21.
  12229. Currently only file allocation uses direct I/O.
  12230. * src/SingleFileAllocationIterator.{h, cc}
  12231. * test/SingleFileAllocationIteratorTest.cc
  12232. * src/MultiFileAllocationIterator.{h, cc}
  12233. * test/MultiFileAllocationIteratorTest.cc
  12234. * src/BinaryStream.h
  12235. * src/DiskWriter.h
  12236. * src/AbstractDiskWriter.{h, cc}
  12237. * src/ByteArrayDiskWriter.h
  12238. * src/DiskAdaptor.h
  12239. * src/AbstractSingleDiskAdaptor.{h, cc}
  12240. * src/MultiDiskAdaptor.{h, cc}
  12241. * src/FileAllocationEntry.cc
  12242. * src/Util.{h, cc}
  12243. * src/OptionHandlerFactory.cc
  12244. * src/prefs.h
  12245. * src/version_usage.cc
  12246. * src/option_processing.cc
  12247. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  12248. handleException.
  12249. * src/MultiFileAllocationIterator.cc
  12250. Added EINTR handling
  12251. * src/SocketCore.cc
  12252. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12253. Updated usage
  12254. * src/version_usage.cc
  12255. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12256. Applied Ross's patch for MinGW port.
  12257. * src/DownloadEngine.h
  12258. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12259. Set Content-Type to SingleFileDownloadContext when http response is
  12260. received.
  12261. * src/HttpResponseCommand.cc
  12262. * src/HttpResponse.{h, cc}
  12263. * test/HttpResponseTest.cc
  12264. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12265. Rewritten to add content-type support.
  12266. * src/DownloadHandler.{h, cc}
  12267. * src/BtPostDownloadHandler.{h, cc}
  12268. * test/BtPostDownloadHandlerTest.cc
  12269. * src/MetalinkPostDownloadHandler.{h, cc}
  12270. * test/MetalinkPostDownloadHandlerTest.cc
  12271. * src/PostDownloadHandler.{h, cc}
  12272. * src/DownloadHandlerConstants.{h, cc}
  12273. * src/RequestGroup.cc
  12274. * src/HttpResponseCommand.cc
  12275. * src/FtpNegotiationCommand.cc
  12276. * src/SingleFileDownloadContext.{h, cc}
  12277. * src/RequestGroup.h
  12278. * src/RequestGroupCriteria.h
  12279. * src/ContentTypeRequestGroupCriteria.h
  12280. Added 'mem' option value for --follow-metalink, --follow-torrent.
  12281. If it is give, metalink/torrent file is not written to the disk, but
  12282. just is kept in memory. Parsing is occurred on memory.
  12283. * src/MetalinkHelper.{h, cc}
  12284. * src/MetalinkProcessor.h
  12285. * src/Xml2MetalinkProcessor.{h, cc}
  12286. * test/Xml2MetalinkProcessorTest.cc
  12287. * src/DownloadHandlerFactory.{h, cc}
  12288. * test/DownloadHandlerFactoryTest.cc
  12289. * src/PreDownloadHandler.{h, cc}
  12290. * src/OptionHandlerFactory.cc
  12291. * src/DefaultBtContext.{h, cc}
  12292. * test/DefaultBtContextTest.cc
  12293. * src/version_usage.cc
  12294. * src/Metalink2RequestGroup.{h, cc}
  12295. * src/RequestGroup.{h, cc}
  12296. * src/a2functional.h
  12297. * test/a2functionalTest.cc
  12298. * src/MemoryBufferPreDownloadHandler.{h, cc}
  12299. * src/OptionHandlerImpl.h
  12300. * src/prefs.h
  12301. * src/Util.{h, cc}
  12302. * test/UtilTest.cc
  12303. Keep DownloadResult rather than RequestGroup after downloads to reduce
  12304. memory usage.
  12305. * src/RequestGroupMan.{h, cc}
  12306. * src/DownloadEngine.cc
  12307. * src/BtDependency.{h, cc}: Changed the type of dependee from
  12308. WeakHandle to SharedHandle because WeakHandle could be null.
  12309. * src/RequestGroup.{h, cc}
  12310. * src/DownloadEngineFactory.cc
  12311. * src/DownloadResult.h
  12312. Set totalLength after download finished
  12313. * src/UnknownLengthPieceStorage.{h, cc}
  12314. Keep torrent file specified in metalink in memory.
  12315. * src/Metalink2RequestGroup.cc
  12316. * src/BtDependency.cc
  12317. * src/TrueRequestGroupCriteria.h
  12318. Fixed the bug: seekg is used where seekp should be used.
  12319. * src/ByteArrayDiskWriter.cc
  12320. * test/ByteArraydiskWriterTest.cc
  12321. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12322. Fixed syntax error
  12323. * test/SequenceTest.cc
  12324. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12325. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12326. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  12327. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  12328. * src/RequestGroup.cc (downloadFinishedByFileLength)
  12329. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12330. Added the check to see whether ares_host_callback accepts timeouts
  12331. with c-ares; only c-ares 1.5.0 or newer accepts it.
  12332. * src/NameResolver.{h, cc}
  12333. * m4/libcares.m4
  12334. * configure.ac: Set C++ for language choice.
  12335. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12336. Fixed: compilation fails without c-ares/ares
  12337. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  12338. Generate http/ftp commands only when download is incomplete.
  12339. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  12340. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12341. Corrected typo. Examples are removed since they are available in man
  12342. page.
  12343. * src/version_usage.cc
  12344. Updated man page.
  12345. * doc/aria2c.1
  12346. * doc/aria2c.1.txt
  12347. * doc/makeman: Commented out sed command.
  12348. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12349. Throw DlAbortEx when a remote file is not found.
  12350. * src/HttpResponse.cc
  12351. * src/FtpNegotiationCommand.cc
  12352. * src/message.h
  12353. Overwrite an existing file if --allow-overwrite=true is given.
  12354. * src/RequestGroup.cc
  12355. Removed unused functions
  12356. * src/AbstractCommand.h
  12357. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12358. Removed 'extern' from 'extern typedef ...' in src/*.h
  12359. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12360. Updated usage
  12361. * src/version_usage.cc
  12362. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12363. Trim announce URL
  12364. * src/DefaultBtContext.cc
  12365. * test/ShaVisitorTest.cc
  12366. Trim argument s. Give trimed s to exception constructor.
  12367. * src/Util.cc (parseInt)(parseLLInt)
  12368. * test/UtilTest.cc
  12369. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12370. Set precision back to 1.
  12371. * src/ConsoleStatCalc.cc (calculateStat)
  12372. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12373. Replaced strtol with Util::parseInt
  12374. * src/ChunkedEncoding.cc
  12375. * src/HttpConnection.cc
  12376. * src/CookieBoxFactory.cc
  12377. * src/ParameterizedStringParser.cc
  12378. * src/Util.cc
  12379. * test/UtilTest.cc
  12380. * test/OptionHandlerTest.cc
  12381. * src/Request.cc
  12382. Throw exception when empty string is given. The message for exception
  12383. changed.
  12384. * src/Util.cc (parseInt)(parseLLInt)
  12385. * src/message.h
  12386. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12387. Set precision to 2 because share ratio is rounded into 1.0 if precision
  12388. set to 1.
  12389. * src/ConsoleStatCalc.cc (calculateStat)
  12390. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12391. Preallocate non-requested file which is adjacent forward to requested
  12392. file('requested' files means the files given in --select-file option)
  12393. if they share a same piece.
  12394. This fixes long pause in the file system which doesn't support sparse
  12395. files like FAT32 while downloading.
  12396. * src/MultiFileAllocationIterator.{h, cc}
  12397. * test/MultiFileAllocationIteratorTest.cc
  12398. * src/FileEntry.{h, cc}
  12399. Removed unused _option.
  12400. * src/MultiDiskAdaptor.h
  12401. * test/MultiDiskAdaptorTest.cc
  12402. * src/DefaultPieceStorage.cc
  12403. Set the default value of --seed-ratio to 1.0.
  12404. If 0.0 is given, then seeding continues regardless of share ratio.
  12405. * src/version_usage.cc
  12406. * src/option_processing.cc
  12407. * src/BtSetup.cc
  12408. * doc/aria2c.1.txt
  12409. * doc/aria2c.1
  12410. Fixed: Selective download is not working in BitTorrent
  12411. * src/RequestGroup.cc
  12412. Introduced Sequence class. Use this instead of Util::unfoldRange()
  12413. * src/PieceStorage.h
  12414. * test/MockPieceStorage.h
  12415. * src/UnknownLengthPieceStorage.h
  12416. * src/DefaultPieceStorage.{h, cc}
  12417. * src/Metalink2RequestGroup.cc
  12418. * src/RequestGroup.cc
  12419. * src/Sequence.h
  12420. * test/SequenceTest.cc
  12421. * src/IntSequence.h
  12422. * src/message.h
  12423. * src/Util.{h, cc}
  12424. * test/UtilTest.cc
  12425. Added new function 'parse' to catch exception thrown by subclass's
  12426. parseArg
  12427. * src/OptionHandler.h
  12428. * src/OptionParser.cc
  12429. * src/NameMatchOptionHandler.h
  12430. * src/OptionHandlerImpl.h
  12431. * test/OptionHandlerTest.cc
  12432. Added IntegerRangeOptionHandler. Used for --listen-port and
  12433. --select-file. Now --listen-port accepts range of port.
  12434. * src/OptionHandlerFactory.cc
  12435. * src/version_usage.cc
  12436. * src/OptionHandlerImpl.h
  12437. * src/option_processing.cc
  12438. * src/BtSetup.cc
  12439. * src/PeerListenCommand.{h, cc}
  12440. * doc/aria2c.1.txt
  12441. * doc/aria2c.1
  12442. Implemented operator< for Exception class to provide easy way to print
  12443. exception stack trace.
  12444. * src/Exception.{h, cc}
  12445. * src/main.cc
  12446. * src/option_processing.cc
  12447. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12448. * src/version_usage.cc
  12449. (showVersion): Reworked.
  12450. (showUsage): Added examples.
  12451. Removed Hint for total length and file name.
  12452. * src/Metalink2RequestGroup.cc
  12453. * src/RequestGroup.{h, cc}
  12454. * src/HttpResponseCommand.cc
  12455. * src/FtpNegotiationCommand.cc
  12456. Now --follow-torrent and --follow-metalink option work properly.
  12457. * src/RequestGroup.cc
  12458. Updated man page
  12459. * doc/aria2c.1.txt
  12460. * doc/aria2c.1
  12461. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12462. Removed.
  12463. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12464. Use Segment::operator==()
  12465. * src/HttpConnection.cc
  12466. * src/Segment.h
  12467. Updated usage
  12468. * src/version_usage.cc
  12469. Added EINTR treatment.
  12470. * src/SocketCore.cc
  12471. * src/AbstractDiskWriter.cc
  12472. Rewritten.
  12473. * src/Util.cc (rangedFileCopy)
  12474. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12475. Fixed typo.
  12476. * src/version_usage.cc
  12477. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12478. Implemented. Now -c option works fine.
  12479. * src/DefaultPieceStorage.cc (markPiecesDone)
  12480. * test/DefaultPieceStorageTest.cc
  12481. Removed.
  12482. * src/SegmentMan.{h, cc}
  12483. (markAllPiecesDone)
  12484. (markPieceDone)
  12485. Synchronized po files with
  12486. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12487. * src/fr.po
  12488. * src/ru.po
  12489. * src/de.po
  12490. * src/ja.po
  12491. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12492. Added ifdef and some modifications to compile without BitTorrent,
  12493. Metalink, MessageDigest
  12494. support.
  12495. * src/PieceHashCheckIntegrityEntry.cc
  12496. * src/MetalinkEntry.h
  12497. * src/version_usage.cc
  12498. * src/main.cc
  12499. * src/DownloadEngine.{h, cc}
  12500. * src/Metalink2RequestGroup.cc
  12501. * src/Peer.cc
  12502. * src/RequestGroup.cc
  12503. * src/MetalinkHelper.cc
  12504. * test/DefaultPieceStorageTest.cc
  12505. * test/MetalinkPostDownloadHandlerTest.cc
  12506. * test/Metalink2RequestGroupTest.cc
  12507. Hide TOTAL SPD when all downloads complete.
  12508. * src/ConsoleStatCalc.cc
  12509. Log target system information.
  12510. * src/main.cc
  12511. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12512. Now --metalink-location accepts a comma-deliminated list of locations.
  12513. * src/MetalinkEntry.{h, cc}
  12514. * test/MetalinkEntryTest.cc
  12515. * src/version_usage.cc
  12516. * src/Metalink2RequestGroup.cc
  12517. * src/Xml2MetalinkProcessor.cc
  12518. * test/Xml2MetalinkProcessorTest.cc
  12519. * doc/aria2c.1.txt
  12520. * doc/aria2c.1
  12521. * src/Util.cc (toUpper)(toLower): Rewritten.
  12522. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12523. Added the ability to detect duplicate download entry which is about to
  12524. download the same file other RequestGroup is downloading.
  12525. * src/RequestGroup.cc
  12526. * src/HttpResponseCommand.cc
  12527. * src/FtpNegotiationCommand.cc
  12528. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12529. Recalculates download progress when loading a control file,
  12530. if the piece length of DownloadContext is different from the one saved
  12531. in the control file. Currently in-flight pieces are ignored.
  12532. * src/DefaultBtProgressInfoFile.cc
  12533. * test/DefaultBtProgressInfoFileTest.cc
  12534. * src/Util.{h, cc}
  12535. * test/UtilTest.cc
  12536. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12537. Do not rotate tiers in announce-list.
  12538. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12539. AnnounceList::allTiersFailed() used instead to detect whether all
  12540. tiers are tried and failed.
  12541. * test/DefaultBtAnnounceTest.cc
  12542. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12543. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12544. * test/AnnounceListTest.cc
  12545. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12546. clause. Catch RecoverableException instead of DlRetryEx instead.
  12547. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12548. Implemented checksum validation feature(1 checksum for each file)
  12549. The validation takes place after the download.
  12550. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12551. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12552. * src/CheckIntegrityCommand.cc: Changed log message.
  12553. * src/Metalink2RequestGroup.cc: Set checksum to
  12554. SingleFileDownloadContext.
  12555. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12556. PieceHashCheckIntegrity class.
  12557. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12558. PieceHashCheckIntegrity class.
  12559. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12560. * src/IteratableValidator.h: New class.
  12561. * src/message.h
  12562. * src/CheckIntegrityEntry.{h, cc}
  12563. * src/IteratableChunkChecksumValidator.{h, cc}
  12564. * src/SingleFileDownloadContext.h
  12565. * src/DownloadCommand.cc
  12566. --allow-overwrite=true is no longer needed to check file integrity
  12567. before download in BitTorrent download.
  12568. * src/RequestGroup.cc (getInitialCommand)
  12569. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12570. throws exception.
  12571. * src/RequestGroupMan.cc (getInitialCommands)
  12572. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12573. urlencode the given url inside Request::parseUrl(...)
  12574. * src/Request.{h, cc}
  12575. * src/Util.{h, cc}
  12576. * test/RequestTest.cc
  12577. Removed #!metalink3! notation support because it is deleted from
  12578. the metalink specification.
  12579. * src/Request.{h, cc}
  12580. * test/RequestTest.cc
  12581. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12582. Don't connect server before checking file integrity at startup, if
  12583. filesize and output file path are known.
  12584. * src/AbstractCommand.cc
  12585. * src/StreamFileAllocationEntry.cc
  12586. * src/Metalink2RequestGroup.cc
  12587. * src/RequestGroup.{h, cc}
  12588. * src/HttpResponseCommand.cc
  12589. * src/FtpNegotiationCommand.cc
  12590. Added DownloadFailureException. If it is thrown, RequestGroup should
  12591. halt.
  12592. * src/AbstractCommand.cc
  12593. * src/DownloadFailureException.h
  12594. * src/RequestGroup.cc
  12595. Catch RecoverableException, instead of DlAbortEx.
  12596. * src/RequestGroupMan.cc
  12597. * src/FillRequestGroupCommand.cc
  12598. * src/MetaFileUtil.cc
  12599. * src/IteratableChunkChecksumValidator.cc
  12600. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12601. getGID())
  12602. * src/CheckIntegrityCommand.cc
  12603. * src/message.h
  12604. Print gid instead of idx.
  12605. * src/RequestGroupMan.cc
  12606. Removed exception throwers declaration.
  12607. * src/DirectDiskAdaptor.{h, cc}
  12608. * src/SocketCore.{h, cc}
  12609. * src/MultiDiskAdaptor.{h, cc}
  12610. * src/HttpConnection.{h, cc}
  12611. * src/HttpResponse.{h, cc}
  12612. * src/DiskAdaptor.{h, cc}
  12613. * src/CopyDiskAdaptor.{h, cc}
  12614. * src/MultiDiskAdaptor.{h, cc}
  12615. * src/HttpHeaderProcessor.{h, cc}
  12616. * src/AbstractSingleDiskAdaptor.{h, cc}
  12617. * src/Util.{h, cc}
  12618. * test/UtilTest.cc
  12619. * src/DefaultDiskWriter.{h, cc}
  12620. * src/FtpConnection.{h, cc}
  12621. * src/AbstractDiskWriter.{h, cc}
  12622. Removed duplicate code.
  12623. * src/StreamCheckIntegrityEntry.cc
  12624. Removed unnecessary include.
  12625. * src/DiskWriter.h
  12626. Included Exception.h
  12627. * src/option_processing.cc
  12628. Included 2 files and added doc
  12629. * src/TrackerWatcherCommand.cc
  12630. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12631. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12632. Changed CheckIntegrityEntry interface so that it can define
  12633. the action when all the chunk checksums are valid.
  12634. * src/CheckIntegrityEntry.h
  12635. * src/StreamCheckIntegrityEntry.{h, cc}
  12636. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12637. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12638. to exit rather than doing seeding. So, it would be good to toggle this
  12639. behavior.
  12640. * src/CheckIntegrityCommand.cc
  12641. * src/AbstractCommand.cc
  12642. * src/RequestGroup.cc
  12643. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12644. Reflect the download length of in-flight pieces.
  12645. It makes the download length readout more precise.
  12646. * src/DefaultPieceStorage.{h, cc}
  12647. * test/DefaultPieceStorageTest.cc
  12648. * src/a2functional.h
  12649. * test/a2functionalTest.cc
  12650. Lower CPU load when --max-download-limit is used.
  12651. There is up and down in speed indicator when enabling
  12652. http-pipelining but a download goes well. I think the problem is that
  12653. because http-pipelining is enabled, DownloadCommand is created for
  12654. each segment and in its constructor, PeerStat::downloadStart() is
  12655. called. In PeerStat::downloadStart(), speed calculation object is
  12656. reseted, which makes download speed zero.
  12657. * src/DownloadCommand.cc
  12658. Rewritten using accumulate.
  12659. * src/RequestGroupMan.cc (calculateStat)
  12660. Code clearnup.
  12661. * src/FtpNegotiationCommand.cc
  12662. * src/HttpResponseCommand.cc
  12663. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12664. Fixed: Can not resume: aria2 reports download already finished.
  12665. * src/AbstractCommand.{h, cc}
  12666. * src/HttpResponseCommand.cc
  12667. * src/FtpNegotiateCommand.cc
  12668. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12669. Now a file is stored in the directory specified in .metalnk file
  12670. (file[@name]).
  12671. * src/Metalink2RequestGroup.cc
  12672. Create the directory structure when opening the file if it doesn't
  12673. exist.
  12674. * src/AbstractDiskWriter.cc
  12675. * src/Util.{h, cc}
  12676. * src/File.h
  12677. * test/UtilTest.cc
  12678. Removed file name comparison
  12679. * src/Metalink2RequestGroup.cc
  12680. * src/HttpResponseCommand.cc
  12681. Rewritten using Util::mkdirs()
  12682. * src/FileEntry.cc (setupDir)
  12683. * test/FileEntryTest.cc
  12684. Updated doc
  12685. * src/SingleFileDownloadContext.h
  12686. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12687. Now SleepCommand dispatches nextCommand when halt is requested.
  12688. It avoids a possible long wait after hitting CTRL-C.
  12689. * src/SleepCommand.{h, cc}
  12690. * src/RequestGroupAware.{h, cc}
  12691. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12692. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12693. to open listen port, then remove the port number from the tracker
  12694. request.
  12695. * src/DefaultBtAnnounce.cc
  12696. * test/DefaultBtAnnounceTest.cc
  12697. * test/MockPieceStorage.h
  12698. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12699. them more testable.
  12700. * src/DefaultBtAnnounce.{h, cc}
  12701. * src/DefaultBtContext.{h, cc}
  12702. * src/Util.{h, cc}
  12703. * test/DefaultBtAnnounceTest.cc
  12704. * test/DefaultBtContextTest.cc
  12705. * test/UtilTest.cc
  12706. Added 'B' to upload bytes readout.
  12707. * src/ConsoleStatCalc.cc
  12708. Now the listen port for BitTorrent download is opened when it is
  12709. needed.
  12710. * src/DownloadEngineFactory.cc
  12711. * src/BtSetup.{h, cc}
  12712. * src/PeerListenCommand.{h, cc}
  12713. Now an exception thrown while parsing tracker response is now logged.
  12714. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12715. called, which means no retry is made in this case, assuming a tracker
  12716. has a problem.
  12717. * src/TrackerWatcherCommand.cc
  12718. Fixed: downloading a file whose length is unkown fails.
  12719. * src/DownloadCommand.cc
  12720. Simplified prepareForNextSegment()
  12721. * src/DownloadCommand.cc
  12722. Updated
  12723. * po/POTFILES.in
  12724. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12725. Re-implemented a file listing for Metalink, which was dropped while
  12726. http/ftp/torrent integration was being implemented.
  12727. * src/MetalinkHelper.{h, cc}: New class.
  12728. * test/MetalinkHelperTest.cc
  12729. * src/main.cc
  12730. * src/Metalink2RequestGroup.cc
  12731. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12732. Added the ability to display the detailed torrent file information.
  12733. Now -S option gives not only a file listing, but also total download
  12734. length, info hash, announce URI, piece length, the number of pieces,
  12735. and mode(single or multi-torrent).
  12736. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12737. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12738. KiB)
  12739. * test/UtilTest.cc
  12740. * src/main.cc
  12741. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12742. Added ftp://USER:PASSWD@Servername automatic parsing.
  12743. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12744. _password. Recognize username and password in URI.
  12745. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12746. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12747. * src/RequestFactory.{h, cc}: Removed.
  12748. * src/AuthConfigFactory.{h, cc}: New class.
  12749. * src/FtpConnection.cc: Use AuthConfigFactory.
  12750. * src/HttpRequest.cc: Use AuthConfigFactory.
  12751. * test/HttpRequestTest.cc: Updated.
  12752. * test/RequestTest.cc: Updated.
  12753. * test/AuthConfigFactoryTest.cc: New class.
  12754. * test/RequestFactoryTest.cc: Removed.
  12755. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12756. Use RequestGroup::allDownloadFinished() to decide whether the control
  12757. file should be removed or saved.
  12758. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12759. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12760. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12761. Use File::renameTo()
  12762. * src/DefaultBtProgressInfoFile.cc
  12763. Added --no-file-allocation-limit command-line option.
  12764. * src/version_usage.cc
  12765. * src/option_processing.cc
  12766. * src/OptionHandlerFactory.cc
  12767. * src/RequestGroup.{h, cc}
  12768. * src/BtCheckIntegrityEntry.cc
  12769. * src/StreamCheckIntegrityEntry.cc
  12770. * src/prefs.h
  12771. * doc/aria2c.1.txt
  12772. * doc/aria2c.1
  12773. Now prealloc is the default value for --file-allocation option.
  12774. * src/version_usage.cc
  12775. * src/option_processing.cc
  12776. * doc/aria2c.1.txt
  12777. * doc/aria2c.1
  12778. Don't URL-encode user-agent.
  12779. * src/HttpRequest.cc
  12780. Updated translations
  12781. * po/LINGUAS: Added nl for Dutch translation.
  12782. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12783. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12784. * po/POTFILES.in: Updated.
  12785. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12786. Added the ability to recognize url-list in a torrent file.
  12787. The retrieved URLs are attached to the corresponding FileEntry.
  12788. * src/DefaultBtContext.{h, cc}
  12789. * src/FileEntry.{h, cc}
  12790. * test/DefaultBtContextTest.cc
  12791. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12792. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12793. after the download finishes.
  12794. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12795. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12796. the data smaller than block length.
  12797. A block length can be specified by constructor's argument.
  12798. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12799. Get a missing piece in the range of given FileEntry. This function is
  12800. not used in the program yet.
  12801. * src/Util.h: Added some macros.
  12802. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12803. Added HTTP/1.1 keep alive and pipelining support.
  12804. See --enable-http-keep-alive and --enable-http-pipelining option.
  12805. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12806. Segment.
  12807. * src/HttpDownloadCommand.{h, cc}
  12808. * src/OptionHandlerFactory.cc
  12809. * src/HttpConnection.{h, cc}
  12810. * src/version_usage.cc
  12811. * src/HttpInitiateConnectionCommand.cc
  12812. * src/FtpInitiateConnectionCommand.cc
  12813. * src/Segment.h
  12814. * src/HttpRequestCommand.{h, cc}
  12815. * src/option_processing.cc
  12816. * src/prefs.h
  12817. * src/HttpResponseCommand.cc
  12818. * src/SegmentMan.{h, cc}
  12819. * src/FtpNegotiateCommand.cc
  12820. * src/HttpProxyResponseCommand.cc
  12821. * src/Request.cc
  12822. * src/HttpRequest.cc
  12823. * src/DownloadCommand.cc
  12824. * test/HttpRequestTest.cc
  12825. * test/RequestTest.cc
  12826. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12827. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12828. finished.
  12829. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12830. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12831. catching it inside the method.
  12832. When no file entry is found in a metalink without querying user
  12833. preferences, throw the exception with the error message that suggests
  12834. metalink file is probably broken.
  12835. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12836. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12837. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12838. processed.
  12839. * src/RequestGroupMan.cc (removeStoppedGroup)
  12840. Added debug message.
  12841. * src/BtPostDownloadHandler.cc
  12842. * src/MetalinkPostDownloadHandler.cc
  12843. * src/PostDownloadHandler.{h, cc}
  12844. * src/RequestGroup.cc
  12845. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12846. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12847. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12848. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12849. stops and there are any unfinished or in-progress downloads.
  12850. Added the legend of "stat".
  12851. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12852. Throw exception when chunck checksum verification fails.
  12853. * src/DownloadCommand.cc (validatePieceHash): New function.
  12854. * src/PiecedSegment.{h, cc} (clear): New function.
  12855. * src/GrowSegment.{h, cc} (clear): New function.
  12856. * src/Segment.h (clear): New function.
  12857. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12858. * test/SegmentTest.cc
  12859. * test/GrowSegmentTest.cc
  12860. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12861. Do not send referer when redirected.
  12862. * src/Request.cc (redirectUrl)
  12863. * test/RequestTest.cc
  12864. * test/HttpRequestTest.cc
  12865. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12866. Implemented BitTorrent/http/ftp integrated download.
  12867. I've rewritten lots of files and now some headers have forward
  12868. class declarations to reduce compile time.
  12869. The implementation is extremely alpha stage, I recommend to use this
  12870. for testing purpose only.
  12871. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12872. Fixed the compilation error on 64bit platform.
  12873. * test/HttpHeaderProcessorTest.cc
  12874. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12875. Merged Ross's patch that fixes compilation problem in MinGW
  12876. * test/DefaultBtProgressInfoFileTest.cc
  12877. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12878. Updated fr.po by sebone
  12879. * po/fr.po
  12880. Updated man page.
  12881. * doc/aria2c.1.txt
  12882. * Release 0.11.3
  12883. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12884. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12885. failure in Metalink.
  12886. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12887. Automatically save *.aria2 control file of http/ftp download in every
  12888. 60 seconds.
  12889. * src/AutoSaveCommand.{h, cc}: New class.
  12890. * src/TimeBasedCommand.{h, cc}: New class.
  12891. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12892. Disable parameterized URI support by default. Added -P option to
  12893. enable the feature.
  12894. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12895. * src/OptionHandlerFactory.cc
  12896. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12897. Updated Japanese translation.
  12898. * po/ja.po
  12899. Updated man page.
  12900. * doc/aria2c.1.txt
  12901. * Release 0.11.3-rc
  12902. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12903. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12904. it is successful, then renamed to *.aria2.
  12905. This prevents *.aria2 file from being truncated or corrupted when
  12906. file system becomes out of space.
  12907. * src/DefaultBtProgressInfoFile.cc (save)
  12908. * src/SegmentMan.cc (save)
  12909. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12910. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12911. Reduced the fragmentation of bitfield in http/ftp download.
  12912. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12913. * test/BitfieldManTest.cc
  12914. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12915. Added the ability to disable segmented download in .metalink.
  12916. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12917. 'url' tag.
  12918. * src/MetalinkEntry.{h, cc}
  12919. * src/RequestResource.{h, cc}
  12920. * src/MetalinkRequestInfo.cc
  12921. * src/Xml2MetalinkProcessor.cc
  12922. * test/Xml2MetalinkProcessorTest.cc
  12923. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12924. Added parameterized URI support.
  12925. * src/main.cc: -Z option added.
  12926. * src/OptionHandlerFactory.cc
  12927. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12928. * src/PStringDatum.h: New class.
  12929. * src/PStringSegment.{h,cc}: New class.
  12930. * src/PStringNumLoop.h: New class.
  12931. * src/PStringSelect.h: New class.
  12932. * src/NumberDecorator.h: New class.
  12933. * src/FixedWidthNumberDecorator.h: New class.
  12934. * src/AlphaNumberDecorator.h: New class.
  12935. * src/PStringVisitor.h: New class.
  12936. * src/PStringBuildVisitor.{h,cc}: New class.
  12937. * src/ParameterizedStringParser.{h,cc}: New class.
  12938. * src/Util.{h,cc}
  12939. (isNumber): New function.
  12940. (isLowercase): New function.
  12941. (isUppercase): New function.
  12942. (alphaToNum): New function.
  12943. * test/ParameterizedStringParserTest.cc: New class.
  12944. * test/AlphaNumberDecoratorTest.cc: New class.
  12945. * test/PStringBuildVisitorTest.cc: New class.
  12946. * test/UtilTest.cc
  12947. (testIsNumber): New function.
  12948. (testIsLowercase): New function.
  12949. (testIsUppercase): New function.
  12950. (testAlphaToNum): New function.
  12951. Added '\n' after the error message
  12952. * src/RequestInfo.h (printDownloadAbortMessage)
  12953. Added auto file renaming feature in http(s)/ftp download.
  12954. * src/main.cc: Added --auto-file-renaming command-line option.
  12955. * src/OptionHandlerFactory.cc
  12956. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12957. * src/RequestGroup.{h, cc}
  12958. (shouldCancelDownloadForSafety): Rewritten
  12959. (tryAutoFileRenaming): New function.
  12960. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12961. * src/HttpResponseCommand.cc
  12962. (executeInternal): Removed the call to RequestGroupMan::
  12963. isSameFileBeingDownloaded()
  12964. * src/FtpNegotiateCommand.cc
  12965. (recvSize): Removed the call to RequestGroupMan::
  12966. isSameFileBeingDownloaded()
  12967. * test/RequestGroupTest.cc: New class.
  12968. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12969. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12970. IO.
  12971. * src/DefaultBtProgressInfoFile.cc
  12972. * src/MetaFileUtil.cc
  12973. * src/SimpleLogger.cc
  12974. * src/SegmentMan.cc
  12975. * src/Util.cc
  12976. * src/Platform.cc
  12977. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12978. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12979. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12980. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12981. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12982. Fixed the bug that prevents file allocation is not done when
  12983. dowloading multi-torrent file.
  12984. * src/AbstractDiskWriter.cc (openFile)
  12985. Increase the maximum number of -j option from 15 to 45.
  12986. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12987. Added fr.po, thanks to Charles Landemaine.
  12988. * po/fr.po
  12989. * po/LINGUAS
  12990. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12991. gcc 3.4.4 support:
  12992. * src/DefaultBtContext.cc: int32_t -> int
  12993. * src/main.cc: int -> int32_t, int32_t -> int
  12994. * src/messageDigest.h: uint32_t -> unsigned int
  12995. * src/NameResolver.h: int32_t -> int
  12996. * src/PeerConnection.cc: int -> int32_t
  12997. * src/SpeedCalc.cc: int32_t -> int
  12998. * src/TrackerUpdateCommand.h: int -> int32_t
  12999. * src/Util.cc: int32_t -> int
  13000. * src/Util.h: int32_t -> int
  13001. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  13002. * test/AnnounceListTest.cc: int -> int32_t
  13003. * test/ChunkedEncodingTest.cc: int -> int32_t
  13004. * test/DataTest.cc: int -> int32_t
  13005. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  13006. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  13007. * test/DefaultPieceStorageTest.cc: int -> int32_t
  13008. * test/FeatureConfigTest.cc: int -> int32_t
  13009. * test/MetalinkEntryTest.cc: int -> int32_t
  13010. * test/MockBtRequestFactory.h: int -> int32_t
  13011. * test/MockPieceStorage.h: int -> int32_t
  13012. * test/OptionTest.cc: int -> int32_t
  13013. * test/RequestTest.cc: int -> int32_t
  13014. * test/SegmentManTest.cc: int -> int32_t
  13015. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  13016. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  13017. Move sleep functions to Util class:
  13018. * src/Util.cc
  13019. (sleep): New function.
  13020. (usleep): New function.
  13021. * src/DownloadCommand.cc: sleep -> Util::sleep
  13022. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  13023. MinGW build enhancements. The following files are added:
  13024. * src/timegm.{c,h}
  13025. Changes to support the above new files:
  13026. * configure.ac
  13027. * src/Makefile.am
  13028. * src/a2time.h
  13029. * src/Util.cc:
  13030. * src/strptime.c: Added support for %Z option.
  13031. Fixed MinGW non-blocking bug.
  13032. * src/SocketCore.cc
  13033. * src/HttpRequestCommand.cc
  13034. Miscellenous build fixes/enhancements.
  13035. * configure.ac: Added summary report.
  13036. * src/Platform.h: Tweaked #include's.
  13037. * src/a2netcompat.h: Tweaked #include's.
  13038. * src/strptime.h: Tweaked #include's.
  13039. * src/gai_strerror.c: Tweaked #include's.
  13040. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  13041. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  13042. * src/gettimeofday.h: Added HAVE_CONFIG_H
  13043. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13044. Increased the initial connection size in BitTorrent download to 40.
  13045. * src/BtRuntime.h
  13046. Added the usage message of --peer-id-prefix option.
  13047. * src/main.cc
  13048. * Release 0.11.2
  13049. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13050. MessageDigestHelper is introduced in order to simplify the use
  13051. of message digest. Removed repeated code.
  13052. The message digest algorithm is now specified by string, like "sha1",
  13053. "md5".
  13054. * src/messageDigest.{h, cc}
  13055. * src/MessageDigestHelper.{h, cc}: New class.
  13056. * src/DefaultPieceStorage.cc
  13057. * src/DefaultBtContext.{h, cc}
  13058. (computeFastSet): New function.
  13059. (setInfoHash): Added for unit testing.
  13060. (setNumPieces): Added for unit testing.
  13061. * src/DefaultBtInteractive.cc
  13062. * src/BtPieceMessage.cc
  13063. * src/Peer.cc
  13064. * src/Checksum.h
  13065. * src/message.h
  13066. * src/IteratableChecksumValidator.h
  13067. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  13068. inside it.
  13069. * src/SegmentMan.{h, cc}
  13070. (checkIntegrity): Removed.
  13071. * src/IteratableChunkChecksumValidator.{h, cc}
  13072. * src/Util.h
  13073. (sha1Sum): Removed.
  13074. (simpleMessageDigest): Removed.
  13075. (fileChecksum): Removed.
  13076. (computeFastSet): Removed.
  13077. * src/ShaVisitor.cc
  13078. * src/ChunkChecksum.h
  13079. * src/DownloadCommand.cc
  13080. Removed messageDigest virtual functions.
  13081. * src/MultiDiskAdaptor.{h, cc}
  13082. * src/DiskAdaptor.h
  13083. * src/ByteArrayDiskWriter.h
  13084. * src/DiskWriter.h
  13085. * src/DiskAdaptorWriter.h
  13086. * src/AbstractSingleDiskAdaptor.{h, cc}
  13087. * src/AbstractDiskWriter.{h, cc}
  13088. Fixed comilation error when message digest is disabled.
  13089. * src/MetalinkEntry.{h, cc}
  13090. * src/MetalinkRequestInfo.cc
  13091. Removed srandom and random.
  13092. * src/SimpleRandomizer.h
  13093. Added size() virtual function to DiskAdaptor
  13094. * src/MultiDiskAdaptor.h
  13095. Fixed the bug that causes that files are not opened correctly in
  13096. multi-file torrent.
  13097. * src/TorrentRequestInfo.cc
  13098. * src/MultiDiskAdaptor.cc
  13099. Added SHA256 support
  13100. * src/messageDigest.cc
  13101. * src/Xml2MetalinkProcessor.cc
  13102. Show supported message digest algorithms
  13103. * src/main.cc
  13104. Updated contact info.
  13105. * src/main.cc
  13106. Applied Ross's patch
  13107. * src/a2netcompat.h
  13108. * src/main.cc
  13109. Fixed the bug that prevents a remote metalink from not being processed
  13110. even if '-o foo.metalink' is specified.
  13111. * src/MetalinkRequestInfo.cc
  13112. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13113. Merged Dan's patch:
  13114. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  13115. Use va_copy to avoid core dump on amd64:
  13116. * src/SimpleLogger.cc
  13117. Updated contact info.
  13118. * src/main.cc
  13119. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  13120. digest is not available.
  13121. * src/MetalinkEntry.h
  13122. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13123. Make a2netcompat.h include a2io.h to fix compilation error:
  13124. * src/a2netcompat.h
  13125. * src/SocketCore.cc: Removed include of a2io.h
  13126. * src/Util.cc: Removed include of a2io.h
  13127. Gather time related functions to a2time.h:
  13128. * src/a2time.h: New file.
  13129. * src/DefaultPeerStorage.cc
  13130. * src/SimpleLogger.cc
  13131. * src/Util.{h, cc}
  13132. * src/SimpleRandomizer.h
  13133. * src/TimeA2.{h,cc}
  13134. * src/DownloadCommand.cc
  13135. * src/main.cc
  13136. Removed #ifdef __MINGW32__ since gai_strerror is included in
  13137. a2netcompat.h:
  13138. * src/NameResolver.cc
  13139. Fixed compilation error without openssl:
  13140. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  13141. Added default block to suppress compiler warnings:
  13142. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  13143. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  13144. MinGW build enhancements. The following files are added:
  13145. * src/gai_strerror.{c,h}
  13146. * src/gettimeofday.{c,h}
  13147. Changes to support the above new files:
  13148. * configure.ac
  13149. * src/Makefile.am
  13150. * src/a2netcompat.h
  13151. * src/TimeA2.cc
  13152. * src/DefaultPeerStorage.cc
  13153. * src/NameResolver.cc: removed mingw_strerror() function.
  13154. * src/SocketCore.cc: removed mingw_strerror() function.
  13155. Miscellaneous MinGW build fixes.
  13156. * src/a2io.h: Use _lseeki64() instead of lseek()
  13157. * src/common.h
  13158. * src/DefaultFileAllocator.cc
  13159. * src/GlowFileAllocator.cc
  13160. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  13161. * src/NameResolver.cc
  13162. (callback): Changed int32_t to int.
  13163. (resolve): Changed int32_t to int.
  13164. * src/Platform.cc
  13165. * src/Platform.h
  13166. * test/MultiDiskWriterTest.cc
  13167. * test/PeerMessageUtilTest.cc
  13168. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  13169. Other enhancements and fixes.
  13170. * src/HttpRequestCommand.cc
  13171. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  13172. * src/SocketCore.cc:
  13173. (error): New function to abstract errno/WSAGetLastError().
  13174. (errorMsg): New function to abstract errno/WSAGetLastError().
  13175. (initiateSecureConnection): Added more detailed error reporting.
  13176. * src/SocketCore.h: Added private variable blocking, to allow
  13177. proper handling of OpenSSL psuedo-errors.
  13178. * src/message.h
  13179. (EX_SSL_INIT_FAILURE)
  13180. (EX_SSL_IO_ERROR)
  13181. (EX_SSL_PROTOCOL_ERROR)
  13182. (EX_SSL_UNKNOWN_ERROR)
  13183. (EX_SSL_CONNECT_ERROR)
  13184. (EX_SOCKET_BLOCKING)
  13185. (EX_SOCKET_NONBLOCKING)
  13186. (EX_SOCKET_UNKNOWN_ERROR)
  13187. * src/Util.cc
  13188. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  13189. reserved name.
  13190. (httpGMT): Fixed typo.
  13191. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13192. Merged Ross's win32 patch(manually)
  13193. In the course of merging, following files are added.
  13194. * src/strptime.{h,c}
  13195. * src/libgen.{h,c}
  13196. * src/inet_aton.{h,c}
  13197. * src/Platform.{h,cc}
  13198. * src/localtime_r.{h,c}
  13199. * src/getaddrinfo.{h,c}
  13200. I've gethered network related things, and put them to following file:
  13201. * src/a2netcompat.h
  13202. Also io related things are put to following file:
  13203. * src/a2io.h
  13204. Changed %lld to %s because mingw32 doesn't recognize %lld.
  13205. * src/message.h
  13206. (MSG_ALLOCATION_COMPLETED)
  13207. (EX_TOO_LARGE_FILE)
  13208. (EX_SIZE_MISMATCH)
  13209. (EX_FILE_OFFSET_OUT_OF_RANGE)
  13210. (EX_INVALID_CHUNK_CHECKSUM)
  13211. (EX_INVALID_RANGE_HEADER)
  13212. * src/FileAllocationCommand.cc
  13213. * src/HttpResponse.cc
  13214. * src/RequestGroup.cc
  13215. * src/MultiDiskAdaptor.cc
  13216. * src/OptionHandlerImpl.h
  13217. * src/HttpResponseCommand.cc
  13218. * src/FtpNegotiateCommand.cc
  13219. * src/IteratableChecksumValidator.cc
  13220. * src/SegmentMan.cc
  13221. * src/ChunkChecksumValidator.cc
  13222. Added Randomizer::getRandomNumber(long int)
  13223. * src/Randomizer.h (getRandomNumber)
  13224. * src/SimpleRandomizer.h (getRandomNumber)
  13225. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  13226. * src/Util.cc (randomAlpha): Use this new function.
  13227. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13228. Converted int's to in32_t. long long int's are also converted to
  13229. int64_t
  13230. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13231. Fixed the bug that prevents cookies from being sent to the server
  13232. if the domain of cookie is FQDN and starts with ".".
  13233. * src/Cookie.cc (match)
  13234. To add the ability to change peer id.
  13235. * src/DefaultBtContext.h
  13236. (_peerIdPrefix): New variable
  13237. (setPeerIdPrefix): New function.
  13238. * src/torrentRequestInfo.cc
  13239. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  13240. DefaultBtContext.
  13241. * src/main.cc (main): Added peer-id-prefix command-line option.
  13242. The usage message is not added yet.
  13243. * src/DefaultBtContext.cc
  13244. (generatePeerId): Use _peerIdPrefix.
  13245. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  13246. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13247. Fixed the bug that prevents filename in content-disposition from
  13248. being retrieved when filename is not quoted.
  13249. * src/Util.cc (getContentDispositionFilename)
  13250. Fixed the bug that causes infinate loop and memory leak when file open
  13251. operation failed.
  13252. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  13253. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13254. Fixed the bug that causes segfault when all URIs specified are
  13255. unsupported.
  13256. * src/RequestGroupMan.cc (getInitialCommands)
  13257. Check if RequestGroup::createNextCommand() returns empty list of
  13258. commands.
  13259. * src/RequestGroup.cc (createNextCommand)
  13260. Change log level from info to error so that users can notice that
  13261. an error occurred.
  13262. Fixed the bug that causes segfault when a zero-sized file is
  13263. downloaded.
  13264. * src/BitfieldMan.cc (isAllBitSet)
  13265. Return true if bitfieldLength is 0.
  13266. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13267. * src/main.cc
  13268. (showUsage): Added 3 usage examples for metalink download.
  13269. Replace MetalinkChunkChecksum with ChunkChecksum.
  13270. * src/MetalinkChunkChecksum.h: Removed.
  13271. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  13272. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  13273. * src/Xml2MetalinkProcessor.cc
  13274. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  13275. * src/MetalinkRequestInfo.cc (execute)
  13276. * Release 0.11.1
  13277. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13278. Reads URIs from stdin when "-i -" is specified.
  13279. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  13280. * src/UriListParser.h, src/UriListParser.cc: New class.
  13281. * src/StreamUriListParser.h: New class.
  13282. * src/FileUriListParser.h: New class.
  13283. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  13284. instead of UriFileListParser.
  13285. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13286. Made console readout more readable.
  13287. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13288. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13289. Fix the bug that causes -s option not to work.
  13290. * src/main.cc (main)
  13291. * src/a2algo.h: New file.
  13292. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13293. Create directory structure specified in metalink file.
  13294. * src/RequestGroup.h, src/RequestGroup.cc
  13295. (initAndOpenFile): Create a directory to store files if it does not
  13296. exist.
  13297. (getDir): New function.
  13298. Added ETA and download speed for an individual file to readout.
  13299. * src/ConsoleDownloadEngine.cc (sendStatistics)
  13300. * src/RequestGroup.h
  13301. (calculateDownloadSpeed): New function.
  13302. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13303. Made -S option work with metalink file and provided selective download
  13304. to metalink.
  13305. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  13306. (filename): Removed.
  13307. (file): New variable.
  13308. (size): Removed.
  13309. (operator=): Updated.
  13310. (getPath): New function.
  13311. (getLength): New function.
  13312. (toFileEntry): New function.
  13313. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  13314. (execute): Use toStream.
  13315. (showFileEntry): Removed.
  13316. * src/MetalinkRequestInfo.h
  13317. (targetFiles): New variable.
  13318. (setTargetFiles): New variable.
  13319. * src/MetalinkRequestInfo.cc
  13320. (execute): Added the ability to print file information included in
  13321. a metalink file.
  13322. Added selective download mode to metalink.
  13323. * src/main.cc
  13324. (showUsage): Updated to denote that -S and --select-file options are
  13325. applicable to metalink.
  13326. * src/FileEntry.h
  13327. (operator=): New function.
  13328. (getBasename): New function.
  13329. (getDirname): New function.
  13330. * src/Util.h, src/Util.cc
  13331. (toStream): New function.
  13332. * src/Xml2MetalinkProcessor.cc: Updated.
  13333. Made aria2 work with metalink with directory structure.
  13334. * src/File.h, src/File.cc
  13335. (getBasename): New function.
  13336. (getDirname): New function.
  13337. * src/RequestGroup.h, src/RequestGroup.cc
  13338. (_topDir): New variable.
  13339. (setTopDir): New function.
  13340. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  13341. Rewrote HTTP header parsing with stringstream.
  13342. * src/HttpConnection.h, src/HttpConnection.cc
  13343. (HttpRequestEntry): New class.
  13344. (headerBuf): Removed.
  13345. (headerBufLength): Removed.
  13346. (outstandingHttpRequests): Now its element type is
  13347. HttpRequestEntryHandle.
  13348. (findEndOfHeader): Removed.
  13349. (receiveResponse): Rewritten.
  13350. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  13351. Updated doc for -j option to notice that it should be used with -i
  13352. option.
  13353. * src/main.cc (showUsage)
  13354. Removed unused classes.
  13355. * src/RequestInfo.h
  13356. (FileInfo): Removed.
  13357. (checksum): Removed.
  13358. (fileInfo): Removed.
  13359. (setChecksum): Removed.
  13360. (getChecksum): Removed.
  13361. (getFileInfo): Removed.
  13362. Use ISO units.
  13363. * src/ConsoleDownloadEngine.cc
  13364. * src/TorrentConsoleDownloadEngine.cc
  13365. * src/Util.cc (abbrevSize)
  13366. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13367. Added the default listening ports to the help message.
  13368. * src/main.cc (showUsage)
  13369. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13370. Reduce the number of calls to gettimeofday to lower CPU load.
  13371. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  13372. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  13373. * src/Peer.h (calculateUploadSpeed): New function.
  13374. (calculateDownloadSpeed): New function.
  13375. * src/DefaultPeerStorage.cc
  13376. (CalculateStat): Added _now variable.
  13377. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  13378. and Peer::calculateUploadSpeed(const struct timeval&)
  13379. Drop connection if no request or piece message is exchanged in
  13380. a certain interval.
  13381. * src/DefaultBtInteractive.h
  13382. (btRuntime): New variable.
  13383. (inactiveCheckPoint): New variable.
  13384. (checkActiveInteraction): New function.
  13385. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  13386. request or piece message is received.
  13387. (checkActiveInteraction): New function.
  13388. (doInteractionProcessing): Call checkActiveInteraction.
  13389. Fixed the bug that causes remote Metalink and Torrent files are not
  13390. processed.
  13391. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  13392. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13393. Changed format of log file.
  13394. * src/SimpleLogger.cc
  13395. * Release 0.11.0
  13396. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13397. * src/AbstractCommand.cc
  13398. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  13399. MSG_MAX_TRY from error to info.
  13400. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  13401. * src/message.h
  13402. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  13403. (MSG_DOWNLOAD_ABORTED): Added %s.
  13404. (MSG_RESTARTING_DOWNLOAD): Added %s.
  13405. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  13406. * src/PeerAbstractCommand.cc
  13407. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  13408. * src/Request.h
  13409. (cookieBox): Made ShardHandle.
  13410. * src/RequestGroup.h, src/RequestGroup.cc
  13411. (createNextCommandWithAdj): New function.
  13412. * src/FileAllocationCommand.cc
  13413. (executeInternal): Use createNextCommandWithAdj().
  13414. * src/CheckIntegrityCommand.cc
  13415. (executeInternal): Use createNextCommandWithAdj().
  13416. Added --load-cookies command-option.
  13417. * src/OptionHandlerFactory.cc
  13418. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13419. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13420. Now aria2 can handle cookie's expiration date.
  13421. * src/Cookie.h (expires): Changed its type to time_t.
  13422. * src/main.cc: Added --load-cookies command-line option.
  13423. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13424. * src/Util.h, src/Util.cc (httpGMT): New function.
  13425. * src/Request.cc (Request): Initialize cookieBox using
  13426. CookieBoxFactory.
  13427. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13428. * src/CookieParser.h, src/CookieParser.cc: New class.
  13429. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13430. * src/HttpResponseCommand.cc
  13431. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13432. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13433. download.
  13434. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13435. Added -j command-line option.
  13436. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13437. * src/main.cc
  13438. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13439. Rewritten using stringstream.
  13440. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13441. Rewritten using stringstream.
  13442. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13443. Make download size shown in MB, KB.
  13444. * src/ConsoleDownloadEngine.h (sendStatistics)
  13445. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13446. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13447. Accept incoming connections if download rate is low.
  13448. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13449. (_lowestSpeedLimit): New variable.
  13450. (setLowestSpeedLimit): New function.
  13451. (execute): Accept incoming connections if download rate is low.
  13452. MAX_PEERS is ignored in this case.
  13453. Disable PREF_OUT in multiple concurrent download:
  13454. * src/RequestGroup.h, src/RequestGroup.cc
  13455. (setUserDefinedFilename): New function.
  13456. * src/DownloadEngineFactory.cc
  13457. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13458. concurrent download.
  13459. * src/DefaultSegmentManFactory.cc
  13460. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13461. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13462. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13463. Added its overloaded method.
  13464. * src/RequestGroup.h
  13465. (_numConcurrentCommand): New variable.
  13466. (setNumConcurrentCommand): New function.
  13467. * src/RequestGroup.cc
  13468. Abort download if same file is being downloaded concurrently.
  13469. * src/RequestGroup.h, src/RequestGroupMan.cc
  13470. (isSameFileBeingDownloaded): New function.
  13471. * src/HttpResponseCommand.cc (executeInternal)
  13472. * src/FtpNegotiateCommand.cc (recvSize)
  13473. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13474. * main.cc: Added help message for -i option.
  13475. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13476. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13477. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13478. * src/MetalinkEntry.h
  13479. (checksum): Changed to ChecksumHandle
  13480. * src/MetalinkRequestInfo.cc
  13481. (checksum): Changed to ChecksumHandle
  13482. * src/File.cc
  13483. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13484. * src/common.h
  13485. (DIR_OPEN_MODE): New definition
  13486. * src/RequestGroup.cc
  13487. (prepareForNextAction): Added an argument.
  13488. * src/message.h
  13489. (MSG_GOOD_CHECKSUM): New definition
  13490. (MSG_BAD_CHECKSUM): New definition
  13491. * src/HttpResponseCommand.cc
  13492. (handleDefaultEncoding): Continue download sequence in new
  13493. non-segmented download.
  13494. * src/FileAllocationEntry.h
  13495. (_nextDownloadCommand): New variable.
  13496. * src/DownloadCommand.cc
  13497. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13498. available.
  13499. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13500. * src/IteratableChecksumValidator.h,
  13501. src/IteratableChecksumValidator.cc: New class.
  13502. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13503. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13504. Change file mode to 666:
  13505. * src/common.h (OPEN_MODE): New definition.
  13506. * src/File.cc
  13507. * src/Util.cc
  13508. * src/Directry.cc
  13509. * src/AbstractDiskWriter.cc
  13510. Change the level of log message "download aborted" to debug:
  13511. * src/PeerAbstractCommand.cc (execute)
  13512. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13513. * src/TrackerWatcherCommand.cc
  13514. (createCommand): Sleep some seconds after request failed.
  13515. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13516. then abort tracker request.
  13517. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13518. * Added the simultaneous download feature.
  13519. * src/main.cc: Print "Exception caught: " when exception is caught.
  13520. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13521. * src/ActivePeerConnectionCommand.cc
  13522. * src/PeerInteractionCommand.cc
  13523. * src/BtRuntime.h
  13524. (cuidCounter): Removed.
  13525. (getNewCuid): Removed.
  13526. * src/DownloadEngineFactory.cc
  13527. * src/PeerListenCommand.cc
  13528. * src/TrackerUpdateCommand.cc
  13529. * src/PeerInitiateConnectionCommand.cc
  13530. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13531. * src/PeerAbstractCommand.cc
  13532. (onAbort): Call PeerStorage::returnPeer()
  13533. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13534. (incomingPeers): New variable.
  13535. (addIncomingPeer): New function.
  13536. (returnPeer): New function.
  13537. (onErasingPeer): New function.
  13538. (addPeer): push_back -> push_front
  13539. (getActivePeers): Rewritten.
  13540. (calculateStat): Rewritten.
  13541. * src/PeerStorage.h
  13542. (TransferStat::copy): New function.
  13543. (TransferStat::TransferStat): New function.
  13544. (TransferStat::operator=): New function.
  13545. (addIncomingPeer): New function.
  13546. (returnPeer): New function.
  13547. * src/PeerListenCommand.cc
  13548. (execute): Use PeerStorage::addIncomingPeer() instead of
  13549. Peer::addPeer().
  13550. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13551. Connect to a peer actively when download speed is lower than specified
  13552. speed in torrent download:
  13553. * src/ActivePeerConnectionCommand.h: New class.
  13554. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13555. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13556. * src/main.cc: Fixed the bug that prevents download if .netrc
  13557. doesn't exist.
  13558. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13559. To cache resolved hostname:
  13560. * src/AbstractCommand.h, src/AbstractCommand.cc
  13561. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13562. Added dns cache.
  13563. * src/FtpInitiateConnectionCommand.cc
  13564. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13565. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13566. NameResolver working without ares.
  13567. * src/TorrentRequestInfo.cc
  13568. (execute): Don't cache dns in torrent download.
  13569. * src/HttpInitiateConnectionCommand.cc
  13570. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13571. * src/DNSCache.h: New class.
  13572. * src/UrlRequestInfo.cc
  13573. (execute): Use dns cache.
  13574. In http request, suppress port number in http request header if port
  13575. is 80 or 443:
  13576. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13577. request header if port is 80 or 443.
  13578. (createProxyRequest): Allways send port number.
  13579. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13580. To add the command-line option which disables netrc support:
  13581. * src/OptionHandlerFactory.cc
  13582. (createOptionHandlers): Added PREF_NO_NETRC.
  13583. * src/main.cc: Added -n option.
  13584. * src/prefs.h (PREF_NO_NETRC): New definition.
  13585. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13586. V_TRUE.
  13587. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13588. is V_FALSE. This may get configurable in the future release.
  13589. To clear peer's error status by time basis:
  13590. * src/PeerAbstractCommand.cc
  13591. (onAbort): Call Peer::startBadCondition().
  13592. * src/Peer.h, src/Peer.cc
  13593. (error): Removed.
  13594. (_badConditionStartTime): New variable.
  13595. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13596. (startBadCondition): New function.
  13597. (isGood): New function.
  13598. * src/DefaultPeerStorage.cc
  13599. (addPeer): Use Peer::isGood().
  13600. (FindFinePeer): Use Peer::isGood().
  13601. Always include port number in http request header:
  13602. * src/HttpRequest.cc (getHostText): Always include port number in
  13603. http request header.
  13604. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13605. To the ability to read options from a config file:
  13606. * src/main.cc: Command-line parameter validation is delegated to
  13607. OptionHandler class.
  13608. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13609. * src/Option.h, src/Option.cc (clear): New function.
  13610. * src/OptionParser.h, src/OptionParser.cc: New class.
  13611. * src/OptionHandler.h: New class.
  13612. * src/NameMatchOptionHandler.h: New class.
  13613. * src/OptionHandlerImpl.h: New classes.
  13614. * src/prefs.h: '_' -> '-'
  13615. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13616. (FTP_PASV): New definition.
  13617. * src/Util.h, src/Util.cc (getRealSize): New function.
  13618. To disable netrc support if .netrc file does not have correct
  13619. permissions:
  13620. * src/File.h, src/File.cc (mode): New function.
  13621. To prevent confidential information to be logged:
  13622. * src/HttpConnection.h, src/HttpConnection.cc
  13623. (eraseConfidentialInfo): New function.
  13624. (sendRequest): Call eraseConfidentialInfo().
  13625. (sendProxyRequest): Call eraseConfidentialInfo().
  13626. * src/main.cc: Validate permissions of .netrc file.
  13627. To add --user-agent command-line option:
  13628. * src/main.cc: Added new command line option: --user-agent
  13629. * src/prefs.h (PREF_USER_AGENT): New definition.
  13630. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13631. parameter to HttpRequest object.
  13632. * src/AbstractProxyRequestCommand.cc
  13633. (executeInternal): Set user-agent option parameter to HttpRequest
  13634. object.
  13635. Marged the patches from Dan Fandrich.
  13636. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13637. Use filename and size from Metalink file instead of sending HEAD
  13638. request:
  13639. * src/UrlRequestInfo.h
  13640. (_filename): New variable.
  13641. (_totalLength): New variable.
  13642. (setTotalLength): New variable.
  13643. (setFilename): New variable.
  13644. * src/MetalinkRequestInfo.cc
  13645. (execute): Set filename and size to UrlRequestInfo
  13646. * src/UrlRequestInfo.cc
  13647. (execute): Use filename and size from Metalink instead of seding
  13648. HEAD request to servers.
  13649. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13650. To add the ability to resume downloading a partially downloaded file
  13651. which is downloaded from the beginning:
  13652. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13653. takes this role.
  13654. * src/main.cc: Added -c option.
  13655. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13656. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13657. * src/prefs.h (PREF_CONTINUE): New definition.
  13658. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13659. * src/DefaultDiskWriter.cc
  13660. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13661. * src/AbstractDiskWriter.h
  13662. (glowFileAllocator): New variable.
  13663. * src/AbstractDiskWriter.cc
  13664. (openExistingFile): Now preallocate file space from the end of the
  13665. existing file if totalLength argument is specified and grater than 0.
  13666. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13667. to download exists in local, continue the download of the file.
  13668. --allow-overwrite=true is assumed in this context.
  13669. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13670. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13671. Throw exception if --check-integrity=true is specified but chunk
  13672. checksums are not provided:
  13673. * src/UrlRequestInfo.cc
  13674. Do not print URLs to stdout:
  13675. * src/UrlRequestInfo.cc
  13676. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13677. * src/Request.h: Use AuthResolver to get authentication information.
  13678. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13679. set to RequestFactory object.
  13680. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13681. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13682. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13683. create Request object.
  13684. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13685. To integrate Netrc into exsiting classes:
  13686. * src/Request.h
  13687. (_userDefinedAuthConfig): New variable.
  13688. (findNetrcAuthenticator): New function.
  13689. (segment): Removed.
  13690. (setUserDefinedAuthConfig): New function.
  13691. (resolveHttpAuthConfigItem): New function.
  13692. (resolveFtpAuthConfigItem): New function.
  13693. (resolveHttpProxyAuthConfigItem): New function.
  13694. * src/HttpRequest.h
  13695. (authConfig): Removed.
  13696. (proxyAuthConfig): Removed.
  13697. (setAuthConfig): Removed.
  13698. (setProxyAuthConfig): Removed.
  13699. * src/UrlRequest.h
  13700. (getHeadResult): Added a parameter: authConfigHandle
  13701. * src/common.h
  13702. (SingletonHolder.h): New include.
  13703. * src/main.cc
  13704. (Netrc.h): New include.
  13705. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13706. Added initial value of PREF_NETRC_PATH.
  13707. Added the initialization of netrc.
  13708. * src/AuthConfig.h: New class.
  13709. * src/prefs.h
  13710. (PREF_NETRC_PATH): New definition.
  13711. * src/HttpAuthConfig.h: Removed.
  13712. * src/Netrc.cc
  13713. (getRequiredNextToken): New function.
  13714. (skipMacdef): New function.
  13715. (parse): Rewritten.
  13716. * src/Netrc.h
  13717. (getRequiredNextToken): New function.
  13718. (skipMacdef): New function.
  13719. * src/Util.h, src/Util.cc
  13720. (getHomeDir): New function.
  13721. * src/TrackerWatcherComand.cc
  13722. (createRequestCommand): Use AuthConfig.
  13723. * src/FtpConnection.cc
  13724. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13725. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13726. * src/Request.cc
  13727. (findNetrcAuthenticator): New function.
  13728. (resolveHttpAuthConfigItem): New function.
  13729. (resolveFtpAuthConfigItem): New function.
  13730. (resolveHttpProxyAuthConfigItem): New function.
  13731. * src/UrlRequestInfo.cc: Use AuthConfig.
  13732. * src/HttpRequest.cc
  13733. (createRequest): Use authConfig.
  13734. (getProxyAuthString): Use authConfig.
  13735. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13736. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13737. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13738. To reduce overhead to find commands whose socket is either
  13739. readable or writable in the download engine loop:
  13740. * src/Command.h, src/Command.cc
  13741. (STATUS): New enum.
  13742. (status): New variable.
  13743. (statusMatch): New function.
  13744. (setStatusActive): New function.
  13745. (setStatusInactive): New function.
  13746. * src/DownloadEngine.h, src/DownloadEngine.cc
  13747. (executeCommand): New function.
  13748. (run): Simplified.
  13749. (waitData): Call Command::setStatusActive() when command's socket is
  13750. readable or writable.
  13751. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13752. To handle Segment as SegmentHandle:
  13753. * src/AbstractCommand.cc (execute): Rewritten.
  13754. * src/SegmentMan.h: Segment -> SegmentHandle
  13755. Introducded HttpResponse class, HttpRequest class to improve code
  13756. extensiveness and make it clear:
  13757. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13758. HttpResponse class.
  13759. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13760. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13761. * src/HttpConnection.cc: Contruction of http request were moved to
  13762. HttpRequest class.
  13763. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13764. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13765. * src/HttpAuthConfig.h: New class.
  13766. * src/Range.h: New class.
  13767. To make FtpTunnel{Request, Response}Command and
  13768. HttpProxy{Request, Response}Command derived from
  13769. AbstractProxy{Request, Response}Command:
  13770. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13771. Derived from AbstractProxyRequestCommand class.
  13772. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13773. Derived from AbstractProxyResponseCommand class.
  13774. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13775. Derived from AbstractProxyRequestCommand class.
  13776. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13777. Derived from AbstractProxyResponseCommand class.
  13778. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13779. : New class.
  13780. * src/AbstractProxyResponseCommand.h,
  13781. src/AbstractProxyResponseCommand.cc: New class.
  13782. To add netrc support:
  13783. * src/Netrc.h, src/Netrc.cc: New class.
  13784. * src/Util.h, src/Util.cc (split): New function.
  13785. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13786. "Content-Range" header instead of "Range" header.
  13787. * src/HttpHeader.h
  13788. (getStatus): Removed.
  13789. (setStatus): Removed.
  13790. * src/Segment.h
  13791. (getPositionToWrite): New function.
  13792. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13793. * src/HttpHeader.h
  13794. (Range.h): New include.
  13795. (status): New variable.
  13796. (HttpHeader): Initialized status with 0.
  13797. (getStatus): New function.
  13798. (setStatus): New function.
  13799. (getRange): New function.
  13800. (HttpHeaderHandle): New function.
  13801. * src/HttpHeader.cc
  13802. (getRange): New function.
  13803. * src/Request.h
  13804. (RequestWeakHandle): New definition.
  13805. * src/HttpConnection.h
  13806. (HttpConnectionHandle): New type definition.
  13807. * src/HttpConnection.cc
  13808. (receiveResponse): Set HTTP status to headers.
  13809. * src/main.cc
  13810. (showUsage): Fixed typo.
  13811. * src/Segment.h
  13812. (SegmentHandle): New type definition.
  13813. * src/BitfieldMan.h
  13814. (getMissingUnusedLength): New function.
  13815. * src/BitfieldMan.cc
  13816. (getMissingUnusedLength): New function.
  13817. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13818. To fix static initialization order problem:
  13819. * src/BitfieldManFactory.h
  13820. (defaultRandomizer): Removed.
  13821. (factory): New variable.
  13822. (getNewFactory): Removed.
  13823. (getFactoryInstance): New function.
  13824. (setDefaultRandomizer): Rewritten.
  13825. (getDefaultRandomizer): Rewritten.
  13826. * src/BitfieldManFactory.cc
  13827. (defaultRandomizer): Removed.
  13828. (factory): Initialized to 0.
  13829. (BitfieldManFactory): Initialized randomizer to 0.
  13830. * src/DefaultPieceStorage.cc
  13831. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13832. * src/Peer.cc
  13833. (Peer): getNewFactory() -> getFactoryInstance()
  13834. * src/SegmentMan.cc
  13835. (initBitfield): getNewFactory() -> getFactoryInstance()
  13836. * src/Piece.cc
  13837. (Piece): getNewFactory() -> getFactoryInstance()
  13838. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13839. To fix the bug that causes crash on Max OS X:
  13840. * src/SimpleRandomizer.h
  13841. (getInstance): Create new instance if the static variable is null.
  13842. * src/SimpleRandomizer.cc
  13843. (randomizer): Initialized to 0.
  13844. * src/BitfieldManFactory.h
  13845. (getNewFactory): Removed the call to setRandomizer().
  13846. To fix the miscalculation of the range of checksum:
  13847. * src/BitfieldMan.h
  13848. (isBitSetOffsetRange): New function.
  13849. * src/BitfieldMan.cc
  13850. (isBitSetOffsetRange): New function.
  13851. * src/SegmentMan.cc
  13852. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13853. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13854. * Release 0.10.1
  13855. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13856. To lower CPU usage in BitTorrent download when --max-upload-limit
  13857. command-line option specified:
  13858. * src/DefaultBtMessageDispatcher.cc
  13859. (sendMessages): Calculate uploading speed only when current message
  13860. is uploading data and is not sent yet.
  13861. * src/DefaultPeerStorage.h
  13862. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13863. * src/HttpResponseCommand.cc
  13864. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13865. This fixes compile error in Soralis 10.
  13866. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13867. To fix segfault in Metalink download:
  13868. * src/UrlRequestInfo.h
  13869. (filename): Removed.
  13870. (totalLength): Removed.
  13871. (setTotalLength): Removed.
  13872. (setFilename): Removed.
  13873. * src/MetalinkRequestInfo.cc
  13874. (execute): Do not set filename and totalLength to reqInfo.
  13875. Set chunk checksum to reqInfo if it is not null.
  13876. * src/HttpResponseCommand.cc
  13877. (executeInternal): Fixed filename in log.
  13878. (handleDefaultEncoding): Removed the call to initBitfield() and
  13879. markAllPiecesDone().
  13880. (handleOtherEncoding): Added HEAD method handling.
  13881. * src/FtpNegotiateCommand.cc
  13882. (executeInternal): Added SEQ_HEAD_OK handling.
  13883. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13884. return false.
  13885. * src/FtpNegotiateCommand.h
  13886. (SEQ_HEAD_OK): New definition.
  13887. * src/SegmentMan.cc
  13888. (initBitfield): Delete bitfield.
  13889. (isChunkChecksumValidationReady): Fixed the condition.
  13890. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13891. works fine.
  13892. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13893. * src/Xml2MetalinkProcessor.h
  13894. (xpathExists): New function.
  13895. * src/Xml2MetalinkProcessor.cc
  13896. (xpathExists): New function.
  13897. Not to send HEAD request if filename and size are available in Metalink
  13898. file:
  13899. * src/UrlRequestInfo.h
  13900. (filename): New variable.
  13901. (totalLength): New variable.
  13902. (setTotalLength): New function.
  13903. (setFilename): New function.
  13904. * src/MetalinkRequestInfo.cc
  13905. (execute): Set filename and size to UrlRequestInfo.
  13906. * src/MetalinkEntry.cc
  13907. (MetalinkEntry): Initialize size with 0.
  13908. * src/UrlRequestInfo.cc
  13909. (execute): Set filename and size to SegmentMan.
  13910. Not to download rest of the files after selected files are downloaded
  13911. in BitTorrent:
  13912. * src/PieceStorage.h
  13913. (allDownloadFinished): New function.
  13914. * src/DefaultBtAnnounce.cc
  13915. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13916. downloadFinished.
  13917. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13918. * src/DefaultPieceStorage.cc
  13919. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13920. Commented out the call to finishSelectiveDownloadingMode().
  13921. (downloadFinished): Call isFilteredAllBitSet() instead of
  13922. isAllBitSet().
  13923. (allDownloadFinished): New function.
  13924. * src/DefaultBtInteractive.cc
  13925. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13926. downloadFinished().
  13927. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13928. * src/TorrentDownloadEngine.cc
  13929. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13930. * src/BitfieldMan.h
  13931. (isFilteredAllBitSet): New function.
  13932. * src/ShareRatioSeedCriteria.h
  13933. (PieceStorage.h): New include.
  13934. (pieceStorage): New variable.
  13935. (evaluate):
  13936. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13937. * src/BitfieldMan.cc
  13938. (isFilteredAllBitSet): New function.
  13939. (isAllBitSet): Filter is not took into account.
  13940. Rename --force-truncate as --allow-overwrite:
  13941. * src/TorrentRequestInfo.cc
  13942. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13943. * src/main.cc
  13944. (showUsage): --force-truncate -> --allow-overwrite
  13945. * src/message.h
  13946. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13947. * src/prefs.h
  13948. (PREF_FORCE_TRUNCATE): Removed.
  13949. (PREF_ALLOW_OVERWRITE): New definition.
  13950. * src/SegmentMan.cc
  13951. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13952. * src/MetalinkRequestInfo.cc
  13953. (execute): Queueing message are now logged in info level.
  13954. * src/common.h
  13955. (LONG_LONG_MAX): Removed.
  13956. (LONG_LONG_MIN): Removed.
  13957. * src/HttpResponseCommand.cc
  13958. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13959. * src/FtpNegotiateCommand.cc
  13960. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13961. * src/main.cc
  13962. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13963. command-line option.
  13964. (main): Added --check-integriy and --realtime-chunk-checksum
  13965. command-line option.
  13966. --force-truncate -> --allow-overwrite
  13967. Set initial value of --check-integrity option to false.
  13968. Don't show usage when error occurs while persing command-line options.
  13969. Removed deprecated --upload-limit option.
  13970. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13971. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13972. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13973. * src/BtAllowedFastMessage.cc:
  13974. * src/BtBitfieldMessage.cc
  13975. * src/BtCancelMessage.cc
  13976. * src/BtChokeMessage.cc
  13977. * src/BtHaveAllMessage.cc
  13978. * src/BtHaveMessage.cc
  13979. * src/BtHaveNoneMessage.cc
  13980. * src/BtInterestedMessage.cc
  13981. * src/BtNotInterestedMessage.cc
  13982. * src/BtPieceMessage.cc
  13983. * src/BtPortMessage.cc
  13984. * src/BtRejectMessage.cc
  13985. * src/BtRequestMessage.cc
  13986. * src/BtSuggestPieceMessage.cc
  13987. * src/BtUnchokeMessage.cc
  13988. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13989. files are affected.
  13990. * src/ChunkChecksumValidator.cc
  13991. * src/SegmentMan.cc
  13992. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13993. To add chunk checksum validation:
  13994. * src/MetalinkEntry.h
  13995. (MetalinkChunkChecksum.h): New include.
  13996. (chunkChecksum): New variable.
  13997. * src/Request.h
  13998. (method): New variable.
  13999. (setMethod): New function.
  14000. (getMethod): New function.
  14001. (METHOD_GET): New static constant.
  14002. (METHOD_HEAD): New static constant.
  14003. * src/Xml2MetalinkProcessor.h
  14004. (getPieceHash): New function.
  14005. * src/PieceStorage.h
  14006. (markAllPiecesDone): New function.
  14007. (checkIntegrity): New function.
  14008. * src/FileAllocator.h
  14009. (NullFileAllocationMonitor.h): New include.
  14010. (FileAllocator): Initialize fileAllocationMonitor with new
  14011. NullFileAllocationMonitor().
  14012. * src/MultiDiskAdaptor.h
  14013. (messageDigest.h): Remove include.
  14014. (ctx): Removed.
  14015. (hashUpdate): Added ctx.
  14016. (MultiDiskAdaptor): Removed ctx.
  14017. (sha1Sum): Renamed as messageDigest.
  14018. (messageDigest): New function.
  14019. * src/UrlRequestInfo.h
  14020. (HeadResult): New class.
  14021. (digestAlgo): New variable.
  14022. (chunkChecksumLength): New variable.
  14023. (chunkChecksums): New variable.
  14024. (getHeadResult): New function.
  14025. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  14026. (setDigestAlgo): New function.
  14027. (setChunkChecksumLength): New function.
  14028. (setChunkChecksums): New function.
  14029. * src/DefaultPieceStorage.cc
  14030. (DiskAdaptorWriter.h): New include.
  14031. (ChunkChecksumValidator.h): New include.
  14032. (markAllPiecesDone): New function.
  14033. (checkIntegrity): New function.
  14034. * src/DefaultBtContext.h
  14035. (getPieceHashes): New function.
  14036. * src/TorrentRequestInfo.cc
  14037. (execute): Try to validate chunk checksum if file already exists and
  14038. .aria2 file doesn't there and user allows aria2 to overwrite it.
  14039. * src/messageDigest.h
  14040. (~MessageDigestContext): Added digestFree().
  14041. * src/MetalinkRequestInfo.cc
  14042. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  14043. * src/DiskAdaptor.h
  14044. (messageDigest.h): New include.
  14045. (sha1Sum): Renamed as messageDigest.
  14046. (messageDigest): New function.
  14047. * src/DownloadCommand.h
  14048. (PeerStat.h): New include.
  14049. (maxDownloadSpeedLimit): New variable.
  14050. (startupIdleTime): New variable.
  14051. (lowestDownloadSpeedLimit): New variable.
  14052. (peerStat): New variable.
  14053. (setMaxDownloadSpeedLimit): New function.
  14054. (setStartupIdleTime): New function.
  14055. (setLowestDownloadSPeedLimit): New function.
  14056. * src/BtContext.h
  14057. (getPieceHashes): New function.
  14058. * src/main.cc
  14059. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  14060. option to true for testing purpose.
  14061. * src/BtPieceMessage.cc
  14062. (checkPieceHash): Use messageDigest
  14063. * src/DownloadEngine.cc
  14064. (SetDescriptor): Removed.
  14065. (AccumulateActiveCommand): Removed.
  14066. (waitData): Rewritten.
  14067. (updateFdSet): Rewritten.
  14068. * src/MultiDiskAdaptor.cc
  14069. (hashUpdate): Added ctx.
  14070. (sha1Sum): Renamed as messageDigest.
  14071. (messageDigest): New function.
  14072. * src/BitfieldMan.h
  14073. (isBitRangeSet): New function.
  14074. (unsetBitRange): New function.
  14075. * src/ByteArrayDiskWriter.h
  14076. (sha1Sum): Renamed as messageDigest.
  14077. (messageDigest): New function.
  14078. * src/ConsoleDownloadEngine.cc
  14079. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  14080. * src/DiskWriter.h
  14081. (messageDigest.h): New include.
  14082. (sha1Sum): Renamed as messageDigest.
  14083. (messageDigest): New function.
  14084. * src/ChunkChecksumValidator.h: New class.
  14085. * src/DiskAdaptorWriter.h: New class.
  14086. * src/prefs.h
  14087. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  14088. (PREF_CHECK_INTEGRITY): New definition.
  14089. * src/HttpResponseCommand.cc
  14090. (handleDefaultEncoding): Added method "HEAD" handling.
  14091. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14092. (handleOtherEncoding):
  14093. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  14094. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  14095. startupIdleTime, lowestDownloadSpeedLimit to command.
  14096. * src/SegmentMan.h
  14097. (getSegmentEntryByIndex): New function.
  14098. (getSegmentEntryByCuid): New function.
  14099. (getSegmentEntryIteratorByCuid): New function.
  14100. (diskWriter): DiskWriter -> DiskWriterHandle
  14101. (pieceHashes): New variable.
  14102. (chunkHashLength): New variable.
  14103. (digestAlgo): New variable.
  14104. (FindPeerStat): Removed.
  14105. (getPeerStat): Rewritten.
  14106. (markAllPiecesDone): New function.
  14107. (checkIntegrity): New function.
  14108. (tryChunkChecksumValidation): New function.
  14109. (isChunkChecksumValidationReady): New function.
  14110. * src/BitfieldMan.cc
  14111. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  14112. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  14113. blocks to 0.
  14114. (isBitRangeSet): New function.
  14115. (unsetBitRange): New function.
  14116. * src/FtpNegotiateCommand.cc
  14117. (executeInternal): Set maxDownloadSpeedLimit,
  14118. startupIdleTime, lowestDownloadSpeedLimit to command.
  14119. (recvSize): Added method "HEAD" handling.
  14120. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  14121. * src/AbstractSingleDiskAdaptor.cc
  14122. (sha1Sum): Renamed as messageDigest.
  14123. (messageDigest): New function.
  14124. * src/AbstractSingleDiskAdaptor.h
  14125. (sha1Sum): Renamed as messageDigest.
  14126. (messageDigest): New function.
  14127. * src/Util.h
  14128. (indexRange): New function.
  14129. * src/MetalinkEntry.cc
  14130. (MetalinkEntry): Initialized chunkChecksum to 0.
  14131. * src/ShaVisitor.cc
  14132. (~ShaVisitor): Removed the call to ctx.digestFree().
  14133. * src/SegmentMan.cc
  14134. (ChunkChecksumValidator.h): New include.
  14135. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  14136. to DIGEST_ALGO_SHA1.
  14137. (~SegmentMan): Removed diskWriter.
  14138. (FindSegmentEntryByIndex): Removed.
  14139. (FindSegmentEntryByCuid): Removed.
  14140. (checkoutSegment): Rewritten.
  14141. (findSlowerSegmentEntry): Rewritten.
  14142. (getSegment): Rewritten.
  14143. (updateSegment): Rewritten.
  14144. (completeSegment): Rewritten.
  14145. (markAllPiecesDone): New function.
  14146. (checkIntegrity): New function.
  14147. (isChunkChecksumValidationReady): New function.
  14148. (tryChunkChecksumValidation): New function.
  14149. * src/Xml2MetalinkProcessor.cc
  14150. (getEntry): Get size and set it to entry.
  14151. Get chunk checksum and set it to entry.
  14152. (getPieceHash): New function.
  14153. * src/Util.cc
  14154. (sha1Sum): Removed ctx.digestFree()
  14155. (fileChecksum): Removed ctx.digestFree()
  14156. (indexRange): New function.
  14157. * src/Request.cc
  14158. (METHOD_GET): New variable.
  14159. (METHOD_HEAD): New variable.
  14160. (Request): Added method.
  14161. * src/UrlRequestInfo.cc
  14162. (FatalException.h): New include.
  14163. (message.h): New include.
  14164. (operator<<): Added operator<< for class HeadResult.
  14165. (getHeadResult): New function.
  14166. (execute): Get filename and size in separate download engine.
  14167. * src/ChunkChecksumValidator.cc: New class.
  14168. * src/DownloadCommand.cc:
  14169. (DownloadCommand): Added peerStat.
  14170. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  14171. the value from Option.
  14172. The buffer size is now 16KB.
  14173. Use peerStat member instead of getting it from SegmentMan.
  14174. Use startupIdleTime member instead of gettingit from Option.
  14175. Added chunk checksum validation.
  14176. * src/AbstractDiskWriter.cc
  14177. (AbstractDiskWriter): Removed ctx.
  14178. (~AbstractDiskWriter): Removed ctx.digestFree()
  14179. (writeDataInternal): Returns the return value of write.
  14180. (readDataInternal): Returns the return value of read.
  14181. (sha1Sum): Renamed as messageDigest
  14182. (messageDigest): New function.
  14183. * src/AbstractDiwkWriter.h
  14184. (messageDigest.h): Removed include.
  14185. (ctx): Removed.
  14186. (sha1Sum): Renamed as messageDigest
  14187. (messageDigest): New function.
  14188. * src/DefaultPieceStorage.h
  14189. (markAllPiecesDone): New function.
  14190. (checkIntegrity): New function.
  14191. * src/NullFileAllocationMonitor.h: New class.
  14192. * src/MetalinkChunkChecksum.h: New class.
  14193. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14194. To decrease CPU usage in bittorrent download, calculation results in
  14195. BitfieldMan were cached and realtime fetching PeerObject was removed
  14196. with WeakHandle introduced. Option values are set to the objects
  14197. by setter before download begins.
  14198. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  14199. * src/DefaultBtRequestFactory.h
  14200. (dispatcher): BtMessageDispatcherHandle ->
  14201. BtMessageDispatcherWeakHandle.
  14202. (messageFactory): New variable.
  14203. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  14204. BtMessageDispatcherWeakHandle.
  14205. (setBtMessageFactory): New function.
  14206. * src/DefaultBtMessageDispatcher.cc:
  14207. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  14208. from Option.
  14209. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  14210. feating the value from Option.
  14211. Use messageFactory member.
  14212. * src/PeerInteractionCommand.cc
  14213. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  14214. Add reverse dependencies to factory object.
  14215. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  14216. dispatcher.
  14217. Set messageFactory to receiver.
  14218. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  14219. btInteractive.
  14220. Set receiver to peerObject.
  14221. Set maxDownloadSpeedLimit to this.
  14222. (executeInternal): Use maxDownloadSpeedLimit member.
  14223. * src/BtChokeMessage.cc
  14224. (doReceivedAction): Use dispatcher, requestFactory member.
  14225. (onSendComplete): Use dispatcher member.
  14226. * src/PeerInteractionCommand.h
  14227. (maxDownloadSpeedLimit): New variable.
  14228. * src/DefaultBtMessageReceiver.h
  14229. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14230. (dispatcher):
  14231. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14232. (messageFactory): New variable.
  14233. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14234. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  14235. (setDispatcher):
  14236. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  14237. (setBtMessageFactory): New function.
  14238. * src/DefaultBtInteractive.cc
  14239. (initiateHandshake): Use messageFactory member.
  14240. (addBitfieldMessageToQueue): Use messageFactory member.
  14241. (addAllowedFastMessageToQueue): Use messageFactory member.
  14242. (decideChoking): Use messageFactory member.
  14243. (checkHave): Use messageFactory member.
  14244. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  14245. (receiveMessages): Use maxDownloadSpeedLimit member.
  14246. (decideInterest): Use messageFactory member.
  14247. * src/BtRequestMessage.cc
  14248. (doReceivedAction): Use messageFactory, dispatcher member.
  14249. (onQueued): Use dispatcher member.
  14250. * src/BtPieceMessage.cc
  14251. (doReceivedAction): Use dispatcher member.
  14252. (send): Use peerConnection member.
  14253. (onWrongPiece): Use requestFactory member.
  14254. (handleChokingEvent): Use messageFactory, dispatcher member.
  14255. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  14256. * src/BtMessageDispatcher.h
  14257. (BtMessageDispatcherWeakHandle): New type definition.
  14258. * src/SimpleBtMessage.cc
  14259. (send): Use peerConnection member.
  14260. * src/BtRejectMessage.cc
  14261. (doReceivedAction): Use dispatcher member.
  14262. * src/DefaultBtMessageDispatcher.h
  14263. (Option.h): Removed include.
  14264. (messageFactory): New variable.
  14265. (option): Removed.
  14266. (maxUploadSpeedLimit): New variable.
  14267. (requestTimeout): New variable.
  14268. (DefaultBtMessageDispatcher): Removed option.
  14269. Added maxUploadSpeedLimit, requestTimeout.
  14270. (setOption): Removed.
  14271. (getOption): Removed.
  14272. (setMaxUploadSpeedLimit): New function.
  14273. (setRequestTimeout): New function.
  14274. (setBtMessageFactory): New function.
  14275. * src/DefaultBtInteractive.h
  14276. (btMessageReceiver):
  14277. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14278. (dispatcher):
  14279. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14280. (btRequestFactory):
  14281. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14282. (peerConnection):
  14283. PeerConnectionHandle -> PeerConnectionWeakHandle
  14284. (messageFactory): New variable.
  14285. (option): Removed.
  14286. (keepAliveInterval): New variable.
  14287. (maxDownloadSpeedLimit): New variable.
  14288. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  14289. (setBtMessageReceiver):
  14290. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  14291. (setDispatcher):
  14292. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  14293. (setBtRequestFactory):
  14294. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  14295. (setPeerConnection):
  14296. PeerConnectionHandle -> PeerConnectionWeakHandle
  14297. (setOption): Removed.
  14298. (setKeepAliveInterval): New function.
  14299. (setMaxDownloadSpeedLimit): New function.
  14300. (setBtMessageFactory): New function.
  14301. * src/BitfieldMan.h
  14302. (cachedNumMissingBlock): New variable.
  14303. (cachedNumFilteredBlock): New variable.
  14304. (cachedCompletedLength): New variable.
  14305. (cachedFilteredComletedLength): New variable.
  14306. (cachedFilteredTotalLength): New variable.
  14307. (countMissingBlockNow): New function.
  14308. (countFilteredBlockNow): New function.
  14309. (getFilteredTotalLengthNow): New function.
  14310. (getCompletedLengthNow): New function.
  14311. (getFilteredCompletedLengthNow): New function.
  14312. (updateCache): New function.
  14313. * src/AbstractBtMessage.h
  14314. (BtMessageDispatcher.h): New include.
  14315. (PeerConnection.h): New include.
  14316. (BtRequestFactory.h): New include
  14317. (BtMessageFactory.h): New include.
  14318. (dispatcher): New variable.
  14319. (messageFactory): New variable.
  14320. (peerConnection: New variable.
  14321. (setBtMessageDispatcher): New function.
  14322. (setPeerConnection): New function.
  14323. (setBtMessageFactory): New function.
  14324. (setBtRequestFactory): New function.
  14325. * src/DefaultBtMessageFactory.cc
  14326. (setCommonProperty): Set dispatcher, requestFactory, this,
  14327. peerConnection to msg.
  14328. * src/BtRegistry.h
  14329. (BT_MESSAGE_RECEIVER): New macro.
  14330. * src/PeerConnection.h
  14331. (PeerConnectionWeakHandle): New type definition.
  14332. * src/BtMessageFactory.h
  14333. (BtMessageFactoryWeakHandle): New type definition.
  14334. * src/BitfieldMan.cc
  14335. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  14336. cachedCompletedLength, cachedFilteredComletedLength,
  14337. cachedFilteredTotalLength.
  14338. Call updateCache().
  14339. (countMissingBlock): Return cachedNumMissingBlock.
  14340. (countMissingBlockNow): New function.
  14341. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  14342. (countFilteredBlockNow): New function.
  14343. (setBit): Call updateCache().
  14344. (unsetBit): Call updateCache().
  14345. (setBitfield): Call updateCache().
  14346. (clearAllBit): Call updateCache().
  14347. (setAllBit): Use setBitInternal instead of setBit.
  14348. Call updateCache().
  14349. (addFilter): Call updateCache().
  14350. (enableFilter): Call updateCache().
  14351. (disableFilter): Call updateCache().
  14352. (clearFilter): Call updateCache().
  14353. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  14354. (getFilteredTotalLengthNow): New function.
  14355. (getCompletedLength): Return cachedCompletedLength.
  14356. (getCompletedLengthNow): New function.
  14357. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  14358. (getFilteredCompletedLengthNow): New function.
  14359. (updateCache): New function.
  14360. * src/BtMessageReceiver.h
  14361. (BtMessageReceiverWeakHandle): New type definition.
  14362. * src/DefaultBtMessageReceiver.cc
  14363. (receiveHandshake): Use messageFactory member.
  14364. (sendHandshake): Use messageFactory member.
  14365. (receiveMessage): Use messageFactory member.
  14366. * src/DefaultBtMessageFactory.h
  14367. (dispatcher): New variable.
  14368. (requestFactory): New variable.
  14369. (peerConnection): New variablle.
  14370. (setBtMessageDispatcher): New function.
  14371. (setBtRequestFactory): New function.
  14372. (setPeerConnection): New function.
  14373. * src/SharedHandle.h
  14374. (RefCount): New class.
  14375. (WeakHandle): New class.
  14376. * src/PeerObject.h
  14377. (BtMessageReceiver.h): New include.
  14378. (PeerObject): Added btMessageReceiver.
  14379. (btMessageReceiver): New variable.
  14380. * src/Util.cc
  14381. (countBit): Simplified.
  14382. * src/BtCancelMessage.cc
  14383. (doReceivedAction): Use dispatcher member.
  14384. * src/BtRequestFactory.h
  14385. (BtRequestFactoryWeakHandle): New type definition.
  14386. * src/PeerStorage.h
  14387. (downloadSpeed): int -> uint32_t
  14388. (uploadSpeed): int -> uint32_t
  14389. (sessionDownloadLength): long long int -> uint64_t
  14390. (sessionUploadLength): long long int -> uint64_t
  14391. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14392. To add RecoverableException, FatalException:
  14393. * src/AbstractCommand.cc
  14394. (onAbort): Exception -> RecoverableException
  14395. * src/PeerAbstractCommand.h
  14396. (RecoverableException.h): New include.
  14397. (onAbort): Exception -> RecoverableException.
  14398. * src/PeerInteractionCommand.cc
  14399. (onAbort): Exception -> RecoverableException.
  14400. * src/PeerAbstractCommand.cc
  14401. (execute): Exception -> RecoverableException.
  14402. (onAbort): Exception -> RecoverableException.
  14403. * src/TorrentRequestInfo.cc
  14404. (execute): Exception -> RecoverableException.
  14405. * src/MetalinkRequestInfo.cc
  14406. (execute): Exception -> RecoverableException.
  14407. * src/MetaFileUtil.cc: RecoverableException.
  14408. * src/AbstractCommand.h
  14409. (onAbort): Exception -> RecoverableException.
  14410. * src/DlRetryEx.h: Exception -> RecoverableException.
  14411. * src/DlAbortEx.h: Exception -> RecoverableException.
  14412. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  14413. * src/Util.cc: Exception -> RecoverableException.
  14414. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  14415. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  14416. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  14417. To make ID static const int
  14418. * src/BtInterestedMessage.h
  14419. (ID_t): Removed.
  14420. (ID): New variable.
  14421. (getId): Made non-const.
  14422. * src/BtPieceMessage.h
  14423. (ID_t): Removed.
  14424. (ID): New variable.
  14425. (getId): Made non-const.
  14426. * src/BtChokeMessage.h
  14427. (ID_t): Removed.
  14428. (ID): New variable.
  14429. (getId): Made non-const.
  14430. * src/BtHaveAllMessage.h
  14431. (ID_t): Removed.
  14432. (ID): New variable.
  14433. (getId): Made non-const.
  14434. * src/BtKeepAliveMessage.h
  14435. (ID_t): Removed.
  14436. (ID): New variable.
  14437. (getId): Made non-const.
  14438. * src/BtHandshakeMessage.h
  14439. (ID): New variable.
  14440. (getId): Made non-const.
  14441. * src/BtSuggestPieceMessage.h
  14442. (ID_t): Removed.
  14443. (ID): New variable.
  14444. (getId): Made non-const.
  14445. * src/BtPortMessage.h
  14446. (ID_t): Removed.
  14447. (ID): New variable.
  14448. (getId): Made non-const.
  14449. * src/AbstractBtMessage.h
  14450. (id): Removed.
  14451. (AbstractBtMessage): Removed id.
  14452. (getId): Removed.
  14453. * src/BtHaveMessage.h
  14454. (ID_t): Removed.
  14455. (ID): New variable.
  14456. (getId): Made non-const.
  14457. * src/BtAllowedFastMessage.h
  14458. (ID_t): Removed.
  14459. (ID): New variable.
  14460. (getId): Made non-const.
  14461. * src/BtCancelMessage.h
  14462. (ID_t): Removed.
  14463. (ID): New variable.
  14464. (getId): Made non-const.
  14465. * src/BtNotInterestedMessage.h
  14466. (ID_t): Removed.
  14467. (ID): New variable.
  14468. (getId): Made non-const.
  14469. * src/BtChokeMessage.h
  14470. (ID_t): Removed.
  14471. (ID): New variable.
  14472. (getId): Made non-const.
  14473. * src/BtRejectMessage.h
  14474. (ID_t): Removed.
  14475. (ID): New variable.
  14476. (getId): Made non-const.
  14477. * src/BtBitfieldMessage.h
  14478. (ID_t): Removed.
  14479. (ID): New variable.
  14480. (getId): Made non-const.
  14481. * src/BtUnchokeMessage.h
  14482. (ID_t): Removed.
  14483. (ID): New variable.
  14484. (getId): Made non-const.
  14485. * src/BtRequestMessage.h
  14486. (ID_t): Removed.
  14487. (ID): New variable.
  14488. (getId): Made non-const.
  14489. * src/BtHaveMessage.h
  14490. (ID_t): Removed.
  14491. (ID): New variable.
  14492. (getId): Made non-const.
  14493. To add --force-truncate command-line option and a check whether
  14494. the file already exists:
  14495. * src/DirectDiskAdaptor.h
  14496. (getFilePath): Made virtual public.
  14497. * src/MultiDiskAdaptor.h
  14498. (File.h): New include.
  14499. (DiskWriterEntry::fileEntry): Made private.
  14500. (DiskWriterEntry::fileExists): New function.
  14501. (DiskWriterEntry::getFileEntry): New function.
  14502. (fileExists): New function.
  14503. (getFilePath): New function.
  14504. * src/TorrentRequestInfo.cc
  14505. (FatalException.h): New include.
  14506. (message.h): New include.
  14507. (RecoverableException.h): New include.
  14508. (execute): Added a check whether file is already exists or not.
  14509. * src/DiskAdaptor.h
  14510. (fileExists): New function.
  14511. (getFilePath): New function.
  14512. * src/main.cc
  14513. (showUsage): Added an explanation of --force-truncate command-line
  14514. option.
  14515. (main): Added --force-truncate command-line option.
  14516. * src/Exception.h
  14517. (setMsg): buf[256] -> buf[1024]
  14518. * src/CopyDiskWriter.h
  14519. (getFilePath): Made public virtual.
  14520. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14521. (fileExists): New function.
  14522. * src/DownloadEngineFactory.cc
  14523. (newTorrentConsoleEngine): Don't open file here.
  14524. * src/message.h
  14525. (EX_FILE_ALREADY_EXISTS): New definition.
  14526. * src/prefs.h
  14527. (PREF_FOECE_TRUNCATE): New definition.
  14528. * src/HttpResponseCommand.cc
  14529. (handleDefaultEncoding): Added a check whether the file already exists.
  14530. * src/SegmentMan.h
  14531. (fileExists): New function.
  14532. (shouldCancelDownloadForSafety): New function.
  14533. * src/FtpNegotiateCommand.cc
  14534. (recvSize): Added a check whether the file already exists.
  14535. * src/AbstractSingleDiskAdaptor.cc
  14536. (File.h): New include.
  14537. (fileExists): New function.
  14538. * src/AbstractSingleDiskAdaptor.h
  14539. (getFilePath): Removed.
  14540. (fileExists): New function.
  14541. * src/SegmentMan.cc
  14542. (fileExists): New function.
  14543. (shouldCancelDownloadForSafety): New function.
  14544. To fix regression bug in torrent downloading:
  14545. * src/DefaultBtRequestFactory.cc
  14546. (doChokedAction): New function.
  14547. * src/DefaultBtRequestFactory.h
  14548. (doChokedAction): New function.
  14549. * src/DefaultBtMessageDispatcher.cc
  14550. (doChokedAction): Do not delete request if its target is in allowed
  14551. fast set.
  14552. * src/DefaultBtInteractive.cc
  14553. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14554. (sendKeepAlive): Send keep alive message even if the outgoing message
  14555. queue is not empty.
  14556. (decideInterest): Simplified the code.
  14557. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14558. it is already called when BtChokeMessage is received from a peer.
  14559. * src/BtRequestFactory.h
  14560. (doChokedAction): New function.
  14561. To clean up code:
  14562. * src/PeerInteractionCommand.h
  14563. (executeInternal): Added virtual keyword explicitly.
  14564. (prepareForRetry): Added virtual keyword explicitly.
  14565. (prepareForNextPeer): Added virtual keyword explicitly.
  14566. (onAbort): Added virtual keyword explicitly.
  14567. * src/RequestSlot.cc
  14568. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14569. * src/BtPieceMessage.cc
  14570. (doReceivedAction): Added a debug log of piece's bitfield.
  14571. * src/Piece.h
  14572. (getBitfieldLength): New function.
  14573. * src/ByteArrayDiskWriter.cc
  14574. (clear): Added buf = 0 to avoid double free corruption.
  14575. * src/FileAllocator.cc
  14576. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14577. Added cp.reset().
  14578. * src/BitfieldMan.h
  14579. (operator=): Rewritten.
  14580. * src/BitfieldMan.cc
  14581. (BitfieldMan): Initialized bitfield, useBitfield.
  14582. * src/PeerConnection.cc
  14583. (receiveMessage): Added a call to socket->readable() after getting
  14584. message length to avoid possible EOF.
  14585. * src/Util.cc
  14586. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14587. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14588. To add an ability to pre-allocate file space:
  14589. * src/DirectDiskAdaptor.h: Rewritten.
  14590. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14591. * src/MultiDiskAdaptor.h: Rewritten.
  14592. * src/DefaultPieceStorage.cc
  14593. (MultiDiskWriter.h): Removed include.
  14594. (PreAllocationDiskWriter.h): Removed include.
  14595. (FileAllocationMonitor.h): New include.
  14596. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14597. (initStorage): Rewritten.
  14598. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14599. * src/FileAllocator.h: New class.
  14600. * src/FileAllocator.cc: New class.
  14601. * src/FileAllocationMonitor.h: New class.
  14602. * src/FileAllocationMonitor.cc: New class.
  14603. * src/ConsoleFileAllocationMonitor.h: New class.
  14604. * src/ConsoleFileAllocationMonitor.cc: New class.
  14605. * src/AbstractSingleDiskAdaptor.h: New class.
  14606. * src/AbstractSingleDiskAdaptor.cc: New class.
  14607. * src/DiskAdaptor.h
  14608. (Directory.h): Removed include.
  14609. (DiskWriter.h): Removed include.
  14610. (FileEntry.h): Removed include.
  14611. (diskWriter): Removed.
  14612. (DiskAdaptor): Removed diskWriter.
  14613. (openFile): Made pure virtual.
  14614. (closeFile): Made pure virtual.
  14615. (openExistingFile): Made pure virtual.
  14616. (initAndOpenFile): Made pure virtual.
  14617. (writeData): Made pure virtual.
  14618. (readData): Made pure virtual.
  14619. (sha1Sum): Made pure virtual.
  14620. (getStoreDir): Returns const reference of storeDir.
  14621. (DiskAdaptorHandle): New type definition.
  14622. * src/main.cc
  14623. (ConsoleFileAllocationMonitor.h): New include.
  14624. (showUsage): Added default value description of -s option.
  14625. Added the description of --file-allocation option.
  14626. (main): Set default value of --file-allocation option to 'none'.
  14627. Added --file-allocation command-line option.
  14628. Setup FileAllocationMonitorFactory.
  14629. * src/FtpInitiateConnectionCommand.cc
  14630. (executeInternal): Removed diskWriter related processing, which was
  14631. moved to FtpNegotiationCommand.cc.
  14632. * src/DirectDiskAdaptor.cc
  14633. (getFilePath): Made non-const.
  14634. * src/CopyDiskAdaptor.h
  14635. (DiskAdaptor.h): Removed include.
  14636. (DiskWriter.h): Removed include.
  14637. (AbstractSingleDiskAdaptor.h): New include.
  14638. (getFilePath): Made non-const. Added virtual keyword.
  14639. (CopyDiskAdaptor): Removed diskWriter.
  14640. (getTempFile): Returns const reference.
  14641. (CopyDiskAdaptorHandle): New type definition.
  14642. * src/ByteArrayDiskWriter.cc
  14643. (clear): Simplified.
  14644. (initAndOpenFile): Rewritten.
  14645. (openFile): Call initAndOpenFile()
  14646. * src/MultiDiskAdaptor.cc: Rewritten.
  14647. * src/DownloadEngineFactory.cc
  14648. (FileAllocator.h): New include.
  14649. (FileAllocationMonitor.h): New include.
  14650. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14651. create DefaultDiskWriter with file allocator.
  14652. * src/DiskWriter.h
  14653. (initAndOpenFile): Added totalLength argument.
  14654. (openFile): Added totalLength argument.
  14655. * src/prefs.h
  14656. (PREF_FILE_ALLOCATION): New definition.
  14657. (V_PREALLOC): New definition.
  14658. (V_NONE): New definition.
  14659. * src/HttpResponseCommand.cc
  14660. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14661. size.
  14662. * src/FtpNegotiateCommand.cc
  14663. (Util.h): New include.
  14664. (recvSize): Open file here.
  14665. * src/Util.h
  14666. (ullitos): New function.
  14667. * src/CopyDiskWriter.h
  14668. (getFilePath): Made non-const.
  14669. * src/DefaultDiskWriter.h
  14670. (Option.h): New include.
  14671. (totalLength): Removed.
  14672. (DefaultDiskWriter): Removed totalLength.
  14673. (initAndOpenFile): Added totalLength argument.
  14674. (DefaultDiskWriterHandle): New type definition.
  14675. (createNewDiskWriter): New function.
  14676. * src/Util.cc
  14677. (ullitos): New function.
  14678. * src/DefaultDiskWriter.cc
  14679. (message.h): New include.
  14680. (FileAllocator.h): New include.
  14681. (prefs.h): New include.
  14682. (Util.h): New include.
  14683. (DefaultDiskWriter): Removed totalLength.
  14684. (initAndOpenFile): Added file allocation.
  14685. (createNewDiskWriter): New function. Just for temporary solution.
  14686. It will be rewritten later.
  14687. * src/DiskAdaptor.cc
  14688. (DiskAdaptor): Removed diskWriter.
  14689. * src/AbstractDiskWriter.cc
  14690. (LogFactory.h): New include.
  14691. (AbstractDiskWriter): Added fileAllocator, logger.
  14692. (openFile): Added totalLength argument.
  14693. * src/AbstractDiskWriter.h
  14694. (FileAllocator.h): New include.
  14695. (Logger.h): New include.
  14696. (fileAllocator): New variable.
  14697. (logger): New variable.
  14698. (openFile): Added totalLength argument. Added virtual keyword
  14699. explicitly.
  14700. (openExistingFile): Added totalLength argument. Added virtual keyword
  14701. explicitly.
  14702. (closeFile): Added virtual keyword explicitly.
  14703. (sha1Sum): Added virtual keyword explicitly.
  14704. (writeData): Added virtual keyword explicitly.
  14705. (readData): Added virtual keyword explicitly.
  14706. (setFileAllocator): New function.
  14707. * src/DefaultPieceStorage.h
  14708. (FileAllocator.h): New include.
  14709. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14710. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14711. * src/FileProgressMonitor.h: New class.
  14712. To compile aria2 on PC-BSD:
  14713. * src/DefaultBtContext.cc
  14714. (libgen.h): New include.
  14715. To fix memory leak:
  14716. * src/Exception.h
  14717. (~Exception): Delete cause. Fixed memory leak.
  14718. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14719. Rewritten a portion of bittorrent implementation:
  14720. * src/BtMessageValidator.h: New class.
  14721. * src/BtBitfieldMessageValidator.h: New class.
  14722. * src/BtHandshakeMessageValidator.h: New class.
  14723. * src/BtRequestMessageValidator.h: New class.
  14724. * src/BtSuggestPieceMessageValidator.h: New class.
  14725. * src/BtAllowedFastMessageValidator.h: New class.
  14726. * src/BtRejectMessageValidator.h: New class.
  14727. * src/BtCancelMessageValidator.h: New class.
  14728. * src/BtPieceMessageValidator.h: New class.
  14729. * src/BtHaveMessageValidator.h: New class.
  14730. * src/BtEventListener.h: New class.
  14731. * src/AbstractBtEventListener.h: New class.
  14732. * src/BtEvent.h: New class.
  14733. * src/BtChokingEvent.h: New class.
  14734. * src/BtChokedEvent.h: New class.
  14735. * src/BtCancelSendingPieceEvent.h: New class.
  14736. * src/BtAbortOutstandingRequestEvent.h: New class.
  14737. * src/Randomizer.h: New class.
  14738. * src/SimpleRandomizer.h: New class.
  14739. * src/BtMessage.h: New class.
  14740. * src/AbstractBtMessage.h: New class.
  14741. * src/SimpleBtMessage.h: New class.
  14742. * src/BtHaveMessage.h: New class.
  14743. * src/BtInterestedMessage.h: New class.
  14744. * src/BtAllowedFastMessage.h: New class.
  14745. * src/BtUnchokeMessage.h: New class.
  14746. * src/BtCancelMessage.h: New class.
  14747. * src/BtNotInterestedMessage.h: New class.
  14748. * src/BtChokeMessage.h: New class.
  14749. * src/BtHaveNoneMessage.h: New class.
  14750. * src/BtHandshakeMessage.h: New class.
  14751. * src/BtSuggestPieceMessage.h: New class.
  14752. * src/BtHaveMessage.h: New class.
  14753. * src/BtPieceMessage.h: New class.
  14754. * src/BtHaveAllMessage.h: New class.
  14755. * src/BtKeepAliveMessage.h: New class.
  14756. * src/BtPortMessage.h: New class.
  14757. * src/BtRejectMessage.h: New class.
  14758. * src/BtBitfieldMessage.h: New class.
  14759. * src/BtRequestMessage.h: New class.
  14760. * src/DefaultBtRequestFactory.h: New class.
  14761. * src/DefaultBtMessageReceiver.h: New class.
  14762. * src/BtInteractive.h: New class.
  14763. * src/BtMessageDispatcher.h: New class.
  14764. * src/DefaultBtMessageDispatcher.h: New class.
  14765. * src/DefaultBtInteractive.h: New class.
  14766. * src/BitfieldManFactory.h: New class.
  14767. * src/HandleRegistry.h: New class.
  14768. * src/BtMessageFactory.h: New class.
  14769. * src/BtMessageReceiver.h: New class.
  14770. * src/DefaultBtMessageFactory.h: New class.
  14771. * src/PeerObject.h: New class.
  14772. * src/BtRequestFactory.h: New class.
  14773. * src/SuggestPieceMessage.h: Removed.
  14774. * src/PortMessage.h: Removed.
  14775. * src/SuggestPieceMessage.h: Removed.
  14776. * src/KeepAliveMessage.h: Removed.
  14777. * src/HandshakeMessage.h: Removed.
  14778. * src/PeerInteraction.h: Removed.
  14779. * src/UnchokeMessage.h: Removed.
  14780. * src/PieceMessage.h: Removed.
  14781. * src/RequestMessage.h: Removed.
  14782. * src/InterestedMessage.h: Removed.
  14783. * src/HaveMessage.h: Removed.
  14784. * src/CancelMessage.h: Removed.
  14785. * src/RejectMessage.h: Removed.
  14786. * src/AllowedFastMessage.h: Removed.
  14787. * src/HaveNoneMessage.h: Removed.
  14788. * src/SimplePeerMessage.h: Removed.
  14789. * src/HaveAllMessage.h: Removed.
  14790. * src/BitfieldMessage.h: Removed.
  14791. * src/PeerMessageFactory.h: Removed.
  14792. * src/NotInterestedMessage.h: Removed.
  14793. * src/ChokeMessage.h: Removed.
  14794. * src/PeerMessage.h: Removed.
  14795. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14796. To know root cause of exception:
  14797. * src/Exception.h
  14798. (cause): New variable.
  14799. (Exception): Added a parameter.
  14800. (getMsg): Return const reference to msg.
  14801. (getCause): New function.
  14802. * src/DlRetryEx.h
  14803. (DlRetryEx): Added a parameter 'cause'.
  14804. Added an overloaded constructor.
  14805. (DlAbortEx): Added a parameter 'cause'.
  14806. Added an overloaded constructor.
  14807. * src/SimpleLogger.cc
  14808. (writeLog): Log nested exception messages recursively.
  14809. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14810. * src/DefaultBtProgressInfoFile.cc
  14811. (load): Fixed memory leak when the infohash doesn't match.
  14812. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14813. * src/DefaultPeerStorage.cc
  14814. (calculateStat): Simplified the code by combining 2 loops into 1.
  14815. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14816. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14817. for BitTorrent download:
  14818. * src/PeerAbstractCommand.cc
  14819. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14820. * src/main.cc:
  14821. (timeoutSpecified): Removed.
  14822. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14823. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14824. * src/TorrentRequestInfo.cc
  14825. (timeoutSpecified): Removed.
  14826. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14827. timeout value.
  14828. * src/prefs.h
  14829. (PREF_BT_TIMEOUT): New definition.
  14830. Delete unused variables:
  14831. * src/TorrentRequestInfo.cc
  14832. (requestInfo): Removed.
  14833. Move setSignalHander to Util::setGlobalSignalHandler:
  14834. * src/TorrentRequestInfo.cc:
  14835. setSignalHander -> Util::setGlobalSignalHandler
  14836. * src/main.cc
  14837. (setSignalHander): Removed.
  14838. (main): setSignalHander -> Util::setGlobalSignalHandler
  14839. * src/Util.h
  14840. (setGlobalSignalHandler): New function.
  14841. * src/Util.cc
  14842. (setGlobalSignalHandler): New function.
  14843. * src/UrlRequestInfo.cc:
  14844. setSignalHander -> Util::setGlobalSignalHandler
  14845. Reset peer status in order to exit gracefully:
  14846. * src/PeerAbstractCommand.cc
  14847. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14848. To fix the bug that causes the number of bytes uploaded is not saved
  14849. to .aria2 file:
  14850. * src/DefaultPeerStorage.h
  14851. (removedPeerSessionDownloadLength): New variable.
  14852. (removedPeerSessionUploadLength): New variable.
  14853. * src/DefaultPeerStorage.cc
  14854. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14855. removedPeerSessionUploadLength(0).
  14856. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14857. through all peers, and then add removedPeerSessionDownloadLength(
  14858. removedPeerSessionUploadLength) to it.
  14859. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14860. (to) the peer to removedPeerSessionDownloadLength
  14861. (removedPeerSessionUploadLength).
  14862. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14863. To add Metalink location option:
  14864. * src/MetalinkRequestInfo.cc
  14865. (execute): Call MetalinkEntry::setLocationPreference()
  14866. * src/main.cc
  14867. (showUsage): Added the help message for --metalink-location option.
  14868. (main): Added --metalink-location option.
  14869. * src/prefs.h
  14870. (PREF_METALINK_LOCATION): New definition.
  14871. * src/MetalinkEntry.cc
  14872. (AddLocationPreference): New function object.
  14873. (setLocationPreference): New function.
  14874. * src/Xml2MetalinkProcessor.cc
  14875. (getResource): Set location attribute to MetalinkResource
  14876. To show URLs to download
  14877. * src/UrlRequestInfo.h
  14878. (printUrls): New function.
  14879. To add multiple <file> Metalink support:
  14880. * src/MetalinkEntry.h
  14881. (MetalinkResources): Removed.
  14882. (setLocationPreference): New function.
  14883. (MetalinkEntryHandle): New type definition.
  14884. (MetalinkEntries): New type definition.
  14885. * src/Xml2MetalinkProcessor.h
  14886. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14887. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14888. (parseFile): Metalinker* -> MetalinkerHandle
  14889. * src/UrlRequestInfo.h
  14890. (execute): RequestInfo* -> RequestInfos
  14891. * src/MetalinkRequestInfo.cc
  14892. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14893. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14894. (execute): RequestInfo* -> RequestInfos
  14895. Added multiple <file> support. Print filename when it is queued.
  14896. * src/MetalinkRequestInfo.h
  14897. (execute): RequestInfo* -> RequestInfos
  14898. (getDownloadEngine): Removed.
  14899. * src/RequestInfo.h
  14900. (RequestInfoHandle): New type definition.
  14901. (RequestInfos): New type definition.
  14902. (execute): RequestInfo* -> RequestInfos
  14903. (getDownloadEngine): Removed.
  14904. * src/MetalinkResource.h
  14905. (MetalinkResourceHandle): New type definition.
  14906. (MetalinkResources): New type definition.
  14907. * src/MetalinkEntry.cc
  14908. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14909. because the element is now of type MetalinkResourceHandle.
  14910. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14911. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14912. (dropUnsupportedResource): Removed the deletion of the elements of
  14913. resources because the element is now of type MetalinkResourceHandle.
  14914. * src/Xml2MetalinkProcessor.cc
  14915. (parseFile): Metalinker* -> MetalinkerHandle
  14916. MetalinkEntry* -> MetalinkEntryHandle
  14917. Removed try-catch block.
  14918. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14919. MetalinkResource* -> MetalinkResourceHandle
  14920. Removed try-catch block.
  14921. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14922. Free result by using xmlXPathFreeObject()
  14923. * src/Metalinker.cc
  14924. (~Metalinker): Removed the deletion of entries.
  14925. MetalinkEntry* -> MetalinkEntryHandle
  14926. (queryEntry): Add multiple <file> Metalink support.
  14927. * src/Metalinker.h
  14928. (MetalinkEntries): Removed.
  14929. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14930. * src/MetalinkProcessor.h
  14931. (parseFile): Metalinker* -> MetalinkerHandle
  14932. Bug fixes:
  14933. * src/PeerChokeCommand.cc
  14934. (execute): cat01->cat02
  14935. * src/DefaultPieceStorage.cc
  14936. (DefaultPieceStorage): Added diskAdaptor(0)
  14937. * src/TrackerWatcherComand.cc:
  14938. (execute): Use btAnnounce->noMoreAnnounce()
  14939. to determin whether the function returns true or not.
  14940. * src/TrackerUpdateCommand.cc:
  14941. (execute): Use btAnnounce->noMoreAnnounce()
  14942. to determin whether the function returns true or not.
  14943. * src/FtpConnection.cc
  14944. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14945. This is the fix of the busy loop bug.
  14946. * src/DownloadCommand.cc
  14947. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14948. cached PeerStat.
  14949. The value of "name" entry in torrent file is now set by
  14950. *DiskAdaptor::setTopDir(...) methods.
  14951. * src/MultiDiskAdaptor.h
  14952. (topDir): New variable.
  14953. (setTopDir): New function.
  14954. (getTopDir): New function.
  14955. * src/MultiDiskAdaptor.cc
  14956. (getFilePath): Concat storDir, "/" and topDir.
  14957. (mkdir): Use getFilePath() to get the directory path for output.
  14958. * src/DefaultPieceStorage.cc
  14959. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14960. CopyDiskAdaptor.
  14961. * src/CopyDiskAdaptor.h
  14962. (topDir): New variable.
  14963. (setTopDir): New function.
  14964. (getTopDir): New function.
  14965. * src/CopyDiskAdaptor.cc
  14966. (fixFilename): Updated.
  14967. Misc
  14968. * src/UrlRequestInfo.h
  14969. (e): Removed.
  14970. (UrlRequestInfo): Removed e.
  14971. (getDownloadEngine): Removed.
  14972. * src/UrlRequestInfo.cc
  14973. (handler): Rewritten.
  14974. (printUrls): New function.
  14975. (execute): Call printUrls().
  14976. * src/HandshakeMessage.cc
  14977. (check): peerinteraction->getBtContext() -> btContext
  14978. * src/PeerInteraction.h
  14979. (getBtContext): Removed.
  14980. * src/TorrentRequestInfo.h
  14981. (execute): RequestInfo* -> RequestInfos
  14982. (getDownloadEngine): Removed.
  14983. * src/TorrentRequestInfo.cc
  14984. (haltRequested): Removed.
  14985. (btHaltRequested): New variable.
  14986. (torrentHandler): haltRequested -> btHaltRequested
  14987. (execute): RequestInfo* -> RequestInfos
  14988. * src/TorrentConsoleDownloadEngine.cc
  14989. (afterEachIteration): haltRequested -> btHaltRequested.
  14990. * src/ConsoleDownloadEngine.h
  14991. (initStatistics): Added virtual.
  14992. (calculateStatistics): Added virtual.
  14993. (onEndOfRun): Added virtual.
  14994. (afterEachIteration): Added virtual.
  14995. * src/ConsoleDownloadEngine.cc
  14996. (haltRequested): New variable.
  14997. (afterEachIteration): New function.
  14998. * src/main.cc
  14999. (requestInfo): Removed.
  15000. * src/SegmentMan.cc
  15001. (findSlowerSegmentEntry): Refactored.
  15002. * Release 0.9.0
  15003. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15004. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  15005. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  15006. * src/TorrentMan.h: Removed.
  15007. * src/TorrentMan.cc: Removed.
  15008. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  15009. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  15010. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  15011. * src/PeerAbstractCommand.cc: Use btRuntime.
  15012. * src/BtContextAwareCommand.h: New class.
  15013. * src/FileEntry.h: Added accessor methods for following variables.
  15014. (path): Made private.
  15015. (length): Made private.
  15016. (offset): Made private.
  15017. (extracted): Made private.
  15018. (requested): Made private.
  15019. (FileEntries): New definition.
  15020. (FileEntryHandle): New definition.
  15021. * src/FileEntry.cc: New file.
  15022. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  15023. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  15024. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  15025. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  15026. * src/PieceStorage.h: New file.
  15027. * src/PeerInteractionCommand.h: Use btContext.
  15028. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  15029. btRuntime.
  15030. * src/DefaultBtProgressInfoFile.h: New file.
  15031. * src/DefaultBtProgressInfoFile.cc: New file.
  15032. * src/File.cc
  15033. (Util.h): New include.
  15034. (mkdirs): New function.
  15035. * src/MultiDiskAdaptor.h
  15036. (mkdir): New function.
  15037. * src/PeerListProcessor.h
  15038. (Peers): Removed.
  15039. * src/PeerInteraction.h
  15040. (torrentMan): Removed.
  15041. (btContext): New variable.
  15042. (peerStorage): New variable.
  15043. (pieceStorage): New variable.
  15044. (btAnnounce): New variable.
  15045. (getTorrentMan): Removed.
  15046. (getBtContext): New function.
  15047. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  15048. btAnnounce.
  15049. * src/HandshakeMessage.h
  15050. (TorrentMan.h): Removed.
  15051. * src/HandshakeMessage.cc: Use btContext.
  15052. * src/DefaultBtAnnounce.cc: New file.
  15053. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  15054. * src/DefaultPieceStorage.cc: New file.
  15055. * src/DefaultBtContext.h: New file.
  15056. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  15057. Use the accessor methods of FileEntry.
  15058. * src/CookieBox.cc: Updated to use Util::slice().
  15059. * src/PieceMessage.cc: Use btContext, pieceStorage.
  15060. * src/common.h (SharedHandle.h): New include.
  15061. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  15062. pieceStorage.
  15063. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  15064. * src/DiskAdaptor.h
  15065. (topDir): Removed.
  15066. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  15067. (setTopDir): Removed.
  15068. (getTopDir): Removed.
  15069. * src/BtContext.h: New file.
  15070. * src/DefaultPeerStorage.h: New file.
  15071. * src/PieceMessage.h (TorrentMan.h): Removed.
  15072. * src/RequestMessage.h (TorrentMan.h): Removed.
  15073. * src/TorrentDownloadEngine.h
  15074. (uploadLength): New variable.
  15075. (btContext): New variable.
  15076. (btRuntime): New variable.
  15077. (pieceStorage): New variable.
  15078. (peerStorage): New variable.
  15079. (btAnnounce): New variable.
  15080. (btProgressInfoFile): New variable.
  15081. (torrentMan): Removed.
  15082. (setBtContext): New function.
  15083. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  15084. peerStorage, btAnnounce, btProgressInfoFile.
  15085. * src/Piece.h
  15086. (toString): New function.
  15087. (Pieces): New type definition.
  15088. * src/Peer.h
  15089. (active): New variable.
  15090. (Peer): Added active.
  15091. (activate): Set active to true.
  15092. (deactivate): Set active to false.
  15093. (isActive): New function.
  15094. (Peers): New type definition.
  15095. * src/DirectDiskAdaptor.cc
  15096. (getFilePath): Use the accessor methods of FileEntry.
  15097. * src/TorrentConsoleDownloadEngine.h
  15098. (afterEachIteration): New function.
  15099. * src/TorrentConsoleDownloadEngine.cc
  15100. (haltRequested): New variable.
  15101. (sendStatistics): Use pieceStorage, btRuntime.
  15102. (afterEachIteration): New function.
  15103. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  15104. * src/Directry.h
  15105. (Directory): New function.
  15106. (DirectoryHandle): New type definition.
  15107. * src/BtProgressInfoFile.h: New file.
  15108. * src/RequestMessage.cc: Use pieceStorage.
  15109. * src/BtRuntime.h: New file.
  15110. * src/DefaultBtContext.cc: New file.
  15111. * src/BitfieldMan.h
  15112. (getCompletedLength): New function(private).
  15113. (getCompletedLength): New function.
  15114. (getFilteredCompletedLength): New function.
  15115. * src/BitfieldMan.h
  15116. (getCompletedLength): New function(private).
  15117. (getCompletedLength): New function.
  15118. (getFilteredCompletedLength): New function.
  15119. * src/MultiDiskAdaptor.cc
  15120. (mkdir): New function.
  15121. (openFile): Call mkdir().
  15122. (initAndOpenFile): Call mkdir().
  15123. * src/CancelMessage.h
  15124. (TorrentMan.h): Removed.
  15125. * src/RejectMessage.h
  15126. (TorrentMan.h): Removed.
  15127. * src/DownloadEngineFactory.cc
  15128. (DefaultPieceStorage.h): New include.
  15129. (DefaultPeerStorage.h): New include.
  15130. (DefaultBtAnnounce.h): New include.
  15131. (DefaultBtProgressInfoFile.h): New include.
  15132. (newTorrentConsoleEngine): Rewritten.
  15133. * src/ShareRatioSeedCriteria.h
  15134. (torrentMan): Removed.
  15135. (btContext): New variable.
  15136. (peerStorage): New variable.
  15137. (btRuntime): New variable.
  15138. (evaluate): Use btContext, btRuntime, peerStorage.
  15139. * src/AnnounceTier.h: New file.
  15140. * src/BtAnnounce.h: New file.
  15141. * src/BtRegistry.h: New file.
  15142. * src/PeerInitiateConnectionCommand.h: Added btContext.
  15143. * src/PeerConnection.h (TorrentMan.h): Removed.
  15144. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  15145. * src/Util.h
  15146. (slice): Added an argument.
  15147. * src/Util.cc
  15148. (slice): Added an argument to control whether trim is made or not.
  15149. * src/PeerStorage.h: New file.
  15150. * src/BtRegistry.cc: New file.
  15151. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  15152. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  15153. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  15154. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  15155. * src/TorrentRequestInfo.h
  15156. (e): Removed.
  15157. (showFileEntry): Added an argument.
  15158. (getDownloadEngine): Return 0.
  15159. * src/DefaultBtAnnounce.h: New file.
  15160. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  15161. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  15162. * src/PeerMessageFactory.h
  15163. (btContext): New variable.
  15164. (pieceStorage): New variable.
  15165. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  15166. btAnnounce.
  15167. * src/DiskAdaptor.cc
  15168. (DiskAdaptor): Removed topDir.
  15169. (~DiskAdaptor): Removed topDir.
  15170. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  15171. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  15172. * src/File.h (mkdirs): New function.
  15173. * src/DefaultPeerStorage): New file.
  15174. * src/DownloadEngineFactory.h
  15175. (newTorrentConsoleEngine): Use btContext.
  15176. * src/BtContextAwareCommand.cc: New file.
  15177. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  15178. * src/PeerMessage.h
  15179. (btContext): New variable.
  15180. (peerStorage): New variable.
  15181. (pieceStorage): New variable.
  15182. (setBtContext): New function.
  15183. * src/Directry.cc
  15184. (Directory): New function.
  15185. (createDir): Do nothing if name.size() == 0.
  15186. * src/AnnounceList.h
  15187. (AnnounceTier): Removed.
  15188. (AnnounceTiers): Removed.
  15189. * src/DefaultPieceStorage.h: New file.
  15190. * src/Piece.cc (toString): New function.
  15191. To fix typo:
  15192. * src/main.cc (showVersion): Fixed typo.
  15193. To fix compile warning:
  15194. * src/DelegatingPeerListProcessor.cc
  15195. (canHandle): Added "return false".
  15196. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15197. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  15198. make the process of announce request testable.
  15199. * src/TrackerWatcherCommand.h
  15200. (TimeA2.h): Removed.
  15201. (interval): Removed.
  15202. (checkPoint): Removed.
  15203. (createRequestCommand): Added an argument 'url'.
  15204. (TrackerWatherCommand): Removed interval.
  15205. (createCommand): New function.
  15206. * src/DownloadEngineFactory.cc
  15207. (newTorrentConsoleEngine): Updated according to the changes in
  15208. TrackerWatherCommand.
  15209. * src/TorrentMan.cc
  15210. (DelegatingPeerListProcessor.h): New includes.
  15211. (TorrentMan): Added the initialization of announceInterval.
  15212. (isStoppedAnnounceReady): New function.
  15213. (isCompletedAnnounceReady): New function.
  15214. (isDefaultAnnounceReady): New function.
  15215. (isAnnounceReady): New function.
  15216. (getAnnounceUrl): New function.
  15217. (announceStart): New function.
  15218. (announceFailure): New function.
  15219. (announceSuccess): New function.
  15220. (isAllAnnounceFailed): New function.
  15221. (resetAnnounce): New function.
  15222. (processAnnounceResponse): New function.
  15223. (needMorePeerConnection): New function.
  15224. (noMoreAnnounce): New function.
  15225. * src/TrackerUpdateCommand.h
  15226. (getTrackerResponse): int->size_t
  15227. * src/TorrentMan.h
  15228. (isStoppedAnnounceReady): New function.
  15229. (isCompletedAnnounceReady): New function.
  15230. (isDefaultAnnounceReady): New function.
  15231. (announceInterval): New variable.
  15232. (isAnnounceReady): New function.
  15233. (getAnnounceUrl): New function.
  15234. (announceStart): New function.
  15235. (announceFailure): New function.
  15236. (announceSuccess): New function.
  15237. (isAllAnnounceFailed): New function.
  15238. (resetAnnounce): New function.
  15239. (processAnnounceResponse): New function.
  15240. (needMorePeerConnection): New function.
  15241. (noMoreAnnounce): New function.
  15242. * src/TrackerWatcherCommand.cc
  15243. (TrackerWatherCommand): Removed interval and checkPoint.
  15244. (execute): Rewritten.
  15245. (createCommand): New function.
  15246. (createRequestCommand): Rewritten.
  15247. * src/TrackerUpdateCommand.cc
  15248. (MetaFileUtil.h): Removed.
  15249. (DelegatingPeerListProcessor.h): Removed.
  15250. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  15251. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15252. Request -> RequestHandle:
  15253. * src/HttpResponseCommand.h: Request->RequestHandle
  15254. * src/AbstractCommand.cc: Request->RequestHandle
  15255. * src/HttpDownloadCommand.cc: Request->RequestHandle
  15256. * src/HttpRequestCommand.cc: Request->RequestHandle
  15257. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  15258. * src/AbstractCommand.h: Request->RequestHandle
  15259. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  15260. * src/HttpResponseCommand.cc: Request->RequestHandle
  15261. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  15262. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  15263. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  15264. * src/HttpConnection.h: Request->RequestHandle
  15265. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  15266. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  15267. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15268. * src/DownloadCommand.h: Request->RequestHandle
  15269. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  15270. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  15271. * src/HttpRequestCommand.h: Request->RequestHandle
  15272. * src/FtpNegotiateCommand.h: Request->RequestHandle
  15273. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  15274. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  15275. * src/HttpDownloadCommand.h: Request->RequestHandle
  15276. * src/FtpConnection.cc: Request->RequestHandle
  15277. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  15278. * src/UrlRequestInfo.cc: Request->RequestHandle
  15279. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  15280. * src/HttpConnection.h: Request->RequestHandle
  15281. * src/DownloadCommand.cc: Request->RequestHandle
  15282. * src/FtpConnection.h: Request->RequestHandle
  15283. * src/FtpDowndloadCommand.h: Request->RequestHandle
  15284. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  15285. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  15286. * src/Request.h
  15287. (SharedHandle.h): New include.
  15288. (RequestHandle): New type definition.
  15289. (Requests): Redefined.
  15290. To add MULTITRACKER support:
  15291. * src/TrackerWatcherCommand.h
  15292. (createRequestCommand): New function.
  15293. * src/DownloadEngineFactory.cc
  15294. (newTorrentConsoleEngine): Removed req.
  15295. * src/prefs.h
  15296. (PREF_TRACKER_MAX_TRIES): New definition.
  15297. * src/TorrentMan.cc
  15298. (TorrentMan): Removed req. Added trackerNumTry.
  15299. (~TorrentMan): Removed req.
  15300. (setupInternal1): Added announceList.
  15301. * src/TorrentRequestInfo.cc
  15302. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  15303. announces is now specified by PREF_TRACKER_MAX_TRIES.
  15304. * src/main.cc
  15305. (main): Added PREF_TRACKER_MAX_TRIES.
  15306. * src/TorrentMan.h
  15307. (Request.h): Removed.
  15308. (AnnounceList.h): New include.
  15309. (trackerNumTry): New variable.
  15310. (req): Removed.
  15311. (announceList): New variable.
  15312. * src/TrackerWatcherCommand.cc
  15313. (execute): Rewritten.
  15314. (createRequestCommand): New function.
  15315. * src/TrackerUpdateCommand.cc
  15316. (execute): Updated with the use of AnnounceList.
  15317. * src/AnnounceList.cc: New class.
  15318. * src/AnnounceList.h: New class.
  15319. To fix typo:
  15320. * src/prefs.h
  15321. (PREF_MAX_TRIES): max_try->max_tries
  15322. To not to decode "+" as space in URL decode:
  15323. * src/Util.cc
  15324. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  15325. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15326. To add timeout to async name resolution:
  15327. * src/AbstractCommand.h
  15328. (nameResolveFinished): New function. This is not elegant way. It needs
  15329. to be more refined.
  15330. (nameResolverCheck): New variable.
  15331. * src/AbstractCommand.cc
  15332. (AbstractCommand): Added nameResolverCheck.
  15333. (execute): Added the check whether the name resolution has finished.
  15334. (setNameResolverCheck): Set nameResolverCheck to true.
  15335. (disableNameResolverCheck): Set nameResolverCheck to false.
  15336. (nameResolverFinished): New function.
  15337. * src/FtpInitiateConnectionCommand.h
  15338. (nameResolverFinished): New function.
  15339. * src/FtpInitiateConnectionCommand.cc
  15340. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15341. * src/HttpInitiateConnectionCommand.h
  15342. (nameResolverFinished): New function.
  15343. * src/HttpInitiateConnectionCommand.cc
  15344. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  15345. * src/prefs.h
  15346. (PREF_DNS_TIMEOUT): New definition.
  15347. * src/main.cc
  15348. (main): Added PREF_DNS_TIMEOUT.
  15349. To add the support for a non-compact response from a tracker:
  15350. * src/PeerListProcessor.h: New class.
  15351. * src/DefaultPeerListProcessor.h: New class.
  15352. * src/DefaultPeerListProcessor.cc: New class.
  15353. * src/CompactPeerListProcessor.h: New class.
  15354. * src/CompactPeerListProcessor.cc: New class.
  15355. * src/DelegatingPeerListProcessor.h: New class.
  15356. * src/DelegatingPeerListProcessor.cc: New class.
  15357. * src/TorrentMan.cc
  15358. (addPeer): New function(overload).
  15359. (addPeer): Delete unused peers only when new peer is added.
  15360. * src/TorrentMan.h
  15361. (PeerListProcessor.h): Included.
  15362. (Peers): Removed.
  15363. (addPeer): New function(overload).
  15364. * src/TrackerUpdateCommand.cc
  15365. (netinet/in.h): Removed.
  15366. (DelegatingPeerListProcessor.h): Included.
  15367. (execute): Updated to use DelegatingPeerListProcessor.
  15368. To fix the memory leak in TorrentMan::peers:
  15369. * src/PeerAbstractCommand.cc
  15370. (onAbort): Added peer->resetStatus().
  15371. * src/Peer.h
  15372. (resetStatus): Made public.
  15373. To improve the precision of the speed calculation:
  15374. * src/SpeedCalc.h
  15375. (nextInterval): New variable.
  15376. * src/SpeedCalc.cc
  15377. (reset): Added nextInterval.
  15378. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  15379. (changeSw): Set nextInterval to 15 seconds relative to the current
  15380. instant time.
  15381. * src/main.cc
  15382. (showVersion): Updated.
  15383. (showUsage): Updated.
  15384. * Release 0.8.1
  15385. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15386. * src/main.cc
  15387. (showUsage): Commented out --min-segment-size option.
  15388. (main): Commented out --min-segment-size option.
  15389. * Release 0.8.0
  15390. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15391. * src/*.{h,cc}:
  15392. Added an exception to the license which allows linking with OpenSSL.
  15393. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15394. * src/AbstractCommand.cc
  15395. (execute): Check whether the download has finished before checking
  15396. socket status.
  15397. Return true if peerStat->getStatus() == REQUEST_IDLE.
  15398. Do not exit even if no segment is available.
  15399. * src/prefs.h
  15400. (PREF_STARTUP_IDLE_TIME): New definition.
  15401. * src/PeerInteractionCommand.cc
  15402. (executeInternal): Removed max speed limit. Because it performs bad.
  15403. (receiveMessages): Added max speed limit. This was better than above,
  15404. but still a little bit to be desired. Sometimes the download speed
  15405. became much faster than I specified.
  15406. * src/SpeedCalc.h
  15407. (start): New variable.
  15408. (accumulatedLength): New variable.
  15409. (getAvgSpeed): New function.
  15410. * src/SpeedCalc.cc
  15411. (reset): Added start, accumulatedLength.
  15412. (update): Added calculation of an average speed.
  15413. (getAvgSpeed): New function.
  15414. * src/DownloadCommand.h
  15415. (sw): Removed.
  15416. * src/main.cc
  15417. (main): Added PREF_STARTUP_IDLE_TIME.
  15418. * src/PeerStat.h
  15419. (STATUS): Added REQUEST_IDLE.
  15420. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15421. (getAvgDownloadSpeed): New function
  15422. (requestIdle): New function.
  15423. * src/SegmentMan.h
  15424. (SegmentEntryHandle): New type definition.
  15425. (SegmentEntries): Now holds SegmentEntryHandle.
  15426. (findSlowerSegmentEntry): New funtion.
  15427. * src/SegmentMan.cc
  15428. (save): Updated according to the changes in SegmentEntries.
  15429. (read): Updated according to the changes in SegmentEntries.
  15430. (FindSegmentEntryByIndex): Updated according to the changes in
  15431. SegmentEntries.
  15432. (FindSegmentEntryByCuid): Updated according to the changes in
  15433. SegmentEntries.
  15434. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15435. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15436. Renamed uitr as itr.
  15437. (findSlowerSegmentEntry): New function.
  15438. (getSegment): Updated according to the changes in SegmentEntries.
  15439. Added the feature that cancels the segment with slow server and fast
  15440. one takes it over.
  15441. (cancelSegment): Updated according to the changes in SegmentEntries.
  15442. (getDownloadLength): Updated according to the changes in
  15443. SegmentEntries.
  15444. (init): Assigned 0 to bitfield after deleting it.
  15445. * src/DownloadCommand.cc
  15446. (STARTUP_IDLE_TIME): Removed.
  15447. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15448. * src/PeerChokeCommand.cc
  15449. (optUnchokingPeer): Updated according to the changes in Peer.
  15450. (ResetDelta): Removed.
  15451. (UploadFaster): Updated according to the changes in Peer.
  15452. (DownloadFaster): Updated according to the changes in Peer.
  15453. (execute): I clarify the meaning of "upload" and "download" here.
  15454. "upload" means the transfer from localhost to remote host.
  15455. "download" means the transfer from remote host to localhost.
  15456. Based on this rule, I swapped orderByUploadRate and
  15457. orderByDownloadRate.
  15458. * src/PeerInteractionCommand.cc
  15459. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15460. (executeInternal): Removed the argument of
  15461. peerInteraction->sendMessages().
  15462. (receiveMessages): Rewritten download speed limit.
  15463. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15464. * src/HttpResponseCommand.cc
  15465. (handleDefaultEncoding): If file size is unknown in torrent request,
  15466. do not call segmentMan->initBitfield() here.
  15467. Disabled persistent connection feature in torrent request.
  15468. * src/UrlRequestInfo.h
  15469. (UrlRequestInfo): Removed const qualifier from option.
  15470. * src/TorrentMan.h
  15471. (TransferStat): New class.
  15472. (deltaDownloadLength): Removed.
  15473. (deltaUploadLength): Removed.
  15474. (addDeltaDownloadLength): Removed.
  15475. (getDeltaDownloadLength): Removed.
  15476. (resetDeltaDownloadLength): Removed.
  15477. (addDeltaUploadLength): Removed.
  15478. (getDeltaUploadLength): Removed.
  15479. (resetDeltaUploadLength): Removed.
  15480. (addActivePeer): Added peer->activate().
  15481. (deleteActivePeer): Added peer->deactivate().
  15482. (calculateStat): New function.
  15483. * src/TorrentMan.cc
  15484. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15485. (calculateStat): New function.
  15486. * src/PeerInteraction.h
  15487. (uploadLimit): Removed.
  15488. (option): New variable.
  15489. (setUploadLimit): Removed.
  15490. (getUploadSpeed): Removed.
  15491. (sendMessages): Removed the argument "currentUploadSpeed".
  15492. * src/PeerInteraction.cc
  15493. (prefs.h): Included.
  15494. (PeerInteraction): Removed uploadLimit. Added option.
  15495. (sendMessages): Rewritten upload speed limit.
  15496. (sendHandshake): Removed the argument from sendMessages().
  15497. (sendBitfield): Removed the argument from sendMessages().
  15498. * src/PeerAbstractCommand.cc
  15499. (execute): Commented out the portion of upload limit.
  15500. (onAbort): Removed peer->resetStatus().
  15501. * src/TorrentRequestInfo.cc
  15502. (timeoutSpecified): Declared extern.
  15503. (execute): Set timeout to 180 if timeout is not specified by.
  15504. command-line.
  15505. * src/PieceMessage.cc
  15506. (receivedAction): Added peer->updateDownloadLength().
  15507. Removed peer->addPeerUpload().
  15508. Removed torrentMan->addDeltaDownloadLength().
  15509. (send): Added peer->updateUploadLength().
  15510. Removed peer->addPeerDownload().
  15511. Removed torrentMan->addDeltaUploadLength().
  15512. * src/main.cc
  15513. (timeoutSpecified): New variable.
  15514. (main): Set timeoutSpecified to false.
  15515. If the command-line option "--upload-limit" is specified, then
  15516. timeoutSpecified is set to true. This option will remain in the next
  15517. release, but be deprecated in the future release.
  15518. * src/TorrentRequestInfo.h
  15519. (TorrentRequestInfo): Removed const qualifier from op.
  15520. * src/PeerStat.h
  15521. (uploadSpeed): New variable.
  15522. (PeerStat): Added default value to cuid.
  15523. (calculateUploadSpeed): New function.
  15524. (updateUploadLength): New function.
  15525. (getMaxUploadSpeed): New function.
  15526. (getAvgUploadSpeed): New function.
  15527. (reset): Added uploadSpeed. Set status to IDLE.
  15528. * src/TorrentDownloadEngine.h
  15529. (cp): Declared as Time.
  15530. (sessionDownloadLengthArray): Removed.
  15531. (sessionUploadLengthArray): Removed.
  15532. (currentCp): Removed.
  15533. (lastCalcStat): New variable
  15534. (lastElapsed): Removed.
  15535. (sessionDownloadLength): Removed.
  15536. (calculateStat): New function.
  15537. * src/TorrentDownloadEngine.cc
  15538. (initStatistics): Removed lastElapsed, cp[],
  15539. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15540. currentCp, sessionDownloadLength.
  15541. Added cp.reset() and lastCalcStat.reset().
  15542. (calculateSpeed): Changed the name of the argument.
  15543. (calculateStatistics): Rewritten.
  15544. (calculateStat): New function.
  15545. * src/Peer.h
  15546. (PeerStat.h): Included.
  15547. (peerUpload): Removed.
  15548. (peerDownload): Removed.
  15549. (peerStat): New variable.
  15550. (sessionUploadLength): New variable.
  15551. (sessionDownloadLength): New variable.
  15552. (deltaUpload): Removed.
  15553. (deltaDownload): Removed.
  15554. (resetStatus): Made private.
  15555. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15556. Removed peerUpload, peerDownload.
  15557. (updateUploadLength): New function.
  15558. (addDeltaUpload): Removed.
  15559. (updateDownloadLength): New function.
  15560. (resetDeltaUpload): Removed.
  15561. (getDeltaUpload): Removed.
  15562. (addDeltaDownload): Removed.
  15563. (calculateUploadSpeed): New function.
  15564. (resetDeltaDownload): Removed.
  15565. (getDeltaDownload): Removed.
  15566. (calculateDownloadSpeed): New function.
  15567. (getSessionUploadLength): New function.
  15568. (getSessionDownloadLength): New function.
  15569. (activate): New function.
  15570. (deactivate): New function.
  15571. (addPeerUpload): Removed.
  15572. (setPeerUpload): Removed.
  15573. (getPeerUpload): Removed.
  15574. (addPeerDownload): Removed.
  15575. (setPeerDownload): Removed.
  15576. (getPeerDownload): Removed.
  15577. * src/Peer.cc
  15578. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15579. * src/MetalinkRequestInfo.h
  15580. (MetalinkRequestInfo): Removed const qualifier from op.
  15581. * src/RequestInfo.h
  15582. (op): Removed const qualifier.
  15583. (RequestInfo): Removed const qualifier from op.
  15584. * src/prefs.h
  15585. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15586. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15587. * src/PeerInteractionCommand.cc
  15588. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15589. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15590. * src/PeerInteraction.cc
  15591. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15592. * src/main.cc
  15593. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15594. Added the description of "--max-download-limit" option.
  15595. Removed the description of "--upload-limit" option.
  15596. Added the description of "--max-upload-limit" option.
  15597. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15598. Added "--max-download-limit" option and "--max-upload-limit" option.
  15599. Added the warning message if "--upload-limit" option is used.
  15600. * src/DownloadCommand.cc
  15601. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15602. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15603. To rewrite segment download mechanism for HTTP/FTP download.
  15604. Use BitfieldMan to manage segment download.
  15605. * src/HttpResponseCommand.h
  15606. (executeInternal): Pass the reference of segment.
  15607. * src/AbstractCommand.cc
  15608. (prepareForRetry): Call segmentMan->cancelSegment here.
  15609. (onAbort): Call segmentMan->cancelSegment here.
  15610. * src/HttpDownloadCommand.cc
  15611. (prepareForNextSegment): New function.
  15612. * src/DownloadEngineFactory.cc
  15613. (newConsoleEngine): Removed splitter.
  15614. (newTorrentConsoleEngine): Removed splitter.
  15615. * src/Request.h
  15616. (segment): Renamed from seg.
  15617. * src/FtpInitiateConnectionCommand.h
  15618. (executeInternal): Pass the reference of segment.
  15619. * src/AbstractCommand.h
  15620. (executeInternal): Pass the reference of segment.
  15621. * src/pref.h
  15622. (PREF_SEGMENT_SIZE): New definition.
  15623. * src/HttpProxyRequestCommand.h
  15624. (executeInternal): Pass the reference of segment.
  15625. * src/HttpResponseCommand.cc
  15626. (checkResponse): Allowed status 206 when a request range starts 0.
  15627. (handleDefaultEncoding): Rewritten the code related to Segment.
  15628. (handleOtherEncoding): Rewritten the code related to Segment.
  15629. * src/SegmentMan.h
  15630. (SegmentEntry): New class.
  15631. (SegmentEntries): New type definition.
  15632. (bitfield): New variable.
  15633. (usedSegmentEntries): New variable.
  15634. (onNullBitfield): New function.
  15635. (checkoutSegment): New function.
  15636. (segments): Removed.
  15637. (splitter): Removed.
  15638. (unregisterId): Removed.
  15639. (getSegment): New function(overload)
  15640. (getDownloadedSize): Removed.
  15641. (cancelSegment): New function.
  15642. (completeSegment): New function.
  15643. (initBitfield): New function.
  15644. (hasSegment): New function.
  15645. (getDownloadLength): New function.
  15646. * src/BitfieldMan.h
  15647. (getStartIndex): New function.
  15648. (getEndIndex): New function.
  15649. (getMissingUnusedIndex): New function(overload).
  15650. (getSparseMissingUnusedIndex): New function.
  15651. * src/BitfieldMan.cc
  15652. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15653. (getMissingUnusedIndex): New function(overload).
  15654. (Range): New class.
  15655. (getStartIndex): New function.
  15656. (getEndIndex): New function.
  15657. (getSparseMissingUnusedIndex): New function.
  15658. (isBitSetInternal): Return false if the given index is less than 0.
  15659. * src/HttpInitiateConnectionCommand.h
  15660. (executeInternal): Pass the reference of segment.
  15661. * src/FtpNegotiateCommand.h
  15662. (executeInternal): Pass the reference of segment.
  15663. * src/FtpNegotiateCommand.cc
  15664. (recvSize): Initialize bitfield here.
  15665. * src/FtpTunnelResponseCommand.h
  15666. (executeInternal): Pass the reference of segment.
  15667. * src/HttpConnection.cc
  15668. (createRequest): Rewritten range header processing.
  15669. * src/DownloadCommand.h
  15670. (executeInternal): Pass the reference of segment.
  15671. (prepareForRetry): Removed.
  15672. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15673. function.
  15674. * src/main.cc
  15675. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15676. * src/SegmentMan.cc
  15677. (SegmentMan): Added bitfield. Removed splitter.
  15678. (~SegmentMan): Added bitfield. Removed splitter.
  15679. (unregisterId): Removed.
  15680. (getSegment): Rewritten.
  15681. (updateSegment): Rewritten.
  15682. (save): Rewritten.
  15683. (read): Rewritten.
  15684. (finished): Rewritten.
  15685. (getDownloadedSize): Removed.
  15686. (initBitfield): New function.
  15687. (FindSegmentEntryByIndex): New function object.
  15688. (FindSegmentEntryByCuid): New function object.
  15689. (checkoutSegment): New function.
  15690. (onNullBitfield): New function.
  15691. (getSegment): New function(overload).
  15692. (CancelSegment): New function object.
  15693. (cancelSegment): New function.
  15694. (completeSegment): New function.
  15695. (hasSegment): New function.
  15696. (getDownloadLength): New function.
  15697. * src/FtpInitiateConnectionCommand.cc
  15698. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15699. * src/Segment.h: Rewritten.
  15700. * src/Segment.cc (operator<<): New function.
  15701. * src/HttpDownloadCommand.h
  15702. (prepareForNextSegment): New function.
  15703. * src/Request.cc
  15704. (resetUrl): Made segment null.
  15705. * src/DownloadEngine.cc
  15706. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15707. * src/HttpProxyRequestCommand.h
  15708. (executeInternal): Pass the reference of segment.
  15709. * src/DownloadCommand.cc
  15710. (executeInternal): Rewritten the code related to Segment.
  15711. (prepareForRetry): Removed.
  15712. (prepareForNextSegment): Rewritten.
  15713. * src/FtpTunnelResponseCommand.h
  15714. (executeInternal): Pass the reference of segment.
  15715. To add HTTP 1.1 persistent connection support(experimental)
  15716. * src/HttpRequestCommand.cc
  15717. (executeInternal): Disable keep alive if it is disabled by
  15718. configuration.
  15719. * src/Request.h
  15720. (keepAlive): New variable.
  15721. (isKeepAlive): New function.
  15722. (setKeepAlive): New function.
  15723. * src/pref.h
  15724. (PREF_HTTP_KEEP_ALIVE): New definition.
  15725. * src/HttpResponseCommand.cc
  15726. (executeInternal): Check the remote server supports keep alive.
  15727. * src/HttpConnection.cc
  15728. (createRequest): Send "Connection: close" only if keep alive is
  15729. disabled.
  15730. * src/main.cc
  15731. (main):
  15732. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15733. To add max download speed limit:
  15734. * src/pref.h
  15735. (PREF_MAX_SPEED_LIMIT): New definition.
  15736. * src/PeerInteractionCommand.cc
  15737. (executeInternal): Added max download speed limit. Not tested yet.
  15738. * src/SegmentMan.h
  15739. (PeerStats): New type definition.
  15740. (peerStats): New variable.
  15741. (registerPeerStat): New function.
  15742. (FindPeerStat): New function object.
  15743. (getPeerStat): New function.
  15744. (calculateDownloadSpeed): New function.
  15745. * src/SpeedCalc.h: New class.
  15746. * src/SpeedCalc.cc: New class.
  15747. * src/main.cc
  15748. (main):
  15749. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15750. download speed is not restricted).
  15751. * src/PeerStat.h: New class.
  15752. * src/SegmentMan.cc
  15753. (registerPeerStat): New function.
  15754. (calculateDownloadSpeed): New function.
  15755. * src/DownloadCommand.cc
  15756. (STARTUP_IDLE_TIME): New definition.
  15757. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15758. downloadStart.
  15759. (~DownloadCommand): Call peerStat->downloadStop.
  15760. (executeInternal): Added download speed limitter. Rewritten lowest
  15761. speed limitter.
  15762. * src/HttpConnection.cc
  15763. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15764. * src/AbstractCommand.cc
  15765. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15766. Added hostname to the error message.
  15767. * src/ConsoleDownloadEngine.cc
  15768. (calculateStatistics): Initialize psize with dlSize.
  15769. * src/PieceMessage.cc
  15770. (receivedAction): Do not call peerInteraction->abortPiece here.
  15771. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15772. * src/BitfieldMan.h
  15773. (clearAllUseBit): New function.
  15774. (setAllUseBit): New function.
  15775. * src/BitfieldMan.cc
  15776. (clearAllBit): Do not clear useBitfield here.
  15777. (clearAllUseBit): New function.
  15778. (setAllUseBit): New function.
  15779. * src/Piece.cc
  15780. (clearAllBlock): Call bitfield->clearAllUseBit().
  15781. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15782. To make filename URL-decoded:
  15783. * src/HttpResponseCommand.h: Updated doc.
  15784. * src/HttpResponseCommand.cc
  15785. (determinFilename): Made filename URL-decoded.
  15786. * src/FtpInitiateConnectionCommand.cc
  15787. (executeInternal): Made filename URL-decoded.
  15788. * src/Util.h (urldecode): New function.
  15789. * src/Util.cc (urldecode): New function.
  15790. To fix a bug that caused assertion failure in ares_strerror:
  15791. * src/NameResolver.cc (callback): Fixed the bug.
  15792. * Release 0.7.3
  15793. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15794. To add --seed-time and --seed-ratio command-line option:
  15795. * src/Option.h (getAsDouble): New function.
  15796. * src/Option.cc (getAsDouble): New function.
  15797. * src/SeedCheckCommand.h: New class.
  15798. * src/SeedCheckCommand.cc: New class.
  15799. * src/DownloadEngineFactory.cc
  15800. (SeedCheckCommand.h): Included.
  15801. (UnionSeedCriteria.h): Included.
  15802. (TimeSeedCriteria.h): Included.
  15803. (ShareRatioSeedCriteria.h): Included.
  15804. (newTorrentConsoleEngine): Added the processing of seed option.
  15805. * src/SeedCriteria.h: New class.
  15806. * src/ShareRatioSeedCriteria.h: New class.
  15807. * src/TimeSeedCriteria.h: New class.
  15808. * src/UnionSeedCriteria.h: New class.
  15809. * src/prefs.h
  15810. (PREF_SEED_TIME): New definition.
  15811. (PREF_SEED_RATIO): New definition.
  15812. * src/main.cc
  15813. (showUsage): Added --seed-time and --seed-ratio option.
  15814. (main): Added --seed-time and --seed-ratio option.
  15815. Made default log file name "/dev/null".
  15816. * src/SharedHandle.h
  15817. (SharedHandle): Copy constructor. Made it assignable from the
  15818. SharedHandle of the subclasses.
  15819. (operator=): Made it assignable from the SharedHandle of the
  15820. subclasses.
  15821. (getRefCount): New function.
  15822. To add notice log level and the switch to write log to stdout. This
  15823. switch is configurable per log level.
  15824. * src/Logger.h
  15825. (notice): New function.
  15826. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15827. constant.
  15828. * src/LogFactory.cc
  15829. (getInstance): The use of NullLogger was removed. A log message with
  15830. notice log level was made written to stdout along with log file.
  15831. * src/NullLogger.h
  15832. (notice): New function.
  15833. * src/SimpleLogger.h
  15834. (writeHeader): Added the 'file' argument.
  15835. (writeLog): Added the 'file' argument.
  15836. (writeFile): New function.
  15837. (stdoutField): New variable.
  15838. (SimpleLogger): Removed the default constructor.
  15839. (SimpleLogger): Made the default value of logfile 0.
  15840. (debug): Added 'virtual' keyword.
  15841. (info): Added 'virtual' keyword.
  15842. (warn): Added 'virtual' keyword.
  15843. (error): Added 'virtual' keyword.
  15844. (notice): New function.
  15845. (setStdout): New function.
  15846. * src/SimpleLogger.cc
  15847. (WRITE_LOG): Replaced writeLog with writeFile.
  15848. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15849. (SimpleLogger): Removed the default constructor.
  15850. (setStdout): New function.
  15851. (writeLog): Added the handling of NOTICE log level.
  15852. (writeFile): New function.
  15853. (notice): New function.
  15854. * src/TorrentMan.h: Updated doc.
  15855. * src/BitfieldMan.h: Updated doc.
  15856. * src/TrackerWatcherCommand.cc
  15857. (execute): Return true if error occurred in the request to the tracker
  15858. and halt is requested.
  15859. * src/TrackerUpdateCommand.cc
  15860. (execute): Return true if error occurred in the request to the tracker
  15861. and halt is requested.
  15862. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15863. DownloadEngine:
  15864. * src/TorrentConsoleDownloadEngine.h
  15865. (onSelectiveDownloadingCompletes): Removed.
  15866. * src/TorrentConsoleDownloadEngine.cc
  15867. (onSelectiveDownloadingCompletes): Removed.
  15868. * src/TorrentDownloadEngine.h
  15869. (onEndOfRun): Added 'virtual' keyword.
  15870. (afterEachIteration): Removed.
  15871. (onSelectiveDownloadingCompletes): Removed.
  15872. * src/TorrentDownloadEngine.cc
  15873. (onEndOfRun): Removed filenameFixed.
  15874. (afterEachIteration): Removed.
  15875. * src/TorrentMan.cc
  15876. (completePiece): Call onDownloadComplete here.
  15877. (onDownloadComplete): Added 2 log messages.
  15878. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15879. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15880. * src/NameResolver.h: Added the prototype declaration of callback().
  15881. To support c-ares library:
  15882. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15883. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15884. * src/FtpInitiateConnectionCommand.h:
  15885. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15886. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15887. * src/HttpInitiateConnectionCommand.h:
  15888. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15889. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15890. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15891. #1542285 by tizianomueller)
  15892. * src/HttpInitiateConnectionCommand.cc:
  15893. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15894. * src/FtpInitiateConnectionCommand.cc:
  15895. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15896. * src/DownloadEngine.h:
  15897. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15898. * src/DownloadEngine.cc:
  15899. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15900. To fix the bug that causes compilation failure with metalink-support
  15901. disabled(bug#1543587):
  15902. * src/main.cc: Fixed with the patch by tizianomueller.
  15903. * Release 0.7.2
  15904. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15905. * src/main.cc
  15906. (main): Added a message to inform users that aria2 is starting to
  15907. verify checksum.
  15908. * src/RequestInfo.cc
  15909. (printDownloadAbortMessage): Added a message to inform users that
  15910. transfer can be resumed.
  15911. * src/FeatureConfig.cc
  15912. (FEATURE_ASYNC_DNS): New definition.
  15913. (FeatureConfig): Added aysnc DNS entry.
  15914. To replace CommandUuid with Command* in SocketEntry and
  15915. NameResolverEntry:
  15916. * src/DownloadEngine.h
  15917. (CommandUuids): Removed.
  15918. (SocketEntry::commandUuid): Removed.
  15919. (SocketEntry::command): New variable.
  15920. (SocketEntry::SocketEntry): Updated.
  15921. (SocketEntry::operator==): Updated.
  15922. (NameResolverEntry::commandUuid): Removed.
  15923. (NameResolverEntry::command): New variable.
  15924. (NameResolverEntry::NameResolverEntry): Updated.
  15925. (NameResolverEntry::operator==): Updated.
  15926. (waitData): Changed the argument type.
  15927. (addSocketForReadCheck): Changed the argument type.
  15928. (deleteSocketForReadCheck): Changed the argument type.
  15929. (addSocketForWriteCheck): Changed the argument type.
  15930. (deleteSocketForWriteCheck): Changed the argument type.
  15931. (addNameResolverCheck): Changed the argument type.
  15932. (deleteNameResolverCheck): Changed the argument type.
  15933. * src/DownloadEngine.cc
  15934. (FindCommand): Removed.
  15935. (run): Removed activeUuid. Added activeCommands instead.
  15936. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15937. (AccumulateActiveCommand): New function object.
  15938. (waitData): Use AccumulateActiveCommand.
  15939. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15940. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15941. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15942. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15943. (addNameResolverCheck): Use Command instead of CommandUuid.
  15944. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15945. * src/AbstractCommand.cc
  15946. (disableReadCheckSocket): Updated according to the changes in
  15947. DownloadEngine.
  15948. (setReadCheckSocket): Updated according to the changes in
  15949. DownloadEngine.
  15950. (disableWriteCheckSocket): Updated according to the changes in
  15951. DownloadEngine.
  15952. (setWriteCheckSocket): Updated according to the changes in
  15953. DownloadEngine.
  15954. (setNameResolverCheck): Updated according to the changes in
  15955. DownloadEngine.
  15956. (disableNameResolverCheck): Updated according to the changes in
  15957. DownloadEngine.
  15958. * src/AbstractCommand.cc
  15959. (disableReadCheckSocket): Updated according to the changes in
  15960. DownloadEngine.
  15961. (setReadCheckSocket): Updated according to the changes in
  15962. DownloadEngine.
  15963. (disableWriteCheckSocket): Updated according to the changes in
  15964. DownloadEngine.
  15965. (setWriteCheckSocket): Updated according to the changes in
  15966. DownloadEngine.
  15967. * release 0.7.1
  15968. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15969. To handle the case where some BitTorrent tracker requires all letters
  15970. except for [A-Za-z0-9] is URL encoded.
  15971. * src/Util.h
  15972. (torrentUrlencode): New function.
  15973. * src/Util.cc
  15974. (ctype.h): Included.
  15975. (torrentUrlencode): New function.
  15976. * src/TrackerWatcherCommand.cc
  15977. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15978. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15979. To add asynchronous DNS support(libares):
  15980. * src/AbstractCommand.h
  15981. (setNameResolverCheck): New function.
  15982. (disableNameResolverCheck): New function
  15983. (resolveHostname): New function.
  15984. * src/AbstractCommand.cc
  15985. (setNameResolverCheck): New function.
  15986. (disableNameResolverCheck): New function
  15987. (resolveHostname): New function.
  15988. * src/FtpInitiateConnectionCommand.h
  15989. (nameResolver): New function.
  15990. * src/FtpInitiateConnectionCommand.cc
  15991. (Util.h): Included.
  15992. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15993. disableWriteCheckSocket.
  15994. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15995. (executeInternal): Added async DNS support.
  15996. * src/HttpInitiateConnectionCommand.h
  15997. (nameResolver): New function.
  15998. * src/HttpInitiateConnectionCommand.cc
  15999. (DlRetryEx.h): Included.
  16000. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  16001. disableWriteCheckSocket.
  16002. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  16003. (executeInternal): Added async DNS support.
  16004. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  16005. by extern "C" declaration.
  16006. * src/NameResolver.cc: New class.
  16007. * src/Util.h:
  16008. (isNumberAndDotsNotation): New function
  16009. * src/Util.cc
  16010. (isNumberAndDotsNotation): New function.
  16011. * src/DownloadEngine.h
  16012. (NameResolver.h): Included.
  16013. (NameResolverEntry): New class.
  16014. (NameResolverEntries): New type definition.
  16015. (addNameResolverCheck): New function.
  16016. (deleteNameResolverCheck): New function.
  16017. * src/DownloadEngine.cc
  16018. (run): Initialize cp with 0.
  16019. (SetDescriptor::operator()): Added for NameResolverEntry.
  16020. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  16021. (waitData): Check nameResolver entries.
  16022. (updateFdSet): Update fds in nameResolver entries.
  16023. (addNameResolverCheck): New function.
  16024. (deleteNameResolverCheck): new function.
  16025. * src/PeerInteractionCommand.cc
  16026. (executeInternal): Fixed wrong socket handling.
  16027. * src/main.cc
  16028. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  16029. * src/Util.cc
  16030. (fileChecksum): Removed the call to ctx.digestReset().
  16031. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16032. * po/ru.po: Azamat sent me Russian translation.
  16033. * src/FtpNegotiateCommand.cc
  16034. (recvGreeting): Call disableWriteCheckSocket just after
  16035. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  16036. (recvRetr): Recognized status code 125 as a acceptable response code.
  16037. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  16038. case-insesitive filesystem(BUG#1531057).
  16039. * src/Time.h: Renamed as TimeA2.h.
  16040. * src/Time.cc: Renamed as TimeA2.cc.
  16041. * src/TimeA2.h: New class.
  16042. * src/TimeA2.cc: New class.
  16043. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  16044. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  16045. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  16046. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  16047. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  16048. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16049. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  16050. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  16051. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  16052. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  16053. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  16054. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  16055. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  16056. * release 0.7.0
  16057. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16058. * src/PeerChokeCommand.h
  16059. (PeerChokeCommand): Rearranged the arguments.
  16060. * src/PeerChokeCommand.cc
  16061. (PeerChokeCommand): Rearranged the arguments.
  16062. * src/MetalinkEntry.h
  16063. (Checksum.h): Included.
  16064. (md5): Removed.
  16065. (sha1): Removed.
  16066. (checksum): New variable.
  16067. (operator=): Updated.
  16068. (check): Removed.
  16069. * src/prefs.h
  16070. (PREF_LOWEST_SPEED_LIMIT): New definition.
  16071. (PREF_FOLLOW_TORRENT): New definition.
  16072. (PREF_SELECT_FILE): New definition.
  16073. (PREF_FOLLOW_METALINK): New definition.
  16074. * src/MetalinkResource.h
  16075. (TYPE_HTTPS): Added to enum TYPE.
  16076. * src/TorrentMan.cc
  16077. (~TorrentMan): Rewritten.
  16078. * src/MultiDiskWriter.cc
  16079. (MultiDiskAdaptor): Updated according to the changes in
  16080. MessageDigestContext.
  16081. (~MultiDiskAdaptor): Updated according to the changes in
  16082. MessageDigestContext.
  16083. (hashUpdate): Updated according to the changes in MessageDigestContext.
  16084. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16085. * src/Util.h
  16086. (fileChecksum): Updated according to the changes in
  16087. MessageDigestContext.
  16088. * src/Util.cc
  16089. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16090. (fileChecksum): Updated according to the changes in
  16091. MessageDigestContext.
  16092. * src/messageDigest.h: Rewritten.
  16093. * src/MetalinkEntry.cc
  16094. (check): Removed.
  16095. (Supported): Updated.
  16096. (dropUnsupportedResource): Fixed a memory leak.
  16097. * src/ShaVisitor.cc
  16098. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  16099. (~ShaVisitor): Updated according to the changes in
  16100. MessageDigestContext.
  16101. (visit): Updated according to the changes in MessageDigestContext.
  16102. * src/main.cc
  16103. (main): Rewritten the portion of download loop. --lowest-speed-limit
  16104. command-line option added.
  16105. * src/DownloadEngine.h
  16106. (SocketEntry): New class.
  16107. (SocketEntries): New definition.
  16108. (PairFind): Removed.
  16109. (SockCmdMap): Removed.
  16110. * src/DownloadEngine.cc
  16111. (DownloadEngine): Rewritten.
  16112. (~DownloadEngine): Rewritten.
  16113. (run): Renamed activeCommandUuids as activeUuids.
  16114. (SetDescriptor): Rewritten.
  16115. (AccumulateActiveCommandUuid): Removed.
  16116. (AccumulateActiveUuid): New function object.
  16117. (waitData): Rewritten.
  16118. (updateFdSet): Rewritten.
  16119. (addSocket): Rewritten.
  16120. (deleteSocket): Rewritten.
  16121. (addSocketForReadCheck): Rewritten.
  16122. (deleteSocketForReadCheck): Rewritten.
  16123. (addSocketForWriteCheck): Rewritten.
  16124. (deleteSocketForWriteCheck): Rewritten.
  16125. * src/Xml2MetalinkProcessor.cc
  16126. (getEntry): Rewritten the portion of MetalinkEntry creation.
  16127. * src/DownloadCommand.cc
  16128. (executeInternal): Added the check routine for lowest speed limit.
  16129. * src/AbstractDiskWriter.cc
  16130. (AbstractDiskWriter): Updated according to the changes in
  16131. MessageDigestContext.
  16132. (~AbstractDiskWriter): Updated according to the changes in
  16133. MessageDigestContext.
  16134. (sha1Sum): Updated according to the changes in MessageDigestContext.
  16135. * src/RequestInfo.h: New class.
  16136. * src/UrlRequestInfo.h: New class.
  16137. * src/UrlRequestInfo.cc: New class.
  16138. * src/TorrentRequestInfo.h: New class.
  16139. * src/TorrentRequestInfo.cc: New class.
  16140. * src/MetalinkRequestInfo.h: New class.
  16141. * src/MetalinkRequestInfo.cc: New class.
  16142. * src/Checksum.h: New class.
  16143. * src/DownloadEngineFactory.h: New class.
  16144. * src/DownloadEngineFactory.cc: New class.
  16145. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16146. * src/Option.h
  16147. (getAsBool): New function.
  16148. * src/Option.cc
  16149. (prefs.h): Included.
  16150. (defined): 0-length value is now recognized as undefined.
  16151. (getAsInt): Rewritten.
  16152. (getAsLLInt): Rewritten.
  16153. (getAsBool): New function.
  16154. * src/FeatureConfig.h: Rewritten.
  16155. * src/FeatureConfig.cc: Rewritten.
  16156. * src/prefs.h
  16157. (PREF_STDOUT_LOG): New definition.
  16158. (PREF_LOG): New definition.
  16159. (PREF_DIR): New definition.
  16160. (PREF_OUT): New definition.
  16161. (PREF_SPLIT): New definition.
  16162. (PREF_DAEMON): New definition.
  16163. (PREF_REFERER): New definition.
  16164. (PREF_TORRENT_FILE): New definition.
  16165. (PREF_LISTEN_PORT): New definition.
  16166. (PREF_METALINK_FILE): New definition.
  16167. (PREF_METALINK_VERSION): New definition.
  16168. (PREF_METALINK_LANGUAGE): New definition.
  16169. (PREF_METALINK_OS): New definition.
  16170. (PREF_METALINK_SERVERS): New definition.
  16171. * src/main.cc
  16172. (main): Following command-line parameters are now put into Option
  16173. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  16174. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  16175. metalinkLanguage, metalinkOs, metalinkServers
  16176. To fix the bug that aria2 can not handle http response header properly.
  16177. * src/HttpHeader.cc
  16178. (put): Made name lowercased.
  16179. (defined): Made name lowercased.
  16180. (getFirst): Made name lowercased.
  16181. (get): Made name lowercased.
  16182. (getFirstAsInt): Rewritten.
  16183. (getFirstAsLLInt): Rewritten.
  16184. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16185. * src/TorrentMan.h:
  16186. (advertisePiece): Updated doc.
  16187. (getAdvertisedPieceIndexes): Updated doc.
  16188. (removeAdvertisedPiece); New function.
  16189. * src/TorrentMan.cc
  16190. (FindElapsedHave): New function object.
  16191. (removeAdvertisedPiece): New function.
  16192. * src/HaveEraseCommand.h: New class.
  16193. * src/HaveEraseCommand.cc: New class.
  16194. * src/FeatureConfig.h: New class.
  16195. * src/FeatureConfig.cc: New class.
  16196. * src/Request.h
  16197. (defaultPorts): Removed.
  16198. * src/Request.cc
  16199. (FeatureConfig.h): Included.
  16200. (Request): Removed the statements related to defaultPorts.
  16201. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  16202. A default port number is now retrieved from FeatureConfig.
  16203. * src/main.cc
  16204. (HaveEraseCommand.h): Included.
  16205. (showVersion): Added the output of feature list.
  16206. (main): Added HaveEraseCommand to command queue in BitTorrent
  16207. downloading.
  16208. * src/PeerInteractionCommand.h
  16209. (chokeCheckPoint): Commented out.
  16210. (periodicExecPoint): New variable.
  16211. * src/PeerInteractionCommand.cc
  16212. (executeInternal): Following methods are now called in at least every
  16213. 0.5 seconds to reduce CPU usage:
  16214. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  16215. checkHave(), sendKeepAlive().
  16216. (checkLongTimePeerChoking): Commented out.
  16217. * src/BitfieldMan.h
  16218. (getNthBitIndex): Changed the method signature.
  16219. (getMissingIndexRandomly): Changed the method signature.
  16220. * src/BitfieldMan.cc
  16221. (getNthBitIndex): Rewritten
  16222. (getMissingIndexRandomly): Rewritten.
  16223. (hasMissingPiece): Rewritten.
  16224. (getMissingIndex): Refactored.
  16225. (getMissingUnusedIndex); Refactored.
  16226. (getMissingIndex): Refactored.
  16227. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16228. * src/PeerMessage.h
  16229. (Piece.h): Included.
  16230. (SharedHandle.h): Included.
  16231. (invalidate): New variable.
  16232. (uploading): New variable.
  16233. (isInvalidate): New function.
  16234. (isUploading): New function.
  16235. (onPush): New function.
  16236. (onChoked): New function.
  16237. (onCanceled): New function.
  16238. (onAbortPiece): New function.
  16239. (PeerMessageHandle): New type definition.
  16240. * src/PeerMessage.cc
  16241. (PeerMessage): Added the initialization for invalidate and uploading.
  16242. * src/CancelMessage.h
  16243. (CancelMessage): Rewritten.
  16244. * src/RejectMessage.h
  16245. (RejectMessage): Rewritten.
  16246. * src/Metalinker.h
  16247. (operator=): Defined.
  16248. * src/MetaEntry.h
  16249. (operator=): Defined.
  16250. * src/MetalinkResource.h
  16251. (operator=): Defined.
  16252. * src/AllowedFastMessage.h
  16253. (AllowedFastMessage): Rewritten.
  16254. * src/HandshakeMessage.h
  16255. (HandshakeMessage): New function(overload).
  16256. * src/HandshakeMessage.cc
  16257. (HandshakeMessage): Rewritten.
  16258. (init): New function.
  16259. * src/HaveMessage.h
  16260. (HaveMessage): Rewritten.
  16261. * src/Time.h
  16262. (operator=): Defined the function body here.
  16263. * src/Time.cc
  16264. (operator=): Removed.
  16265. * src/SocketCore.h
  16266. (operator==): Defined here.
  16267. (operator!=): Defined here.
  16268. (operator<): Defined here.
  16269. * src/SocketCore.cc
  16270. (operator==): Removed.
  16271. (operator<): Removed.
  16272. * src/BitfieldMan.h
  16273. (operator=): Defined the function body here.
  16274. * src/BitfieldMan.cc
  16275. (operator=): Removed.
  16276. * src/TorrentMan.h
  16277. (deleteErrorPeer): Removed.
  16278. (deleteUnusedPeer); New function.
  16279. * src/TorrentMan.cc
  16280. (addPeer): Call deleteUnusedPeer.
  16281. (deleteErrorPeer): Removed.
  16282. (deleteUnusedPeer): New function.
  16283. * src/PeerAbstractCommand.h
  16284. (setNoCheck): New function.
  16285. (noCheck): New variable.
  16286. * src/PeerAbstractCommand.cc
  16287. (PeerAbstractCommand): Added the initialization of noCheck.
  16288. (execute): Added a check for noCheck.
  16289. (setNoCheck): New function.
  16290. * src/Util.h
  16291. (stdio.h): Included.
  16292. * src/Util.cc
  16293. (unistd.h): Included.
  16294. * src/DefaultDiskWriter.cc
  16295. (unistd.h): Included.
  16296. * src/Peer.h
  16297. (operator==): Defined the function body here.
  16298. (operator!=): Defined the function body here.
  16299. * src/Peer.cc
  16300. (operator==): Removed.
  16301. (operator!=): Removed.
  16302. * src/Piece.h
  16303. (Piece): Defined the function body here(copy constructor).
  16304. (operator=): Defined the function body here.
  16305. (operator==): Defined the function body here.
  16306. * src/Piece.cc
  16307. (Piece): Removed(copy constructor).
  16308. (operator=): Removed.
  16309. (operator==): Removed.
  16310. * src/PeerMessageUtil.h
  16311. (ChokeMessage.h): Removed.
  16312. (UnchokeMessage.h): Removed.
  16313. (InterestedMessage.h): Removed.
  16314. (NotInterestedMessage.h): Removed.
  16315. (HaveMessage.h): Removed.
  16316. (BitfieldMessage.h): Removed.
  16317. (RequestMessage.h): Removed.
  16318. (CancelMessage.h): Removed.
  16319. (PieceMessage.h): Removed.
  16320. (HandshakeMessage.h): Removed.
  16321. (KeepAliveMessage.h): Removed.
  16322. (PortMessage.h): Removed.
  16323. (HaveAllMessage.h): Removed.
  16324. (HaveNoneMessage.h): Removed.
  16325. (PeerConnection.h): Removed.
  16326. (HandshakeMessage.h): Included.
  16327. * src/BitfieldMessage.h
  16328. (init): New function.
  16329. (BitfieldMessage): Rewritten.
  16330. (BitfieldMessage): New function(overload).
  16331. * src/RequestSlot.h
  16332. (operator=): Defined the function body here.
  16333. (operator==): Defined the function body here.
  16334. * src/RequestSlot.cc
  16335. (operator=): Removed.
  16336. (operator==): Removed.
  16337. To remove the dependency on the PeerMessage subclass from
  16338. PeerInteraction:
  16339. * src/PeerMessageFactory.h: New class.
  16340. * src/PeerMessageFactory.cc: New class.
  16341. * src/SimplePeerMessage.cc
  16342. (send): If invalidate is true then do nothing.
  16343. * src/PeerInteractionCommand.cc
  16344. (HandshakeMessage.h): Included.
  16345. (KeepAliveMessage.h): Included.
  16346. (ChokeMessage.h): Included.
  16347. (UnchokeMessage.h): Included.
  16348. (HaveMessage.h): Included.
  16349. (executeInternal): Call setNoCheck().
  16350. Removed setWriteCheckSocket(socket).
  16351. * src/PeerInteraction.h
  16352. (ChokeMessage.h): Removed.
  16353. (UnchokeMessage.h): Removed.
  16354. (InterestedMessage.h): Removed.
  16355. (NotInterestedMessage.h): Removed.
  16356. (HaveMessage.h): Removed.
  16357. (BitfieldMessage.h): Removed.
  16358. (RequestMessage.h): Removed.
  16359. (CancelMessage.h): Removed.
  16360. (PieceMessage.h): Removed.
  16361. (HandshakeMessage.h): Removed.
  16362. (KeepAliveMessage.h): Removed.
  16363. (PortMessage.h): Removed.
  16364. (HaveAllMessage.h): Removed.
  16365. (HaveNoneMessage.h): Removed.
  16366. (RejectMessage.h): Removed.
  16367. (AllowedFastMessage.h): Removed.
  16368. (SuggestPieceMessage.h): Removed.
  16369. (PeerMessageFactory.h): Included.
  16370. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  16371. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  16372. (PeerMessageFactory): New variable.
  16373. (createPeerMessage): Removed.
  16374. (createHandshakeMessage): Removed.
  16375. (setPeerMessageCommonProperty): Removed.
  16376. (addRequestSlot): New function.
  16377. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16378. (getPeerMessageFactory): New function.
  16379. (createRequestMessage): Removed.
  16380. (createCancelMessage): Removed.
  16381. (createPieceMessage): Removed.
  16382. (createHaveMessage): Removed.
  16383. (createChokeMessage): Removed.
  16384. (createUnchokeMessage): Removed.
  16385. (createInterestedMessage): Removed.
  16386. (createNotInterestedMessage): Removed.
  16387. (createBitfieldMessage): Removed.
  16388. (createKeepAliveMessage): Removed.
  16389. (createHaveAllMessage): Removed.
  16390. (createHaveNoneMessage): Removed.
  16391. (createRejectMessage): Removed.
  16392. (createAllowedFastMessage): Removed.
  16393. * src/PeerInteraction.cc
  16394. (PeerInteraction): Allocate PeerMessageFactory here.
  16395. (~PeerInteraction): Deallocate PeerMessageFactory here.
  16396. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  16397. PieceMessage::ID.
  16398. (addMessage): Simplified by using PeerMessage::onPush().
  16399. (addRequestSlot): New function.
  16400. (rejectAllPieceMessageInQueue): Simplified by using
  16401. PeerMessage::onChoked().
  16402. (rejectPieceMessageInQueue): Simplified by using
  16403. PeerMessage::onCanceled().
  16404. (abortPiece): Simplified by using PeerMessage::abortPiece().
  16405. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  16406. (createHandshakeMessage): Removed.
  16407. (createPeerMessage): Removed.
  16408. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  16409. (setPeerMessageCommonProperty): Removed.
  16410. (createRequestMessage): Removed.
  16411. (createCancelMessage): Removed.
  16412. (createPieceMessage): Removed.
  16413. (createHaveMessage): Removed.
  16414. (createChokeMessage): Removed.
  16415. (createUnchokeMessage): Removed.
  16416. (createInterestedMessage): Removed.
  16417. (createNotInterestedMessage): Removed.
  16418. (createBitfieldMessage): Removed.
  16419. (createKeepAliveMessage): Removed.
  16420. (createHaveAllMessage): Removed.
  16421. (createHaveNoneMessage): Removed.
  16422. (createRejectMessage): Removed.
  16423. (createAllowedFastMessage): Removed.
  16424. * src/PieceMessage.h
  16425. (createRejectMessage): New function.
  16426. (PieceMessage): Rewritten.
  16427. (onChoked): New function.
  16428. (onCanceled): New function.
  16429. * src/PieceMessage.cc
  16430. (send): If invalidate is true then do nothing, just return.
  16431. (createRejectMessage): New function.
  16432. (onChoked): New function.
  16433. (onCanceled): New function.
  16434. * src/RequestMessage.h
  16435. (RequestMessage): Rewritten.
  16436. (onPush): New function.
  16437. (onAbortPiece): New function.
  16438. * src/RequestMessage.cc
  16439. (onPush): New function.
  16440. (onAbortPiece): New function.
  16441. Update fd_set when a socket is added or deleted in order to improve
  16442. performance:
  16443. * src/DownloadEngine.h
  16444. (rfdset): New variable.
  16445. (wfdset): New variable.
  16446. (updateFdSet): New function.
  16447. * src/DownloadEngine.cc
  16448. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16449. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16450. (waitData): Copy rfdset and wfdset.
  16451. (updateFdSet): New function.
  16452. (addSocket): Call updateFdSet.
  16453. (deleteSocket): Call updateFdSet.
  16454. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16455. To add the support for Metalink3.0 backward compatible links:
  16456. * src/Request.h
  16457. (SAFE_CHARS): Added '#'.
  16458. (METALINK_MARK): New definition.
  16459. * src/Request.cc
  16460. (parseUrl): Added the support for Metalink3.0 backward compatible
  16461. links.
  16462. etc
  16463. * src/PeerInteraction.cc
  16464. (MsgPushBack): Removed.
  16465. (sendMessages): Use STL copy and back_inserter.
  16466. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16467. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16468. * src/TorrentMan.h
  16469. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16470. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16471. * src/SharedHandle.h: New class.
  16472. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16473. * src/HttpResponseCommand.h
  16474. (HttpResponseCommand): Wrapped Socket.
  16475. * src/SocketCore.h
  16476. (operator==): New function.
  16477. (operator!=): New function.
  16478. (operator<): New function.
  16479. (getSockfd): New function.
  16480. (isOpen): New function.
  16481. (writeData): New function.
  16482. * src/SocketCore.cc
  16483. (operator==): New function.
  16484. (operator!=): New function.
  16485. (operator<): New function.
  16486. * src/AbstractCommand.h
  16487. (socket): Changed its type to SocketHandle.
  16488. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16489. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16490. (disableReadCheckSocket): New function.
  16491. (disableWriteCheckSocket): New function.
  16492. (readCheckTarget): Changed its type to SocketHandle.
  16493. (writeCheckTarget): Changed its type to SocketHandle.
  16494. (AbstractCommand): Replaced Socket with SocketHandle.
  16495. * src/AbstractCommand.cc
  16496. (AbstractCommand): Replaced Socket with SocketHandle.
  16497. (~AbstractCommand): Removed the deallocation for Socket object.
  16498. (disableReadCheckSocket): New function.
  16499. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16500. (disableWriteCheckSocket): New function.
  16501. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16502. * src/HttpDownloadCommand.cc
  16503. (DownloadCommand): Replaced Socket with SocketHandle.
  16504. * src/PeerAbstractCommand.h
  16505. (socket): Changed its type to SocketHandle.
  16506. (peer): Changed its type to PeerHandle.
  16507. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16508. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16509. (disableReadCheckSocket): New function.
  16510. (disableWriteCheckSocket): New function.
  16511. (readCheckTarget): Changed its type to SocketHandle.
  16512. (writeCheckTarget): Changed its type to SocketHandle.
  16513. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16514. Replaced Peer with PeerHandle.
  16515. * src/HttpRequestCommand.cc
  16516. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16517. Use disableReadCheckSocket.
  16518. * src/PeerInitiateConnectionCommand.h
  16519. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16520. * src/PeerChokeCommand.cc
  16521. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16522. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16523. (execute): Use PeerHandle.
  16524. * src/PeerConnection.h
  16525. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16526. (socket): Changed its type to SocketHandle.
  16527. (PeerConnection): Replaced Socket with SocketHandle.
  16528. * src/PeerConnection.cc
  16529. (PeerConnection): Replaced Socket with SocketHandle.
  16530. * src/PeerInteractionCommand.h
  16531. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16532. Replaced Peer with PeerHandle.
  16533. * src/PeerInteractionCommand.cc
  16534. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16535. Replaced Peer with PeerHandle.
  16536. (executeInternal): Use disableWriteCheckSocket.
  16537. Use HandshakeMessageHandle.
  16538. (receiveMessages): Use PeerMessageHandle.
  16539. (prepareForNextPeer): Use PeerHandle.
  16540. * src/HttpProxyRequestCommand.h
  16541. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16542. * src/HttpResponseCommand.cc
  16543. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16544. * src/TorrentMan.cc
  16545. (nullPeer): Added external reference.
  16546. (~TorrentMan): Removed the deallocation of the elements of peers.
  16547. (addPeer): Rewritten.
  16548. (isPeerAvailable): Use nullPeer.
  16549. (deleteOldpeers): Replaced with deleteErrorPeer.
  16550. (deleteErrorPeer): New function.
  16551. (getPeer): Use PeerHandle and nullPeer.
  16552. (hasMissingPiece): Replaced Peer with PeerHandle.
  16553. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16554. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16555. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16556. (getMissingPiece): Replaced Peer with PeerHandle.
  16557. * src/FtpNegotiateCommand.cc
  16558. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16559. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16560. (recvGreeting): Use disableWriteCheckSocket.
  16561. (recvPasv): Removed the allocation of Socket.
  16562. Use disableReadCheckSocket.
  16563. (sendRestPasv): Use disableWriteCheckSocket.
  16564. (recvRetr): Changed assertion.
  16565. * src/PeerInteraction.h
  16566. (SharedHandle.h): Included SharedHandle.h.
  16567. (PeerMessageHandle): New type definition.
  16568. (HandshakeMessageHandle): New type definition.
  16569. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16570. (peer): Changed its type to PeerHandle.
  16571. (createHandshakeMessage): Replaced HandshakeMessage with
  16572. HandshakeMessageHandle.
  16573. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16574. (PeerInteraction): Replaced Peer with PeerHandle.
  16575. Replaced Socket with SocketHandle.
  16576. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16577. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16578. (receiveHandshake): Replaced HandshakeMessage with
  16579. HandshakeMessageHandle.
  16580. * src/PeerInteraction.cc
  16581. (PeerInteraction): Replaced Peer with PeerHandle.
  16582. Replaced Socket with SocketHandle.
  16583. (~PeerInteraction): Removed the deallocation of the elements of
  16584. messageQueue.
  16585. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16586. (isSendingMessageInProgress): Replaced PeerMessage with
  16587. PeerMessageHandle.
  16588. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16589. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16590. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16591. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16592. (abortPiece): Use PeerMessageHandle.
  16593. (receiveHandshake): Replaced HandshakeMessage with
  16594. HandshakeMessageHandle. Removed try-catch block.
  16595. (createHandshakeMessage): Replaced HandshakeMessage with
  16596. HandshakeMessageHandle.
  16597. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16598. Removed try-catch block.
  16599. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16600. * src/HttpProxyResponseCommand.cc
  16601. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16602. * src/FtpTunnelResponseCommand.h
  16603. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16604. * src/HttpConnection.cc
  16605. (HttpConnection): Replaced Socket with SocketHandle.
  16606. * src/PeerAbstractCommand.cc
  16607. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16608. (~PeerAbstractCommand): Removed the deallocation of socket.
  16609. Use disableReadCheckSocket, disableWriteCheckSocket.
  16610. (disableReadCheckSocket): New function.
  16611. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16612. (disableWriteCheckSocket): New function.
  16613. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16614. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16615. * src/FtpTunnelRequestCommand.cc
  16616. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16617. (~FtpTunnelRequestCommand): Corrected indentation.
  16618. * src/DownloadCommand.h
  16619. (DownloadCommand): Replaced Socket with SocketHandle.
  16620. * src/PeerListenCommand.cc
  16621. (PeerListenCommand): Removed the initialization of socket.
  16622. (~PeerListenCommand): Removed the deallocation of socket.
  16623. (bindPort): Use SocketHandle.
  16624. (execute): Use SocketHandle and PeerHandle.
  16625. * src/FtpDowndloadCommand.cc
  16626. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16627. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16628. * src/main.cc
  16629. (main): Corrected indentation.
  16630. * src/HttpInitiateConnectionCommand.cc
  16631. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16632. (executeInternal): Removed the allocation of socket.
  16633. * src/HttpRequestCommand.h
  16634. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16635. * src/FtpNegotiationCommand.h
  16636. (dataSocket): Changed its type to SocketHandle.
  16637. (serverSocket): Changed its type to SocketHandle.
  16638. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16639. * src/TorrentMan.h
  16640. (MAX_PEER_UPDATE): Removed.
  16641. (MAX_PEERS): New definition.
  16642. (Peers): The element is now of type PeerHandle.
  16643. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16644. (getPeer): Replaced Peer with PeerHandle.
  16645. (deleteOldErrorPeers): Removed.
  16646. (deleteErrorPeer): New function.
  16647. (hasMissingPiece): Replaced Peer with PeerHandle.
  16648. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16649. (getMissingPiece): Replaced Peer with PeerHandle.
  16650. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16651. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16652. (addActivePeer): Replaced Peer with PeerHandle.
  16653. (deleteActivePeer): Replaced Peer with PeerHandle.
  16654. Added a check for the return value of find.
  16655. * src/FtpTunnelResponseCommand.cc
  16656. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16657. * src/FtpInitiateConnectionCommand.cc
  16658. (executeInternal): Removed the allocation of socket.
  16659. * src/DownloadEngine.h
  16660. (Sockets): An element is now of type SocketHandle.
  16661. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16662. (CommandUuids): New type definition.
  16663. (rsockets): Changed its type to SockCmdMap.
  16664. (wsockets): Changed its type to SockCmdMap.
  16665. (addSocket): Rewritten.
  16666. (deleteSocket): Rewritten.
  16667. (addSocketForReadCheck): Rewritten.
  16668. (deleteSocketForReadCheck): Rewritten.
  16669. (addSocketForWriteCheck): Rewritten.
  16670. (deleteSocketForWriteCheck): Rewritten.
  16671. (PairFind): New template class.
  16672. * src/HttpDownloadCommand.h
  16673. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16674. * src/FtpConnection.cc
  16675. (FtpConnection): Replaced Socket with SocketHandle.
  16676. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16677. block.
  16678. * src/InitiateConnectionCommandFactory.cc
  16679. (DlAbortEx.h): Included DlAbortEx.h.
  16680. (createInitiateConnectionCommand): Throw exception if the protocol of
  16681. requested URI is not supported.
  16682. * src/Peer.cc
  16683. (nullPeer): Changed its type to PeerHandle.
  16684. (operator==): New function.
  16685. (operator!=): New function.
  16686. * src/Peer.h
  16687. (SharedHandle.h): Included SharedHandle.h.
  16688. (operator==): New function.
  16689. (operator!=): New function.
  16690. (Peer): Added the default constructor.
  16691. Use resetStatus() to initialize member variables.
  16692. (nullPeer): Removed.
  16693. * src/TrackerUpdateCommand.cc
  16694. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16695. with MIN_PEERS.
  16696. * src/PeerListenCommand.h
  16697. (socket): Changed its type to SocketHandle.
  16698. * src/Command.h
  16699. (CommandUuid): New type definition.
  16700. (uuid): New variable.
  16701. (uuidGen): New variable.
  16702. (Command): Added the initialization of uuid.
  16703. (getUuid): New function.
  16704. * src/Socket.h
  16705. (Socket): Removed.
  16706. (SocketHandle): New type definition.
  16707. * src/DownloadEngine.h
  16708. (FindCommand): New function object.
  16709. (run): The portion of socket check was rewritten.
  16710. (SetDescriptor): New function object.
  16711. (AccumulateActiveCommandUuid): New function object.
  16712. (waitData): Rewritten.
  16713. (addSocket): Rewritten.
  16714. (deleteSocket): Rewritten.
  16715. (addSocketForReadCheck): Rewritten.
  16716. (addSocketForWriteCheck): Rewritten.
  16717. (deleteSocketForReadCheck): Rewritten.
  16718. (deleteSocketForWriteCheck): Rewritten.
  16719. * src/HttpProxyResponseCommand.h
  16720. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16721. * src/HttpConnection.h
  16722. (socket): Changed its type to SocketHandle.
  16723. (HttpConnection): Replaced Socket with SocketHandle.
  16724. * src/PeerInitiateConnectionCommand.cc
  16725. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16726. (executeInternal): Removed the allocation of socket.
  16727. (prepareForNextPeer): Use PeerHandle.
  16728. * src/PeerMessage.h
  16729. (peer): Changed its type to PeerHandle.
  16730. (getPeer): Replaced Peer with PeerHandle.
  16731. (setPeer): Replaced Peer with PeerHandle.
  16732. * src/DownloadCommand.cc
  16733. (DownloadCommand): Replaced Socket with SocketHandle.
  16734. * src/FtpConnection.h
  16735. (socket): Changed its type to SocketHandle.
  16736. (FtpConnection): Replaced Socket with SocketHandle.
  16737. (sendPort); Replaced Socket with SocketHandle.
  16738. * src/FtpDowndloadCommand.h
  16739. (ctrlSocket): Changed its type to SocketHandle.
  16740. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16741. * src/HttpProxyRequestCommand.cc
  16742. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16743. * src/FtpTunnelRequestCommand.h
  16744. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16745. etc
  16746. * src/PeerChokeCommand.h
  16747. (setAllPeerChoked): Removed.
  16748. (setAllPeerResetDelta): Removed.
  16749. * src/PeerChokeCommand.cc
  16750. (setAllPeerChoked): Removed.
  16751. (ChokePeer): New function object.
  16752. (setAllPeerResetDelta): Removed.
  16753. (ResetDelta): New function object.
  16754. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16755. (execute): Show download speed when the local node is a seeder.
  16756. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16757. using STL.
  16758. * src/TrackerWatcherCommand.h
  16759. (MIN_PEERS): Removed.
  16760. * src/TorrentMan.cc
  16761. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16762. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16763. To fix the bug that .aria2 file is not saved if downloading is stopped
  16764. by the errors:it results that aria2 can not resume downloading:
  16765. * src/main.cc
  16766. (normalDownload): Added the call to save().
  16767. (main): Added the deletion of the elements in 'reserved'.
  16768. To fix log:
  16769. * src/PeerInteraction.cc
  16770. (receiveHandshake): Fixed log.
  16771. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16772. To improve download performance in BitTorrent:
  16773. * src/TorrentMan.cc
  16774. (getPeer): Check the number of connections. Return nullPeer if
  16775. it is greater than MAX_PEER_UPDATE.
  16776. This code was originally here, but was removed in 0.5.1.
  16777. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16778. To improve the conditional compilation:
  16779. * src/MultiDiskWriter.h:
  16780. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16781. * src/MultiDiskWriter.cc:
  16782. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16783. * src/Util.h:
  16784. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16785. Added ENABLE_BITTORRENT around computeFastSet().
  16786. * src/Util.cc:
  16787. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16788. Added ENABLE_BITTORRENT around computeFastSet().
  16789. * src/messageDigest.h:
  16790. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16791. * src/ShaVisitor.h:
  16792. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16793. * src/ShaVisitor.cc:
  16794. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16795. * src/main.cc:
  16796. Added ENABLE_BITTORRENT around includes and blocks related to
  16797. BitTorrent.
  16798. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16799. digest support is not available.
  16800. * src/AbstractDiskWriter.h:
  16801. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16802. * src/AbstractDiskWriter.cc:
  16803. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16804. * src/MetalinkEntry.cc
  16805. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16806. support is not available.
  16807. To add command-line options for Metalink:
  16808. * src/main.cc:
  16809. Added metalink-version, metalink-language, metalink-os,
  16810. follow-metalink.
  16811. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16812. * src/main.cc: Use these definition.
  16813. * Release 0.6.0
  16814. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16815. To add Metalink support(http/ftp only):
  16816. * src/AbstractCommand.h
  16817. (tryReserved): New function.
  16818. * src/AbstractCommand.cc
  16819. (execute): Call tryReserved().
  16820. (tryReserved): New function.
  16821. * src/Request.h
  16822. (Requests): New type definition.
  16823. * src/SegmentMan.h
  16824. (reserved): New variable.
  16825. * src/Util.h
  16826. (fileChecksum): New function.
  16827. (toUpper): New function.
  16828. (toLower): New function.
  16829. * src/Util.cc
  16830. (messageDigest.h): Included.
  16831. (trim): Trim \r\n\t.
  16832. (fileChecksum): New function.
  16833. (toUpper): New function.
  16834. (toLower): New function.
  16835. * src/main.cc
  16836. (normalDownload): New function.
  16837. (main): Added 2 command-line options: metalink-file,
  16838. metalink-connection. Their usage has not been written yet.
  16839. * src/MetalinkProcessor.h: New class.
  16840. * src/Xml2MetalinkProcessor.h: New class.
  16841. * src/Xml2MetalinkProcessor.cc: New class.
  16842. * src/MetalinkEntry.h: New class.
  16843. * src/MetalinkEntry.cc: New class.
  16844. * src/MetalinkResource.h: New class.
  16845. * src/MetalinkResource.cc: New class.
  16846. To add md5 message digest checking:
  16847. * src/messageDigest.h: Rewritten.
  16848. * src/MultiDiskWriter.cc: Updated according to the changes in
  16849. messageDigest.h.
  16850. * src/ShaVisitor.cc: Updated according to the changes in
  16851. messageDigest.h.
  16852. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16853. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16854. messageDigest.h.
  16855. To fix a bug that causes segfault when the payload length in peer
  16856. message is less than 0:
  16857. * src/PeerConnection.cc:
  16858. (receiveMessage): Fixed the bug.
  16859. * src/PeerMessageUtil.cc
  16860. (checkLength): Throw an exception if length is less than or equals to
  16861. 0.
  16862. To add new interfaces to Base64 encoding/decoding:
  16863. * src/Base64.h
  16864. (part_encode): Changed the method signature.
  16865. (encode): New function(overload).
  16866. (decode): New function(overload).
  16867. * src/Base64.cc
  16868. (part_encode): Rewritten.
  16869. (encode): Rewritten.
  16870. (encode): New function(overload).
  16871. To prevent a peer to download same piece if there is an error in
  16872. checksum:
  16873. * src/PieceMessage.cc
  16874. (receivedAction): Call peerInteraction->abortPiece().
  16875. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16876. To fix the bug that causes same have message is sent many times to
  16877. a single peer.
  16878. * src/Time.cc
  16879. (isNewer): Use Util::difftv().
  16880. * src/Util.cc
  16881. (difftv): Added a cast to (long long int).
  16882. * src/TorrentMan.cc
  16883. (advertisePiece): Use push_front.
  16884. (getAdvertisedPieceIndexes): A performance improvement was made.
  16885. To fix the bug that sends tracker requests without a sleep interval
  16886. when the number of connections is less than 15.
  16887. * src/TrackerWatcherCommand.cc
  16888. (execute): Now the number of connections is not a factor to decide
  16889. whether or not a tracker request should be sent or not.
  16890. * src/Time.h
  16891. (setTimeInSec): New function.
  16892. * src/Time.cc
  16893. (setTimeInSec): New function.
  16894. etc.
  16895. * src/ChokeMessage.cc
  16896. (receivedAction): Removed peer->snubbing = false
  16897. * src/PeerConnection.h
  16898. (receiveHandshake): Updated doc.
  16899. * src/TorrentMan.h
  16900. (getAdvertisedPieceIndexes): Updated the method signature.
  16901. * src/TorrentMan.cc
  16902. (getAdvertisedPieceIndexes): Updated the method signature.
  16903. * src/Time.h
  16904. (getTimeInMicros): Added a cast to (long long int).
  16905. (getTimeInMillis): Added a cast to (long long int).
  16906. * Release 0.5.2
  16907. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16908. To make a listening socket non-block:
  16909. * src/SocketCore.h
  16910. (setNonBlockingMode): New function.
  16911. * src/SocketCore.cc
  16912. (setNonBlockingMode): New function.
  16913. (beginListen): Added a call to setNonBlockingMode().
  16914. (acceptConnection): Call setNonBlockingMode().
  16915. (setBlockingMode): Updated.
  16916. To handle tracker's NAT-checking:
  16917. * src/PeerConnection.cc
  16918. (receiveHandshake): 'msg' param is filled with received data and
  16919. its length is assigned to 'length' param, even if all handshake
  16920. message is not yet received.
  16921. * src/PeerInteractionCommand.cc
  16922. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16923. a new peer connects to localhost.
  16924. A call to peerInteraction->sendHandshake() was removed because
  16925. it is called from peerInteraction->receiveHandshake(true).
  16926. * src/PeerInteraction.h
  16927. (quickReplied): New variable.
  16928. (receiveHandshake): Added an argument.
  16929. * src/PeerInteraction.cc
  16930. (PeerInteraction): Added the initialization of quickReplied.
  16931. (receiveHandshake): Send handshake message as soon as the info hash
  16932. in a handshake message from a peer is correct.
  16933. To change the random part of peer id and key parameter:
  16934. * src/TorrentMan.h
  16935. (key): New variable.
  16936. * src/TorrentMan.cc
  16937. (setupInternal1): Use Util::randomAlpha() to generate random part
  16938. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16939. key is also generated by Util::randomAlpha() and it is now 8 character
  16940. long.
  16941. * src/Util.h
  16942. (randomAlpha): New function.
  16943. * src/Util.cc
  16944. (randomAlpha): New function.
  16945. * src/TrackerWatcherCommand.cc
  16946. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16947. Added no_peer_id=1.
  16948. Set snubbing flag to false when a choke message is received from a
  16949. snubbed peer.
  16950. * src/ChokeMessage.cc
  16951. (receivedAction): Set snubbing flag to false.
  16952. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16953. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16954. * src/SimpleLogger.h (writeHeader): New function.
  16955. * src/SimpleLogger.cc (writeHeader): New function.
  16956. (writeLog): Fixed the bug that causes segfaults if exception message
  16957. contains an unescaped "%" character.
  16958. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16959. when a tracker request fails.
  16960. * src/Request.cc (parseUrl): Query string is now handled properly.
  16961. * Release 0.5.1
  16962. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16963. To add Time class which represents a specific instant in time and
  16964. its precision is microseconds. Time checking procedures were rewritten
  16965. using this object.
  16966. * src/Time.h: New class.
  16967. * src/Time.cc: New class.
  16968. * src/AbstractCommand.h
  16969. (updateCheckPoint): Removed.
  16970. (isTimeoutDetected): Removed.
  16971. (checkPoint): Changed the type to Time.
  16972. (timeout): New variable.
  16973. (setTimeout): New function.
  16974. * src/AbstractCommand.cc
  16975. (AbstractCommand): Removed the initialization of checkPoint.
  16976. Added the initialization of timeout.
  16977. (updateCheckPoint): Removed.
  16978. (isTimeoutDetected): Removed.
  16979. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16980. * src/PeerChokeCommand.h
  16981. (checkPoint): Changed the type to Time.
  16982. * src/PeerChokeCommand.cc
  16983. (PeerChokeCommand): Removed the initialization of checkPoint.
  16984. (execute): Rewritten using Time object.
  16985. * src/TrackerWatcherCommand.h
  16986. (checkPoint): Changed the type to Time.
  16987. * src/TrackerWatcherCommand.cc
  16988. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16989. (execute): Rewritten.
  16990. * src/ConsoleDownloadEngine.h
  16991. (cp): Changed the type to Time.
  16992. (startup): Changed the type to Time.
  16993. * src/ConsoleDownloadEngine.cc
  16994. (initStatistics): Use cp.reset(), startup.reset().
  16995. (calculateStatistics): Rewritten using Time object.
  16996. * src/PeerAbstractCommand.h
  16997. (updateCheckPoint): Removed.
  16998. (isTimeoutDetected): Removed.
  16999. (checkPoint): Changed the type to Time.
  17000. * src/PeerAbstractCommand.cc
  17001. (PeerAbstractCommand): Removed the initialization of checkPoint.
  17002. (updateCheckPoint): Removed.
  17003. (isTimeoutDetected): Removed.
  17004. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  17005. * src/PeerInteractionCommand.cc
  17006. (PeerInteractionCommand): Removed the initializations of struct
  17007. timeval variables.
  17008. * src/PeerInteractionCommand.h
  17009. (keepAliveCheckPoint): Changed the type to Time.
  17010. (chokeCheckPoint): Changed the type to Time.
  17011. (freqCheckPoint): Changed the type to Time.
  17012. (haveCheckTime): Changed the type to Time.
  17013. * src/PeerInteractionCommand.cc
  17014. (executeInternal): Rewritten using Time object.
  17015. (detectMessageFlooding): Rewritten using Time object.
  17016. (checkLongTimePeerChoking): Rewritten using Time object.
  17017. (sendKeepAlive): Rewritten using Time object.
  17018. (checkHave): Rewritten using Time object.
  17019. * src/SleepCommand.h
  17020. (checkPoint): Changed the type to Time.
  17021. * src/SleepCommand.cc
  17022. (SleepCommand): Removed the initialization of checkPoint.
  17023. (execute): Rewritten using Time object.
  17024. * src/TorrentAutoSaveCommand.h
  17025. (checkPoint): Changed the type to Time.
  17026. * src/TorrentAutoSaveCommand.cc
  17027. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  17028. (execute): Rewritten.
  17029. * src/DownloadCommand.h
  17030. (sw): Changed the type to Time.
  17031. * src/DownloadCommand.cc
  17032. (DownloadCommand): Removed the initialization of sw.
  17033. (executeInternal): Rewritten.
  17034. * src/RequestSlot.h
  17035. (dispatchedTime): Changed the type to Time.
  17036. * src/RequestSlot.cc
  17037. (RequestSlot): Removed the call to setDispatchedTime().
  17038. (setDispatchedTime): Rewirtten.
  17039. (isTimeout): Rewritten.
  17040. (getLatencyInMillis): Rewritten.
  17041. * src/TorrentDownloadEngine.h
  17042. (cp): Changed the type to Time[2].
  17043. (startup): Changed the type to Time.
  17044. * src/TorrentDownloadEngine.cc
  17045. (initStatistics): Rewritten.
  17046. (calculateStatistics): Rewritten.
  17047. * src/DownloadEngine.cc
  17048. (run): Rewritten.
  17049. To detect all attempts to connect to the tracker are failed:
  17050. * src/AbstractCommand.cc
  17051. (execute): Increment e->segmentMan->errors if a command aborted.
  17052. * src/SegmentMan.h
  17053. (errors): New variable.
  17054. * src/SegmentMan.cc
  17055. (SegmentMan): Added the initialization of errors.
  17056. (init): Added the initialization of errors.
  17057. * src/TrackerWatcherCommand.cc
  17058. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  17059. request was failed.
  17060. To handle snubbed peers:
  17061. * src/PeerChokeCommand.cc
  17062. (optUnchokingPeer): Snubbed peers don't get unchoked.
  17063. (execute): Snubbed peers don't get unchoked.
  17064. * src/PeerInteraction.h
  17065. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  17066. * src/PeerInteraction.cc
  17067. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  17068. back the requested 16k block in 60 seconds.
  17069. * src/PieceMessage.cc
  17070. (receivedAction): A peer's snubbed state is cleard if it sends
  17071. the requested 16k block in 60 seconds.
  17072. * src/Peer.h
  17073. (snubbing): New variable.
  17074. * src/Peer.cc
  17075. (resetStatus): Added snubbed = false.
  17076. To fix the bug that causes have message is not sent:
  17077. * src/PeerInteractionCommand.cc
  17078. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  17079. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  17080. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  17081. * src/TorrentMan.h
  17082. (HaveEntry): New class.
  17083. (advertisePiece): Rewritten.
  17084. (getAdvertisedPieceIndexes): Rewritten.
  17085. (Haves): Changed the type.
  17086. (getAdvertisedPieceIndexes): Added an argument.
  17087. Others:
  17088. * src/TorrentMan.h
  17089. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  17090. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  17091. * src/TorrentMan.cc
  17092. (getPeer): Don't check the number of connections here.
  17093. (setupInternal1): Changed peerId.
  17094. * src/PeerInteractionCommand.h
  17095. (KEEP_ALIVE_INTERVAL): New definition.
  17096. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  17097. * src/main.cc
  17098. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  17099. * src/DownloadEngine.h: Removed unnecessary header includes.
  17100. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17101. To fix the bug that causes segfaults if a tracker returns a zero-length
  17102. list as "peers":
  17103. * src/TrackerUpdateCommand.cc
  17104. (execute): Added a check to see wether the type of peers is Data*.
  17105. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17106. * Release 0.5.0
  17107. To fix compile issue with gcc3:
  17108. * src/CancelMessage.h
  17109. (ID): Renamed as ID_t
  17110. (ID_t): New enum.
  17111. * src/RejectMessage.h
  17112. (ID): Renamed as ID_t
  17113. (ID_t): New enum.
  17114. * src/SuggestPieceMessage.h
  17115. (ID): Renamed as ID_t
  17116. (ID_t): New enum.
  17117. * src/AllowedFastMessage.h
  17118. (ID): Renamed as ID_t
  17119. (ID_t): New enum.
  17120. * src/PortMessage.h
  17121. (ID): Renamed as ID_t
  17122. (ID_t): New enum.
  17123. * src/HaveNoneMessage.h
  17124. (ID): Renamed as ID_t
  17125. (ID_t): New enum.
  17126. * src/KeepAliveMessage.h
  17127. (ID): Renamed as ID_t
  17128. (ID_t): New enum.
  17129. * src/HaveAllMessage.h
  17130. (ID): Renamed as ID_t
  17131. (ID_t): New enum.
  17132. * src/UnchokeMessage.h
  17133. (ID): Renamed as ID_t
  17134. (ID_t): New enum.
  17135. * src/BitfieldMessage.h
  17136. (ID): Renamed as ID_t
  17137. (ID_t): New enum.
  17138. * src/PieceMessage.h
  17139. (ID): Renamed as ID_t
  17140. (ID_t): New enum.
  17141. * src/RequestMessage.h
  17142. (ID): Renamed as ID_t
  17143. (ID_t): New enum.
  17144. * src/NotInterestedMessage.h
  17145. (ID): Renamed as ID_t
  17146. (ID_t): New enum.
  17147. * src/ChokeMessage.h
  17148. (ID): Renamed as ID_t
  17149. (ID_t): New enum.
  17150. * src/InterestedMessage.h
  17151. (ID): Renamed as ID_t
  17152. (ID_t): New enum.
  17153. * src/HaveMessage.h
  17154. (ID): Renamed as ID_t
  17155. (ID_t): New enum.
  17156. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17157. * src/PeerAbstractCommand.h
  17158. (beforeSocketCheck): Removed.
  17159. * src/PeerAbstractCommand.cc
  17160. Modified in order to call executeInternal() even if socket check
  17161. and upload limit check fail.
  17162. * src/PeerInteractionCommand.h
  17163. (keepAlive): Removed.
  17164. (sendKeepAlive): New function.
  17165. (checkHave): New function.
  17166. (beforeSocketCheck): Removed.
  17167. * src/PeerInteractionCommand.cc
  17168. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  17169. calls to checkHave() and sendKeepAlive().
  17170. (keepAlive): Renamed to sendKeepAlive().
  17171. (sendKeepAlive): New function.
  17172. (beforeSocketCheck): Removed.
  17173. (checkHave): New function.
  17174. * src/BitfieldMan.cc
  17175. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  17176. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  17177. 0.
  17178. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  17179. * src/TorrentMan.h
  17180. (UsedPieces): Removed.
  17181. (Pieces): New type definition.
  17182. * src/Piece.h: Updated doc.
  17183. * src/Peer.h
  17184. (totalLength): Removed.
  17185. * src/Peer.cc
  17186. (updateLatency): Fixed the latency calculation.
  17187. * src/TorrentMan.cc
  17188. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  17189. than or equal to MAX_PEER_LIST_SIZE.
  17190. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  17191. then return false.
  17192. (deleteOldErrorPeers): Rewritten.
  17193. (deleteUsedPiece): Fixed the miss use of STL remove.
  17194. * src/PeerInteraction.h
  17195. (Pieces): Removed.
  17196. (deleteTimeoutRequestSlot): Removed.
  17197. (deleteCompletedRequestSlot): Removed.
  17198. (checkRequestSlot): New function.
  17199. * src/PeerInteraction.cc
  17200. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  17201. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  17202. (checkRequestSlot): New function.
  17203. * src/DownloadEngine.cc
  17204. (run): Clear activeSockets before calling waitData().
  17205. (waitData): Removed a call to activeSockets.clear().
  17206. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17207. To attempt to handle EINTR:
  17208. * src/SocketCore.cc
  17209. (isReadable): Added EINTR handling.
  17210. (isWritable): Added EINTR handling.
  17211. To improve the performance:
  17212. * src/AbstractCommand.cc
  17213. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17214. * src/PeerInteractionCommand.h
  17215. (receiveMessage): Renamed as receiveMessages().
  17216. (receiveMessages): New function.
  17217. * src/PeerInteractionCommand.cc
  17218. (executeInternal): receiveMessage loop is moved to new receiveMessages
  17219. () function. detectMessageFlooding() is moved here.
  17220. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  17221. (). The flooding detection for have message is comment out.
  17222. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  17223. Util::difftv().
  17224. (receiveMessage): Renamed as receiveMessages().
  17225. (receiveMessages): New function.
  17226. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  17227. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  17228. * src/SleepCommand.cc
  17229. (execute): Use Util::difftvsec() instead of Util::difftv().
  17230. * src/BitfieldMan.h
  17231. (getNthBitIndex): New function.
  17232. (hasMissingPiece): New function.
  17233. (getAllMissingIndexes): New function.
  17234. * src/BitfieldMan.cc
  17235. (countSetBit): Rewritten.
  17236. (getNthBitIndex): New function.
  17237. (getMissingIndexRandomly): Rewritten.
  17238. (hasMissingPiece): New function.
  17239. (getAllMissingIndexes): New function.
  17240. * src/TorrentMan.cc
  17241. (hasMissingPiece): New function.
  17242. (deleteUsedPiece): Rewritten using STL.
  17243. * src/PeerInteraction.cc
  17244. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  17245. is a little bit faster then TorrentMan::getMissingPieceIndex().
  17246. (addRequests): Updated the number of pending requests.
  17247. * src/PeerAbstractCommand.cc
  17248. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  17249. (execute): Returns true if TorrentMan::isHalt() is true.
  17250. Corrected the condition of upload limit checking.
  17251. * src/Util.h
  17252. (countBit): New function.
  17253. * src/Util.cc
  17254. (nbits): New variable.
  17255. (countBit): New function.
  17256. * src/DownloadEngine.h
  17257. (SockCmdMap): New type definition.
  17258. (waitData): Added an argument.
  17259. (addSocket): Added an argument.
  17260. (addSocketForReadCheck): Added an argument.
  17261. (addSocketForWriteCheck): Added an argument.
  17262. * src/DownloadEngine.cc
  17263. (run): Executes only commands whose sockets are ready to read or write.
  17264. All commands are executed in every 1 second.
  17265. (waitData): Calls select() again if it returned
  17266. EINTR.
  17267. (addSocket): Saves socket and command object pair to the map.
  17268. (deleteSocket): Deletes socket and command object pair from the map.
  17269. (addSocketForReadCheck): Added an argument.
  17270. (addSocketForWriteCheck): Added an argument.
  17271. * src/DownloadCommand.cc
  17272. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  17273. To send "event=stopped" to the tracker when the application finishes:
  17274. * src/PeerChokeCommand.h
  17275. (checkPoint): New variable.
  17276. * src/PeerChokeCommand.cc
  17277. (PeerChokeCommand): Added the initialization of checkPoint.
  17278. (execute): The interval check is now done by checkPoint, not
  17279. SleepCommand. Return true if TorrentMan::isHalt() is true.
  17280. * src/TorrentMan.h
  17281. (halt): New function.
  17282. (hasMissingPiece): New function.
  17283. (isHalt): New function.
  17284. (setHalt): New function.
  17285. * src/TorrentMan.cc
  17286. (TorrentMan): Added the initialization of halt.
  17287. * src/TorrentAutoSaveCommand.h
  17288. (checkPoint): New variable.
  17289. * src/PeerListenCommand.cc
  17290. (execute): Returns true if TorrentMan::isHalt() is true.
  17291. * src/main.cc
  17292. (setSignalHander): Added flags argument.
  17293. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  17294. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  17295. Removed printDownloadAbortMessage() after torrent downloading loop.
  17296. * src/TorrentAutoSaveCommand.cc
  17297. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  17298. (execute): Returns true if TorrentMan::isHalt() is true.
  17299. The interval check is now done by checkPoint, not SleepCommand.
  17300. * src/TrackerWatcherCommand.cc
  17301. (execute): If TorrentMan::isHalt(), then create a tracker request with
  17302. event=stopped.
  17303. * src/TrackerUpdateCommand.cc
  17304. (prepareForRetry): Do not use SleepCommand here.
  17305. (execute): Returns true if TorrentMan::isHalt() is true.
  17306. Others:
  17307. * src/TorrentMan.cc
  17308. (getMissingPieceIndex): Updated log message.
  17309. * src/PeerInteraction.cc
  17310. (createPeerMessag): Updated log message.
  17311. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17312. To add the ability to download several pieces in mix in a command and
  17313. increase the number of request slots according to request-cancel
  17314. latency:
  17315. * src/PeerInteractionCommand.cc
  17316. (executeInternal): The number of messages to be received at a time
  17317. is increased from 10 to 50.
  17318. * src/LogFactory
  17319. (getInstance): Added NullLogger.
  17320. * src/NullLogger.h: New class.
  17321. * src/BitfieldMan.h
  17322. (getMissingIndex): New function.
  17323. * src/BitfieldMan.cc
  17324. (getMissingIndex): New function.
  17325. * src/TorrentMan.h
  17326. (checkOutPiece): New function.
  17327. (getMissingPieceIndex): New function.
  17328. (getMissingFastPieceIndex): New function.
  17329. (getMissingFastPiece): New function.
  17330. * src/TorrentMan.cc
  17331. (updatePiece): Rewritten using STL.
  17332. (syncPiece): Rewritten using STL.
  17333. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  17334. checkOutPiece().
  17335. (getMissingPieceIndex): New function.
  17336. (getMissingFastPieceIndex): New function.
  17337. (getMissingFastPiece): New function.
  17338. (checkOutPiece): New function.
  17339. * src/PeerInteraction.h
  17340. (Pieces): New type definition.
  17341. (piece): Removed.
  17342. (pieces): New variable.
  17343. (getNewPieceAndSendInterest): Added the "piece" argument.
  17344. (abortPiece): Added the "piece" argument.
  17345. (abortAllPieces): New function.
  17346. (isInRequestSlot): New function.
  17347. (hasDownloadPiece): Added the "index" argument.
  17348. (setDownloadPiece): Removed.
  17349. (getDownloadPiece): Added the "index" argument.
  17350. (updatePiece): New function.
  17351. (createRequestMessage): Added the "index" argument.
  17352. * src/PeerInteraction.cc
  17353. (onChoked): Rewritten.
  17354. (abortPiece): Rewirtten.
  17355. (abortAllPieces): New function.
  17356. (deleteTimeoutRequestSlot): Rewritten.
  17357. Clarified code a little bit.
  17358. (deleteCompletedRequestSlot): Rewritten.
  17359. (isInRequestSlot): New function.
  17360. (syncPiece): Rewritten.
  17361. (updatePiece): New function.
  17362. (getNewPieceAndSendInterest): Rewritten.
  17363. (addRequests): Rewritten.
  17364. (getDownloadPiece): Rewritten.
  17365. (hasDownloadPiece): Rewritten.
  17366. (createRequestMessage): Added the "index" argument.
  17367. * src/common.h
  17368. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  17369. (DIV_FLOOR): New definition.
  17370. * src/PieceMessage.cc
  17371. (receivedAction): Update request-piece latency here.
  17372. * src/RequestSlot.h
  17373. (getLatencyInMillis): New function.
  17374. * src/RequestSlot.cc
  17375. (isTimeout): Rewritten using getLatencyInMillis.
  17376. (getLatencyInMillis): New function.
  17377. * src/Piece.h
  17378. (operator==): New function.
  17379. (getMissingBlockIndex): New function.
  17380. * src/Piece.cc
  17381. (operator==): New function.
  17382. (getMissingBlockIndex): New function.
  17383. * src/Peer.h
  17384. (DEFAULT_LATENCY): New definition.
  17385. (latency): New variable.
  17386. (updateLatency): New function.
  17387. (getLatency): New function.
  17388. * src/Peer.cc
  17389. (resetStatus): Reset latecy.
  17390. (updateLatency): New function.
  17391. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17392. * src/SocketCore.cc
  17393. (isReadable): Added secure to the condition.
  17394. * src/HttpConnection.cc
  17395. (receiveResponse): Fixed a bug that causes no response header
  17396. exception.
  17397. * src/Peer.h
  17398. (getFastSet): Fixed the return value type.
  17399. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17400. To remove a wait from download loop:
  17401. * src/DownloadEngine.cc
  17402. (run): Comment out shortSleep.
  17403. To rewrite the message handling:
  17404. * src/SimplePeerMessage.h: New class.
  17405. * src/SimplePeerMessage.cc: New class.
  17406. * src/CancelMessage.h: Derived from SimplePeerMessage.
  17407. (msg): New variable.
  17408. (create): New function.
  17409. (send): Removed.
  17410. (getMessage): New function.
  17411. (getMessageLength): New function.
  17412. * src/CancelMessage.cc
  17413. (create): New function.
  17414. (receivedAction): Replaced deleteRequestMessageInQueue with
  17415. rejectPieceMessageInQueue.
  17416. (send): Removed.
  17417. (getMessage): New function.
  17418. (getMessageLength): New function.
  17419. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17420. (msg): New variable.
  17421. (msgLength): New variable.
  17422. (~BitfieldMessage): Deleted msg.
  17423. (send): Removed.
  17424. (getMessage): New function.
  17425. (getMessageLength): New function.
  17426. * src/BitfieldMessage.cc
  17427. (create): New function.
  17428. (send): Removed.
  17429. (getMessage): New function.
  17430. (getMessageLength): New function.
  17431. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17432. (msg): New variable.
  17433. (sendPredicate): New function.
  17434. (onSendComplete): New function.
  17435. (send): Removed.
  17436. (getMessage): New function.
  17437. (getMessageLength): New function.
  17438. (create): New function.
  17439. * src/ChokeMessage.cc
  17440. (create): New function.
  17441. (send): Removed.
  17442. (sendPredicate): New function.
  17443. (getMessage): New function.
  17444. (getMessageLength): New function.
  17445. (onSendComplete): New function.
  17446. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17447. (msg): New variable.
  17448. (send): Removed.
  17449. (getMessage): New function.
  17450. (getMessageLength): New function.
  17451. * src/KeepAliveMessage.cc
  17452. (send): Removed.
  17453. (getMessage): New function.
  17454. (getMessageLength): New function.
  17455. * src/PortMessage.h
  17456. (create): New function.
  17457. (receivedAction): Updated log message.
  17458. * src/PortMessage.cc: New file.
  17459. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17460. (msg): New variable.
  17461. (sendPredicate): New function.
  17462. (onSendComplete): New function.
  17463. (create): New function.
  17464. (send): Removed.
  17465. (getMessage): New function.
  17466. (getMessageLength): New function.
  17467. * src/UnchokeMessage.cc
  17468. (create): New function.
  17469. (send): Removed.
  17470. (sendPredicate): New function.
  17471. (getMessage): New function.
  17472. (getMessageLength): New function.
  17473. (onSendComplete): New function.
  17474. * src/PieceMessage.h
  17475. (leftPieceDataLength): Removed.
  17476. (leftDataLength): New variable.
  17477. (headerSend): New variable.
  17478. (pendingCount): New variable.
  17479. (msgHeader): New variable.
  17480. (sendPieceData): New function.
  17481. (incrementPendingCount): New function.
  17482. (isPendingCountMax): New function.
  17483. (create): New function.
  17484. (getMessageHeader): New function.
  17485. (getMessageHeaderLength): New function.
  17486. * src/PieceMessage.cc
  17487. (create): New function.
  17488. (getMessageHeader): New function.
  17489. (getMessageHeaderLength): New function.
  17490. (send): Rewritten.
  17491. (sendPieceData): New function.
  17492. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17493. (msg): New variable.
  17494. (create): New function.
  17495. (getMessage): New function.
  17496. (getMessageLength): New function.
  17497. * src/HaveMessage.cc
  17498. (create): New function.
  17499. (send): Removed.
  17500. (sendPieceData): New function.
  17501. (getMessage): New function.
  17502. (getMessageLength): New function.
  17503. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17504. (msg): New variable.
  17505. (create): New function.
  17506. (send): Removed.
  17507. (getMessage): New function.
  17508. (getMessageLength): New function.
  17509. * src/RequestMessage.cc
  17510. (create): New function.
  17511. (receivedAction): Added the handling of fast extension.
  17512. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17513. (send): Removed.
  17514. (getMessage): New function.
  17515. (getMessageLength): New function.
  17516. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17517. (msg): New variable.
  17518. (sendPredicate): New function.
  17519. (onSendComplete): New function.
  17520. (create): New function.
  17521. (getMessage): New function.
  17522. (getMessageLength): New function.
  17523. * src/InterestedMessage.cc
  17524. (create): New function.
  17525. (send): Removed.
  17526. (sendPieceData): New function.
  17527. (getMessage): New function.
  17528. (getMessageLength): New function.
  17529. (onSendComplete): New function.
  17530. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17531. (msg): New variable.
  17532. (sendPieceData): New function.
  17533. (onSendComplete): New function.
  17534. (create): New function.
  17535. (send): Removed.
  17536. (getMessage): New function.
  17537. (getMessageLength): New function.
  17538. * src/NotInterestedMessage.cc
  17539. (create): New function.
  17540. (send): Removed.
  17541. (sendPredicate): New function.
  17542. (getMessage): New function.
  17543. (getMessageLength): New function.
  17544. (onSendComplete): New function.
  17545. * src/AllowedFastMessage.h: New class.
  17546. * src/AllowedFastMessage.cc: New class.
  17547. * src/RejectMessage.h: New class.
  17548. * src/RejectMessage.cc: New class.
  17549. * src/SuggestPieceMessage.h: New class.
  17550. * src/SuggestPieceMessage.cc: New class.
  17551. * src/HaveAllMessage.h: New class.
  17552. * src/HaveAllMessage.cc: New class.
  17553. * src/HaveNoneMessage.h: New class.
  17554. * src/HaveNoneMessage.cc: New class.
  17555. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17556. (msg): New variable.
  17557. (reserved): New variable.
  17558. (create): New function.
  17559. (getId): New function.
  17560. (receivedAction): New function.
  17561. (getMessage): New function.
  17562. (getMessageLength): New function.
  17563. (isFastExtensionSupported): New function.
  17564. * src/HandshakeMessage.cc
  17565. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17566. (create): New function.
  17567. (getMessage): New function.
  17568. (getMessageLength): New function.
  17569. (toString): Added the output of reserved field.
  17570. (check): Added const qualifier.
  17571. (isFastExtensionSupported): New function.
  17572. * src/PeerMessageUtil.h
  17573. (createChokeMessage): Removed.
  17574. (createUnchokeMessage): Removed.
  17575. (createInterestedMessage): Removed.
  17576. (createNotInterestedMessage): Removed.
  17577. (createHaveMessage): Removed.
  17578. (createBitfieldMessage): Removed.
  17579. (createRequestMessage): Removed.
  17580. (createCancelMessage): Removed.
  17581. (createPieceMessage): Removed.
  17582. (createPortMessage): Removed.
  17583. (createChokeMessage): Removed.
  17584. (createUnchokeMessage): Removed.
  17585. (createInterestedMessage): Removed.
  17586. (createNotInterestedMessage): Removed.
  17587. (createHaveMessage): Removed.
  17588. (createBitfieldMessage): Removed.
  17589. (createRequestMessage): Removed.
  17590. (createCancelMessage): Removed.
  17591. (createPieceMessage): Removed.
  17592. (createKeepAliveMessage): Removed.
  17593. (createHandshakeMessage): Removed.
  17594. (setIntParam): New function.
  17595. (createPeerMessageString): New function.
  17596. * src/PeerMessageUtil.cc
  17597. (createChokeMessage): Removed.
  17598. (createUnchokeMessage): Removed.
  17599. (createInterestedMessage): Removed.
  17600. (createNotInterestedMessage): Removed.
  17601. (createHaveMessage): Removed.
  17602. (createBitfieldMessage): Removed.
  17603. (createRequestMessage): Removed.
  17604. (createCancelMessage): Removed.
  17605. (createPieceMessage): Removed.
  17606. (createPortMessage): Removed.
  17607. (createRequestMessage): Removed.
  17608. (createCancelMessage): Removed.
  17609. (createPieceMessage): Removed.
  17610. (createHaveMessage): Removed.
  17611. (createChokeMessage): Removed.
  17612. (createUnchokeMessage): Removed.
  17613. (createInterestedMessage): Removed.
  17614. (createNotInterestedMessage): Removed.
  17615. (createBitfieldMessage): Removed.
  17616. (createKeepAliveMessage): Removed.
  17617. (createHandshakeMessage): Removed.
  17618. (setIntParam): New function.
  17619. (createPeerMessageString): New function.
  17620. * src/PeerConnection.h
  17621. (peer): Removed.
  17622. (torrentMan): Removed.
  17623. (createNLengthMessage): Removed.
  17624. (setIntParam): Removed.
  17625. (writeOutgoingMessageLog): Removed all overloaded functions.
  17626. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17627. (sendMessage): New function.
  17628. (sendHandshake): Removed.
  17629. (sendKeepAlive): Removed.
  17630. (sendChoke): Removed.
  17631. (sendUnchoke): Removed.
  17632. (sendInterested): Removed.
  17633. (sendNotInterested): Removed.
  17634. (sendHave): Removed.
  17635. (sendBitfield): Removed.
  17636. (sendRequest): Removed.
  17637. (sendPiece): Removed.
  17638. (sendPieceHeader): Removed.
  17639. (sendPieceData): Removed.
  17640. (sendCancel): Removed.
  17641. (getPeer): Removed.
  17642. * src/PeerConnection.cc
  17643. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17644. (sendHandshake): Removed.
  17645. (sendKeepAlive): Removed.
  17646. (createNLengthMessage): Removed.
  17647. (setIntParam): Removed.
  17648. (writeOutgoingMessageLog): Removed all overloaded functions.
  17649. (sendChoke): Removed.
  17650. (sendUnchoke): Removed.
  17651. (sendInterested): Removed.
  17652. (sendNotInterested): Removed.
  17653. (sendHave): Removed.
  17654. (sendBitfield): Removed.
  17655. (sendRequest): Removed.
  17656. (sendPiece): Removed.
  17657. (sendPieceHeader): Removed.
  17658. (sendPieceData): Removed.
  17659. (sendMessage): New function.
  17660. (sendCancel): Removed.
  17661. * src/PeerInteractionCommand.cc
  17662. (PeerInteractionCommand): Call setUploadLimit.
  17663. (executeInternal): Call setUploadLimit.
  17664. Added the handling of "inProgress" state of handshake message.
  17665. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17666. sendNow().
  17667. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17668. sendNow().
  17669. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17670. * src/TorrentMan.h
  17671. (PEER_ID_LENGTH): New definition.
  17672. (hasAllPieces): New function.
  17673. * src/TorrentMan.cc
  17674. (getMissingPiece): Added the handling of fast extension.
  17675. (cancelPiece): Call updatePiece().
  17676. (hasAllPieces): New function.
  17677. * src/PeerInteraction.h
  17678. (fastSet): New variable.
  17679. (getNewPieceAndSendInterest): Changed the return type to void.
  17680. (send): Renamed as sendMessages.
  17681. (deleteAllRequestSlot): Removed.
  17682. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17683. (cancelAllRequest): Removed all overloaded functions.
  17684. (deleteAllRequestSlot): Removed.
  17685. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17686. (rejectPieceMessageInQueue): New function.
  17687. (rejectAllPieceMessageInQueue): New function.
  17688. (onChoked): New function.
  17689. (isSendingMessageInProgress): New function.
  17690. (getCorrespondingRequestSlot): Changed its arguments.
  17691. (isInFastSet): New function.
  17692. (addFastSetIndex): New function.
  17693. (addRequests): New function.
  17694. (sendNow): Removed.
  17695. (trySendNow): Removed.
  17696. (sendBitfield): New function.
  17697. (sendAllowdFast): New function.
  17698. (createHaveAllMessage): New function.
  17699. (createHaveNoneMessage): New function.
  17700. (createRejectMessage): New function.
  17701. (createAllowedFastMessage): New function.
  17702. * src/PeerInteraction.cc
  17703. (send): Renamed as sendMessages.
  17704. (sendMessages): New function.
  17705. (MsgPushBack): New class.
  17706. (isSendingMessageInProgress): New function.
  17707. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17708. (rejectAllPieceMessageInQueue): New function.
  17709. Added the handling of fast extension.
  17710. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17711. (rejectPieceMessageInQueue): New function.
  17712. Added the handling of fast extension.
  17713. (deleteRequestSlot): Replaced for loop with std::find.
  17714. (onChoked): New function.
  17715. (deleteAllRequestSlot): Removed.
  17716. (abortPiece): Rewirtten.
  17717. (deleteTimeoutRequestSlot): Updated log messages.
  17718. (getCorrespondingRequestSlot): Changed its arguments.
  17719. (cancelAllRequest): Removed all overloaded functions.
  17720. (receiveHandshake): Added the check to see whether an incoming peer
  17721. supports fast extension.
  17722. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17723. PeerMessageUtil.
  17724. (createPeerMessage): Use create() of each message class instead of
  17725. PeerMessageUtil.
  17726. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17727. AllowedFastMessage were added.
  17728. (getNewPieceAndSendInterest): Changed its return value type to void.
  17729. Added the handling of fast extension.
  17730. (addRequests): New function.
  17731. (sendNow): Removed.
  17732. (sendHandshake): Rewritten.
  17733. (trySendNow): Removed.
  17734. (sendBitfield): New function.
  17735. (sendAllowdFast): New function.
  17736. (isInFastSet): New function.
  17737. (addFastSetIndex): New function.
  17738. (createRequestMessage): Use RequestMessage::create instead of
  17739. PeerMessageUtil.
  17740. (createCancelMessage): Use CancelMessage::create instead of
  17741. PeerMessageUtil.
  17742. (createPieceMessage): Use PieceMessage::create instead of
  17743. PeerMessageUtil.
  17744. (createHaveMessage): Use HaveMessage::create instead of
  17745. PeerMessageUtil.
  17746. (createChokeMessage): Use ChokeMessage::create instead of
  17747. PeerMessageUtil.
  17748. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17749. PeerMessageUtil.
  17750. (createInterestedMessage): Use InterestedMessage::create instead of
  17751. PeerMessageUtil.
  17752. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17753. of PeerMessageUtil.
  17754. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17755. PeerMessageUtil.
  17756. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17757. PeerMessageUtil.
  17758. (createHaveAllMessage): New function.
  17759. (createHaveNoneMessage): New function.
  17760. (createRejectMessage): New function.
  17761. (createAllowedFastMessage: New function.
  17762. * src/Util.h
  17763. (sha1Sum): New function.
  17764. (computeFastSet): New function.
  17765. * src/Util.cc
  17766. (sha1Sum): New function.
  17767. (computeFastSet): New function.
  17768. * src/Peer.h
  17769. (fastExtensionEnabled): New variable.
  17770. (fastSet): New variable.
  17771. (setAllBitfield): New function.
  17772. (setFastExtensionEnabled): New function.
  17773. (isFastExtensionEnabled): New function.
  17774. (addFastSetIndex): New function.
  17775. (getFastSet): New function.
  17776. (isInFastSet): New function.
  17777. (countFastSet): New function.
  17778. * src/Peer.cc
  17779. (isInFastSet): New function.
  17780. (addFastSetIndex): New function.
  17781. (setAllBitfield): New function.
  17782. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17783. sockets.
  17784. * src/PeerAbstractCommand.cc
  17785. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17786. and uploadLimit.
  17787. (execute): Changed the procedure of checking sockets. The upload speed
  17788. checking were added.
  17789. (setUploadLimit): New function.
  17790. (setUploadLimitCheck): New function.
  17791. * src/PeerAbstractCommand.h
  17792. (setUploadLimit): New function.
  17793. (setUploadLimitCheck): New function.
  17794. (uploadLimit): New variable.
  17795. (uploadLimitCheck): New variable.
  17796. To contact a tracker regularly:
  17797. * src/TrackerWatcherCommand.h (interval): New variable.
  17798. (checkPoint): New variable.
  17799. (TrackerWatcherCommand): Added interval argument.
  17800. * src/TrackerWatcherCommand.cc
  17801. (TrackerWatcherCommand): Initialized checkPoint.
  17802. (execute): Now a tracker is contacted in every specified period.
  17803. If peer list is not needed, send request with numwant=0.
  17804. * src/TrackerUpdateCommand.cc
  17805. (execute): Updated log messages.
  17806. * src/DownloadEngine.cc
  17807. (~DownloadEngine): Removed two asserts.
  17808. (waitData): Uncommented wfds. May be a bug fix.
  17809. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17810. * src/PeerInteractionCommand.h
  17811. (checkInactiveConnection): Removed.
  17812. * src/PeerInteractionCommand.cc
  17813. (executeInternal): Removed following function calls:
  17814. detectMessageFlooding(), checkLongTimePeerChoking and
  17815. checkInactiveConnection().
  17816. (checkInactiveConnection): Removed.
  17817. (detectMessageFlooding): Removed function call to
  17818. checkInactiveConnection().
  17819. * src/PeerMessageUtil.h
  17820. (createChokeMessage): New function. Overload.
  17821. (createUnchokeMessage): New function. Overload.
  17822. (createInterestedMessage): New function. Overload.
  17823. (createNotInterestedMessage): New function. Overload.
  17824. (createHaveMessage): New function. Overload.
  17825. (createBitfieldMessage): New function. Overload.
  17826. (createRequestMessage): New function. Overload.
  17827. (createCancelMessage): New function. Overload.
  17828. (createPieceMessage): New function. Overload.
  17829. (createKeepAliveMessage): New function. Overload.
  17830. * src/PeerMessageUtil.cc
  17831. (createChokeMessage): New function. Overload.
  17832. (createUnchokeMessage): New function. Overload.
  17833. (createInterestedMessage): New function. Overload.
  17834. (createNotInterestedMessage): New function. Overload.
  17835. (createHaveMessage): New function. Overload.
  17836. (createBitfieldMessage): New function. Overload.
  17837. (createRequestMessage): New function. Overload.
  17838. (createCancelMessage): New function. Overload.
  17839. (createPieceMessage): New function. Overload.
  17840. (createKeepAliveMessage): New function. Overload.
  17841. * src/SendMessageQueue.cc
  17842. (createRequestMessage): Use PeerMessageUtil.
  17843. (createCancelMessage): Use PeerMessageUtil.
  17844. (createPieceMessage): Use PeerMessageUtil.
  17845. (createHaveMessage): Use PeerMessageUtil.
  17846. (createChokeMessage): Use PeerMessageUtil.
  17847. (createUnchokeMessage): Use PeerMessageUtil.
  17848. (createInterestedMessage): Use PeerMessageUtil.
  17849. (createNotInterestedMessage): Use PeerMessageUtil.
  17850. (createBitfieldMessage): Use PeerMessageUtil.
  17851. (createKeepAliveMessage): Use PeerMessageUtil.
  17852. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17853. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17854. * src/PeerInteraction.h: New class.
  17855. * src/PeerInteraction.cc: New class.
  17856. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17857. Each peer message has its own class.
  17858. * src/PendingMessages.h: Removed.
  17859. * src/PendingMessages.cc: Removed. The sending process was moved to
  17860. each message class.
  17861. * src/RequestSlotMan.h: Removed.
  17862. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17863. SendMessageQueue.
  17864. * src/RequestMessage.h: New class.
  17865. * src/RequestMessage.cc: New class.
  17866. * src/CancelMessage.h: New class.
  17867. * src/CancelMessage.cc: New class.
  17868. * src/BitfieldMessage.h: New class.
  17869. * src/BitfieldMessage.cc: New class.
  17870. * src/ChokeMessage.h: New class.
  17871. * src/ChokeMessage.cc: New class.
  17872. * src/KeepAliveMessage.h: New class.
  17873. * src/KeepAliveMessage.cc: New class.
  17874. * src/PortMessage.h: New class.
  17875. * src/UnchokeMessage.h: New class.
  17876. * src/UnchokeMessage.cc: New class.
  17877. * src/PieceMessage.h: New class.
  17878. * src/PieceMessage.cc: New class.
  17879. * src/HaveMessage.h: New class.
  17880. * src/HaveMessage.cc: New class.
  17881. * src/BitfieldMessage.h: New class.
  17882. * src/BitfieldMessage.cc: New class.
  17883. * src/NotInterestedMessage.h: New class.
  17884. * src/NotInterestedMessage.cc: New class.
  17885. * src/InterestedMessage.h: New class.
  17886. * src/InterestedMessage.cc: New class.
  17887. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17888. (getSendMessageQueue): New function.
  17889. (setSendMessageQueue): New function.
  17890. * src/HandshakeMessage.cc: New class.
  17891. * src/PeerConnection.h (receiveMessage): Changed return value and
  17892. arguments.
  17893. (receiveHandshake): Changed return value and arguments.
  17894. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17895. here.
  17896. (receiveHandshake): Do not create handshake class here.
  17897. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17898. (piece): Removed.
  17899. (syncPiece): Removed.
  17900. (sendInterest): Removed.
  17901. (sendMessages): Removed.
  17902. (createRequestPendingMessage): Removed.
  17903. (checkPieceHash): Removed.
  17904. (erasePieceOnDisk): Removed.
  17905. (getNewPieceAndSendInterest): Removed.
  17906. (onGotNewPice): Removed.
  17907. (onGotWrongPiece): Removed.
  17908. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17909. Removed peerConnection, piece.
  17910. (~PeerInteractionCommand): Removed peerConnection.
  17911. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17912. (syncPiece): Moved to SendMessageQueue.
  17913. (decideChoking): Removed PendingMessage.
  17914. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17915. The action after receiving peer message was moved to each message
  17916. class.
  17917. (onGotNewPice): Moved to SendMessageQueue.
  17918. (onGotWrongPiece): Moved to SendMessageQueue.
  17919. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17920. (sendInterest): Moved to SendMessageQueue.
  17921. (createRequestPendingMessage): Removed.
  17922. (sendMessages): Moved to SendMessageQueue.
  17923. (onAbort): Use SendMessageQueue::abortPiece()
  17924. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17925. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17926. (checkPieceHash): Moved to SendMessageQueue.
  17927. (erasePieceOnDisk): Moved to SendMessageQueue.
  17928. * src/PeerMessageUtil.h
  17929. (createBitfieldMessage): Removed.
  17930. (createHaveMessage): Changed return value and arguments.
  17931. (createBitfieldMessage): Changed return value and arguments.
  17932. (createRequestCancelMessage): Removed.
  17933. (createPieceMessage): Changed return value and arguments.
  17934. (getShortIntParam): New function.
  17935. (checkIndex): Changed arguments.
  17936. (checkBegin): Changed arguments.
  17937. (checkLength): Changed arguments.
  17938. (checkPieceOffset): Removed.
  17939. (checkRange): New function.
  17940. (checkBitfield): Changed arguments.
  17941. (createPeerMessage): Removed.
  17942. (checkIntegrity): Removed.
  17943. (createHandshakeMessage): Changed arguments.
  17944. (createChokeMessage): New function.
  17945. (createUnchokeMessage): New function.
  17946. (createInterestedMessage): New function.
  17947. (createNotInterestedMessage): New function.
  17948. (createRequestMessage): New function.
  17949. (createCancelMessage): New function.
  17950. (createPortMessage): New function.
  17951. * src/PeerMessageUtil.cc
  17952. (createBitfieldMessage): Removed.
  17953. (createHaveMessage): Changed return value and arguments.
  17954. (createBitfieldMessage): Changed return value and arguments.
  17955. (createRequestCancelMessage): Removed.
  17956. (createPieceMessage): Changed return value and arguments.
  17957. (getShortIntParam): New function.
  17958. (checkIndex): Changed arguments.
  17959. (checkBegin): Changed arguments.
  17960. (checkLength): Changed arguments.
  17961. (checkPieceOffset): Removed.
  17962. (checkRange): New function.
  17963. (checkBitfield): Changed arguments.
  17964. (createPeerMessage): Removed.
  17965. (checkIntegrity): Removed.
  17966. (createHandshakeMessage): Changed arguments.
  17967. (createChokeMessage): New function.
  17968. (createUnchokeMessage): New function.
  17969. (createInterestedMessage): New function.
  17970. (createNotInterestedMessage): New function.
  17971. (createRequestMessage): New function.
  17972. (createCancelMessage): New function.
  17973. (createPortMessage): New function.
  17974. * src/PeerMessage.h
  17975. (id): Removed.
  17976. (index): Removed.
  17977. (begin): Removed.
  17978. (length): Removed.
  17979. (bitfield): Removed.
  17980. (bitfieldLength): Removed.
  17981. (block): Removed.
  17982. (blockLength): Removed.
  17983. (inProgress): New variable.
  17984. (cuid): New variable.
  17985. (peer): New variable.
  17986. (sendMessageQueue): New variable.
  17987. (logger): New variable.
  17988. (setBitfield): Removed.
  17989. (getBitfield): Removed.
  17990. (setBlock): Removed.
  17991. (getBlock): Removed.
  17992. (getBitfieldLength): Removed.
  17993. (getBlockLength): Removed.
  17994. (isInProgress): New function.
  17995. (toString): Made pure virtual.
  17996. (check): New function.
  17997. (send): New function.
  17998. (receivedAction): New function.
  17999. (getId): Made pure virtual.
  18000. (setId): Removed.
  18001. (getIndex): Removed.
  18002. (setIndex): Removed.
  18003. (getBegin): Removed.
  18004. (setBegin): Removed.
  18005. (getLength): Removed.
  18006. (setLength): Removed.
  18007. (getCuid): New function.
  18008. (setCuid): New function.
  18009. (getPeer): New function.
  18010. (setPeer): New function.
  18011. (getSendMessageQueue): New function.
  18012. (setSendMessageQueue): New function.
  18013. (ID): Removed.
  18014. * src/PeerMessage.cc
  18015. (setBitfield): Removed.
  18016. (setBlock): Removed.
  18017. (toString): Removed.
  18018. * src/TorrentMan.h
  18019. (getPieceLength): New function.
  18020. (getPieceLength): New function.
  18021. * src/SendMessageQueue.h
  18022. (REQUEST_TIME_OUT): New definition.
  18023. (RequestSlots): New definition.
  18024. (MessageQueue): New definition.
  18025. (requestSlotMan): Removed.
  18026. (pendingMessages): Removed.
  18027. (requestSlots): New variable.
  18028. (messageQueue): New variable.
  18029. (torrentMan): New variable.
  18030. (peerConnection): New variable.
  18031. (peer): New variable.
  18032. (piece): New variable.
  18033. (getNewPieceAndSendInterest): New function.
  18034. (createPeerMessage): New function.
  18035. (createHandshakeMessage): New function.
  18036. (send): Made private.
  18037. (setPeerMessageCommonProperty): New function.
  18038. (deleteAllRequestSlot): New function.
  18039. (deleteRequestMessageInQueue): New function.
  18040. (cancelAllRequest): Made private.
  18041. (cancelAllRequest): Made private.
  18042. (countRequestSlot): Made private.
  18043. (addPendingMessage): Removed.
  18044. (deletePendingPieceMessage): Removed.
  18045. (deletePendingRequestMessage): Removed.
  18046. (addMessage): New function.
  18047. (deletePieceMessageInQueue): New function.
  18048. (deleteTimeoutRequestSlot): Changed argument.
  18049. (deleteCompletedRequestSlot): Changed argument.
  18050. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  18051. (getCorrespondingRequestSlot): New function.
  18052. (countPendingMessage): Removed.
  18053. (countMessageInQueue): New function.
  18054. (getTorrentMan): New function.
  18055. (getPeerConnection): New function.
  18056. (hasDownloadPiece): New function.
  18057. (getDownloadPiece): New function.
  18058. (setDownloadPiece): New function.
  18059. (syncPiece): New function.
  18060. (sendMessages): New function.
  18061. (sendNow): New function.
  18062. (trySendNow): New function.
  18063. (abortPiece): New function.
  18064. (sendHandshake): New function.
  18065. (receiveMessage): New function.
  18066. (receiveHandshake): New function.
  18067. (createRequestMessage): New function.
  18068. (createCancelMessage): New function.
  18069. (createPieceMessage): New function.
  18070. (createHaveMessage): New function.
  18071. (createChokeMessage): New function.
  18072. (createUnchokeMessage): New function.
  18073. (createInterestedMessage): New function.
  18074. (createNotInterestedMessage): New function.
  18075. (createBitfieldMessage): New function.
  18076. (createKeepAliveMessage): New function.
  18077. * src/SendMessageQueue.cc
  18078. (SendMessageQueue): Removed requestSlotMan.
  18079. Instantiated peerConnection here.
  18080. (~SendMessageQueue): Removed requestSlotMan.
  18081. Added deletion of peerConnection and the contents of messageQueue.
  18082. (send): Updated according to the change of messageQueue.
  18083. (addPendingMessage): Renamed to addMessage.
  18084. (addMessage): New function.
  18085. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  18086. (deletePieceMessageInQueue): New function.
  18087. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  18088. (deleteRequestMessageInQueue): New function.
  18089. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  18090. here.
  18091. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  18092. (...) was moved here.
  18093. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  18094. moved here.
  18095. (deleteCompletedRequestSlot):
  18096. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  18097. (getCorrespondingRequestSlot):
  18098. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  18099. And renamed to getCorrespondingRequestSlot, correcting a typo.
  18100. (countPendingMessage): Renamed to countMessageInQueue.
  18101. (countMessageInQueue): New function.
  18102. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  18103. (receiveHandshake): New function.
  18104. (createHandshakeMessage): New function.
  18105. (receiveMessage): New function.
  18106. (createPeerMessage): New function.
  18107. (syncPiece): New function.
  18108. (getNewPieceAndSendInterest): New function.
  18109. (sendMessages): New function.
  18110. (sendNow): New function.
  18111. (trySendNow): New function.
  18112. (sendHandshake): New function.
  18113. (abortPiece): New function.
  18114. (getDownloadPiece): New function.
  18115. (getPeerMessageCommonProperty): New function.
  18116. (createRequestMessage): New function.
  18117. (createCancelMessage): New function.
  18118. (createPieceMessage): New function.
  18119. (createHaveMessage): New function.
  18120. (createChokeMessage): New function.
  18121. (createUnchokeMessage): New function.
  18122. (createInterestedMessage): New function.
  18123. (createNotInterestedMessage): New function.
  18124. (createBitfieldMessage): New function.
  18125. (createKeepAliveMessage): New function.
  18126. To add simple Content-Disposition support:
  18127. * src/HttpResponseCommand.h (determinFilename): New function.
  18128. * src/HttpResponseCommand.cc (executeInternal):
  18129. Use determinFilename(headers) instead of req->getFile() when comparing
  18130. filename.
  18131. (determinFilename): New function.
  18132. (handleDefaultEncoding): Use determinFilename(headers) instead of
  18133. req->getFile().
  18134. (handleOtherEncoding): Use determinFilename(headers) instead of
  18135. req->getFile().
  18136. * src/Util.h (getContentDispositionFilename): New function.
  18137. * src/Util.cc (getContentDispositionFilename): New function.
  18138. * src/LogFactory.h (release): New function.
  18139. * src/LogFactory.cc (release): New function.
  18140. To fix a bug that causes out-of-bound exception when HTTP status
  18141. line is wrong:
  18142. * src/HttpConnection.cc (receiveResponse): Added a check for header
  18143. size.
  18144. * src/common.h (Deleter): New class.
  18145. * src/SegmentMan.cc
  18146. (~SegmentMan): Added deletion of splitter and diskWriter.
  18147. * src/DownloadEngine.h
  18148. (Commands): Use deque.
  18149. (clearQueue): New function.
  18150. * src/DownloadEngine.cc
  18151. (~DownloadEngine): Added deletion of segmentMan.
  18152. (cleanQueue): New function.
  18153. * src/TorrentDownloadEngine.h
  18154. (TorrentDownloadEngine): The implementation was moved to
  18155. TorrentDownloadEngine.cc.
  18156. (~TorrentDownloadEngine): The implementation was moved to
  18157. TorrentDownloadEngine.cc.
  18158. * src/TorrentDownloadEngine.cc
  18159. (~TorrentDownloadEngine): Added deletion of torrentMan.
  18160. * src/main.cc
  18161. (clearRequest): Removed.
  18162. (handler): Added deletion of e.
  18163. (torrentHandler): Added deletion of te.
  18164. (main): Do not share splitter.
  18165. Use Deleter instead of clearRequest.
  18166. Deletion of classes were updated.
  18167. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18168. * src/main.cc (main): Fixed typo.
  18169. * src/message.h: Fixed typo.
  18170. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  18171. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18172. To add --select-file command-line option:
  18173. * src/Util.cc
  18174. (unfoldRange): New function.
  18175. (getNum): New function.
  18176. (unfoldSubRange): New function
  18177. * src/main.cc
  18178. (showUsage): Added help message.
  18179. (main): Added --select-file command-line option. Updated the layout of
  18180. file listing.
  18181. * src/common.h
  18182. (Integers): New definition.
  18183. * src/SocketCore.cc
  18184. (writeData): Removed timeout argument.
  18185. (readData): Removed timeout argument.
  18186. (peekData): Removed timeout argument.
  18187. * src/Socket.cc
  18188. (writeData): Removed timeout argument.
  18189. (readData): Removed timeout argument.
  18190. (peekData): Removed timeout argument.
  18191. * Release 0.4.1
  18192. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18193. To deploy upload rate based choking algorithm:
  18194. * src/PeerInteractionCommand.cc
  18195. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  18196. peer currently used.
  18197. (decideChoking): Deleted the choke/unchoke decision algorithm when
  18198. download completes. Simplified.
  18199. (receiveMessage): Updated.
  18200. * src/TorrentMan.h
  18201. (activePeers): New variable.
  18202. (addActivePeer): New function.
  18203. (getActivePeers): New function.
  18204. (deleteActivePeer): New function.
  18205. * src/TorrentMan.cc
  18206. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  18207. * src/PeerAbstractCommand.cc
  18208. (onAbort): Use peer->resetStatus().
  18209. * src/main.cc
  18210. (PeerChokeCommand.h): Included.
  18211. (main): Added the instance of ChokingCommand to the command queue.
  18212. * src/Peer.h
  18213. (amChoking): Renamed from amChocking
  18214. (chokingRequired): New variable.
  18215. (optUnchoking): New variable.
  18216. (deltaUpload): New variable.
  18217. (deltaDownload): New variable.
  18218. (addDeltaUpload): New function.
  18219. (resetDeltaUpload): New function.
  18220. (addDeltaDownload): New function.
  18221. (resetDeltaDownload): New function.
  18222. (addPeerUpload): Added a call to addDeltaUpload.
  18223. (addPeerDownload): Added a call to addDeltaDownload.
  18224. * src/Peer.cc
  18225. (shouldBeChoking): Renamed from shouldChoke.
  18226. (resetStatus): New function.
  18227. * src/PeerChokeCommand.h: New class.
  18228. * src/PeerChokeCommand.cc: New class.
  18229. To add lazy upload speed limiter:
  18230. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  18231. statistics calculation to TorrentDownloadEngine.
  18232. * src/TorrentConsoleDownloadEngine.cc
  18233. (sendStatistics): Renamed from printStatistics.
  18234. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  18235. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  18236. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  18237. * src/TorrentDownloadEngine.h: Added the variables for statistics
  18238. calculation.
  18239. (sendStatistics): New function as pure virtual function.
  18240. (getUploadSpeed): New function.
  18241. * src/TorrentDownloadEngine.cc
  18242. (initStatistics): New function.
  18243. (calculateSpeed): New function.
  18244. (calculateStatistics): New function.
  18245. * src/SendMessageQueue.h
  18246. (uploadLength): New variable.
  18247. (send): Added an argument.
  18248. (setUploadLimit): New function.
  18249. (getUploadLimit): New function.
  18250. * src/SendMessageQueue.cc
  18251. (send): Added upload speed limiter.
  18252. * src/prefs.h
  18253. (PREF_UPLOAD_LIMIT): New definition.
  18254. * src/PeerInteractionCommand.cc
  18255. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  18256. * src/main.cc
  18257. (main): Added --upload-limit option
  18258. For bug fixes:
  18259. * src/main.cc
  18260. (showUsage): Corrected --listen-port help
  18261. Other changes:
  18262. * src/TorrentMan.cc
  18263. (getPeer): Return nullPeer if connection is grather than
  18264. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  18265. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18266. To add some useful information to the exception message:
  18267. * src/SocketCore.cc : Updated messages.
  18268. * src/SegmentMan.cc :
  18269. * src/TorrentMan.cc : Updated messages.
  18270. * src/MultiDiskWriter.cc : Updated messages.
  18271. * src/Util.cc : Updated messages.
  18272. * src/AbstractDiskWriter.cc : Updated messages.
  18273. * src/PreAllocationDiskWriter.cc : Updated messages.
  18274. * src/message.cc : Added new messages. Updated some messages.
  18275. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  18276. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  18277. Updated threshold from 30 to 15.
  18278. * src/AbstractDiskWriter.h (filename): New variable.
  18279. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  18280. (createFile): Assigned filename.
  18281. * src/main.cc: Updated the help message for http-auth-scheme.
  18282. * Release 0.4.0
  18283. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18284. To add TrackerUpdateCommand with which replaces
  18285. CompactTrackerResponseProcessor:
  18286. * src/TrackerWatcherCommand.h (req): Removed.
  18287. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  18288. if the number of peer connections are less than 30.
  18289. * src/ByteArrayDiskWriter.h (readData): Implemented.
  18290. * src/SegmentMan.h (diskWriter): New function.
  18291. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  18292. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  18293. (main): Use TrackerUpdateCommand.
  18294. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  18295. (req): New variable.
  18296. (setTrackerResponseProcessor): Removed.
  18297. (getTrackerResponseProcessor): Removed.
  18298. (processTrackerResponse): Removed.
  18299. * src/DownloadEngine.h (diskWriter): Removed.
  18300. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  18301. to torrentMan->processTrackerResponse().
  18302. To add Util::expandBuffer:
  18303. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  18304. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  18305. * src/Util.h (expandBuffer): New function.
  18306. To fix the bug that causes segmentation fault when "-l ." is specified
  18307. in command-line option:
  18308. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  18309. (openFile): New function.
  18310. (closeFile): New function.
  18311. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  18312. (~SimpleLogger): Call closeFile();
  18313. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  18314. * src/main.cc (main): Added a check to see logger is configured
  18315. properly.
  18316. To enable HTTP authentication without specifying "--http-auth-scheme"
  18317. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  18318. * src/HttpConnection.cc (createRequest): Send Authorization header
  18319. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  18320. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  18321. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  18322. * src/Peer.cc (shouldChoke): Updated algorithm.
  18323. * src/message.h (EX_AUTH_FAILED): New definition.
  18324. (EX_FILE_OPEN): New definition.
  18325. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  18326. if status == 401.
  18327. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  18328. if req->isTorrent == true.
  18329. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  18330. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  18331. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  18332. (createFile): Updated message.
  18333. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18334. To add a readout of estimated remaining time to normal HTTP/FTP
  18335. downloads:
  18336. * src/ConsoleDownloadEngine.h (startup): New variable.
  18337. (startupLength): New variable.
  18338. (isStartupLengthSet): New variable.
  18339. (avgSpeed): New variable.
  18340. (eta): New variable.
  18341. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  18342. estimated remaining time.
  18343. (initStatistics): Initialized newly added variables.
  18344. (calculateStatistics): Calculate average speed and estimated remaining
  18345. time.
  18346. To decouple TorrentDownloadEngine from HttpResponseCommand:
  18347. * src/TrackerDownloadCommand.h: Removed.
  18348. * src/TrackerDownloadCommand.cc: Removed.
  18349. * src/TrackerInitCommand.h: Removed.
  18350. * src/TrackerInitCommand.cc: Removed.
  18351. * src/TrackerUpdateCommand.h: Removed.
  18352. * src/TrackerUpdateCommand.cc: Removed.
  18353. * src/TrackerWatcherCommand.cc (execute): The construction of request
  18354. url written in TrackerInitCommand was moved here. Do not create
  18355. tracker request command if torrentMan->trackers != 0.
  18356. * src/CompactTrackerResponseProcessor.h: New class.
  18357. * src/CompactTrackerResponseProcessor.cc: New class.
  18358. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  18359. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  18360. Decoupled TorrentDownloadEngine from this.
  18361. * src/SegmentMan.h (init): New function.
  18362. * src/SegmentMan.cc (init): New function.
  18363. * src/TorrentMan.h (responseProcessor): New variable.
  18364. (trackers): New variable.
  18365. (setTrackerResponseProcessor): New function.
  18366. (getTrackerResponseProcessor): New function.
  18367. (processTrackerResponse): New function.
  18368. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  18369. (processTrackerResponse): New function.
  18370. * src/main.cc (main): Use ByteArrayDiskWriter and
  18371. CompactTrackerResponseProcessor.
  18372. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  18373. processTrackerResponse().
  18374. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  18375. readout.
  18376. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  18377. which indicates download has completed.
  18378. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  18379. (closeFile): fd >= 0, not fd > 0
  18380. * src/main.cc (main): Added short cut for show-files.
  18381. Added short cut for torrent-file.
  18382. Added new command-line option listen-port.
  18383. Updated i18n messages.
  18384. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18385. To add LogFactory which creates singleton logger:
  18386. * src/LogFactory.h: New class.
  18387. * src/LogFactory.cc: New class.
  18388. * src/Command.h (logger): New variable.
  18389. (Constructor): Use LogFactory.
  18390. * src/AbstractCommand.cc: Use Command::logger
  18391. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  18392. Use LogFactory.
  18393. * src/SegmentSplitter.h : Made logger protected.
  18394. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  18395. * src/SegmentMan.cc (Constructor): Use LogFactory.
  18396. * src/DownloadEngine.h : Made logger protected.
  18397. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  18398. * src/PeerInteractionCommand.cc : Use Command::logger.
  18399. * src/HttpResponseCommand.cc : Use Command::logger.
  18400. * src/SegmentMan.h : Made logger private.
  18401. * src/TorrentMan.h : Made logger private.
  18402. * src/TorrentMan.cc : Use LogFactory.
  18403. * src/FtpNegotiateCommand.cc : Use Command::logger.
  18404. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  18405. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  18406. Use LogFactory.
  18407. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  18408. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  18409. Use LogFactory.
  18410. * src/DownloadCommand.cc : Use Command::logger.
  18411. * src/PeerAbstractCommand.cc : Use Command::logger.
  18412. * src/PeerListenCommand.cc : Use Command::logger.
  18413. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  18414. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  18415. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  18416. * src/TrackerWatcherCommand.cc : Use Command::logger.
  18417. * src/TrackerUpdateCommand.cc : Use Command::logger.
  18418. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18419. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18420. Use LogFactory.
  18421. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18422. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18423. Use LogFactory.
  18424. * src/main.cc (main): Use LogFactory.
  18425. * src/DiskAdaptor.h (logger): New variable.
  18426. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18427. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18428. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18429. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18430. parameter to a tracker request.
  18431. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18432. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18433. * src/main.cc (setSignalHander): New function.
  18434. (main): Added a handler for SIGTERM.
  18435. (handler): Updated message.
  18436. (torrentHandler): Updated message.
  18437. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18438. * src/TorrentConsoleDownloadEngine.cc
  18439. (onPartialDownloadingCompletes): Renamed as
  18440. onSelectiveDownloadingCompletes.
  18441. (onSelectiveDownloadingCompletes): Updated message.
  18442. To add DiskAdaptor which abstract DiskWriter family:
  18443. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18444. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18445. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18446. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18447. MultiDiskAdaptor.h.
  18448. (readFileEntry): Changed its arguments.
  18449. (setup): setupDiskWriter is merged into this function.
  18450. (setupDiskWriter): Removed.
  18451. (setFileFilter): New function.
  18452. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18453. made in readFileEntry.
  18454. (getFilePath): Removed.
  18455. (getTempFilePath): Removed.
  18456. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18457. (fixFilename): Removed.
  18458. (copySingleFile): Removed.
  18459. (splitMultiFile): Removed.
  18460. (deleteTempFile): Removed.
  18461. (setFileEntriesToDownload): Removed.
  18462. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18463. (isSelectiveDownloadingMode): New function.
  18464. (setAllMultiFileRequestedState): Removed.
  18465. (finishPartialDownloadingMode): Renamed as
  18466. finishSelectiveDownloadingMode.
  18467. (finishSelectiveDownloadingMode): New function.
  18468. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18469. (getSelectedTotalLength): New function.
  18470. (onDownloadComplete): Use diskAdaptor.
  18471. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18472. (Range): Removed.
  18473. (setMultiFileEntries): Renamed as setFileEntries.
  18474. (setFileEntries): New function.
  18475. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18476. (pieceLength): New variable.
  18477. * src/main.cc (printDownloadCompeleteMessage): New function.
  18478. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18479. (main): Renamed torrent-show-files to show-files.
  18480. Rewritten file contents listing.
  18481. * src/TorrentMan.h (FileEntry): Removed.
  18482. (multiFileTopDir): Removed.
  18483. (multiFileEntries): Removed.
  18484. (diskWriter): Removed.
  18485. (diskAdaptor): New variable.
  18486. * src/DefaultDiskWriter.h (totalLength): New variable.
  18487. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18488. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18489. diskWriter.
  18490. * src/TorrentConsoleDownloadEngine.h
  18491. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18492. (partialTotalLength): Renamed as selectedTotalLength.
  18493. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18494. openExistingFile, otherwise call initAndOpenFile.
  18495. (closeFile): fd > 0, not fd != 0.
  18496. * src/DirectDiskAdaptor.h: New class.
  18497. * src/DirectDiskAdaptor.cc: New class.
  18498. * src/MultiDiskAdaptor.h: New class.
  18499. * src/MultiDiskAdaptor.cc: New class.
  18500. * src/CopyDiskAdaptor.h: New class.
  18501. * src/CopyDiskAdaptor.cc: New class.
  18502. * src/DiskAdaptor.h: New class.
  18503. * src/DiskAdaptor.cc: New class.
  18504. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18505. (PREF_SHOW_FILES): New definition.
  18506. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18507. To add the ability to download multi torrent into respective files
  18508. directly:
  18509. * src/DiskWriter.h (openFile): New function.
  18510. (seek): Removed.
  18511. * src/MultiDiskWriter.h: New class.
  18512. * src/MultiDiskWriter.cc: New class.
  18513. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18514. protected.
  18515. (openFile): New function.
  18516. * src/AbstractDiskWriter.cc (openFile): New function.
  18517. * src/prefs.h (V_FALSE): New definition.
  18518. (PREF_DIRECT_FILE_MAPPING): New definition.
  18519. * src/TorrentMan.h (setupDiskWriter): New function.
  18520. (setAllMultiFileRequestedState): New function.
  18521. (onDownloadComplete): New function.
  18522. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18523. (setupDiskWriter): New function.
  18524. (getFilePath): Updated.
  18525. (getTempFilePath): Updated.
  18526. (getSegmentFilePath): Updated.
  18527. (fixFilename): Updated.
  18528. (deleteTempFile): Updated.
  18529. (setAllMultiFileRequestedState): New function.
  18530. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18531. (finishPartialDownloadingMode): Reset requested flags.
  18532. (onDownloadComplete): New function.
  18533. * src/main.cc: Added --direct-file-mapping option.
  18534. Use TorrentMan::setupDiskWriter().
  18535. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18536. onDownloadComplete().
  18537. To fix ETA bug:
  18538. * src/Util.h (difftvsec): New function.
  18539. * src/Util.cc (difftvsec): New function.
  18540. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18541. type of "elapsed" instead of long long int.
  18542. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18543. The updates of statistics takes place every 1 seconds.
  18544. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18545. (calculateSpeed): Changed its argument signature.
  18546. * src/PeerMessage.cc (toString): Fixed message.
  18547. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18548. To print ETA:
  18549. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18550. completion handling when dealing with
  18551. TorrentMan::isPartialDownloadingMode() == true.
  18552. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18553. New function.
  18554. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18555. (sessionDownloadLength): New variable.
  18556. (avgSpeed): New variable.
  18557. (eta): New variable.
  18558. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18559. new variables: eta, avgSpeed, startup.
  18560. (calculateSpeed): Calculate average speed and ETA.
  18561. (printStatistics): Added ETA.
  18562. * src/Util.h (secfmt): New function.
  18563. * src/Util.cc (secfmt): New function.
  18564. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18565. To detect "keep alive" flooding:
  18566. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18567. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18568. variable: keepAliveCount.
  18569. (detectMessageFlooding): Added "keep alive" flooding detection.
  18570. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18571. received.
  18572. To add the ability to download only specified files in multi-file
  18573. torrent:
  18574. * src/BitfieldMan.h (filterBitfield): New variable.
  18575. (filterEnabled): New variable.
  18576. (setFilterBit): New function.
  18577. (enableFilter): New function.
  18578. (disableFilter): New function.
  18579. (isFilterEnabled): New function.
  18580. (getFilteredTotalLength): New function.
  18581. (getCompletedLength): New function.
  18582. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18583. filterBitfield, filterEnabled.
  18584. (CopyConstructor): Added filterBitfield and filterEnabled.
  18585. (operator==): Added filterBitfield and filterEnabled.
  18586. (Destructor): Added filterBitfield.
  18587. (getMissingIndex): Use filterBitfield.
  18588. (getMissingUnusedIndex): Use filterBitfield.
  18589. (getFirstMissingUnusedIndex): Use filterBitfield.
  18590. (getFirstMissingUnusedIndex): Use filterBitfield.
  18591. (getAllMissingIndexes): Use filterBitfield.
  18592. (countMissingBlock): Use filterBitfield.
  18593. (countBlock): Use filterBitfield.
  18594. (setBitInternal): Added new argument on.
  18595. (setUseBit): Use setBitInternal.
  18596. (unsetUseBit): Use setBitInternal.
  18597. (setBit): Use setBitInternal.
  18598. (unsetBit): Use setBitInternal.
  18599. (isAllBitSet): Use filterBitfield.
  18600. (setFilterBit): New function.
  18601. (addFilter): New function.
  18602. (enableFilter): New function.
  18603. (disableFilter): New function.
  18604. (clearFilter): New function.
  18605. (isFilterEnabled): New function.
  18606. (getFilteredTotalLength): New function.
  18607. (getCompletedLength): New function.
  18608. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18609. Initalized newly added variables.
  18610. [FileEntry](offset): New variable.
  18611. [FileEntry](extracted): New variable.
  18612. [FileEntry](requested): New variable.
  18613. (readFileEntry): New function.
  18614. (option): New variable.
  18615. (splitMultiFile): Removed const qualifier.
  18616. (fixFilename): Removed const qualifier.
  18617. (readFileEntryFromMetaInfoFile): New function.
  18618. (finishPartialDownloadingMode): New function.
  18619. (isPartialDownloadingMode): New function.
  18620. (setFileEntriesToDownload): New function.
  18621. (getCompletedLength): New function.
  18622. (getPartialTotalLength): New function.
  18623. * src/TorrentMan.cc (readFileEntry): New function.
  18624. (setup): Use readFileEntry. If no-preallocation option is specified,
  18625. use DefaultDiskWriter.
  18626. (readFileEntryFromMetaInfoFile): New function.
  18627. (fixFilename): Removed const qualifier.
  18628. (splitMultiFile): Removed const qualifier.
  18629. (setFileEntriesToDownload): New function.
  18630. (isPartialDownloadingMode): New function.
  18631. (finishPartialDownloadingMode): New function.
  18632. (getCompletedLength): New function.
  18633. (getPartialTotalLength): New function.
  18634. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18635. New variable.
  18636. (partialTotalLength): New variable.
  18637. (downloadLength): New variable.
  18638. (totalLength): New variable.
  18639. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18640. Added log.
  18641. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18642. partialTotalLength, downloadLength, totalLength.
  18643. (calculate): Calculate downloadLength and totalLength.
  18644. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18645. * src/main.cc (addCommand): Changed argument signature.
  18646. (main): Added new variable: args. Added new option "torrent-show-files"
  18647. "no-preallocation". Usage is not updated yet.
  18648. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18649. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18650. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18651. Attempt to add the ability to listing file entries in a .torrent file.
  18652. This feature is not yet complete.
  18653. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18654. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18655. (getName): New function.
  18656. * src/TorrentMan.h (getMultiFileEntries): New function.
  18657. (getName): New function.
  18658. * src/main.cc (main): Use above 2 funtion.
  18659. * Release 0.3.2
  18660. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18661. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18662. (detectMessageFlooding): Updated threshold value.
  18663. (checkLongTimePeerChoking): Updated timeout value.
  18664. (getNewPieceAndSendInterest): Added debug log.
  18665. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18666. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18667. (getPeer): Updated.
  18668. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18669. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18670. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18671. is localhost.
  18672. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18673. * src/PendingMessage.cc (processMessage): Not to send piece message
  18674. if peer is not interested in the pieces localhost has.
  18675. * src/Peer.cc (shouldChoke): Updated.
  18676. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18677. * src/Util.cc (isPowerOf): New function.
  18678. * src/Util.h (isPowerOf): New function.
  18679. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18680. whether or not it is power of 2.
  18681. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18682. Added new class SendMessageQueue that includes PendingMessages and
  18683. RequestSlotMan.
  18684. * src/SendMessageQueue.h: New class.
  18685. * src/SendMessageQueue.cc: New class.
  18686. * src/PendingMessage.h: Added new member variable blockIndex and its
  18687. accessors.
  18688. (createRequestMessage): Updated.
  18689. * src/PendingMessage.cc (createRequestMessage): Updated.
  18690. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18691. SendMessageQueue.
  18692. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18693. (receiveMessage): Updated with SendMessageQueue.
  18694. (deletePendingPieceMessage): Removed.
  18695. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18696. (sendInterest): Updated with SendMessageQueue.
  18697. (createRequestPendingMessage): Updated with SendMessageQueue.
  18698. (sendMessages): Updated with SendMessageQueue.
  18699. (onAbort): Updated with SendMessageQueue.
  18700. (keepAlive): Updated with SendMessageQueue.
  18701. (beforeSocketCheck): Updated SendMessageQueue.
  18702. * src/PeerInteractionCommand (sendMessages): Shuffle
  18703. missingBLockIndexes before using it.
  18704. Added its own timeout for peer connection.
  18705. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18706. setter.
  18707. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18708. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18709. Added setTimeout() call.
  18710. (executeInternal): Added setTimeout() call.
  18711. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18712. Added timeout.
  18713. (isTimeoutDetected): Updated.
  18714. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18715. option.
  18716. Added *simple* message flooding checker.
  18717. * src/PeerInteractionCommand.cc (executeInternal):
  18718. Added detectMessageFlooding() call.
  18719. (detectMessageFlooding): New function.
  18720. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18721. (beforeSocketCheck): Added detectMessageFlooding() call.
  18722. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18723. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18724. Removed deletePendingPieceMessage(), getRequestSlot(),
  18725. deleteRequestSlot(), deleteAllRequestSlot().
  18726. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18727. Added checkLongTimePeerChoking() call.
  18728. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18729. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18730. if duplicate == false.
  18731. The parameter "uploaded" and "downloaded" in the tracker request are
  18732. the size since the client sent the "started" event to the tracker.
  18733. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18734. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18735. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18736. getSessionDownloadedSize(), getSessionUploadedSize().
  18737. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18738. getSessionUploadedSize() instead of getDownloadedSize(),
  18739. getUploadedSize().
  18740. * src/PendingMessage.cc (processMessage): Do not send request message
  18741. if the peer is choking the client.
  18742. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18743. less than interval.
  18744. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18745. * configure.in: Added gnutls support. Added several CPP macros.
  18746. * m4/openssl.m4: Added.
  18747. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18748. readData(), peekData(). Added gnutls support.
  18749. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18750. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18751. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18752. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18753. Instead, added a check for whether setup method has executed
  18754. successfully.
  18755. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18756. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18757. * src/Makefile.am: Updated.
  18758. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18759. using whether OpenSSL or gcrypt, depending on the result of configure
  18760. script.
  18761. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18762. messageDigest.h.
  18763. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18764. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18765. Fixed memory leak.
  18766. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18767. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18768. Removed instantiation of TrackerInitCommand. Instead,
  18769. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18770. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18771. ENABLE_SSL.
  18772. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18773. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18774. If a piece is already acquired by another command, delete the request
  18775. slots for the piece.
  18776. * src/TrackerUpdateCommand.cc (execute):
  18777. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18778. Added a check whether peer list is null.
  18779. Fixed the bug that causes sending completed event to the tracker
  18780. several times.
  18781. * src/TrackerInitCommand.cc (execute):
  18782. Fixed the bug that causes sending completed event to the tracker
  18783. several times.
  18784. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18785. by using messageDigest.h.
  18786. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18787. * PeerConnection.cc: Replaced log message "keep-alive" with
  18788. "keep alive".
  18789. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18790. localhost long time.
  18791. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18792. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18793. at most 100 failure entry from the list. If with duplicate = false,
  18794. MAX_PEER_LIST is not checked.
  18795. * PeerListenCommand.cc: Fixed the argument order of log message.
  18796. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18797. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18798. Added warn().
  18799. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18800. Implemented warn().
  18801. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18802. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18803. * Request.h: Added AFTER_COMPLETED event.
  18804. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18805. instead of downloaded size and progress(%) after download completes.
  18806. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18807. message to the peer if it is interested in what localhost has
  18808. downloaded.
  18809. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18810. destination instead of just renaming it.
  18811. * TorrentMan.cc: Added deleteTempFile().
  18812. * PeerAbstractCommand.cc: do not stop execution after download
  18813. completes. This makes localhost a seeder.
  18814. * Util.{h,cc}: Added fileCopy().
  18815. * PeerListenCommand.cc: do not stop execution after download completes.
  18816. This makes localhost a seeder.
  18817. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18818. Added TorrentMan::deleteTempFile() to torrentHandler.
  18819. Initialized the variable dir as ".".
  18820. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18821. Deleted renameSingleFile().
  18822. Added copySingleFile(), deleteTempFile().
  18823. * DownloadEngine.h: Added virtual function afterEachIteration().
  18824. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18825. in onEndOfRun() to afterEachIteration().
  18826. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18827. true.
  18828. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18829. In rangedFileCopy(), added try-catch block to properly close file
  18830. descriptors.
  18831. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18832. Added afterEachIteration(), isFilenameFixed().
  18833. * Peer.cc: Changed choking strategy.
  18834. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18835. * TrackerInitCommand.cc: Send completed event only once.
  18836. * DownloadEngine.cc: Added a call to afterEachIteration().
  18837. * TrackerUpdateCommand.cc: Do not stop execution after download
  18838. completes.
  18839. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18840. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18841. received from a tracker.
  18842. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18843. Decreased the number of failure peers to delete to 0(just comment out
  18844. the line).
  18845. * Release 0.3.1
  18846. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18847. * PeerInteractionCommand.cc: added a call to
  18848. TorrentMan::unadvertisePiece in Destructor.
  18849. * PeerInteractionCommand.cc: make have message sent immediately
  18850. if the size of pending message queue is zero.
  18851. * TorrentMan.cc: set the maximum size of peer list to 250.
  18852. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18853. to deque.
  18854. * Util.cc: fixed rangedFileCopy.
  18855. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18856. to Constructor. Also, moved digest cleanup to Destructor.
  18857. * MetaFileUtil.cc: fixed memory leak
  18858. * replaced std::vector with std::deque.
  18859. * AbstractCommand.cc: casted timeout value to long long int.
  18860. * ChunkedEncoding.cc: fixed memory leak.
  18861. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18862. * SleepCommand.cc: casted timeout value to long long int.
  18863. * Data.cc: fixed memory leak.
  18864. * Data.cc: fixed toLLInt().
  18865. * BitfieldMan.cc: fixed memory leak.
  18866. * TorrentMan.cc: initialized storeDir to ".".
  18867. * TorrentMan.cc: fixed memory leak.
  18868. * TorrentMan.cc: corrected file paths of splitted files.
  18869. * PeerAbstractCommand.cc: casted timeout to long long int.
  18870. * main.cc: added delete(req) and delete(te->diskWriter).
  18871. * RequestSlot.cc: casted timeout value to long long int.
  18872. * Request.cc: fixed memory leak.
  18873. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18874. have the piece.
  18875. * Peer.{h,cc}: added hasPiece(int index).
  18876. * main.cc: corrected addCommand.
  18877. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18878. * BitTorrent protocol support added.
  18879. * Release 0.3.0
  18880. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18881. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18882. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18883. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18884. decoding did not work properly.
  18885. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18886. * DownloadEngine.h: included sys/time.h
  18887. * DownloadEngine.cc: remove sys/time.h
  18888. * Makefile.am (SUBDIRS): Add intl.
  18889. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18890. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18891. * main.cc: correct help message for --http-auth-scheme.
  18892. * main.cc: changed e-mail address for bug reports.
  18893. * ja.po: added japanese translation.
  18894. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18895. * SimpleLogger.cc: flush log file instead of stdout.
  18896. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18897. * main.cc: Fixed command-line option: max-tries
  18898. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18899. does not equal to seg.sp.
  18900. * DownloadCommand.cc: If EOF is got from the server and the total size
  18901. of file is not zero, then throw DlRetryEx.
  18902. * main.cc: Set the minium value of min-segment-size to 1024.
  18903. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18904. fails because of a regression since 0.2.0 release.
  18905. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18906. * HttpConnection.cc:
  18907. * common.h: defined the user agent name as macro
  18908. * DownloadEngine.{h, cc}:
  18909. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18910. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18911. * main.cc: Download complete/abort message is now generated by main.
  18912. * Makefile.am (SUBDIRS): Add m4.
  18913. (ACLOCAL_AMFLAGS): New variable.
  18914. (EXTRA_DIST): New variable.
  18915. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18916. * gettext: added gettext functionality
  18917. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18918. * AbstractCommand.cc:
  18919. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18920. unregister its cuid from SegmentMan.
  18921. * DownloadEngine.cc: .aria2 file was written when a downloading
  18922. failed with errors.
  18923. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18924. Added "User-Agent" header to CONNECT proxy request.
  18925. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18926. properly.
  18927. * Logger.h:
  18928. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18929. * ChunkedEncoding.cc: Added #include directive for strings.h
  18930. * Release 0.2.1
  18931. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18932. * Util.{h,cc}: added startsWith().
  18933. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18934. Util::endsWith().
  18935. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18936. * common.h: added #include directive of limit.h.
  18937. * DownloadEngine.cc: added #include directive of sys/time.h and
  18938. algorithm.
  18939. * Exception.h: added #include directive of stdio.h.
  18940. * AbstractCommand.h: added #include directive of sys/time.h.
  18941. * DownloadCommand.h: added #include directive of sys/time.h.
  18942. * *.h: added #include directive of common.h to all base classes.
  18943. subclasses' one was removed.
  18944. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18945. does not define these macros.
  18946. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18947. * Release 0.2.0
  18948. * main.cc:
  18949. * HttpInitiateConnectionCommand.{h,cc}:
  18950. * prefs.h:
  18951. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18952. We can now use GET command in http proxy.
  18953. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18954. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18955. that splits slowest segment of SegmentMan::commands vector.
  18956. This is the default split algorithm of aria2.
  18957. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18958. that splits first segment of SegmentMan::commands vector.
  18959. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18960. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18961. * Segment.h:
  18962. * SegmentMan.cc: Added speed field to Segment.h
  18963. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18964. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18965. * message.h: Change file size related %d to %lld.
  18966. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18967. * FtpInitiateConnectionCommand.{h,cc}:
  18968. * FtpNegotiationCommand.{h,cc}:
  18969. * FtpDownloadCommand.{h,cc}:
  18970. * FtpConnection.{h,cc}: Added FTP support
  18971. * SimpleLogger.cc: Log message now includes time information.
  18972. * main.cc: The value of --http-auth-scheme option is chagned from
  18973. 'BASIC' to 'basic'
  18974. * main.cc: Added --timeout command-line option.
  18975. * main.cc: Added --min-segment-size command-line option.
  18976. * main.cc: Added --max-retries command-line option.
  18977. * prefs.h: option string constants are now defined in prefs.h
  18978. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18979. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18980. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18981. with version 0.1.0's one.
  18982. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18983. * configure.in: Added --enable-ssl option to configure script.
  18984. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18985. cannot permit absoluteURI as Request-URI.
  18986. * HttpConnection.cc: Added Referer support.
  18987. * main.cc: Added referer command-line option.
  18988. * main.cc: Added rety-wait command-line option.
  18989. * Exception.h: Fixed formating bug in Exception::setMsg()
  18990. * SocketCore.{h,cc}:
  18991. * Socket.{h, cc}:
  18992. * Request.cc:
  18993. * InitiateConnectionCommandFactory.cc:
  18994. * HttpRequestCommand.cc: Added HTTPS support.
  18995. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18996. for SocketCore.
  18997. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18998. size is wrong
  18999. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  19000. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  19001. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  19002. * Release 0.1.0