ChangeLog 708 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888
  1. 2010-03-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added Time global::wallclock to cache "current time" to reduce the
  3. call gettimeofday(). Global variables are now in namespace global.
  4. * src/AbstractCommand.cc
  5. * src/ActivePeerConnectionCommand.cc
  6. * src/AdaptiveURISelector.cc
  7. * src/BtLeecherStateChoke.cc
  8. * src/BtLeecherStateChoke.h
  9. * src/BtSeederStateChoke.cc
  10. * src/BtSeederStateChoke.h
  11. * src/BtStopDownloadCommand.cc
  12. * src/ConsoleStatCalc.cc
  13. * src/DHTBucket.cc
  14. * src/DHTGetPeersCommand.cc
  15. * src/DHTMessageTrackerEntry.cc
  16. * src/DHTNode.cc
  17. * src/DHTPeerAnnounceEntry.cc
  18. * src/DHTPeerAnnounceStorage.cc
  19. * src/DHTSetup.cc
  20. * src/DefaultBtAnnounce.cc
  21. * src/DefaultBtInteractive.cc
  22. * src/DefaultBtMessageDispatcher.cc
  23. * src/DefaultPeerStorage.cc
  24. * src/DefaultPieceStorage.cc
  25. * src/DownloadCommand.cc
  26. * src/DownloadEngine.cc
  27. * src/FileEntry.cc
  28. * src/HttpServerBodyCommand.cc
  29. * src/HttpServerCommand.cc
  30. * src/HttpServerResponseCommand.cc
  31. * src/LpdMessageDispatcher.cc
  32. * src/MultiUrlRequestInfo.cc
  33. * src/Peer.cc
  34. * src/Peer.h
  35. * src/PeerAbstractCommand.cc
  36. * src/PeerStat.h
  37. * src/RequestSlot.cc
  38. * src/RequestSlot.h
  39. * src/SegmentMan.cc
  40. * src/ServerStatMan.cc
  41. * src/SleepCommand.cc
  42. * src/SpeedCalc.cc
  43. * src/SpeedCalc.h
  44. * src/TimeA2.cc
  45. * src/TimeA2.h
  46. * src/TimeBasedCommand.cc
  47. * src/TimeSeedCriteria.h
  48. * src/UTMetadataRequestTracker.h
  49. * src/UTPexExtensionMessage.cc
  50. * src/wallclock.h
  51. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  52. Fixed the bug that util::itos(INT64_MIN) fails.
  53. * src/util.cc
  54. * src/util.h
  55. * test/UtilTest.cc
  56. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  57. Fixed memory leak in SocketBuffer when _bufq is not empty when
  58. SocketBuffer is deleted. Added BufEntry constructor and deleted
  59. static factory functions.
  60. * src/SocketBuffer.cc
  61. * src/SocketBuffer.h
  62. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  63. Only execute RequestGroupMan::fillRequestGroupFromReserver() when
  64. queue maintenance is requested by RequestGroup to avoid to call
  65. the function unnecessarily.
  66. * src/FillRequestGroupCommand.cc
  67. * src/RequestGroup.cc
  68. * src/RequestGroup.h
  69. * src/RequestGroupMan.cc
  70. * src/RequestGroupMan.h
  71. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Don't use hash for Peer::id. Simple concatenation of ip address
  73. and port is enough.
  74. * src/Peer.cc
  75. * test/PeerTest.cc
  76. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Enclosed log of DHTMessage::toString() with Logger::info().
  78. * src/DHTMessageDispatcherImpl.cc
  79. * src/DHTMessageReceiver.cc
  80. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Rewritten util::toHex().
  82. * src/util.cc
  83. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Removed SocketBuffer::feedAndSend(). Renamed
  85. SocketBuffer::feedSendBuffer() as SocketBuffer::pushStr().
  86. * src/FtpConnection.cc
  87. * src/HttpConnection.cc
  88. * src/HttpServer.cc
  89. * src/MSEHandshake.cc
  90. * src/PeerConnection.cc
  91. * src/SocketBuffer.cc
  92. * src/SocketBuffer.h
  93. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Removed unused PeerConnection::sendMessage(). Updated doc.
  95. * src/PeerConnection.cc
  96. * src/PeerConnection.h
  97. 2010-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Reduced copying/std::string instantiation in sending/receiving
  99. BitTorrent messages.
  100. * src/BtBitfieldMessage.cc
  101. * src/BtBitfieldMessage.h
  102. * src/BtExtendedMessage.cc
  103. * src/BtExtendedMessage.h
  104. * src/BtHandshakeMessage.cc
  105. * src/BtHandshakeMessage.h
  106. * src/BtKeepAliveMessage.cc
  107. * src/BtKeepAliveMessage.h
  108. * src/BtPieceMessage.cc
  109. * src/BtPieceMessage.h
  110. * src/BtPortMessage.cc
  111. * src/BtPortMessage.h
  112. * src/BtUnchokeMessage.h
  113. * src/DefaultBtMessageReceiver.cc
  114. * src/IndexBtMessage.cc
  115. * src/IndexBtMessage.h
  116. * src/PeerConnection.cc
  117. * src/PeerConnection.h
  118. * src/RangeBtMessage.cc
  119. * src/RangeBtMessage.h
  120. * src/SimpleBtMessage.cc
  121. * src/SimpleBtMessage.h
  122. * src/SocketBuffer.cc
  123. * src/SocketBuffer.h
  124. * src/ZeroBtMessage.cc
  125. * src/ZeroBtMessage.h
  126. * test/BtAllowedFastMessageTest.cc
  127. * test/BtBitfieldMessageTest.cc
  128. * test/BtCancelMessageTest.cc
  129. * test/BtChokeMessageTest.cc
  130. * test/BtExtendedMessageTest.cc
  131. * test/BtHandshakeMessageTest.cc
  132. * test/BtHaveAllMessageTest.cc
  133. * test/BtHaveMessageTest.cc
  134. * test/BtHaveNoneMessageTest.cc
  135. * test/BtInterestedMessageTest.cc
  136. * test/BtKeepAliveMessageTest.cc
  137. * test/BtNotInterestedMessageTest.cc
  138. * test/BtPieceMessageTest.cc
  139. * test/BtPortMessageTest.cc
  140. * test/BtRejectMessageTest.cc
  141. * test/BtRequestMessageTest.cc
  142. * test/BtSuggestPieceMessageTest.cc
  143. * test/BtUnchokeMessageTest.cc
  144. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Rewritten SocketBuffer. Old implementation uses single std::string
  146. to store data and erase sent data, which is costly. New
  147. implementation uses deque to hold each data to avoid to mutate
  148. string.
  149. * src/SocketBuffer.cc
  150. * src/SocketBuffer.h
  151. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Removed unused FileEntry::extracted
  153. * src/FileEntry.cc
  154. * src/FileEntry.h
  155. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Wait until data arrives.
  157. * test/LpdMessageReceiverTest.cc
  158. 2010-03-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. In Metalink4, if size element contains invalid size, discard whole
  160. document. Added strict hash value check for metalink3/4.
  161. * src/MetalinkParserController.cc
  162. * src/MetalinkParserStateMachine.cc
  163. * src/MetalinkParserStateMachine.h
  164. * src/MetalinkParserStateV3Impl.cc
  165. * src/MetalinkParserStateV4Impl.cc
  166. * src/util.cc
  167. * src/util.h
  168. * test/MetalinkParserControllerTest.cc
  169. * test/MetalinkProcessorTest.cc
  170. * test/metalink4.xml
  171. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Added strict attribute validation for metalink4. When
  173. specification violation is found, discard the whole document.
  174. * src/ExpatMetalinkProcessor.cc
  175. * src/MetalinkParserStateMachine.cc
  176. * src/MetalinkParserStateMachine.h
  177. * src/MetalinkParserStateV4Impl.cc
  178. * src/XML2SAXMetalinkProcessor.cc
  179. * test/Makefile.am
  180. * test/MetalinkProcessorTest.cc
  181. * test/metalink4-attrs.xml: Removed
  182. * test/metalink4-dirtraversal.xml: Removed
  183. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Added test for Metaurl transaction.
  185. * src/MetalinkParserController.cc
  186. * test/MetalinkParserControllerTest.cc
  187. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Avoid costly BtMessage::toString() if info level log is not
  189. required.
  190. * src/DefaultBtInteractive.cc
  191. * src/Logger.h
  192. * src/SimpleBtMessage.cc
  193. 2010-03-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Reserved vector elements based on profiler results.
  195. * src/DefaultBtInteractive.cc
  196. * src/DefaultBtProgressInfoFile.cc
  197. 2010-03-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Avoid to calculate end() iterator in each loop. std::deque is
  199. particularly slow. Make sure that recalculate end iterator if
  200. element is erased during loop.
  201. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Use vector instead of deque for containers which is used for
  203. mostly read-only purpose.
  204. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Fixed typo
  206. * test/Makefile.am
  207. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Added metalink4-groupbymetaurl.xml to EXTRA_DIST
  209. * test/Makefile.am
  210. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  211. Small optimization: In updateTransferStatFor(), don't search peer
  212. ID twice.
  213. * src/DefaultPeerStorage.cc
  214. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  215. Use vector instead of deque for MetalinkEntry and MetalinkResource
  216. objects.
  217. * src/Metalink2RequestGroup.cc
  218. * src/Metalink2RequestGroup.h
  219. * src/MetalinkEntry.cc
  220. * src/MetalinkEntry.h
  221. * src/MetalinkHelper.cc
  222. * src/MetalinkHelper.h
  223. * src/Metalinker.cc
  224. * src/Metalinker.h
  225. * src/main.cc
  226. * test/MetalinkEntryTest.cc
  227. * test/MetalinkHelperTest.cc
  228. * test/MetalinkProcessorTest.cc
  229. * test/MetalinkerTest.cc
  230. 2010-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  231. Fixed the bug that grouped FileEntry objects are not used but
  232. instead all FileEntry objects are used for each metaurl group.
  233. * src/Metalink2RequestGroup.cc
  234. * test/Metalink2RequestGroupTest.cc
  235. * test/metalink4-groupbymetaurl.xml
  236. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  237. Use vector instead of deque for ChunkChecksum.
  238. * src/ChunkChecksum.h
  239. * src/MetalinkParserController.cc
  240. * src/MetalinkParserController.h
  241. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Added MessageDigest::isStronger(). Now aria2 selects stronger hash
  243. algorithm in Metalink properly
  244. * src/MetalinkParserController.cc
  245. * src/MetalinkParserController.h
  246. * src/messageDigest.cc
  247. * src/messageDigest.h
  248. * test/MetalinkProcessorTest.cc
  249. * test/metalink4.xml
  250. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  251. Replaced null or control characters in file path with '_'. For
  252. MinGW32 build, additional characters which is not allowed in
  253. Windows kernel are also replaced. util::detectDirTraversal() now
  254. returns true if given string contains null or control characters.
  255. * src/DownloadContext.cc
  256. * src/DownloadContext.h
  257. * src/Metalink2RequestGroup.cc
  258. * src/MetalinkParserController.cc
  259. * src/bittorrent_helper.cc
  260. * src/util.cc
  261. * src/util.h
  262. * test/UtilTest.cc
  263. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  264. Discard metalink:file if its name attribute is empty string.
  265. Removed FileEntry instantiation in
  266. MetalinkParserController::setFileLengthOfEntry()
  267. * src/MetalinkParserController.cc
  268. * src/MetalinkParserStateV3Impl.cc
  269. * src/MetalinkParserStateV4Impl.cc
  270. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  271. Discard torrent file if path data in it contains directory
  272. traversal directives. Discard metalink:file element in Metalink3
  273. format if its name attribute contains directory traversal
  274. directives. Ignore name attribute of metalink:signature element
  275. in Metalink3 format if it contains directory traversal directives.
  276. * src/MetalinkParserStateV3Impl.cc
  277. * src/bittorrent_helper.cc
  278. * src/message.h
  279. * test/BittorrentHelperTest.cc
  280. * test/Makefile.am
  281. * test/MetalinkProcessorTest.cc
  282. * test/metalink3-dirtraversal.xml
  283. * test/test.xml
  284. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  285. Removed useless comment
  286. * src/MetalinkParserStateV4Impl.cc
  287. 2010-02-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Supported name attribute of metalink::metaurl element and
  289. multi-file torrent with Metalink4. Files with same metaurl are
  290. grouped and downloaded in one RequestGroup.
  291. * src/BtDependency.cc
  292. * src/FileEntry.h
  293. * src/Metalink2RequestGroup.cc
  294. * src/Metalink2RequestGroup.h
  295. * src/MetalinkEntry.cc
  296. * src/MetalinkEntry.h
  297. * src/MetalinkHelper.cc
  298. * src/MetalinkHelper.h
  299. * src/MetalinkMetaurl.cc
  300. * src/MetalinkMetaurl.h
  301. * src/MetalinkParserController.cc
  302. * src/RequestGroup.cc
  303. * src/RequestGroup.h
  304. * src/bittorrent_helper.cc
  305. * test/BittorrentHelperTest.cc
  306. * test/BtDependencyTest.cc
  307. * test/MetalinkHelperTest.cc
  308. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  309. Store name attribute of metalink:metaurl element in MetalinkMetaurl.
  310. * src/MetalinkMetaurl.h
  311. * src/MetalinkParserController.cc
  312. * src/MetalinkParserController.h
  313. * src/MetalinkParserStateMachine.cc
  314. * src/MetalinkParserStateMachine.h
  315. * src/MetalinkParserStateV4Impl.cc
  316. * test/MetalinkProcessorTest.cc
  317. * test/metalink4-dirtraversal.xml
  318. 2010-02-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Added MetalinkMetaurl class. It corresponds to metalink:metaurl
  320. element.
  321. * src/Makefile.am
  322. * src/Metalink2RequestGroup.cc
  323. * src/MetalinkEntry.cc
  324. * src/MetalinkEntry.h
  325. * src/MetalinkMetaurl.cc
  326. * src/MetalinkMetaurl.h
  327. * src/MetalinkParserController.cc
  328. * src/MetalinkParserController.h
  329. * src/MetalinkParserStateMachine.cc
  330. * src/MetalinkParserStateMachine.h
  331. * src/MetalinkParserStateV4Impl.cc
  332. * src/MetalinkParserStateV4Impl.h
  333. * test/MetalinkProcessorTest.cc
  334. 2010-02-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  335. Added Metalink4 support. Currently, name attribute of
  336. metalink::metaurl is ignored and multi-file torrent cannot be used
  337. with Metalink4.
  338. * doc/aria2c.1.txt
  339. * src/DownloadHandlerConstants.cc
  340. * src/ExpatMetalinkProcessor.cc
  341. * src/Makefile.am
  342. * src/Metalink2RequestGroup.cc
  343. * src/MetalinkEntry.cc
  344. * src/MetalinkEntry.h
  345. * src/MetalinkParserController.cc
  346. * src/MetalinkParserController.h
  347. * src/MetalinkParserState.h
  348. * src/MetalinkParserStateImpl.cc
  349. * src/MetalinkParserStateImpl.h
  350. * src/MetalinkParserStateMachine.cc
  351. * src/MetalinkParserStateMachine.h
  352. * src/MetalinkParserStateV3Impl.cc
  353. * src/MetalinkParserStateV3Impl.h
  354. * src/MetalinkParserStateV4Impl.cc
  355. * src/MetalinkParserStateV4Impl.h
  356. * src/MetalinkResource.cc
  357. * src/MetalinkResource.h
  358. * src/Metalinker.cc
  359. * src/RequestGroup.cc
  360. * src/RequestGroup.h
  361. * src/XML2SAXMetalinkProcessor.cc
  362. * src/messageDigest.cc
  363. * src/util.cc
  364. * src/util.h
  365. * test/Makefile.am
  366. * test/MetalinkEntryTest.cc
  367. * test/MetalinkParserControllerTest.cc
  368. * test/MetalinkProcessorTest.cc
  369. * test/MetalinkerTest.cc
  370. * test/UtilTest.cc
  371. * test/metalink4-attrs.xml
  372. * test/metalink4-dirtraversal.xml
  373. * test/metalink4.xml
  374. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Added aiFlags argument to getInterfaceAddress(). Use
  376. AI_NUMERICHOST to find interface specified using
  377. --bt-lpd-interface option to avoid time-consuming address lookup.
  378. * src/BtSetup.cc
  379. * src/SocketCore.cc
  380. * src/SocketCore.h
  381. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  383. is bad in LpdMessageReceiver.
  384. * src/LpdMessage.h
  385. * src/LpdMessageReceiver.cc
  386. * src/LpdMessageReceiver.h
  387. * src/LpdReceiveMessageCommand.cc
  388. * test/LpdMessageReceiverTest.cc
  389. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Added --bt-lpd-interface option to specify the interface to use
  391. for Local Peer Discovery. LpdMessageDispatcher object now has its
  392. own socket. LpdMessageReceiver's socket is binded to multicast
  393. address to only receive multicast packets.
  394. * src/BtSetup.cc
  395. * src/LpdMessageDispatcher.cc
  396. * src/LpdMessageDispatcher.h
  397. * src/LpdMessageReceiver.cc
  398. * src/LpdMessageReceiver.h
  399. * src/LpdReceiveMessageCommand.cc
  400. * src/LpdReceiveMessageCommand.h
  401. * src/OptionHandlerFactory.cc
  402. * src/SocketCore.cc
  403. * src/SocketCore.h
  404. * src/prefs.cc
  405. * src/prefs.h
  406. * src/usage_text.h
  407. * test/LpdMessageDispatcherTest.cc
  408. * test/LpdMessageReceiverTest.cc
  409. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  410. Put the portion of code to get interface addresses in
  411. SocketCore::bindAddress() into newly added getInterfaceAddress().
  412. * src/SocketCore.cc
  413. * src/SocketCore.h
  414. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  415. Rewritten util::parseInt() and parseUInt()
  416. * src/util.cc
  417. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  418. Fixed compile error with mingw32 cross compiler. Defined
  419. a2_sockopt_t as void* for the target systems other than mingw32.
  420. * src/SocketCore.cc
  421. * src/a2netcompat.h
  422. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  423. Removed 'always true' condition
  424. * src/util.cc
  425. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Documented --bt-enable-lpd option in man page.
  427. * doc/aria2c.1.txt
  428. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Added Local Peer Discovery. It is disabled by default. Use
  430. --bt-enable-lpd to enable the function.
  431. * src/BtConstants.h
  432. * src/BtSetup.cc
  433. * src/LpdDispatchMessageCommand.cc
  434. * src/LpdDispatchMessageCommand.h
  435. * src/LpdMessage.h
  436. * src/LpdMessageDispatcher.cc
  437. * src/LpdMessageDispatcher.h
  438. * src/LpdMessageReceiver.cc
  439. * src/LpdMessageReceiver.h
  440. * src/LpdReceiveMessageCommand.cc
  441. * src/LpdReceiveMessageCommand.h
  442. * src/Makefile.am
  443. * src/OptionHandlerFactory.cc
  444. * src/Peer.cc
  445. * src/Peer.h
  446. * src/PeerInteractionCommand.cc
  447. * src/SocketCore.cc
  448. * src/SocketCore.h
  449. * src/prefs.cc
  450. * src/prefs.h
  451. * src/usage_text.h
  452. * src/util.cc
  453. * src/util.h
  454. * test/LpdMessageDispatcherTest.cc
  455. * test/LpdMessageReceiverTest.cc
  456. * test/Makefile.am
  457. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  458. User-defined custom request headers specified by --header option
  459. now override builtin headers if they have same name.
  460. * src/HttpRequest.cc
  461. * src/HttpRequest.h
  462. * test/HttpRequestTest.cc
  463. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Rewirtten util::isNumber()
  465. * src/util.cc
  466. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  467. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  468. because without it localized error messages are not printed
  469. correctly.
  470. * src/Platform.cc
  471. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  472. Added unit tests for util::getContentDispositionFilename() from
  473. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  474. tests are passed.
  475. * src/util.cc
  476. * test/UtilTest.cc
  477. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  478. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  479. util.cc
  480. * src/Platform.cc
  481. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  482. Support RFC2231 "Parameter Value Character Set and Language
  483. Information" in Content-Disposition header.
  484. * src/HttpResponse.cc
  485. * src/util.cc
  486. * src/util.h
  487. * test/UtilTest.cc
  488. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Print CXXFLAGS
  490. * configure.ac
  491. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Small optimization for A2_WOULDBLOCK(e)
  493. * src/SocketCore.cc
  494. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Removed test file
  496. * test/CookieStorageTest.cc
  497. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Check both EAGAIN and EWOULDBLOCK
  499. * src/SocketCore.cc
  500. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Removed ret == 0 checking for SSL_read(), SSL_write() and
  502. SSL_peek() because the checks are done in the caller. In
  503. SocketBuffer::send(), throw exception if nothing could be written
  504. and socket error was not EWOULDBLOCK
  505. * src/SocketBuffer.cc
  506. * src/SocketCore.cc
  507. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. Fixed error code handling so that it can handle Winsock2 error
  509. code.
  510. * src/SocketCore.cc
  511. * src/SocketCore.h
  512. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Bump up version number to 1.9.0a
  514. * configure.ac
  515. * doc/aria2c.1.txt
  516. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Fixed the bug that aria2 doesn't handle return value if error
  518. occurred before download begins.
  519. * src/MultiUrlRequestInfo.cc
  520. * src/main.cc
  521. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  522. Removed SegmentManFactory class.
  523. * src/AbstractSegmentManFactory.h
  524. * src/DefaultSegmentManFactory.cc
  525. * src/DefaultSegmentManFactory.h
  526. * src/Makefile.am
  527. * src/RequestGroup.cc
  528. * src/RequestGroup.h
  529. * src/SegmentManFactory.h
  530. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Destroyed digest context after getting calculated hash.
  532. * src/Piece.cc
  533. * src/Piece.h
  534. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Removed BitfieldManFactory class.
  536. * src/BitfieldManFactory.cc
  537. * src/BitfieldManFactory.h
  538. * src/DefaultPieceStorage.cc
  539. * src/Makefile.am
  540. * src/PeerSessionResource.cc
  541. * src/Piece.cc
  542. * src/main.cc
  543. * test/DefaultPieceStorageTest.cc
  544. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  545. Removed unused methods from BitfieldMan class. Moved
  546. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  547. class.
  548. * src/BitfieldMan.cc
  549. * src/BitfieldMan.h
  550. * src/BitfieldManFactory.cc
  551. * src/BitfieldManFactory.h
  552. * src/bitfield.h
  553. * src/main.cc
  554. * test/BitfieldManTest.cc
  555. * test/DefaultPieceStorageTest.cc
  556. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  557. Moved getFirstNMissingIndex to bitfield.h and made it return the
  558. number of appended indexes.
  559. * src/BitfieldMan.cc
  560. * src/BitfieldMan.h
  561. * src/Piece.cc
  562. * src/Piece.h
  563. * src/bitfield.h
  564. * test/BitfieldManTest.cc
  565. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Added more tests.
  567. * test/BitfieldManTest.cc
  568. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  569. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  570. unused block indexes at once instead of calling
  571. getFirstMissingUnusedIndex() multiple times. Made use of it in
  572. Piece class and DefaultBtRequestFactory class via Piece class.
  573. * src/BitfieldMan.cc
  574. * src/BitfieldMan.h
  575. * src/DefaultBtRequestFactory.cc
  576. * src/Piece.cc
  577. * src/Piece.h
  578. * test/BitfieldManTest.cc
  579. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Use std::make_pair(...)
  581. * src/DHTMessageTracker.cc
  582. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Use std::make_pair(...)
  584. * src/bittorrent_helper.cc
  585. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. urlencode(removeFragment(...)) in parseUrl(...)
  587. * src/Request.cc
  588. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  590. * src/AbstractCommand.cc
  591. * src/AdaptiveURISelector.cc
  592. * src/BtPieceMessage.cc
  593. * src/BtPortMessage.cc
  594. * src/CreateRequestCommand.cc
  595. * src/DHTAbstractNodeLookupTask.cc
  596. * src/DHTBucket.cc
  597. * src/DHTGetPeersCommand.cc
  598. * src/DHTMessageDispatcherImpl.cc
  599. * src/DHTMessageFactoryImpl.cc
  600. * src/DHTMessageTracker.cc
  601. * src/DHTPeerAnnounceStorage.cc
  602. * src/DHTRoutingTable.cc
  603. * src/DHTSetup.cc
  604. * src/DefaultBtAnnounce.cc
  605. * src/DefaultBtInteractive.cc
  606. * src/DefaultBtMessageDispatcher.cc
  607. * src/DefaultBtMessageReceiver.cc
  608. * src/DefaultBtProgressInfoFile.cc
  609. * src/DefaultBtRequestFactory.cc
  610. * src/DefaultPeerStorage.cc
  611. * src/DefaultPieceStorage.cc
  612. * src/DownloadCommand.cc
  613. * src/DownloadEngine.cc
  614. * src/EpollEventPoll.cc
  615. * src/FileAllocationCommand.cc
  616. * src/FileEntry.cc
  617. * src/FtpNegotiationCommand.cc
  618. * src/HandshakeExtensionMessage.cc
  619. * src/HttpListenCommand.cc
  620. * src/HttpServer.cc
  621. * src/HttpSkipResponseCommand.cc
  622. * src/IteratableChunkChecksumValidator.cc
  623. * src/Logger.h
  624. * src/MSEHandshake.cc
  625. * src/MetalinkPostDownloadHandler.cc
  626. * src/MultiDiskAdaptor.cc
  627. * src/PeerAbstractCommand.cc
  628. * src/PeerConnection.cc
  629. * src/PeerListenCommand.cc
  630. * src/PeerReceiveHandshakeCommand.cc
  631. * src/RequestGroup.cc
  632. * src/RequestGroupMan.cc
  633. * src/SegmentMan.cc
  634. * src/SelectEventPoll.cc
  635. * src/ServerStat.cc
  636. * src/SimpleBtMessage.cc
  637. * src/SocketCore.cc
  638. * src/TrackerWatcherCommand.cc
  639. * src/UTMetadataDataExtensionMessage.cc
  640. * src/UTMetadataRequestFactory.cc
  641. * src/UTMetadataRequestTracker.cc
  642. * src/XmlRpcMethod.cc
  643. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Changed log level from debug to info
  645. * src/BtDependency.cc
  646. * src/BtPostDownloadHandler.cc
  647. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Removed unused PeerSessionResource::_latency.
  649. * src/BtConstants.h
  650. * src/BtPieceMessage.cc
  651. * src/Peer.cc
  652. * src/Peer.h
  653. * src/PeerSessionResource.cc
  654. * src/PeerSessionResource.h
  655. * test/PeerSessionResourceTest.cc
  656. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Fixed the bug that --file-allocation=falloc doesn't work with
  658. single file download.
  659. * src/AbstractSingleDiskAdaptor.cc
  660. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Release 1.8.2
  662. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  663. Added Portuguese translation. Updated Ukrainian and Spanish
  664. translation. Thanks to all translators.
  665. * po/LINGUAS
  666. * po/es.po
  667. * po/pt.po
  668. * po/uk.po
  669. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Remove fragment from redirected URI.
  671. * src/Request.cc
  672. * test/RequestTest.cc
  673. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  674. Updated po templates.
  675. * po/aria2.pot
  676. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Drop legacy ifdef for ares support and code cleanup.
  678. * src/AsyncNameResolver.cc
  679. * src/AsyncNameResolver.h
  680. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  681. Call ares_library_init and ares_library_cleanup if they are
  682. available. Some code cleanups.
  683. * src/Platform.cc
  684. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  685. Call ares_process_fd() each time after epoll to handle timeout.
  686. * src/EpollEventPoll.cc
  687. * src/EpollEventPoll.h
  688. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. Suppressed type-cast compiler warning
  690. * src/CookieStorage.cc
  691. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  692. Fixed compile error on Mac OS X.
  693. * src/CookieStorage.h
  694. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  695. Removed cookietest.txt from Makefile.am
  696. * test/Makefile.am
  697. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  698. Updated version number in man page.
  699. * doc/aria2c.1.txt
  700. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Rewritten help message for --allow-overwrite option.
  702. * doc/aria2c.1.txt
  703. * src/usage_text.h
  704. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  705. Added bittorrent key to the response of tellStatus XML-RPC method.
  706. The associated value of the key is a struct and contains data
  707. retrieved from .torrent file, such as name, announce-list,
  708. comment, etc.
  709. * doc/aria2c.1.txt
  710. * src/XmlRpcMethodImpl.cc
  711. * src/XmlRpcMethodImpl.h
  712. * test/XmlRpcMethodTest.cc
  713. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  714. Removed parse(std::istream&) and parse(const std::string&) from
  715. CookieParser.
  716. * src/CookieParser.cc
  717. * src/CookieParser.h
  718. * test/CookieParserTest.cc
  719. * test/cookietest.txt: Removed
  720. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  721. Fixed the bug that cookie for domain a.b.c is not sent to the host
  722. a.b.c if no other cookies are stored. Fixed the bug that
  723. Cookie::markOriginServerOnly() is not called when cookies are
  724. loaded from file/sqlite3 database.
  725. * src/Cookie.h
  726. * src/CookieStorage.cc
  727. * src/NsCookieParser.cc
  728. * src/Sqlite3MozCookieParser.cc
  729. * test/CookieStorageTest.cc
  730. * test/NsCookieParserTest.cc
  731. * test/Sqlite3MozCookieParserTest.cc
  732. * test/cookies.sqlite
  733. * test/nscookietest.txt
  734. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  736. both _pieceStorage and _segmentMan are initialized or they are
  737. not.
  738. * src/RequestGroup.cc
  739. * src/RequestGroup.h
  740. * test/BtDependencyTest.cc
  741. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Bump up version number to 1.8.2
  743. * configure.ac
  744. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  745. Replaced "." with A2STR::DOT_C
  746. * src/AbstractCommand.cc
  747. * src/Cookie.cc
  748. * src/DownloadContext.cc
  749. * src/FtpConnection.cc
  750. * src/RequestGroup.cc
  751. * src/util.cc
  752. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. Replaced isNumberAndDotsNotation() with isNumericHost().
  754. isNumericHost() can handle IPv6 address.
  755. * src/Cookie.cc
  756. * src/CookieStorage.cc
  757. * src/util.cc
  758. * src/util.h
  759. * test/CookieTest.cc
  760. * test/UtilTest.cc
  761. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  762. Included A2STR.h
  763. * src/CookieStorage.cc
  764. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Rewritten Cookie storage.
  766. * src/Cookie.cc
  767. * src/Cookie.h
  768. * src/CookieParser.cc
  769. * src/CookieStorage.cc
  770. * src/CookieStorage.h
  771. * src/a2functional.h
  772. * test/CookieParserTest.cc
  773. * test/CookieStorageTest.cc
  774. * test/CookieTest.cc
  775. * test/HttpResponseTest.cc
  776. * test/TestUtil.h
  777. * test/a2functionalTest.cc
  778. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Handle redirected URI which is not properly percent encoded.
  780. * src/Request.cc
  781. * test/RequestTest.cc
  782. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  784. not found' in the N times(N is where --max-file-not-found=N, N>0)
  785. in a row without single '200 OK' response.
  786. * src/RequestGroup.cc.
  787. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  789. readout by 80 characters in mingw32 build. Catch exception in
  790. DHTMessageReceiver::receiveMessage().
  791. * src/AbstractDiskWriter.cc
  792. * src/ConsoleStatCalc.cc
  793. * src/DHTMessageReceiver.cc
  794. * src/File.cc
  795. * src/RequestGroupMan.cc
  796. * src/a2io.h
  797. * test/FileTest.cc
  798. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  799. Fixed compile error with intel compiler
  800. * src/XmlRpcMethodImpl.cc
  801. * src/XmlRpcMethodImpl.h
  802. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. Release 1.8.1
  804. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Updated Swedish, Russian and Italian translations. Thanks to all
  806. translators.
  807. * po/it.po
  808. * po/ru.po
  809. * po/sv.po
  810. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Fixed broken OptionParser::findByName().
  812. * src/OptionParser.cc
  813. * test/OptionParserTest.cc
  814. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Fixed test error without BitTorrent support.
  816. * test/XmlRpcMethodTest.cc
  817. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Fixed compile error without GNUTLS/OpenSSL.
  819. * src/util.cc
  820. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Changed compression level to Z_DEFAULT_COMPRESSION.
  822. * src/GZipEncoder.cc
  823. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Added missing command line options: --http-no-cache,
  825. --bt-save-metadata and --bt-metadata-only.
  826. * doc/xmlrpc/aria2rpc
  827. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  828. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  829. client accepts gzip content encoding.
  830. * src/A2STR.cc
  831. * src/A2STR.h
  832. * src/GZipEncoder.cc
  833. * src/GZipEncoder.h
  834. * src/HttpHeader.cc
  835. * src/HttpHeader.h
  836. * src/HttpServer.cc
  837. * src/HttpServer.h
  838. * src/HttpServerBodyCommand.cc
  839. * src/HttpServerCommand.cc
  840. * src/Makefile.am
  841. * src/XmlRpcResponse.cc
  842. * src/XmlRpcResponse.h
  843. * test/GZipEncoderTest.cc
  844. * test/Makefile.am
  845. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Added XML-RPC client sample code in Python.
  847. * doc/aria2c.1.txt
  848. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Updated po templates.
  850. * po/aria2.pot
  851. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Bump up version number to 1.8.1
  853. * configure.ac
  854. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. Added version number to man page. Updated copyright year in man
  856. page.
  857. * doc/aria2c.1.txt
  858. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Rewritten toTagString
  860. * src/NameMatchOptionHandler.cc
  861. * test/OptionHandlerTest.cc
  862. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  863. Added dir and files key to the response struct of aria2.tellStatus
  864. XML-RPC method. The value associated with files key is the list
  865. of files. Its element is the same struct used in aria2.getFiles
  866. XML-RPC method. Added uris key to the response struct of
  867. aria2.getFiles XML-RPC method. The value associated with uris key
  868. is the list of URIs. Its element is the same struct used in
  869. aria2.getUris XML-RPC method.
  870. * doc/aria2c.1.txt
  871. * src/XmlRpcMethodImpl.cc
  872. * test/XmlRpcMethodTest.cc
  873. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Added aria2.getSessionInfo XML-RPC method. This method returns a
  875. struct containing Session ID, which is generated each time when
  876. aria2 is invoked.
  877. * doc/aria2c.1.txt
  878. * doc/xmlrpc/aria2rpc
  879. * src/DownloadEngine.cc
  880. * src/DownloadEngine.h
  881. * src/XmlRpcMethodFactory.cc
  882. * src/XmlRpcMethodImpl.cc
  883. * src/XmlRpcMethodImpl.h
  884. * test/XmlRpcMethodTest.cc
  885. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Moved generateRandomKey() from bittorrent_helper to util.
  887. * src/DHTBucket.cc
  888. * src/DHTNode.cc
  889. * src/bittorrent_helper.cc
  890. * src/bittorrent_helper.h
  891. * src/util.cc
  892. * src/util.h
  893. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  894. Updated doc about GID.
  895. * doc/aria2c.1.txt
  896. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  897. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  898. accepts a negative integer. 'offset' == -1 points last download
  899. in the waiting queue and 'offset' == -2 points the download before
  900. the last download, and so on. The downloads in the response are in
  901. reversed order.
  902. * doc/aria2c.1.txt
  903. * src/XmlRpcMethodImpl.cc
  904. * src/XmlRpcMethodImpl.h
  905. * test/XmlRpcMethodTest.cc
  906. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  907. Added --human-readable option. This option, when true is given,
  908. prints sizes and speed in human readable format(e.g., 1.2Ki,
  909. 3.4Mi) in the console readout. The default value is true and it
  910. looks exactly the same as aria2-1.8.0. So the 'new feature'
  911. appears when false is given. In this case, sizes and speed are
  912. printed without in bytes. No Ki, Mi units conversion is used.
  913. This may be useful for a program to parse the output of aria2.
  914. * doc/aria2c.1.txt
  915. * src/ConsoleStatCalc.cc
  916. * src/ConsoleStatCalc.h
  917. * src/OptionHandlerFactory.cc
  918. * src/main.cc
  919. * src/prefs.cc
  920. * src/prefs.h
  921. * src/usage_text.h
  922. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  924. option accepts empty string "". When "" is given, it erases
  925. previously defined proxy.
  926. * doc/aria2c.1.txt
  927. * src/OptionHandlerImpl.h
  928. * src/usage_text.h
  929. * test/OptionHandlerTest.cc
  930. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  931. Code cleanup for proxy URI handling.
  932. * src/AbstractCommand.cc
  933. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. Added --bt-metadata-only option. If true is given to this option,
  935. aria2 downloads metadata only. The file(s) described in metadata
  936. will not be downloaded. This option has effect only when
  937. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  938. * doc/aria2c.1.txt
  939. * src/OptionHandlerFactory.cc
  940. * src/UTMetadataPostDownloadHandler.cc
  941. * src/download_helper.cc
  942. * src/prefs.cc
  943. * src/prefs.h
  944. * src/usage_text.h
  945. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  946. Fixed memory leak. Commands stored in std::deque<Command*> are not
  947. deleted when exception is thrown. Make sure that when passing
  948. std::deque<Command*> to function to store Commands, handle
  949. exception and delete these Commands.
  950. * src/AbstractCommand.cc
  951. * src/CheckIntegrityCommand.cc
  952. * src/FileAllocationCommand.cc
  953. * src/RequestGroup.cc
  954. * src/TrackerWatcherCommand.cc
  955. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  957. * src/A2STR.cc
  958. * src/A2STR.h
  959. * src/FtpNegotiationCommand.cc
  960. * src/HttpResponseCommand.cc
  961. * src/util.cc
  962. * src/util.h
  963. * test/UtilTest.cc
  964. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  965. Treat --dir="" as --dir="."
  966. * src/FtpNegotiationCommand.cc
  967. * src/HttpResponseCommand.cc
  968. * src/Metalink2RequestGroup.cc
  969. * src/UTMetadataPostDownloadHandler.cc
  970. * src/bittorrent_helper.cc
  971. * src/download_helper.cc
  972. * src/util.cc
  973. * src/util.h
  974. * test/UtilTest.cc
  975. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Code clean up.
  977. * src/main.cc
  978. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  979. Reset GID to 1 when they reach maximum value. Rewritten
  980. CUIDCounter::newID()
  981. * src/CUIDCounter.h
  982. * src/RequestGroup.cc
  983. * src/RequestGroup.h
  984. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Documented --http-no-cache option in man page.
  986. * doc/aria2c.1.txt
  987. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Added --http-no-cache option. When true is given, aria2 sends
  989. Cache-Control: no-cache and Pragma: no-cache header to avoid
  990. cached content. If false is given , these headers are not sent
  991. and you can add Cache-Control header with a directive you like
  992. using --header option.
  993. * src/HttpRequest.cc
  994. * src/HttpRequest.h
  995. * src/HttpRequestCommand.cc
  996. * src/OptionHandlerFactory.cc
  997. * src/download_helper.cc
  998. * src/prefs.cc
  999. * src/prefs.h
  1000. * src/usage_text.h
  1001. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1002. Removed Logger from OptionParser. When OptionParser is used to
  1003. parse options at bootstrap, LogFactory is not configured yet
  1004. properly. When LogFactory is used in OptionParser, it initializes
  1005. itself to return a logger which has no ability to write log to the
  1006. disk.
  1007. * src/OptionParser.cc
  1008. * src/OptionParser.h
  1009. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Added following sentance to the help message of --out option:
  1011. --out option is ignored when -Z is used.
  1012. * doc/aria2c.1.txt
  1013. * src/usage_text.h
  1014. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Added --bt-save-metadata option to -i list options.
  1016. * doc/aria2c.1.txt
  1017. * src/download_helper.cc
  1018. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  1020. additional libraries.
  1021. * src/MultiUrlRequestInfo.cc
  1022. * src/NameResolver.cc
  1023. * src/SelectEventPoll.cc
  1024. * src/SelectEventPoll.h
  1025. * src/SocketCore.cc
  1026. * src/SocketCore.h
  1027. * src/a2netcompat.h
  1028. * src/daemon.cc
  1029. * src/main.cc
  1030. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1031. Fixed typo.
  1032. * src/DHTMessageReceiver.cc
  1033. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1034. Fixed the bug that causes segmentation fault if unknown option is
  1035. put in aria2.conf file. BUG#2928303
  1036. * src/OptionParser.cc
  1037. * src/OptionParser.h
  1038. * src/option_processing.cc
  1039. * test/OptionParserTest.cc
  1040. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Ignore port message with port=0.
  1042. * src/BtPortMessage.cc
  1043. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Run autoupdate
  1045. * configure.ac
  1046. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Updated autoconf/automake auxiliary files.
  1048. * INSTALL
  1049. * config.guess
  1050. * config.sub
  1051. * depcomp
  1052. * install-sh
  1053. * m4/intldir.m4
  1054. * missing
  1055. * mkinstalldirs
  1056. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1057. Removed unused function.
  1058. * src/SharedHandle.h
  1059. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Find pooled socket using all cached addresses.
  1061. * src/DNSCache.h
  1062. * src/DownloadEngine.cc
  1063. * src/DownloadEngine.h
  1064. * src/InitiateConnectionCommand.cc
  1065. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1066. Updated copyright year.
  1067. * src/version_usage.cc
  1068. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1069. Pool connection if _contentEncodingDecoder is used and server
  1070. supports persistent connection.
  1071. * src/HttpDownloadCommand.cc
  1072. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1073. Updated doc.
  1074. * src/DownloadCommand.cc
  1075. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1076. Untabify. Fixed one line in copyright which is longer than 80
  1077. columns.
  1078. * src
  1079. * test
  1080. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1081. Release 1.8.0
  1082. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1083. Updated po templates.
  1084. * po/aria2.pot
  1085. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Documented --bt-save-metadata option in man page.
  1087. * doc/aria2c.1.txt
  1088. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Fixed usage of --bt-save-metadata option.
  1090. * src/usage_text.h
  1091. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. Updated po templates.
  1093. * po/aria2.pot
  1094. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  1096. causes name resolution error when none of network interface has
  1097. IPv4 address.
  1098. * src/main.cc
  1099. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1100. Bump up version number to 1.8.0.
  1101. * configure.ac
  1102. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Use info hash as a filename when saving BitTorrent metadata.
  1104. * src/UTMetadataPostDownloadHandler.cc
  1105. * test/UTMetadataPostDownloadHandlerTest.cc
  1106. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1107. Documented system.multicall XML-RPC method in man page.
  1108. * doc/aria2c.1.txt
  1109. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1110. Added signal handler for SIGHUP to save .aria2 file when terminal
  1111. is closed. The handler is the same one for SIGINT and SIGTERM.
  1112. * src/MultiUrlRequestInfo.cc
  1113. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1114. Defined method name in XmlRpcMethod subclasses.
  1115. * src/XmlRpcMethodFactory.cc
  1116. * src/XmlRpcMethodImpl.cc
  1117. * src/XmlRpcMethodImpl.h
  1118. * test/XmlRpcMethodTest.cc
  1119. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Added system.multicall XML-RPC method.
  1121. * src/XmlRpcMethod.cc
  1122. * src/XmlRpcMethod.h
  1123. * src/XmlRpcMethodFactory.cc
  1124. * src/XmlRpcMethodImpl.cc
  1125. * src/XmlRpcMethodImpl.h
  1126. * test/XmlRpcMethodTest.cc
  1127. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Check structure depth when decoding.
  1129. * src/bencode.cc
  1130. * src/bencode.h
  1131. * test/BencodeTest.cc
  1132. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Documented tellStopped XML-RPC method in man page.
  1134. * doc/aria2c.1.txt
  1135. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Added tellStopped XML-RPC method to aria2rpc.
  1137. * doc/xmlrpc/aria2rpc
  1138. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Added tellStopped XML-RPC method. This method returns stopped
  1140. download in the specified range. It takes same parameters with
  1141. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  1142. * src/XmlRpcMethodFactory.cc
  1143. * src/XmlRpcMethodImpl.cc
  1144. * src/XmlRpcMethodImpl.h
  1145. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  1147. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  1148. when conducting unit tests because they fail if networking
  1149. interface is not configured with IPv4 address.
  1150. * src/NameResolver.cc
  1151. * src/SocketCore.cc
  1152. * src/SocketCore.h
  1153. * src/a2netcompat.h
  1154. * test/AllTest.cc
  1155. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1156. Fixed unit test error
  1157. * test/UTMetadataPostDownloadHandlerTest.cc
  1158. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Defined static string constants for efficiency.
  1160. * src/XmlRpcMethodImpl.cc
  1161. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Added --bt-save-metadata option. When true is given, it saves
  1163. metadata as .torrent file. This option has effect only when
  1164. BitTorrent Magnet URI is used. The filename is name in metadata
  1165. with suffix .torrent. The directory to be saved is the same
  1166. directory where download file is saved. If the same file already
  1167. exists, metdata is not saved.
  1168. * src/OptionHandlerFactory.cc
  1169. * src/UTMetadataPostDownloadHandler.cc
  1170. * src/UTMetadataPostDownloadHandler.h
  1171. * src/message.h
  1172. * src/prefs.cc
  1173. * src/prefs.h
  1174. * src/usage_text.h
  1175. * test/UTMetadataDataExtensionMessageTest.cc
  1176. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Added util::saveAs() function. Use it in Signature::save().
  1178. * src/Signature.cc
  1179. * src/util.cc
  1180. * src/util.h
  1181. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1182. Upcase info hash in Magnet URI.
  1183. * doc/aria2c.1.txt
  1184. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1185. Refactored RequestGroupMan::changeReservedGroupPosition()
  1186. * src/RequestGroupMan.cc
  1187. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Updated the description for aria2.addTorrent XML-RPC method.
  1189. * doc/aria2c.1.txt
  1190. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Added changePosition to aria2rpc.
  1192. * doc/xmlrpc/aria2rpc
  1193. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Documented changePosition XML-RPC method in man page.
  1195. * doc/aria2c.1.txt
  1196. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  1198. pos and how. This method changes the position of download denoted
  1199. by gid. If how is POS_SET, it moves the download to a position
  1200. relative to the beginning of the queue. If how is POS_CUR, it
  1201. moves the download to a position relative to the current
  1202. position. If how is POS_END, it moves the download to a position
  1203. relative to the end of the queue. If the destination position is
  1204. less than 0 or beyond the end of the queue, it moves the download
  1205. to the beginning or the end of the queue respectively. Returns
  1206. the destination position.
  1207. * src/RequestGroupMan.cc
  1208. * src/RequestGroupMan.h
  1209. * src/XmlRpcMethodFactory.cc
  1210. * src/XmlRpcMethodImpl.cc
  1211. * src/XmlRpcMethodImpl.h
  1212. * test/RequestGroupManTest.cc
  1213. * test/XmlRpcMethodTest.cc
  1214. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Added getOption and getGlobalOption to aria2rpc.
  1216. * doc/xmlrpc/aria2rpc
  1217. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1218. Documented getOption and getGlobalOption XML-RPC method in man
  1219. page
  1220. * doc/aria2c.1.txt
  1221. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Added getOption and getGlobalOption XML-RPC method. getOption
  1223. takes GID as a parameter and returns its options as struct.
  1224. getGlobalOption takes no parameter and returns global
  1225. options. Because global option is used as a template for the
  1226. option of newly added downloads, it includes options returned by
  1227. getOption.
  1228. * src/Option.h
  1229. * src/XmlRpcMethodFactory.cc
  1230. * src/XmlRpcMethodImpl.cc
  1231. * src/XmlRpcMethodImpl.h
  1232. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1233. Sort _optionHandlers in OptionParser by name in ascending order.
  1234. Use vector instead of deque for efficiency.
  1235. * src/OptionHandler.h
  1236. * src/OptionHandlerFactory.h
  1237. * src/OptionParser.cc
  1238. * src/OptionParser.h
  1239. * src/version_usage.cc
  1240. * test/OptionParserTest.cc
  1241. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1242. Code cleanup
  1243. * src/XmlRpcMethod.cc
  1244. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Documented about followedBy and belongsTo in man page.
  1246. * doc/aria2c.1.txt
  1247. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Added following 2 keys, followedBy and belongsTo, to the response
  1249. of tellStatus.
  1250. followedBy: List of GIDs which are generated by the consequence of
  1251. this download. For example, when aria2 downloaded Metalink file,
  1252. it generates downloads described in it(see *--follow-metalink*
  1253. option). This value is useful to track these auto generated
  1254. downloads. If there is no such downloads, this key will not be
  1255. included in the response.
  1256. belongsTo: GID of a parent download. Some downloads are a part of
  1257. another download. For example, if a file in Metalink has
  1258. BitTorrent resource, the download of .torrent is a part of that
  1259. file. If this download has no parent, this key will not be
  1260. included in the response.
  1261. * src/BtPostDownloadHandler.cc
  1262. * src/DownloadResult.h
  1263. * src/Metalink2RequestGroup.cc
  1264. * src/MetalinkPostDownloadHandler.cc
  1265. * src/RequestGroup.cc
  1266. * src/RequestGroup.h
  1267. * src/UTMetadataPostDownloadHandler.cc
  1268. * src/XmlRpcMethodImpl.cc
  1269. * src/XmlRpcMethodImpl.h
  1270. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Assigned BObject in BDE() to avoid segmentation fault when calling
  1272. methods of BDE::none().
  1273. * src/BDE.cc
  1274. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Show info hash in Magnet URI in upper case letters in -S output.
  1276. * src/bittorrent_helper.cc
  1277. * test/BittorrentHelperTest.cc
  1278. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Removed old useless comment
  1280. * src/MultiUrlRequestInfo.cc
  1281. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  1283. not properly used in configure script and failed to detect gnutls.
  1284. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  1285. and the initialization of pkg-config is done in first occurrence
  1286. of PKG_CHECK_MODULES which is not executed because it is inside of
  1287. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  1288. * configure.ac
  1289. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Release 1.7.2
  1291. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1292. Fixed the bug that RequestGroupMan::downloadFinished() returns
  1293. true even if all downloads haven't finished, especially when
  1294. PostDownloadHandler is involved. Changed the condition so that it
  1295. only returns true if both _requestGroups and _reservedGroups are
  1296. empty.
  1297. * src/RequestGroupMan.cc
  1298. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1299. Log listening port for BitTorrent/DHT in notice level.
  1300. * src/DHTConnectionImpl.cc
  1301. * src/PeerListenCommand.cc
  1302. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Updated po templates.
  1304. * po/aria2.pot
  1305. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Bump up version number to 1.7.2
  1307. * configure.ac
  1308. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Changed default value of --enable-dht from 'false' to 'true'.
  1310. * doc/aria2c.1.txt
  1311. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Enabled DHT by default because of Magnet URI support. To disable
  1313. DHT, use --enable-dht=false
  1314. * src/OptionHandlerFactory.cc
  1315. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Print Magnet URI in -S output.
  1317. * src/AnnounceList.cc
  1318. * src/bittorrent_helper.cc
  1319. * src/bittorrent_helper.h
  1320. * test/BittorrentHelperTest.cc
  1321. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Added --bt-prioritize-piece option to aria2rpc.
  1323. * doc/xmlrpc/aria2rpc
  1324. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Refer Magnet URI in --help. Made some cosmetic changes.
  1326. * src/version_usage.cc
  1327. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Updated -T and -M option.
  1329. * doc/aria2c.1.txt
  1330. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Fixed typo
  1332. * doc/aria2c.1.txt
  1333. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Fixed the bug that line separator is missing in horizontal bar.
  1335. * doc/xmlrpc/aria2mon
  1336. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Updated usage text for --metalink-file option.
  1338. * src/usage_text.h
  1339. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1340. If '-' is given as an argument to --metalink-file option, aria2
  1341. reads Metalink file from stdin.
  1342. * src/OptionHandlerFactory.cc
  1343. * src/OptionHandlerImpl.h
  1344. * src/a2io.h
  1345. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1346. Fixed the bug that aria2 listens wrong port if --interface option
  1347. is used.
  1348. * src/SocketCore.cc
  1349. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Fixed the bug that query parameter in magnet URI is not decoded.
  1351. * src/magnet.cc
  1352. * test/MagnetTest.cc
  1353. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1354. Specified defaultSize as an argument for easy testing.
  1355. * src/util.cc
  1356. * src/util.h
  1357. * test/UtilTest.cc
  1358. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1359. Release 1.7.1
  1360. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1361. Bump up version number to 1.7.1
  1362. * configure.ac
  1363. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. Fixed the bug --bt-prioritize-piece=tail is not working.
  1365. * src/util.cc
  1366. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1367. Release 1.7.0
  1368. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Updated po templates.
  1370. * po/aria2.pot
  1371. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Updated help message for --bt-prioritize-piece. Some cosmetic
  1373. changes.
  1374. * doc/aria2c.1.txt
  1375. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1376. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1377. * src/usage_text.h
  1378. * src/util.cc
  1379. * test/UtilTest.cc
  1380. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Updated Russian, Ukrainian, German and French translations.
  1382. Thanks to all translators involved.
  1383. * po/de.po
  1384. * po/fr.po
  1385. * po/ru.po
  1386. * po/uk.po
  1387. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Mentioned about pkg-config
  1389. * README
  1390. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1391. Fixed typo. Referred --index-out option in BitTorrent notes.
  1392. * README
  1393. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1395. bind, try all addresses until success
  1396. * src/SocketCore.cc
  1397. * src/SocketCore.h
  1398. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. Updated po templates.
  1400. * po/aria2.pot
  1401. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1402. Bump up version number to 1.7.0
  1403. * configure.ac
  1404. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1406. * src/DefaultPieceStorage.cc
  1407. * src/DefaultPieceStorage.h
  1408. * src/PieceStorage.h
  1409. * src/UnknownLengthPieceStorage.cc
  1410. * src/UnknownLengthPieceStorage.h
  1411. * test/MockPieceStorage.h
  1412. * test/ProtocolDetectorTest.cc
  1413. * test/XmlRpcMethodTest.cc
  1414. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Documented in man page that if getifaddrs() is missing,
  1416. --interface option doesn't accept interface name.
  1417. * doc/aria2c.1.txt
  1418. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1419. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1420. * src/DefaultBtAnnounce.cc
  1421. * src/DefaultBtAnnounce.h
  1422. * test/DefaultBtAnnounceTest.cc
  1423. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Fixed the bug that connection is always dropped if handshake
  1425. message in extension protocol don't have metadata_size.
  1426. src/HandshakeExtensionMessage.cc
  1427. * src/HandshakeExtensionMessage.cc
  1428. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1429. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1430. text saying DHT is recommended when Magnet URI is provided.
  1431. * doc/aria2c.1.txt
  1432. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1434. URI is supplied. Notify user that they should consider enabling
  1435. DHT if they use Magnet URI.
  1436. * src/RequestGroup.cc
  1437. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1438. Added --disable-ipv6 option to disable IPv6.
  1439. * doc/aria2c.1.txt
  1440. * src/InitiateConnectionCommand.cc
  1441. * src/NameResolver.cc
  1442. * src/NameResolver.h
  1443. * src/OptionHandlerFactory.cc
  1444. * src/main.cc
  1445. * src/prefs.cc
  1446. * src/prefs.h
  1447. * src/usage_text.h
  1448. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Updated usage text for --bt-prioritize-piece option.
  1450. * doc/aria2c.1.txt
  1451. * src/usage_text.h
  1452. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1454. given and PACKAGE is missing in the system or FEATURE cannot be
  1455. enabled, print error message and stop the script.
  1456. * configure.ac
  1457. * m4/aria2_arg.m4
  1458. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Halt metadata download immediately when metadata download is done.
  1460. Don't wait unresponsive tracker.
  1461. * src/ByteArrayDiskWriter.h
  1462. * src/DefaultBtInteractive.cc
  1463. * src/DefaultExtensionMessageFactory.cc
  1464. * src/DefaultExtensionMessageFactory.h
  1465. * src/PeerInteractionCommand.cc
  1466. * src/UTMetadataDataExtensionMessage.cc
  1467. * src/UTMetadataDataExtensionMessage.h
  1468. * src/UTMetadataRequestExtensionMessage.cc
  1469. * test/UTMetadataDataExtensionMessageTest.cc
  1470. * test/UTMetadataRequestExtensionMessageTest.cc
  1471. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Documented --interface option in man page.
  1473. * doc/aria2c.1.txt
  1474. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. Try resolved address in the order received from the resolver.
  1476. * src/DNSCache.h
  1477. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Added debug logs.
  1479. * src/SocketCore.cc
  1480. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Fixed type of tail to uint64_t
  1482. * src/util.cc
  1483. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Added --interface option. This feature binds sockets to given
  1485. interface. You can specify interface name, IP address and
  1486. hostname.
  1487. * configure.ac
  1488. * src/OptionHandlerFactory.cc
  1489. * src/SocketCore.cc
  1490. * src/SocketCore.h
  1491. * src/main.cc
  1492. * src/message.h
  1493. * src/prefs.cc
  1494. * src/prefs.h
  1495. * src/usage_text.h
  1496. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Updated man page for bt-prioritize-piece option in -i list.
  1498. * doc/aria2c.1.txt
  1499. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Added bt-prioritize-piece option to -i list.
  1501. * src/download_helper.cc
  1502. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Removed --http-auth-scheme option from man page.
  1504. * doc/aria2c.1.txt
  1505. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Removed --http-auth-scheme option since it doesn't do nothing.
  1507. * src/OptionHandlerFactory.cc
  1508. * src/prefs.cc
  1509. * src/prefs.h
  1510. * src/usage_text.h
  1511. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1512. Adjusted the number of peer info which get_peers reply message can
  1513. carry.
  1514. * src/DHTGetPeersReplyMessage.cc
  1515. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1516. Added extension_message_test_helper.h to aria2c_SOURCES.
  1517. * test/Makefile.am
  1518. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1519. Documented --bt-prioritize-piece option in man page.
  1520. * doc/aria2c.1.txt
  1521. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Added option --bt-prioritize-piece. This option instruct aria2 to
  1523. try to download first and last pieces of each file first. The
  1524. argument can contain 2 keywords:head and tail. To include both
  1525. keywords, they must be separated by comma. These keywords can take
  1526. one parameter, SIZE. For example , if head=SIZE is specified,
  1527. pieces in the range of first SIZE bytes of each file get higher
  1528. priority. tail=SIZE means the range of last SIZE bytes of each
  1529. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1530. * src/DefaultPieceStorage.h
  1531. * src/Makefile.am
  1532. * src/OptionHandlerFactory.cc
  1533. * src/OptionHandlerImpl.h
  1534. * src/PriorityPieceSelector.cc
  1535. * src/PriorityPieceSelector.h
  1536. * src/RequestGroup.cc
  1537. * src/prefs.cc
  1538. * src/prefs.h
  1539. * src/usage_text.h
  1540. * src/util.cc
  1541. * src/util.h
  1542. * test/Makefile.am
  1543. * test/MockPieceSelector.h
  1544. * test/PriorityPieceSelectorTest.cc
  1545. * test/UtilTest.cc
  1546. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Fixed typo
  1548. * src/HttpRequest.h
  1549. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. In Magnet URI with tr parameter, put each announce URI in separate
  1551. tier.
  1552. * src/bittorrent_helper.cc
  1553. * test/BittorrentHelperTest.cc
  1554. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1555. Renamed ExtensionMessage::getBencodedData() as
  1556. ExtensionMessage::getPayload()
  1557. * src/BtExtendedMessage.cc
  1558. * src/ExtensionMessage.h
  1559. * src/HandshakeExtensionMessage.cc
  1560. * src/HandshakeExtensionMessage.h
  1561. * src/UTMetadataDataExtensionMessage.cc
  1562. * src/UTMetadataDataExtensionMessage.h
  1563. * src/UTMetadataRejectExtensionMessage.cc
  1564. * src/UTMetadataRejectExtensionMessage.h
  1565. * src/UTMetadataRequestExtensionMessage.cc
  1566. * src/UTMetadataRequestExtensionMessage.h
  1567. * src/UTPexExtensionMessage.cc
  1568. * src/UTPexExtensionMessage.h
  1569. * test/HandshakeExtensionMessageTest.cc
  1570. * test/MockExtensionMessage.h
  1571. * test/UTMetadataDataExtensionMessageTest.cc
  1572. * test/UTMetadataRejectExtensionMessageTest.cc
  1573. * test/UTMetadataRequestExtensionMessageTest.cc
  1574. * test/UTPexExtensionMessageTest.cc
  1575. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Updated man page for BitTorrent Magnet URI.
  1577. * doc/aria2c.1.txt
  1578. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Call DownloadContext::setOwnerRequestGroup() in
  1580. RequestGroup::setDownloadContext().
  1581. * src/BtDependency.cc
  1582. * src/RequestGroup.cc
  1583. * src/RequestGroup.h
  1584. * src/download_helper.cc
  1585. * test/DefaultBtMessageDispatcherTest.cc
  1586. * test/DefaultExtensionMessageFactoryTest.cc
  1587. * test/HandshakeExtensionMessageTest.cc
  1588. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1589. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1590. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1591. from metadata, use new metadata2Torrent() function.
  1592. * src/BtDependency.cc
  1593. * src/UTMetadataPostDownloadHandler.cc
  1594. * src/bittorrent_helper.cc
  1595. * src/bittorrent_helper.h
  1596. * test/BittorrentHelperTest.cc
  1597. * test/BtDependencyTest.cc
  1598. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Use createRequestGroupForUri to create the download for torrent
  1600. file.
  1601. * src/Metalink2RequestGroup.cc
  1602. * test/Metalink2RequestGroupTest.cc
  1603. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1604. Fixed typo
  1605. * src/DownloadContext.h
  1606. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1607. Use createRequestGroupForBitTorrent()
  1608. * src/BtPostDownloadHandler.cc
  1609. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1610. Added remove().
  1611. * src/Option.cc
  1612. * src/Option.h
  1613. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. Removed options which is only valid for URIs specified in
  1615. command-line. If they are left, because op is used as a template
  1616. for new RequestGroup(such as created in XML-RPC command,
  1617. BtPostDownloadHandler etc), they causes unintentional effect.
  1618. * src/main.cc
  1619. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Refer to option value of PREF_OUT only in download_helper.
  1621. * src/FtpNegotiationCommand.cc
  1622. * src/HttpResponseCommand.cc
  1623. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1625. * src/download_helper.cc
  1626. * src/download_helper.h
  1627. * src/XmlRpcMethodImpl.cc
  1628. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1629. Updated man page for changeOption XML-RPC method.
  1630. * doc/aria2c.1.txt
  1631. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Added --bt-max-peers option to changeOption XML-RPC method.
  1633. * src/XmlRpcMethod.cc
  1634. * src/XmlRpcMethodImpl.cc
  1635. * test/XmlRpcMethodTest.cc
  1636. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1637. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1638. * test/XmlRpcMethodTest.cc
  1639. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Removed redundant DownloadContext::hasAttribute(...) calls.
  1641. * src/ConsoleStatCalc.cc
  1642. * src/RequestGroup.cc
  1643. * src/XmlRpcMethodImpl.cc
  1644. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1645. Changed the number of tracker request attempt from 5 to 2.
  1646. * src/TrackerWatcherCommand.cc
  1647. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1648. Use host and protocol in original URI, because URI selector
  1649. selects URI based on original URI, not redirected one.
  1650. * src/Request.cc
  1651. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Fixed the bug which causes segmentation fault with tellWaiting
  1653. XML-RPC method when BitTorrent download is waiting. The key of
  1654. BtRegistry is changed from info hash to GID, because it is
  1655. registered per RequestGroup, not info hash.
  1656. * src/BtRegistry.cc
  1657. * src/BtRegistry.h
  1658. * src/BtSetup.cc
  1659. * src/ConsoleStatCalc.cc
  1660. * src/InitiatorMSEHandshakeCommand.cc
  1661. * src/PeerInitiateConnectionCommand.cc
  1662. * src/PeerInteractionCommand.cc
  1663. * src/PeerInteractionCommand.h
  1664. * src/PeerReceiveHandshakeCommand.cc
  1665. * src/RequestGroup.cc
  1666. * src/XmlRpcMethodImpl.cc
  1667. * test/BtRegistryTest.cc
  1668. * test/XmlRpcMethodTest.cc
  1669. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Updated man page for changeOption XML-RPC method.
  1671. * doc/aria2c.1.txt
  1672. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1673. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1674. method.
  1675. * src/XmlRpcMethod.cc
  1676. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. Documented about BitTorrent Magnet URI in man page.
  1678. * doc/aria2c.1.txt
  1679. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1681. inherited to generated RequestGroup.
  1682. * src/UTMetadataPostDownloadHandler.cc
  1683. * test/UTMetadataPostDownloadHandlerTest.cc
  1684. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1685. Prepended "[METADATA]" before dn.
  1686. * src/bittorrent_helper.cc
  1687. * test/BittorrentHelperTest.cc
  1688. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1689. Rewritten Magnet URI parser.
  1690. * src/Makefile.am
  1691. * src/ProtocolDetector.cc
  1692. * src/bittorrent_helper.cc
  1693. * src/bittorrent_helper.h
  1694. * src/download_helper.cc
  1695. * src/magnet.cc
  1696. * src/magnet.h
  1697. * test/BittorrentHelperTest.cc
  1698. * test/MagnetTest.cc
  1699. * test/Makefile.am
  1700. * test/ProtocolDetectorTest.cc
  1701. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Use hton64
  1703. * src/base32.cc
  1704. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1705. Added Base32 encoded BitTorrent Magnet Link support.
  1706. * src/Makefile.am
  1707. * src/base32.cc
  1708. * src/base32.h
  1709. * src/bittorrent_helper.cc
  1710. * test/Base32Test.cc
  1711. * test/BittorrentHelperTest.cc
  1712. * test/Makefile.am
  1713. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1715. supported yet. Fixed typo in method name in RequestGroup. In
  1716. metadataGetMode, don't show "Your share ratio was ..." message.
  1717. * src/DefaultBtInteractive.cc
  1718. * src/DefaultBtInteractive.h
  1719. * src/DownloadHandlerFactory.cc
  1720. * src/DownloadHandlerFactory.h
  1721. * src/HandshakeExtensionMessage.cc
  1722. * src/Makefile.am
  1723. * src/Metalink2RequestGroup.cc
  1724. * src/PeerInteractionCommand.cc
  1725. * src/RequestGroup.cc
  1726. * src/RequestGroup.h
  1727. * src/UTMetadataPostDownloadHandler.cc
  1728. * src/UTMetadataPostDownloadHandler.h
  1729. * src/download_helper.cc
  1730. * test/HandshakeExtensionMessageTest.cc
  1731. * test/Makefile.am
  1732. * test/UTMetadataPostDownloadHandlerTest.cc
  1733. * test/UTMetadataRejectExtensionMessageTest.cc
  1734. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. In metadataGetMode, don't show SEEDING.
  1736. * src/ConsoleStatCalc.cc
  1737. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1738. Fixed ut_metadata data handling. Implemented
  1739. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1740. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1741. metadata_size is received.
  1742. * src/DefaultExtensionMessageFactory.cc
  1743. * src/DefaultExtensionMessageFactory.h
  1744. * src/HandshakeExtensionMessage.cc
  1745. * src/HandshakeExtensionMessage.h
  1746. * src/UTMetadataDataExtensionMessage.cc
  1747. * src/UTMetadataDataExtensionMessage.h
  1748. * src/UTMetadataRequestExtensionMessage.cc
  1749. * src/UTMetadataRequestFactory.cc
  1750. * src/UTMetadataRequestFactory.h
  1751. * src/UTMetadataRequestTracker.cc
  1752. * src/UTMetadataRequestTracker.h
  1753. * test/DefaultExtensionMessageFactoryTest.cc
  1754. * test/HandshakeExtensionMessageTest.cc
  1755. * test/MockBtMessage.h
  1756. * test/UTMetadataDataExtensionMessageTest.cc
  1757. * test/UTMetadataRequestExtensionMessageTest.cc
  1758. * test/UTMetadataRequestFactoryTest.cc
  1759. * test/UTMetadataRequestTrackerTest.cc
  1760. * test/extension_message_test_helper.h
  1761. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Drop connection if ut_metadata reject message is received.
  1763. * src/UTMetadataRejectExtensionMessage.cc
  1764. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1766. get high enough in that mode.
  1767. * src/ActivePeerConnectionCommand.cc
  1768. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Added BitTorrent magnet link support to ProtocolDetector.
  1770. * src/ProtocolDetector.cc
  1771. * src/ProtocolDetector.h
  1772. * test/ProtocolDetectorTest.cc
  1773. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1774. Don't inject validator into BtMessage in metadataGetMode because
  1775. most of the checks depends on the total length of download but it
  1776. is unknown. Delegate metadataGetMode to BtMessage.
  1777. * src/DefaultBtMessageFactory.cc
  1778. * src/DefaultBtMessageFactory.h
  1779. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1780. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1781. * src/DefaultPieceStorage.h
  1782. * src/PieceStorage.h
  1783. * src/UnknownLengthPieceStorage.h
  1784. * test/MockPieceStorage.h
  1785. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Added markTotalLengthIsKnown().
  1787. * src/DownloadContext.h
  1788. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1790. missing. If metadata is missing, always use DHT when it is ready.
  1791. * src/BtSetup.cc
  1792. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. Added parseMagnetLink(). Hex encoded info hash is supported.
  1794. Base32 encoded info hash is not supported yet.
  1795. * src/bittorrent_helper.cc
  1796. * src/bittorrent_helper.h
  1797. * test/BittorrentHelperTest.cc
  1798. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1799. Added FromHex()
  1800. * src/util.cc
  1801. * src/util.h
  1802. * test/UtilTest.cc
  1803. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Added _metadataGetMode member variable. It toggles the action when
  1805. messages are received: usually they almost do nothing if
  1806. _metadataGetMode is true.
  1807. * src/AbstractBtMessage.cc
  1808. * src/AbstractBtMessage.h
  1809. * src/BtAllowedFastMessage.cc
  1810. * src/BtBitfieldMessage.cc
  1811. * src/BtCancelMessage.cc
  1812. * src/BtChokeMessage.cc
  1813. * src/BtHaveAllMessage.cc
  1814. * src/BtHaveMessage.cc
  1815. * src/BtInterestedMessage.cc
  1816. * src/BtNotInterestedMessage.cc
  1817. * src/BtPieceMessage.cc
  1818. * src/BtRejectMessage.cc
  1819. * src/BtRequestMessage.cc
  1820. * src/BtUnchokeMessage.cc
  1821. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1822. Added bencode::decode overload functions. They have extra argument
  1823. 'end', passed by reference. 'end' points to the beyond the last
  1824. position of data used in decoding process.
  1825. * src/bencode.cc
  1826. * src/bencode.h
  1827. * test/BencodeTest.cc
  1828. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1829. Initial support of Extension for Peers to Send Metadata
  1830. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1831. metadata from swarm.
  1832. * src/BtConstants.h
  1833. * src/DefaultBtInteractive.cc
  1834. * src/DefaultExtensionMessageFactory.cc
  1835. * src/DefaultExtensionMessageFactory.h
  1836. * src/ExtensionMessage.h
  1837. * src/ExtensionMessageRegistry.h
  1838. * src/HandshakeExtensionMessage.cc
  1839. * src/HandshakeExtensionMessage.h
  1840. * src/Makefile.am
  1841. * src/PeerConnection.h
  1842. * src/PeerInteractionCommand.cc
  1843. * src/UTMetadataDataExtensionMessage.cc
  1844. * src/UTMetadataDataExtensionMessage.h
  1845. * src/UTMetadataExtensionMessage.cc
  1846. * src/UTMetadataExtensionMessage.h
  1847. * src/UTMetadataRejectExtensionMessage.cc
  1848. * src/UTMetadataRejectExtensionMessage.h
  1849. * src/UTMetadataRequestExtensionMessage.cc
  1850. * src/UTMetadataRequestExtensionMessage.h
  1851. * src/bittorrent_helper.cc
  1852. * src/bittorrent_helper.h
  1853. * test/BittorrentHelperTest.cc
  1854. * test/DefaultExtensionMessageFactoryTest.cc
  1855. * test/HandshakeExtensionMessageTest.cc
  1856. * test/Makefile.am
  1857. * test/UTMetadataDataExtensionMessageTest.cc
  1858. * test/UTMetadataRejectExtensionMessageTest.cc
  1859. * test/UTMetadataRequestExtensionMessageTest.cc
  1860. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1861. Cancel segment in prepareForRetry() because there is a chance that
  1862. the command has segments.
  1863. * src/CreateRequestCommand.cc
  1864. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1865. Fixed the bug that slow server is not knocked down in favor of
  1866. faster one.
  1867. * src/AbstractCommand.cc
  1868. * src/DefaultPieceStorage.cc
  1869. * src/DefaultPieceStorage.h
  1870. * src/PieceStorage.h
  1871. * src/UnknownLengthPieceStorage.cc
  1872. * src/UnknownLengthPieceStorage.h
  1873. * test/MockPieceStorage.h
  1874. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1875. Fixed the bug that Request object is not added to
  1876. _inFlightRequests in findFasterRequest().
  1877. * src/FileEntry.cc
  1878. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1879. Changed the strategry of how to increase the number of outstanding
  1880. requests. Now the number is doubled if there are no outstanding
  1881. requests after receiving messages.
  1882. * src/BtConstants.h
  1883. * src/DefaultBtInteractive.cc
  1884. * src/DefaultBtInteractive.h
  1885. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1886. Check socket for reading if there are outstanding requests.
  1887. * src/PeerInteractionCommand.cc
  1888. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Moved frequently called methods to header file so they get
  1890. inlined.
  1891. * src/RequestSlot.cc
  1892. * src/RequestSlot.h
  1893. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Copied in_addr instead of just casting from char* which might
  1895. violate strict aliasing rules.
  1896. * src/AsyncNameResolver.cc
  1897. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1898. Use dynamic_pointer_cast
  1899. * test/BtPieceMessageTest.cc
  1900. * test/BtRequestMessageTest.cc
  1901. * test/DefaultBtRequestFactoryTest.cc
  1902. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1903. Added testSetUrl20()
  1904. * test/RequestTest.cc
  1905. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1906. Code cleanup
  1907. * src/bittorrent_helper.cc
  1908. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1909. Use C++ style cast
  1910. * src/AsyncNameResolver.cc
  1911. * src/Base64.h
  1912. * src/BtBitfieldMessage.cc
  1913. * src/BtHandshakeMessage.cc
  1914. * src/DefaultBtMessageFactory.cc
  1915. * src/DefaultBtProgressInfoFile.cc
  1916. * src/EpollEventPoll.cc
  1917. * src/ExpatMetalinkProcessor.cc
  1918. * src/IteratableChecksumValidator.cc
  1919. * src/IteratableChunkChecksumValidator.cc
  1920. * src/MessageDigestHelper.cc
  1921. * src/Platform.cc
  1922. * src/RequestGroupMan.cc
  1923. * src/SingleFileAllocationIterator.cc
  1924. * src/Sqlite3MozCookieParser.cc
  1925. * src/XML2SAXMetalinkProcessor.cc
  1926. * src/Xml2XmlRpcRequestProcessor.cc
  1927. * src/util.cc
  1928. * src/util.h
  1929. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Fixed integer potential alignment problem.
  1931. * src/bitfield.h
  1932. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1933. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1934. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1935. include file ordering.
  1936. * src/PeerListProcessor.h
  1937. * src/bittorrent_helper.cc
  1938. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1939. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1940. * src/Request.cc
  1941. * src/util.cc
  1942. * src/util.h
  1943. * test/RequestTest.cc
  1944. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Rewritten util::uitos()
  1946. * src/util.h
  1947. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Code cleanup
  1949. * src/Request.cc
  1950. * src/Request.h
  1951. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1952. Rewritten Request::parseUrl()
  1953. * src/Request.cc
  1954. * test/RequestTest.cc
  1955. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1956. Removed unused macro SAFE_CHARS
  1957. * src/Request.cc
  1958. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Updated doc
  1960. * src/DHTRoutingTableDeserializer.cc
  1961. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1962. Release 1.6.3
  1963. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1964. Removed unused function.
  1965. * test/DHTPeerAnnounceStorageTest.cc
  1966. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Only decrement cols if cols > 0
  1968. * src/ConsoleStatCalc.cc
  1969. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1970. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1971. translations. Thanks to all translators.
  1972. * po/ca.po
  1973. * po/fr.po
  1974. * po/it.po
  1975. * po/ja.po
  1976. * po/pl.po
  1977. * po/ru.po
  1978. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1979. Updated translation template
  1980. * po
  1981. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1982. Fixed compile error without ssl library.
  1983. * src/util.cc
  1984. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1985. Logged received nodes in get_peers reply message.
  1986. * src/DHTAbstractNodeLookupTask.cc
  1987. * src/DHTAbstractNodeLookupTask.h
  1988. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1990. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1991. * src/DHTMessageDispatcherImpl.cc
  1992. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1993. Don't reuse URI if Request pool is not empty.
  1994. * src/CreateRequestCommand.cc
  1995. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1996. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1997. receive get_peers request for torrent which the client is now
  1998. downloading.
  1999. * src/BtSetup.cc
  2000. * src/DHTPeerAnnounceEntry.cc
  2001. * src/DHTPeerAnnounceEntry.h
  2002. * src/DHTPeerAnnounceStorage.cc
  2003. * src/DHTPeerAnnounceStorage.h
  2004. * src/RequestGroup.cc
  2005. * test/DHTPeerAnnounceEntryTest.cc
  2006. * test/DHTPeerAnnounceStorageTest.cc
  2007. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2008. Fixed the bug that in Windows environment new blank line is
  2009. inserted when console readout is updated.
  2010. * src/ConsoleStatCalc.cc
  2011. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2012. Throw exception if binding listening port is failed. Removed
  2013. RequestGroupMan::getInitialCommand(). Use
  2014. fillRequestGroupFromReserver() instead. Delete commands for
  2015. RequestGroup which has errors when it is being added.
  2016. * src/BtSetup.cc
  2017. * src/DownloadEngine.cc
  2018. * src/DownloadEngine.h
  2019. * src/DownloadEngineFactory.cc
  2020. * src/MultiUrlRequestInfo.cc
  2021. * src/RequestGroupMan.cc
  2022. * src/RequestGroupMan.h
  2023. * test/RequestGroupManTest.cc
  2024. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2025. Fixed the bug that when downloading more than one torrent,
  2026. listening port is not reported properly to tracker for 2nd or
  2027. later torrents.
  2028. * src/BtSetup.cc
  2029. * src/PeerListenCommand.cc
  2030. * src/PeerListenCommand.h
  2031. * src/RequestGroup.cc
  2032. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Bump up version number to 1.6.3
  2034. * configure.ac
  2035. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2036. Removed Util.cc from POTFILES.in
  2037. * po/POTFILES.in
  2038. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2039. Updated man page for previous change.
  2040. * doc/aria2c.1.txt
  2041. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2042. If user name is embedded but password is missing in URI, first
  2043. resolve password using .netrc. If password is found in .netrc,
  2044. then use it as password. If not, use the password specified in
  2045. --ftp-passwd.
  2046. * src/AuthConfigFactory.cc
  2047. * src/Request.cc
  2048. * src/Request.h
  2049. * test/AuthConfigFactoryTest.cc
  2050. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2051. Fixed typo
  2052. * doc/aria2c.1.txt
  2053. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. Fixed typo
  2055. * src/usage_text.h
  2056. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2057. Added missing bitfield.cc
  2058. * src/bitfield.cc
  2059. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2060. Renamed Util.{cc,h} as util.{cc,h}
  2061. * src/Util.cc
  2062. * src/Util.h
  2063. * src/util.cc
  2064. * src/util.h
  2065. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2066. Moved static functions in Util class to namespace util.
  2067. * src
  2068. * test
  2069. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  2071. Moved generateRandomKey to bittorrent_helper.cc.
  2072. * src/DHTBucket.cc
  2073. * src/DHTGetPeersMessage.cc
  2074. * src/DHTGetPeersReplyMessage.cc
  2075. * src/DHTMessage.cc
  2076. * src/DHTNode.cc
  2077. * src/DHTTokenTracker.cc
  2078. * src/DHTUtil.cc: Removed.
  2079. * src/DHTUtil.h: Removed.
  2080. * src/Makefile.am
  2081. * src/Util.cc
  2082. * src/Util.h
  2083. * src/bitfield.h
  2084. * src/bittorrent_helper.cc
  2085. * src/bittorrent_helper.h
  2086. * test/ARC4Test.cc
  2087. * test/BNodeTest.cc
  2088. * test/DHTAnnouncePeerMessageTest.cc
  2089. * test/DHTAnnouncePeerReplyMessageTest.cc
  2090. * test/DHTFindNodeMessageTest.cc
  2091. * test/DHTFindNodeReplyMessageTest.cc
  2092. * test/DHTGetPeersMessageTest.cc
  2093. * test/DHTGetPeersReplyMessageTest.cc
  2094. * test/DHTPingMessageTest.cc
  2095. * test/DHTPingReplyMessageTest.cc
  2096. * test/DHTTokenTrackerTest.cc
  2097. * test/DHTUtilTest.cc: Removed.
  2098. * test/Makefile.am
  2099. * test/UtilTest.cc
  2100. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2101. Removed the call to trim() because trim() is called for each
  2102. element in split().
  2103. * src/CookieParser.cc
  2104. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2105. Replaced Util::slice() with split()
  2106. * src/AbstractCommand.cc
  2107. * src/CookieParser.cc
  2108. * src/File.cc
  2109. * src/HttpHeaderProcessor.cc
  2110. * src/HttpRequest.cc
  2111. * src/Metalink2RequestGroup.cc
  2112. * src/MetalinkParserController.cc
  2113. * src/Netrc.cc
  2114. * src/NsCookieParser.cc
  2115. * src/ParameterizedStringParser.cc
  2116. * src/ServerStatMan.cc
  2117. * src/UriListParser.cc
  2118. * src/Util.cc
  2119. * src/Util.h
  2120. * src/bittorrent_helper.cc
  2121. * test/UtilTest.cc
  2122. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Use request->getDir() instead of "/" for embedded user/pass in
  2124. URI.
  2125. * src/AuthConfigFactory.cc
  2126. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Fixed wrong insertion point for BasicCred.
  2128. * src/AuthConfigFactory.cc
  2129. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2130. Allowed non-regular file in LocalFilePathOptionHandler
  2131. * src/OptionHandlerImpl.h
  2132. * src/message.h
  2133. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Fixed the bug that Netrc::parse() cannot recognize comment line.
  2135. * src/Netrc.cc
  2136. * src/Util.h
  2137. * test/NetrcTest.cc
  2138. * test/sample.netrc
  2139. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2140. Fixed typo
  2141. * src/BtDependency.cc
  2142. * src/BtRejectMessage.cc
  2143. * src/FtpConnection.cc
  2144. * src/HttpHeaderProcessor.h
  2145. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Fixed lintian report in man page
  2147. * doc/aria2c.1.txt
  2148. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2149. Release 1.6.2
  2150. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Updated Ukrainian translation. Thanks to all translators.
  2152. * po/uk.po
  2153. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Updated translation template
  2155. * po
  2156. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2157. Bump up version number to 1.6.2
  2158. * configure.ac
  2159. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Updated licence message in -v output.
  2161. * src/version_usage.cc
  2162. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Replaced aria2 with aria2c in help message.
  2164. * src/version_usage.cc
  2165. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  2167. * src/version_usage.cc
  2168. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Quoted localedir
  2170. * src/Makefile.am
  2171. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2172. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  2173. utime. Check header for utime.h.
  2174. * configure.ac
  2175. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2176. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  2177. * configure.ac
  2178. * src/daemon.cc
  2179. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2180. Don't set localedir manually. Leave it to autoconf.
  2181. * configure.ac
  2182. * src/Makefile.am
  2183. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Added --install to ACLOCAL_AMFLAGS.
  2185. Removed m4 from SUBDIRS.
  2186. Updated automake 1.11 and autoconf 2.64.
  2187. Replaced some obsolute macros with new one.
  2188. * Makefile.am
  2189. * configure.ac
  2190. * m4/aria2_arg.m4
  2191. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2192. Removed Makefile.am in m4 directory.
  2193. * configure.ac
  2194. * m4/ChangeLog
  2195. * m4/Makefile.am
  2196. * m4/Makefile.in
  2197. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2198. Removed unused m4 macros.
  2199. * m4/intldir.m4
  2200. * m4/inttypes.m4
  2201. * m4/isc-posix.m4
  2202. * m4/libgnutls-extra.m4
  2203. * m4/ulonglong.m4
  2204. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2205. Fixed the bug that causes segmentation fault if
  2206. req->getCurrentUrl() contains printf formatting characters such as
  2207. %d. The statement that causes this bug is useless and removed.
  2208. * src/AbstractCommand.cc
  2209. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2210. * Release 1.6.1
  2211. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2212. Updated Simplified Chinese translation. Thanks to translators.
  2213. * po/zh_CN.po
  2214. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Updated translation template
  2216. * po
  2217. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2218. Bump up version number to 1.6.1
  2219. * configure.ac
  2220. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2221. Changed interval from 120 to 60 for dropping inactive peer.
  2222. * src/DefaultBtInteractive.cc
  2223. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2224. Updated man page for --user-agent and --peer-id-prefix option.
  2225. * doc/aria2c.1.txt
  2226. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Code clean up
  2228. * src/BtPostDownloadHandler.cc
  2229. * src/ContentTypeRequestGroupCriteria.cc
  2230. * src/ContentTypeRequestGroupCriteria.h
  2231. * src/DownloadHandlerConstants.cc
  2232. * src/DownloadHandlerConstants.h
  2233. * src/DownloadHandlerFactory.cc
  2234. * src/MetalinkPostDownloadHandler.cc
  2235. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2236. Don't save control file when aria2 exists while checking piece
  2237. hash(behavior of -V option). If control file doesn't exist when
  2238. aria2 launched, the completed length in saved control file will be
  2239. 0 byte and this confuses user. disableSaveControlFile() is called
  2240. in RequestGroup::processCheckIntegrityEntry().
  2241. enableSaveControlFile() will be called after hash checking is
  2242. done. See CheckIntegrityCommand.
  2243. * src/CheckIntegrityCommand.cc
  2244. * src/RequestGroup.cc
  2245. * src/RequestGroup.h
  2246. * src/RequestGroupMan.cc
  2247. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Included version number in Peer ID and client version. Peer ID
  2249. now starts with "aria2/VERSION-", where VERSION is
  2250. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  2251. * src/DefaultBtInteractive.cc
  2252. * src/OptionHandlerFactory.cc
  2253. * src/bittorrent_helper.cc
  2254. * src/bittorrent_helper.h
  2255. * src/main.cc
  2256. * src/usage_text.h
  2257. * test/BittorrentHelperTest.cc
  2258. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2259. Fixed memory leak.
  2260. * src/DownloadCommand.cc
  2261. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Removed server, port, user and passwd key from options before
  2263. XMLRPC::Client.call since they are not options of aria2.
  2264. * doc/xmlrpc/aria2mon
  2265. * doc/xmlrpc/aria2rpc
  2266. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. Included version number in user-agent string.
  2268. * src/OptionHandlerFactory.cc
  2269. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2270. Fixed the bug that the option values changed by XML-RPC
  2271. method(changeOption and changeGlobalOption) are overwritten to the
  2272. previous value by the next these request which doesn't contain
  2273. that option value. Supporse max-download-limit is initially 0. You
  2274. changed this value to 100K by changeOption. Then you issue
  2275. changeOption request to change max-upload-limit to 50K. This
  2276. second request doesn't contain xml-download-limit, so it is back
  2277. to initial value, 0. Another improvement is that exception is
  2278. thrown when changeOption and changeGlobalOption request contains
  2279. option name which doesn't allowed in each request.
  2280. * src/DownloadEngine.h
  2281. * src/XmlRpcMethod.cc
  2282. * src/XmlRpcMethod.h
  2283. * src/XmlRpcMethodImpl.cc
  2284. * src/download_helper.cc
  2285. * src/download_helper.h
  2286. * test/XmlRpcMethodTest.cc
  2287. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2288. Added missing MetalinkParserStateImpl.{cc,h}
  2289. * src/MetalinkParserStateImpl.cc
  2290. * src/MetalinkParserStateImpl.h
  2291. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2292. Put all MetalinkParserState subclasses into
  2293. MetalinkParserStateImpl.cc. Use stack to track element structure.
  2294. * src/FileMetalinkParserState.cc: Removed
  2295. * src/FileMetalinkParserState.h: Removed
  2296. * src/FilesMetalinkParserState.cc: Removed
  2297. * src/FilesMetalinkParserState.h: Removed
  2298. * src/FinMetalinkParserState.cc: Removed
  2299. * src/FinMetalinkParserState.h: Removed
  2300. * src/HashMetalinkParserState.cc: Removed
  2301. * src/HashMetalinkParserState.h: Removed
  2302. * src/InitialMetalinkParserState.cc: Removed
  2303. * src/InitialMetalinkParserState.h: Removed
  2304. * src/LanguageMetalinkParserState.cc: Removed
  2305. * src/LanguageMetalinkParserState.h: Removed
  2306. * src/Makefile.am
  2307. * src/MetalinkMetalinkParserState.cc: Removed
  2308. * src/MetalinkMetalinkParserState.h: Removed
  2309. * src/MetalinkParserState.h
  2310. * src/MetalinkParserStateMachine.cc
  2311. * src/MetalinkParserStateMachine.h
  2312. * src/OSMetalinkParserState.cc: Removed
  2313. * src/OSMetalinkParserState.h: Removed
  2314. * src/PieceHashMetalinkParserState.cc: Removed
  2315. * src/PieceHashMetalinkParserState.h: Removed
  2316. * src/PiecesMetalinkParserState.cc: Removed
  2317. * src/PiecesMetalinkParserState.h: Removed
  2318. * src/ResourcesMetalinkParserState.cc: Removed
  2319. * src/ResourcesMetalinkParserState.h: Removed
  2320. * src/SignatureMetalinkParserState.cc: Removed
  2321. * src/SignatureMetalinkParserState.h: Removed
  2322. * src/SizeMetalinkParserState.cc: Removed
  2323. * src/SizeMetalinkParserState.h: Removed
  2324. * src/SkipTagMetalinkParserState.cc: Removed
  2325. * src/SkipTagMetalinkParserState.h: Removed
  2326. * src/URLMetalinkParserState.cc: Removed
  2327. * src/URLMetalinkParserState.h: Removed
  2328. * src/VerificationMetalinkParserState.cc: Removed
  2329. * src/VerificationMetalinkParserState.h: Removed
  2330. * src/VersionMetalinkParserState.cc: Removed
  2331. * src/VersionMetalinkParserState.h: Removed
  2332. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2333. Move all functions in PeerMessageUtil to bittorrent_helper.
  2334. * src/BtBitfieldMessage.cc
  2335. * src/BtBitfieldMessageValidator.h
  2336. * src/BtExtendedMessage.cc
  2337. * src/BtHandshakeMessage.cc
  2338. * src/BtHandshakeMessageValidator.h
  2339. * src/BtPieceMessage.cc
  2340. * src/BtPieceMessageValidator.h
  2341. * src/BtPortMessage.cc
  2342. * src/DHTFindNodeReplyMessage.cc
  2343. * src/DHTGetPeersReplyMessage.cc
  2344. * src/DHTMessageFactoryImpl.cc
  2345. * src/DHTRoutingTableDeserializer.cc
  2346. * src/DHTRoutingTableSerializer.cc
  2347. * src/DHTTokenTracker.cc
  2348. * src/DefaultBtMessageFactory.cc
  2349. * src/IndexBtMessage.cc
  2350. * src/IndexBtMessage.h
  2351. * src/IndexBtMessageValidator.h
  2352. * src/Makefile.am
  2353. * src/PeerMessageUtil.cc: Removed.
  2354. * src/PeerMessageUtil.h: Removed.
  2355. * src/RangeBtMessage.cc
  2356. * src/RangeBtMessage.h
  2357. * src/RangeBtMessageValidator.h
  2358. * src/UTPexExtensionMessage.cc
  2359. * src/ZeroBtMessage.cc
  2360. * src/ZeroBtMessage.h
  2361. * src/bittorrent_helper.cc
  2362. * src/bittorrent_helper.h
  2363. * test/BittorrentHelperTest.cc
  2364. * test/BtAllowedFastMessageTest.cc
  2365. * test/BtBitfieldMessageTest.cc
  2366. * test/BtCancelMessageTest.cc
  2367. * test/BtChokeMessageTest.cc
  2368. * test/BtExtendedMessageTest.cc
  2369. * test/BtHandshakeMessageTest.cc
  2370. * test/BtHaveAllMessageTest.cc
  2371. * test/BtHaveMessageTest.cc
  2372. * test/BtHaveNoneMessageTest.cc
  2373. * test/BtInterestedMessageTest.cc
  2374. * test/BtNotInterestedMessageTest.cc
  2375. * test/BtPieceMessageTest.cc
  2376. * test/BtPortMessageTest.cc
  2377. * test/BtRejectMessageTest.cc
  2378. * test/BtRequestMessageTest.cc
  2379. * test/BtSuggestPieceMessageTest.cc
  2380. * test/BtUnchokeMessageTest.cc
  2381. * test/DHTFindNodeReplyMessageTest.cc
  2382. * test/DHTGetPeersReplyMessageTest.cc
  2383. * test/DHTMessageFactoryImplTest.cc
  2384. * test/DHTRoutingTableDeserializerTest.cc
  2385. * test/DHTRoutingTableSerializerTest.cc
  2386. * test/DefaultBtMessageFactoryTest.cc
  2387. * test/DefaultExtensionMessageFactoryTest.cc
  2388. * test/Makefile.am
  2389. * test/PeerListProcessorTest.cc
  2390. * test/PeerMessageUtilTest.cc: Removed.
  2391. * test/UTPexExtensionMessageTest.cc
  2392. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2393. Limit the size of values list when sending get_peers reply.
  2394. * src/DHTGetPeersReplyMessage.cc
  2395. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2396. Updated banner
  2397. * doc/xmlrpc/aria2rpc
  2398. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2399. Added missing help message for remove command.
  2400. * doc/xmlrpc/aria2rpc
  2401. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2402. Generated configure and config.h.in
  2403. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2404. Add check for fork(), which is missing on MinGW
  2405. * src/daemon.cc
  2406. * configure.ac
  2407. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2409. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2410. Util::httpGMT().
  2411. * src/Util.cc
  2412. * src/Util.h
  2413. * test/UtilTest.cc
  2414. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2415. * Release 1.6.0
  2416. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2417. Fixed a path to xmlrpc/README.txt
  2418. * doc/Makefile.am
  2419. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2420. Added XML-RPC in -v Configuration output.
  2421. * src/FeatureConfig.cc
  2422. * src/FeatureConfig.h
  2423. * test/FeatureConfigTest.cc
  2424. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2425. Updated Bulgarian, Russian, Slovak and Japanese
  2426. translations. Thanks to all translators.
  2427. * po/bg.po
  2428. * po/ja.po
  2429. * po/ru.po
  2430. * po/sk.po
  2431. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Removed --retry-wait option from aria2rpc
  2433. * doc/xmlrpc/aria2rpc
  2434. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2435. Removed --retry-wait option from man page.
  2436. * doc/aria2c.1.txt
  2437. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2438. Removed --retry-wait option since the current architecture doesn't
  2439. allow sleep for particular URI.
  2440. * src/AbstractCommand.cc
  2441. * src/OptionHandlerFactory.cc
  2442. * src/download_helper.cc
  2443. * src/prefs.cc
  2444. * src/prefs.h
  2445. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2446. Removed Retry-After header support. Since the current architecture
  2447. doesn't allow sleep for particular URI.
  2448. * src/HttpSkipResponseCommand.cc
  2449. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Updated the help message for --daemon option.
  2451. * doc/aria2c.1.txt
  2452. * src/usage_text.h
  2453. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2454. Added our own daemon() function for systems which desn't have
  2455. daemon(3).
  2456. * configure.ac
  2457. * src/Makefile.am
  2458. * src/daemon.cc
  2459. * src/daemon.h
  2460. * src/option_processing.cc
  2461. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2462. Simplified File::getCurrentDir()
  2463. * src/File.cc
  2464. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2465. Use exit() instead of _exit
  2466. * src/RequestGroupMan.cc
  2467. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2468. Replaced "CATEGORY" with "TAGS".
  2469. * src/usage_text.h
  2470. * doc/aria2c.1.txt
  2471. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. Updated the help message for --help option.
  2473. * src/usage_text.h
  2474. * doc/aria2c.1.txt
  2475. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2476. Updated man page for added help tags.
  2477. * doc/aria2c.1.txt
  2478. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2479. Added help category #file. Added #file tag to the options related
  2480. to downloaded file.
  2481. * src/OptionHandlerFactory.cc
  2482. * src/help_tags.h
  2483. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Added help categories: #cookie and #hook. Added #https tag to
  2485. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2486. * src/OptionHandlerFactory.cc
  2487. * src/help_tags.h
  2488. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2489. Made MSG_NOT_FILE translatable.
  2490. * src/message.h
  2491. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Updated man page for --help option.
  2493. * doc/aria2c.1.txt
  2494. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Updated doc.
  2496. * src/XmlRpcMethod.h
  2497. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2498. Help category now starts with "#" to distinguish a category from
  2499. keyword search. For example, "http" categroy is now "#http". You
  2500. can type "--help=#http" to get explanation of options related to
  2501. http. If '#' is omitted, then the argument is treated as a keyword
  2502. and aria2 searches options whose name includes the keyword and
  2503. print matched ones. For example, "--help=http" will show options
  2504. whose name includes "http".
  2505. * src/OptionHandlerFactory.cc
  2506. * src/help_tags.h
  2507. * src/usage_text.h
  2508. * src/version_usage.cc
  2509. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2510. Documented missing experimental tag and newly added xml-rpc tag in
  2511. man page.
  2512. * doc/aria2c.1.txt
  2513. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2514. Added xml-rpc help tag. Tagged xml-rpc related options with
  2515. xml-rpc tag.
  2516. * src/OptionHandlerFactory.cc
  2517. * src/help_tags.h
  2518. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2519. Updated message when a path is not a file. Updated common message
  2520. for wrong option.
  2521. * src/OptionHandlerException.cc
  2522. * src/message.h
  2523. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2524. Use File::isFile() instead of File::exists(). Updated message when
  2525. a path is not a file.
  2526. * src/OptionHandlerImpl.cc
  2527. * src/message.h
  2528. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Fixed the bug that server performence profile is not updated when
  2530. aria2c was terminated by emergency shutdown.
  2531. * src/TrackerWatcherCommand.cc
  2532. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2533. Use LocalFilePathOptionHandler for -T and -M option.
  2534. Updated message of MSG_FILE_NOT_EXIST.
  2535. * src/OptionHandlerFactory.cc
  2536. * src/message.h
  2537. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2538. Added LocalFilePathOptionHandler which check whether the specified
  2539. file path does exist or not.
  2540. * src/OptionHandlerImpl.cc
  2541. * src/message.h
  2542. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2543. Updated wiki page URI.
  2544. * README
  2545. * doc/aria2c.1.txt
  2546. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Added README.txt for xmlrpc directory.
  2548. * doc/Makefile.am
  2549. * doc/xmlrpc/README.txt
  2550. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Bump up version number to 1.6.0.
  2552. * configure.ac
  2553. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Added XML-RPC client scripts written in ruby.
  2555. * doc/Makefile.am
  2556. * doc/xmlrpc/aria2mon
  2557. * doc/xmlrpc/aria2rpc
  2558. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Added support for IPv6 literal address in URI. Now aria2 can
  2560. handle URI such as http://[::1]/
  2561. * src/HttpRequest.cc
  2562. * src/HttpRequest.h
  2563. * src/Request.cc
  2564. * src/Request.h
  2565. * test/HttpRequestTest.cc
  2566. * test/OptionHandlerTest.cc
  2567. * test/RequestTest.cc
  2568. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2569. Fixed the bug that HTTP request header for XML-RPC request is not
  2570. parsed properly.
  2571. * src/HttpHeader.cc
  2572. * src/HttpHeaderProcessor.cc
  2573. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2574. Fixed the bug that XML-RPC authorization might be done before HTTP
  2575. request header is fully received.
  2576. * src/HttpServerCommand.cc
  2577. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Documented --xml-rpc-listen-all option in man page.
  2579. * doc/aria2c.1.txt
  2580. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Added --xml-rpc-listen-all option. If true is given to this
  2582. option, aria2 listens incoming XML-RPC requests on all network
  2583. interfaces. If false is given, listens only on local loopback
  2584. interface. The default value is false.
  2585. * src/HttpListenCommand.cc
  2586. * src/OptionHandlerFactory.cc
  2587. * src/SocketCore.cc
  2588. * src/SocketCore.h
  2589. * src/prefs.cc
  2590. * src/prefs.h
  2591. * src/usage_text.h
  2592. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2593. * Release 1.5.2
  2594. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2595. Updated Ukrainian and Russian translations. Thanks to all
  2596. translators.
  2597. * po/ru.po
  2598. * po/uk.po
  2599. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2600. Bump up version number to 1.5.2
  2601. * configure.ac
  2602. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2603. Get comment, comment.utf-8, created by and creation date from
  2604. .torrent file and print them in -S output.
  2605. * src/bittorrent_helper.cc
  2606. * src/bittorrent_helper.h
  2607. * test/BittorrentHelperTest.cc
  2608. * test/test.torrent
  2609. * test/utf8.torrent
  2610. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2611. Show exact file size along in -S option output.
  2612. * src/Util.h
  2613. * src/bittorrent_helper.cc
  2614. * test/UtilTest.cc
  2615. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2616. Avoided unnecessary memory allocation in
  2617. BitfieldMan::getCompletedLength().
  2618. * src/BitfieldMan.cc
  2619. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2620. Fixed the bug that download fails if
  2621. SocketCore::establishConnection() throws exception and aria2
  2622. doesn't try another address.
  2623. * src/AbstractCommand.cc
  2624. * src/InitiateConnectionCommand.cc
  2625. * src/message.h
  2626. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2627. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2628. detected properly.
  2629. * m4/sqlite3.m4
  2630. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2631. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2632. because it causes compile error if PARAMS macro is defined.
  2633. * src/XmlRpcElements.cc
  2634. * src/XmlRpcElements.h
  2635. * src/XmlRpcRequestParserStateImpl.cc
  2636. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2637. * Release 1.5.1
  2638. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2639. Bump up version number to 1.5.1
  2640. * configure.ac
  2641. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2642. Fixed compile error without BitTorrent support
  2643. * src/DefaultBtProgressInfoFile.cc
  2644. * src/DownloadEngine.cc
  2645. * src/DownloadEngine.h
  2646. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2647. Added missing '=' in Download Results
  2648. * src/RequestGroupMan.cc
  2649. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2650. Fixed compiler warning
  2651. * src/DefaultBtProgressInfoFile.cc
  2652. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2653. Fixed compiler warning on 32bit systems.
  2654. * src/DownloadCommand.cc
  2655. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2656. Call flush from ServerStatMan::save()
  2657. * src/ServerStatMan.cc
  2658. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2659. Check stream status after file is opened.
  2660. * src/CookieStorage.cc
  2661. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2662. Rewritten Signature::save()
  2663. * src/Signature.cc
  2664. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2665. Rewritten RequestGroupMan::saveServerStat()
  2666. * src/RequestGroupMan.cc
  2667. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2668. Rewritten stream error handling
  2669. * src/DHTAutoSaveCommand.cc
  2670. * src/DHTRoutingTableDeserializer.cc
  2671. * src/DHTRoutingTableSerializer.cc
  2672. * src/DHTSetup.cc
  2673. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2674. Check stream status after file is opened.
  2675. * src/DefaultBtProgressInfoFile.cc
  2676. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2677. Rewritten stream error handling
  2678. * src/DefaultBtProgressInfoFile.cc
  2679. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2680. Make sure that stream is closed before renaming file. Unit test
  2681. fails on mingw32 in the previous implementation.
  2682. * src/CookieStorage.cc
  2683. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2684. Fixed the unit test error without sqlite3
  2685. * test/CookieStorageTest.cc
  2686. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2687. Fixed the undefined reference error
  2688. * test/HttpResponseTest.cc
  2689. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2690. * Release 1.5.0
  2691. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2693. Ukrainian translations. Thanks to all translators.
  2694. * po/ru.po
  2695. * po/it.po
  2696. * po/da.po
  2697. * po/bg.po
  2698. * po/ja.po
  2699. * po/uk.po
  2700. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2701. Added missing src/Logger.cc
  2702. * src/Logger.cc
  2703. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2704. Rewritten Logger to avoiding constly virtual call.
  2705. * src/LogFactory.cc
  2706. * src/LogFactory.h
  2707. * src/Logger.h
  2708. * src/Makefile.am
  2709. * src/Makefile.in
  2710. * src/NullLogger.h: Removed.
  2711. * src/SimpleLogger.cc
  2712. * src/SimpleLogger.h
  2713. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2714. Updated doc
  2715. * src/main.cc
  2716. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2717. Updated debug log message
  2718. * src/AbstractCommand.cc
  2719. * src/message.h
  2720. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2721. Avoid to create zombie process when commands specified in
  2722. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2723. X and NetBSD.
  2724. * src/main.cc
  2725. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2726. Fixed typo
  2727. * src/usage_text.h
  2728. * doc/aria2c.1.txt
  2729. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2730. Documented 'errorCode' of tellStatus in man page.
  2731. * doc/aria2c.1.txt
  2732. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2734. This key is only available for stopped/completed downloads and its
  2735. value is the error code defined in EXIT STATUS in man page.
  2736. * src/XmlRpcMethodImpl.cc
  2737. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2738. Fixed the bug that session download length is not updated when
  2739. PeerStat is not fastest one.
  2740. * src/SegmentMan.cc
  2741. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2742. Updated doc.
  2743. * doc/aria2c.1.txt
  2744. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2745. Updated doc.
  2746. * src/AbstractCommand.cc
  2747. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2748. Handle the case when DownloadContext has no FileEntry.
  2749. * src/XmlRpcMethodImpl.cc
  2750. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2751. Handle the situation where struct option.name is char *.
  2752. * configure.ac
  2753. * src/OptionParser.cc
  2754. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2755. Code cleanup
  2756. * src/AbstractCommand.cc
  2757. * src/DownloadCommand.cc
  2758. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2759. Use option of each download to create AuthConfig instead of global
  2760. option.
  2761. * src/AuthConfigFactory.cc
  2762. * src/AuthConfigFactory.h
  2763. * src/FtpNegotiationCommand.cc
  2764. * src/HttpRequest.cc
  2765. * src/HttpRequest.h
  2766. * src/HttpRequestCommand.cc
  2767. * src/HttpSkipResponseCommand.cc
  2768. * src/MultiUrlRequestInfo.cc
  2769. * test/AuthConfigFactoryTest.cc
  2770. * test/FtpConnectionTest.cc
  2771. * test/HttpRequestTest.cc
  2772. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2773. Don't call prepareForRetry(1) if all segments are ignored in
  2774. SegmentMan.
  2775. * src/AbstractCommand.cc
  2776. * src/BitfieldMan.cc
  2777. * src/BitfieldMan.h
  2778. * src/SegmentMan.cc
  2779. * src/SegmentMan.h
  2780. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2781. Removed FileEntry::getAssociatedUris()
  2782. * src/FileEntry.h
  2783. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2784. Updated doc: TODO1.5 -> TODO
  2785. * src/FileEntry.cc
  2786. * src/HttpResponseCommand.cc
  2787. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2789. involved.
  2790. * src/RequestGroup.cc
  2791. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2792. Eliminated duplicated filterBitfield initialization code.
  2793. * src/BitfieldMan.cc
  2794. * src/BitfieldMan.h
  2795. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2796. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2797. relatively naive approach, though). For DownloadFailureException,
  2798. we handle the case when req is null properly.
  2799. * src/AbstractCommand.cc
  2800. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2801. Added function returning suffix of control file to
  2802. DefaultBtProgressInfoFile.
  2803. * src/DefaultBtProgressInfoFile.cc
  2804. * src/DefaultBtProgressInfoFile.h
  2805. * src/RequestGroup.cc
  2806. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2807. Documented getVersion in man page.
  2808. * doc/aria2c.1.txt
  2809. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Documented type of offset and num for tellWaiting xml-rpc method.
  2811. * doc/aria2c.1.txt
  2812. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Implemented getVersion xml-rpc method. This method returns struct
  2814. which has 2 key-value pairs: "version" key is associated to the
  2815. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2816. associated to the list of enabled features, such as "Async DNS",
  2817. "BitTorrent".
  2818. * src/FeatureConfig.h
  2819. * src/XmlRpcMethodFactory.cc
  2820. * src/XmlRpcMethodImpl.cc
  2821. * src/XmlRpcMethodImpl.h
  2822. * test/XmlRpcMethodTest.cc
  2823. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2824. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2825. for compatibility issue.
  2826. * src/SocketCore.cc
  2827. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2828. Fixed compile error with openSSL
  2829. * src/bittorrent_helper.cc
  2830. * src/messageDigest.h
  2831. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2832. Removed bad code: setting certificate type priority to key
  2833. exchange priority.
  2834. * src/SocketCore.cc
  2835. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2836. Disconnect seeder if client is also in seed state.
  2837. * src/BtBitfieldMessage.cc
  2838. * src/BtHaveAllMessage.cc
  2839. * src/BtHaveMessage.cc
  2840. * src/message.h
  2841. * test/BtBitfieldMessageTest.cc
  2842. * test/BtHaveAllMessageTest.cc
  2843. * test/BtHaveMessageTest.cc
  2844. * test/MockPieceStorage.h
  2845. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2846. Keep CreateRequestCommand in queue when no segment is available so
  2847. that they can pick up pieces which slow BitTorrent peers are
  2848. downloading.
  2849. * src/AbstractCommand.cc
  2850. * src/CreateRequestCommand.cc
  2851. * src/CreateRequestCommand.h
  2852. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2853. --bt-stop-timeout now only checks download speed.
  2854. * src/BtStopDownloadCommand.cc
  2855. * src/BtStopDownloadCommand.h
  2856. * src/BtSetup.cc
  2857. * src/usage_text.h
  2858. * doc/aria2c.1.txt
  2859. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2860. Fixed compile error regarding BUFSIZE.
  2861. * src/DownloadCommand.cc
  2862. * src/DownloadCommand.h
  2863. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Documented tellWaiting xml-rpc method in man page.
  2865. * doc/aria2c.1.txt
  2866. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Bump up version number to 1.5.0
  2868. * configure.ac
  2869. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Removed resolved TODO1.5
  2871. * src/AbstractCommand.cc
  2872. * src/DownloadCommand.cc
  2873. * src/RequestGroup.cc
  2874. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2875. Release pooled and in-flight Request objectsand URIResult objects
  2876. in FileEntry after download completed.
  2877. * src/DownloadContext.cc
  2878. * src/DownloadContext.h
  2879. * src/FileEntry.cc
  2880. * src/FileEntry.h
  2881. * src/RequestGroup.cc
  2882. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2883. Set manual and source attribute in aria2c.1.txt
  2884. * doc/aria2c.1.txt
  2885. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Documented that the default value of --use-head is 'false' in man
  2887. page.
  2888. * doc/aria2c.1.txt
  2889. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2890. Added bt-stop-timeout option to -i list.
  2891. * doc/aria2c.1.txt
  2892. * src/download_helper.cc
  2893. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2894. Fixed typo
  2895. * doc/aria2c.1.txt
  2896. * src/usage_text.h
  2897. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2898. Removed peer-id-prefix option from -i list.
  2899. * doc/aria2c.1.txt
  2900. * src/download_helper.cc
  2901. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2902. Fixed typo
  2903. * doc/aria2c.1.txt
  2904. * src/usage_text.h
  2905. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2906. Documented --bt-stop-timeout option in man page.
  2907. * doc/aria2c.1.txt
  2908. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Updated README regarding multi-file torrent web-seeding.
  2910. * doc/README.txt
  2911. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2912. Updated man page regarding multi-file torrent web-seeding.
  2913. * doc/aria2c.1.txt
  2914. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2915. Updated doc
  2916. * src/version_usage.cc
  2917. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Winsock select() doesn't work if no socket is in FD_SET. To
  2919. overcome this problem, a dummy socket is added to FD_SET and it is
  2920. given to select().
  2921. * src/SelectEventPoll.cc
  2922. * src/SelectEventPoll.h
  2923. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2924. Disabled --use-head option by default because --use-head=true
  2925. causes problems on some web sites.
  2926. * src/OptionHandlerFactory.cc
  2927. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Print URL List in -S option for torrent.
  2929. * src/bittorrent_helper.cc
  2930. * src/bittorrent_helper.h
  2931. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2932. Allocate buffer in ctor of DownloadCommand.
  2933. * src/DownloadCommand.cc
  2934. * src/DownloadCommand.h
  2935. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2936. Removed DiskAdaptor::onDownloadComplete()
  2937. * src/DirectDiskAdaptor.cc
  2938. * src/DirectDiskAdaptor.h
  2939. * src/DiskAdaptor.h
  2940. * src/MultiDiskAdaptor.cc
  2941. * src/MultiDiskAdaptor.h
  2942. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2943. Committed missing BtStopDownloadCommand.{cc,h}
  2944. * src/BtStopDownloadCommand.cc
  2945. * src/BtStopDownloadCommand.h
  2946. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2947. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2948. download if the download speed is 0 and the number of seeder is 0
  2949. in consecutive SEC seconds. By default, this function is disabled.
  2950. * src/BtSetup.cc
  2951. * src/Makefile.am
  2952. * src/OptionHandlerFactory.cc
  2953. * src/prefs.cc
  2954. * src/prefs.h
  2955. * src/usage_text.h
  2956. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2957. Removed the call to DiskAdaptor::onDownloadComplete() from
  2958. BtCheckIntegrityEntry and DefaultPieceStorage.
  2959. * src/BtCheckIntegrityEntry.cc
  2960. * src/DefaultPieceStorage.cc
  2961. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2962. Commented out throw statements when number of piece is 0 to
  2963. download 0 length torrent.
  2964. * src/bittorrent_helper.cc
  2965. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2966. Call RequestGroup::createNextCommandWithAdj() from
  2967. BtFileAllocationEntry if at least one FileEntry has URI. The
  2968. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2969. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2970. * src/BtFileAllocationEntry.cc
  2971. * src/FileEntry.h
  2972. * src/RequestGroup.cc
  2973. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2974. Generate peer ID after SimpleRandomizer is initialized.
  2975. * src/main.cc
  2976. * src/option_processing.cc
  2977. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2978. Removed unused method argument.
  2979. * src/CreateRequestCommand.cc
  2980. * src/RequestGroup.cc
  2981. * src/RequestGroup.h
  2982. * src/RequestGroupMan.cc
  2983. * src/TrackerWatcherCommand.cc
  2984. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2985. Made URI reusing function work.
  2986. * src/CreateRequestCommand.cc
  2987. * src/FileEntry.cc
  2988. * src/FileEntry.h
  2989. * test/FileEntryTest.cc
  2990. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2991. Add formerly fastest PeerStat's sessionDownloadLength to new
  2992. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2993. bytes in a session.
  2994. * src/PeerStat.cc
  2995. * src/SegmentMan.cc
  2996. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2997. If pipelining is enabled, we can always pool socket.
  2998. * src/HttpDownloadCommand.cc
  2999. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3000. In a single file download, file size becomes known just after
  3001. downloading, set total length to FileEntry object when download
  3002. completed.
  3003. * src/DownloadCommand.cc
  3004. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3005. Use std::vector::reserve() for fileEntries and pieceHashes in
  3006. bittorrent_helper
  3007. * src/bittorrent_helper.cc
  3008. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3009. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  3010. Removed hidden option PREF_RESET_URI.
  3011. * src/AbstractCommand.cc
  3012. * src/OptionHandlerFactory.cc
  3013. * src/prefs.cc
  3014. * src/prefs.h
  3015. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3016. Removed unused variable/function.
  3017. * src/PeerStat.h
  3018. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3019. Show first URL in Download Results if file path is not available.
  3020. * src/FileEntry.h
  3021. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3022. Throw exception if file path doesn't exist in FTP URL.
  3023. * src/InitiateConnectionCommandFactory.cc
  3024. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  3026. * src/BitfieldMan.cc
  3027. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3028. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  3029. of PeerStat in SegmentMan. peerStats is used for calculating
  3030. download speed. Therefore all active PeerStats should be in
  3031. there. Another one is _fastestPeerStats and it only contains
  3032. fastest PeerStat for each hostname/protocol pair. They are used
  3033. for updating ServerStat.
  3034. * src/DownloadCommand.cc
  3035. * src/Request.h
  3036. * src/RequestGroupMan.cc
  3037. * src/SegmentMan.cc
  3038. * src/SegmentMan.h
  3039. * test/SegmentManTest.cc
  3040. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3041. Try all available addresses returned by DNS until it gets
  3042. connected in HTTP(S)/FTP download
  3043. * src/AbstractCommand.cc
  3044. * src/AbstractCommand.h
  3045. * src/AbstractProxyRequestCommand.cc
  3046. * src/AbstractProxyRequestCommand.h
  3047. * src/DNSCache.h
  3048. * src/DownloadEngine.cc
  3049. * src/DownloadEngine.h
  3050. * src/FtpInitiateConnectionCommand.cc
  3051. * src/FtpInitiateConnectionCommand.h
  3052. * src/FtpNegotiationCommand.cc
  3053. * src/FtpNegotiationCommand.h
  3054. * src/HttpInitiateConnectionCommand.cc
  3055. * src/HttpInitiateConnectionCommand.h
  3056. * src/HttpRequestCommand.cc
  3057. * src/HttpRequestCommand.h
  3058. * src/InitiateConnectionCommand.cc
  3059. * src/InitiateConnectionCommand.h
  3060. * test/DNSCacheTest.cc
  3061. * test/Makefile.am
  3062. * test/SimpleDNSCacheTest.cc
  3063. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3064. Updated doc
  3065. * src/download_helper.cc
  3066. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3067. Refactored fieldMan ctor.
  3068. * src/BitfieldMan.cc
  3069. * src/BitfieldMan.h
  3070. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3071. Don't print "No files to download." message if -S is given.
  3072. * src/main.cc
  3073. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3074. Set referer and method to newly created Request object.
  3075. * src/CreateRequestCommand.cc
  3076. * src/FileEntry.cc
  3077. * src/FileEntry.h
  3078. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3079. Removed ctor of AbstractCommand which doesn't take FileEntry.
  3080. * src/AbstractCommand.cc
  3081. * src/AbstractCommand.h
  3082. * src/CreateRequestCommand.cc
  3083. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3084. Get proxy download working
  3085. * src/AbstractProxyRequestCommand.cc
  3086. * src/AbstractProxyRequestCommand.h
  3087. * src/AbstractProxyResponseCommand.cc
  3088. * src/AbstractProxyResponseCommand.h
  3089. * src/FtpInitiateConnectionCommand.cc
  3090. * src/FtpTunnelRequestCommand.cc
  3091. * src/FtpTunnelRequestCommand.h
  3092. * src/FtpTunnelResponseCommand.cc
  3093. * src/FtpTunnelResponseCommand.h
  3094. * src/HttpInitiateConnectionCommand.cc
  3095. * src/HttpProxyRequestCommand.cc
  3096. * src/HttpProxyRequestCommand.h
  3097. * src/HttpProxyResponseCommand.cc
  3098. * src/HttpProxyResponseCommand.h
  3099. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3100. Use SegmentMan::getSegment(cuid) for single file download.
  3101. * src/AbstractCommand.cc
  3102. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3103. Fixed bufSize calculation
  3104. * src/DownloadCommand.cc
  3105. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3106. Don't append "/" if base URI ends with "/".
  3107. * src/bittorrent_helper.cc
  3108. * test/url-list-multiFile.torrent
  3109. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3110. HTTP pipelining is now working. Fixed Segmention fault in
  3111. BitfieldMan's copy ctor.
  3112. * src/AbstractCommand.cc
  3113. * src/BitfieldMan.cc
  3114. * src/BitfieldMan.h
  3115. * src/DownloadCommand.cc
  3116. * src/HttpDownloadCommand.cc
  3117. * src/HttpRequest.cc
  3118. * src/SegmentMan.cc
  3119. * src/SegmentMan.h
  3120. * test/BitfieldManTest.cc
  3121. * test/SegmentManTest.cc
  3122. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3123. Removed ServerHost. Same functionality is implemented using
  3124. FileEntry's in-flight Request objects.
  3125. * src/AbstractCommand.cc
  3126. * src/BtDependency.cc
  3127. * src/CreateRequestCommand.cc
  3128. * src/FileEntry.cc
  3129. * src/FileEntry.h
  3130. * src/FtpNegotiationCommand.cc
  3131. * src/HttpResponseCommand.cc
  3132. * src/Makefile.am
  3133. * src/Metalink2RequestGroup.cc
  3134. * src/RequestGroup.cc
  3135. * src/RequestGroup.h
  3136. * src/ServerHost.cc: Removed
  3137. * src/ServerHost.h: Removed
  3138. * test/BtDependencyTest.cc
  3139. * test/FileEntryTest.cc
  3140. * test/RequestGroupTest.cc
  3141. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3142. Rewritten PeerStat handling. In the previous implementation,
  3143. faster command tries to find slower command. In this new
  3144. implementation, slower command tries to find faster command.
  3145. PeerStat is now created in each HTTP/FTP request to get download
  3146. rate correctly. If the download range is small, the download rate
  3147. tends to small and this will occur at the later stage of download.
  3148. * src/AbstractCommand.cc
  3149. * src/DownloadCommand.cc
  3150. * src/FileEntry.cc
  3151. * src/FileEntry.h
  3152. * src/Request.cc
  3153. * src/Request.h
  3154. * src/RequestGroup.h
  3155. * src/RequestGroupMan.cc
  3156. * src/SegmentMan.cc
  3157. * src/SegmentMan.h
  3158. * test/SegmentManTest.cc
  3159. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. Removed _uris from RequestGroup. All functions that refer to _uris
  3161. were moved to FileEntry. Exit status code are now defined in
  3162. DownloadResultCode.h.
  3163. * src/AbstractCommand.cc
  3164. * src/AdaptiveURISelector.cc
  3165. * src/AdaptiveURISelector.h
  3166. * src/AutoSaveCommand.cc
  3167. * src/BtPostDownloadHandler.cc
  3168. * src/CheckIntegrityDispatcherCommand.cc
  3169. * src/CookieStorage.cc
  3170. * src/DHTAutoSaveCommand.cc
  3171. * src/DHTBucketRefreshCommand.cc
  3172. * src/DHTEntryPointNameResolveCommand.cc
  3173. * src/DHTInteractionCommand.cc
  3174. * src/DHTPeerAnnounceCommand.cc
  3175. * src/DHTTokenUpdateCommand.cc
  3176. * src/DlAbortEx.h
  3177. * src/DlRetryEx.h
  3178. * src/DownloadCommand.cc
  3179. * src/DownloadContext.h
  3180. * src/DownloadFailureException.h
  3181. * src/DownloadResult.h
  3182. * src/DownloadResultCode.h
  3183. * src/FeedbackURISelector.cc
  3184. * src/FeedbackURISelector.h
  3185. * src/FileEntry.cc
  3186. * src/FileEntry.h
  3187. * src/FtpNegotiationCommand.cc
  3188. * src/HttpListenCommand.cc
  3189. * src/HttpResponseCommand.cc
  3190. * src/HttpServerResponseCommand.cc
  3191. * src/HttpSkipResponseCommand.cc
  3192. * src/InOrderURISelector.cc
  3193. * src/InOrderURISelector.h
  3194. * src/Makefile.am
  3195. * src/Makefile.in
  3196. * src/Metalink2RequestGroup.cc
  3197. * src/MultiUrlRequestInfo.cc
  3198. * src/MultiUrlRequestInfo.h
  3199. * src/OptionHandlerFactory.cc
  3200. * src/PeerListenCommand.cc
  3201. * src/RecoverableException.h
  3202. * src/RequestGroup.cc
  3203. * src/RequestGroup.h
  3204. * src/RequestGroupMan.cc
  3205. * src/RequestGroupMan.h
  3206. * src/TimedHaltCommand.cc
  3207. * src/TrackerWatcherCommand.cc
  3208. * src/URIResult.cc
  3209. * src/URIResult.h
  3210. * src/URISelector.h
  3211. * src/XmlRpcMethodImpl.cc
  3212. * src/bittorrent_helper.cc
  3213. * src/bittorrent_helper.h
  3214. * src/download_helper.cc
  3215. * src/main.cc
  3216. * src/option_processing.cc
  3217. * test/BtDependencyTest.cc
  3218. * test/BtPostDownloadHandlerTest.cc
  3219. * test/CookieStorageTest.cc
  3220. * test/DefaultBtMessageDispatcherTest.cc
  3221. * test/DownloadHandlerFactoryTest.cc
  3222. * test/DownloadHelperTest.cc
  3223. * test/FeedbackURISelectorTest.cc
  3224. * test/FileEntryTest.cc
  3225. * test/InOrderURISelectorTest.cc
  3226. * test/Metalink2RequestGroupTest.cc
  3227. * test/MetalinkPostDownloadHandlerTest.cc
  3228. * test/RequestGroupManTest.cc
  3229. * test/RequestGroupTest.cc
  3230. * test/XmlRpcMethodTest.cc
  3231. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Removed MockBtContext.h
  3233. * test/Makefile.am
  3234. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3235. Removed _currentRequest from StreamCheckIntegrityEntry and
  3236. StreamFileAllocationEntry.
  3237. * src/AbstractCommand.cc
  3238. * src/HttpResponseCommand.cc
  3239. * src/RequestGroup.cc
  3240. * src/StreamCheckIntegrityEntry.cc
  3241. * src/StreamCheckIntegrityEntry.h
  3242. * src/StreamFileAllocationEntry.cc
  3243. * src/StreamFileAllocationEntry.h
  3244. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Rewritten DownloadContext and removed SingleFileDownloadContext
  3246. and BtContext and its derived classes. BitTorrent specific
  3247. attributes are now set by DownloadContext::setAttribute() with key
  3248. bittorrent::BITTORRENT.
  3249. * src/AbstractBtMessage.cc
  3250. * src/AbstractBtMessage.h
  3251. * src/AbstractCommand.cc
  3252. * src/AbstractCommand.h
  3253. * src/AbstractProxyRequestCommand.cc
  3254. * src/AbstractProxyResponseCommand.cc
  3255. * src/ActivePeerConnectionCommand.cc
  3256. * src/ActivePeerConnectionCommand.h
  3257. * src/AnnounceList.cc
  3258. * src/BtCheckIntegrityEntry.cc
  3259. * src/BtConstants.h
  3260. * src/BtContext.h: Removed
  3261. * src/BtDependency.cc
  3262. * src/BtExtendedMessage.cc
  3263. * src/BtPieceMessage.cc
  3264. * src/BtPieceMessage.h
  3265. * src/BtPostDownloadHandler.cc
  3266. * src/BtRegistry.cc
  3267. * src/BtRegistry.h
  3268. * src/BtSetup.cc
  3269. * src/CheckIntegrityCommand.cc
  3270. * src/CheckIntegrityEntry.cc
  3271. * src/ChecksumCheckIntegrityEntry.cc
  3272. * src/ConsoleStatCalc.cc
  3273. * src/ContentTypeRequestGroupCriteria.cc
  3274. * src/DHTGetPeersCommand.cc
  3275. * src/DHTGetPeersCommand.h
  3276. * src/DHTPeerLookupTask.cc
  3277. * src/DHTPeerLookupTask.h
  3278. * src/DHTTaskFactory.h
  3279. * src/DHTTaskFactoryImpl.cc
  3280. * src/DHTTaskFactoryImpl.h
  3281. * src/DefaultBtAnnounce.cc
  3282. * src/DefaultBtAnnounce.h
  3283. * src/DefaultBtContext.cc: Removed
  3284. * src/DefaultBtContext.h: Removed
  3285. * src/DefaultBtInteractive.cc
  3286. * src/DefaultBtInteractive.h
  3287. * src/DefaultBtMessageDispatcher.cc
  3288. * src/DefaultBtMessageDispatcher.h
  3289. * src/DefaultBtMessageFactory.cc
  3290. * src/DefaultBtMessageFactory.h
  3291. * src/DefaultBtMessageReceiver.cc
  3292. * src/DefaultBtMessageReceiver.h
  3293. * src/DefaultBtProgressInfoFile.cc
  3294. * src/DefaultBtRequestFactory.cc
  3295. * src/DefaultBtRequestFactory.h
  3296. * src/DefaultExtensionMessageFactory.cc
  3297. * src/DefaultExtensionMessageFactory.h
  3298. * src/DefaultPeerStorage.cc
  3299. * src/DefaultPeerStorage.h
  3300. * src/DefaultPieceStorage.cc
  3301. * src/DefaultSegmentManFactory.cc
  3302. * src/DiskAdaptor.cc
  3303. * src/DiskAdaptor.h
  3304. * src/DownloadContext.cc
  3305. * src/DownloadContext.h
  3306. * src/DownloadEngine.cc
  3307. * src/DownloadEngineFactory.cc
  3308. * src/DownloadHandler.cc
  3309. * src/DownloadResult.h
  3310. * src/FileAllocationCommand.cc
  3311. * src/FileAllocationDispatcherCommand.cc
  3312. * src/FileAllocationEntry.cc
  3313. * src/FileEntry.h
  3314. * src/FillRequestGroupCommand.cc
  3315. * src/FtpDownloadCommand.cc
  3316. * src/FtpFinishDownloadCommand.cc
  3317. * src/FtpInitiateConnectionCommand.cc
  3318. * src/FtpNegotiationCommand.cc
  3319. * src/FtpTunnelRequestCommand.cc
  3320. * src/FtpTunnelResponseCommand.cc
  3321. * src/HandshakeExtensionMessage.cc
  3322. * src/HandshakeExtensionMessage.h
  3323. * src/HaveEraseCommand.cc
  3324. * src/HttpDownloadCommand.cc
  3325. * src/HttpInitiateConnectionCommand.cc
  3326. * src/HttpProxyRequestCommand.cc
  3327. * src/HttpProxyResponseCommand.cc
  3328. * src/HttpRequest.cc
  3329. * src/HttpRequest.h
  3330. * src/HttpRequestCommand.cc
  3331. * src/HttpResponseCommand.cc
  3332. * src/HttpServerBodyCommand.cc
  3333. * src/HttpServerCommand.cc
  3334. * src/HttpSkipResponseCommand.cc
  3335. * src/InitiateConnectionCommandFactory.cc
  3336. * src/InitiatorMSEHandshakeCommand.cc
  3337. * src/InitiatorMSEHandshakeCommand.h
  3338. * src/IteratableChecksumValidator.cc
  3339. * src/IteratableChecksumValidator.h
  3340. * src/IteratableChunkChecksumValidator.cc
  3341. * src/MSEHandshake.cc
  3342. * src/MSEHandshake.h
  3343. * src/Makefile.am
  3344. * src/Makefile.in
  3345. * src/Metalink2RequestGroup.cc
  3346. * src/MetalinkPostDownloadHandler.cc
  3347. * src/MultiDiskAdaptor.cc
  3348. * src/MultiDiskAdaptor.h
  3349. * src/MultiFileAllocationIterator.cc
  3350. * src/MultiUrlRequestInfo.cc
  3351. * src/PeerChokeCommand.cc
  3352. * src/PeerChokeCommand.h
  3353. * src/PeerInitiateConnectionCommand.cc
  3354. * src/PeerInitiateConnectionCommand.h
  3355. * src/PeerInteractionCommand.cc
  3356. * src/PeerInteractionCommand.h
  3357. * src/PeerReceiveHandshakeCommand.cc
  3358. * src/PieceHashCheckIntegrityEntry.cc
  3359. * src/RealtimeCommand.cc
  3360. * src/ReceiverMSEHandshakeCommand.cc
  3361. * src/RequestGroup.cc
  3362. * src/RequestGroup.h
  3363. * src/RequestGroupEntry.cc
  3364. * src/RequestGroupMan.cc
  3365. * src/SeedCheckCommand.cc
  3366. * src/SeedCheckCommand.h
  3367. * src/SegmentMan.cc
  3368. * src/ShareRatioSeedCriteria.h
  3369. * src/SingleFileDownloadContext.cc: Removed
  3370. * src/SingleFileDownloadContext.h: Removed
  3371. * src/SleepCommand.cc
  3372. * src/StreamCheckIntegrityEntry.cc
  3373. * src/TrackerWatcherCommand.cc
  3374. * src/TrackerWatcherCommand.h
  3375. * src/UnknownLengthPieceStorage.cc
  3376. * src/Util.cc
  3377. * src/Util.h
  3378. * src/XmlRpcMethodImpl.cc
  3379. * src/bittorrent_helper.cc
  3380. * src/bittorrent_helper.h
  3381. * src/download_helper.cc
  3382. * src/main.cc
  3383. * src/option_processing.cc
  3384. * test/BitfieldManTest.cc
  3385. * test/BittorrentHelperTest.cc
  3386. * test/BtCancelMessageTest.cc
  3387. * test/BtChokeMessageTest.cc
  3388. * test/BtDependencyTest.cc
  3389. * test/BtPieceMessageTest.cc
  3390. * test/BtPostDownloadHandlerTest.cc
  3391. * test/BtRegistryTest.cc
  3392. * test/BtRejectMessageTest.cc
  3393. * test/BtRequestMessageTest.cc
  3394. * test/DHTPeerAnnounceStorageTest.cc
  3395. * test/DefaultBtAnnounceTest.cc
  3396. * test/DefaultBtContextTest.cc: Removed
  3397. * test/DefaultBtMessageDispatcherTest.cc
  3398. * test/DefaultBtMessageFactoryTest.cc
  3399. * test/DefaultBtProgressInfoFileTest.cc
  3400. * test/DefaultBtRequestFactoryTest.cc
  3401. * test/DefaultExtensionMessageFactoryTest.cc
  3402. * test/DefaultPeerStorageTest.cc
  3403. * test/DefaultPieceStorageTest.cc
  3404. * test/DirectDiskAdaptorTest.cc
  3405. * test/DownloadContextTest.cc
  3406. * test/DownloadHandlerFactoryTest.cc
  3407. * test/DownloadHelperTest.cc
  3408. * test/HandshakeExtensionMessageTest.cc
  3409. * test/HttpRequestTest.cc
  3410. * test/HttpResponseTest.cc
  3411. * test/IteratableChecksumValidatorTest.cc
  3412. * test/IteratableChunkChecksumValidatorTest.cc
  3413. * test/MSEHandshakeTest.cc
  3414. * test/Makefile.am
  3415. * test/Makefile.in
  3416. * test/Metalink2RequestGroupTest.cc
  3417. * test/MetalinkPostDownloadHandlerTest.cc
  3418. * test/MockBtContext.h: Removed
  3419. * test/MockDHTTaskFactory.h
  3420. * test/MockDownloadContext.h: Removed
  3421. * test/MockPieceStorage.h
  3422. * test/MultiDiskAdaptorTest.cc
  3423. * test/MultiFileAllocationIteratorTest.cc
  3424. * test/RequestGroupManTest.cc
  3425. * test/RequestGroupTest.cc
  3426. * test/SegmentManTest.cc
  3427. * test/ShareRatioSeedCriteriaTest.cc
  3428. * test/SingleFileDownloadContextTest.cc: Removed
  3429. * test/UtilTest.cc
  3430. * test/XmlRpcMethodTest.cc
  3431. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3432. Added experimental support of WEB-Seeding for multi-file torrent.
  3433. Due to fundamental changes in file handling in HTTP/FTP code, many
  3434. functions are not working: PeerStat, ServerHost, proxy..etc
  3435. * src/AbstractCommand.cc
  3436. * src/AbstractCommand.h
  3437. * src/BitfieldMan.cc
  3438. * src/BitfieldMan.h
  3439. * src/CreateRequestCommand.cc
  3440. * src/CreateRequestCommand.h
  3441. * src/DefaultPieceStorage.cc
  3442. * src/DefaultPieceStorage.h
  3443. * src/DownloadCommand.cc
  3444. * src/DownloadCommand.h
  3445. * src/DownloadContext.cc
  3446. * src/DownloadContext.h
  3447. * src/FileEntry.cc
  3448. * src/FileEntry.h
  3449. * src/FtpDownloadCommand.cc
  3450. * src/FtpDownloadCommand.h
  3451. * src/FtpFinishDownloadCommand.cc
  3452. * src/FtpFinishDownloadCommand.h
  3453. * src/FtpInitiateConnectionCommand.cc
  3454. * src/FtpInitiateConnectionCommand.h
  3455. * src/FtpNegotiationCommand.cc
  3456. * src/FtpNegotiationCommand.h
  3457. * src/FtpTunnelResponseCommand.cc
  3458. * src/HttpDownloadCommand.cc
  3459. * src/HttpDownloadCommand.h
  3460. * src/HttpInitiateConnectionCommand.cc
  3461. * src/HttpInitiateConnectionCommand.h
  3462. * src/HttpProxyResponseCommand.cc
  3463. * src/HttpRequest.cc
  3464. * src/HttpRequest.h
  3465. * src/HttpRequestCommand.cc
  3466. * src/HttpRequestCommand.h
  3467. * src/HttpResponseCommand.cc
  3468. * src/HttpResponseCommand.h
  3469. * src/HttpSkipResponseCommand.cc
  3470. * src/HttpSkipResponseCommand.h
  3471. * src/InitiateConnectionCommand.cc
  3472. * src/InitiateConnectionCommand.h
  3473. * src/InitiateConnectionCommandFactory.cc
  3474. * src/InitiateConnectionCommandFactory.h
  3475. * src/Makefile.am
  3476. * src/PieceStorage.h
  3477. * src/RequestGroup.cc
  3478. * src/RequestGroup.h
  3479. * src/RequestGroupMan.cc
  3480. * src/SegmentMan.cc
  3481. * src/SegmentMan.h
  3482. * src/SingleFileDownloadContext.h
  3483. * src/StreamFileAllocationEntry.cc
  3484. * src/TrackerWatcherCommand.cc
  3485. * src/UnknownLengthPieceStorage.cc
  3486. * src/UnknownLengthPieceStorage.h
  3487. * src/array_fun.h
  3488. * src/bitfield.h
  3489. * src/download_helper.cc
  3490. * test/DownloadContextTest.cc
  3491. * test/Makefile.am
  3492. * test/MockDownloadContext.h
  3493. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Added tellWaiting XML-RPC method.
  3495. * src/SingleFileDownloadContext.cc
  3496. * src/XmlRpcMethodFactory.cc
  3497. * src/XmlRpcMethodImpl.cc
  3498. * src/XmlRpcMethodImpl.h
  3499. * test/XmlRpcMethodTest.cc
  3500. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3501. Updated CookieStorageTest
  3502. * test/CookieStorageTest.cc
  3503. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3504. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3505. handle excepion inside these functions.
  3506. * src/LibgnutlsTLSContext.cc
  3507. * src/LibgnutlsTLSContext.h
  3508. * src/LibsslTLSContext.cc
  3509. * src/LibsslTLSContext.h
  3510. * src/MultiUrlRequestInfo.cc
  3511. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3512. Added comment
  3513. * src/RequestGroup.cc
  3514. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3515. In CookieStorage::load() and saveNsFormat(), handle exception
  3516. inside the functions. When saving Cookies, first write temporary
  3517. file and after successful writes, then renames it to final
  3518. destination.
  3519. * src/CookieStorage.cc
  3520. * src/CookieStorage.h
  3521. * src/MultiUrlRequestInfo.cc
  3522. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3523. The default value of --dir option is the absolute path to the
  3524. current directory. If getcwd() is failed, then it is ".", which is
  3525. the same value with old implementation. This change is necessary
  3526. because after daemon() call, the current working directory is
  3527. changed to /.
  3528. * src/File.cc
  3529. * src/File.h
  3530. * src/OptionHandlerFactory.cc
  3531. * src/option_processing.cc
  3532. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3533. Call daemon() with arguments(0,0), which means daemon() changes
  3534. current working directory to / and redirects stdin, stdout and
  3535. stderr to /dev/null.
  3536. * src/option_processing.cc
  3537. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3538. Small performance optimizations.
  3539. * src/RequestGroupMan.cc
  3540. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3541. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3542. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3543. * src/RequestGroupMan.cc
  3544. * src/RequestGroupMan.h
  3545. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3546. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3547. setNoWiat(true) if newly created command calls
  3548. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3549. * src/HttpListenCommand.cc
  3550. * src/HttpServerBodyCommand.cc
  3551. * src/HttpServerCommand.cc
  3552. * src/HttpServerResponseCommand.cc
  3553. * src/InitiateConnectionCommand.cc
  3554. * src/RequestGroup.cc
  3555. * src/StreamFileAllocationEntry.cc
  3556. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3557. Removed include vector
  3558. * src/BtRegistry.h
  3559. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3560. Rewritten BtRegistry
  3561. * src/BtRegistry.cc
  3562. * src/BtRegistry.h
  3563. * src/BtSetup.cc
  3564. * src/ConsoleStatCalc.cc
  3565. * src/PeerInteractionCommand.cc
  3566. * src/PeerReceiveHandshakeCommand.cc
  3567. * src/ReceiverMSEHandshakeCommand.cc
  3568. * src/RequestGroup.cc
  3569. * src/XmlRpcMethodImpl.cc
  3570. * test/BtRegistryTest.cc
  3571. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3572. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3573. * src/DefaultBtProgressInfoFile.cc
  3574. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3575. Throw an exception if position is less than 0.
  3576. * src/XmlRpcMethodImpl.cc
  3577. * test/XmlRpcMethodTest.cc
  3578. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3579. Use writeFilePath() in ConsoleStatCalc.cc
  3580. * src/ConsoleStatCalc.cc
  3581. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3582. Receive the return value as const reference from
  3583. DownloadContext::getFileEntries().
  3584. * src/DefaultPieceStorage.cc
  3585. * src/RequestGroupMan.cc
  3586. * src/XmlRpcMethodImpl.cc
  3587. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3588. DownloadContext now has _fileEntries so that
  3589. DownloadContext::getFileEntries() can returns its const reference.
  3590. * src/DefaultBtContext.cc
  3591. * src/DefaultBtContext.h
  3592. * src/DownloadContext.cc
  3593. * src/DownloadContext.h
  3594. * src/SingleFileDownloadContext.cc
  3595. * src/SingleFileDownloadContext.h
  3596. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3597. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3598. writeFilePath() function template from RequestGroupMan.cc to
  3599. FileEntry.h
  3600. * src/FileEntry.h
  3601. * src/RequestGroupMan.cc
  3602. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3603. Documented 'position' parameter is starting from 0 in man page.
  3604. * doc/aria2c.1.txt
  3605. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3606. Updated doc.
  3607. * src/MSEHandshake.cc
  3608. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3609. Removed _acceptFeatures and its accessor functions from
  3610. RequestGroup since they are not used practically.
  3611. * src/HttpRequestCommand.cc
  3612. * src/RequestGroup.cc
  3613. * src/RequestGroup.h
  3614. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3615. Removed member _maxTries from RequestGroup class to avoid
  3616. duplicate option value. Those classes who refer this variable
  3617. should use option value of PREF_MAX_TRIES directly.
  3618. * src/AbstractCommand.cc
  3619. * src/RequestGroup.cc
  3620. * src/RequestGroup.h
  3621. * src/TrackerWatcherCommand.cc
  3622. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3623. * Release 1.4.1
  3624. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3625. Fixed compiler warnings on netbsd
  3626. * src/DHTConnectionImpl.cc
  3627. * src/PeerListenCommand.cc
  3628. * src/PeerSessionResource.cc
  3629. * src/SegmentMan.cc
  3630. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3631. Updated Ukrainian translation. Thanks to all translators.
  3632. * po/uk.po
  3633. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3634. Bump up version number to 1.4.1.
  3635. * configure.ac
  3636. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3637. Added unit tests for strjoin, strconcat and strappend.
  3638. * test/a2functionalTest.cc
  3639. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3640. Rewritten strconcat and strappend using operator+ instead of
  3641. append().
  3642. * src/a2functional.h
  3643. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3644. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3645. is enabled.
  3646. * src/Makefile.am
  3647. * test/Makefile.am
  3648. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3649. Added countSeeder() function which counts seeder in the given
  3650. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3651. * src/ConsoleStatCalc.cc
  3652. * src/Peer.h
  3653. * src/XmlRpcMethodImpl.cc
  3654. * test/PeerTest.cc
  3655. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3656. Documented missing seeder in getPeers xml-rpc method.
  3657. Documented uploadLength and numSeeders.
  3658. * doc/aria2c.1.txt
  3659. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3660. Added uploadLength and numSeeders to the response of tellStatus
  3661. xml-rpc method. Assert that PeerStorage instance is not null
  3662. instead of checking if statement. It should be non-null in this
  3663. context.
  3664. * src/XmlRpcMethodImpl.cc
  3665. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3666. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3667. * src/XmlRpcResponse.cc
  3668. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3669. Avoid intermediate object during string concatenation.
  3670. * src/HttpRequest.cc
  3671. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3672. Added strjoin function template. Use it in pathJoin()
  3673. * src/Util.h
  3674. * src/a2functional.h
  3675. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3676. Avoid intermediate object during string concatenation. Replaced
  3677. post-increment unary operator with pre-increment one in for loop.
  3678. * src/AdaptiveURISelector.cc
  3679. * src/AnnounceList.cc
  3680. * src/AuthConfig.h
  3681. * src/BtBitfieldMessage.cc
  3682. * src/BtExtendedMessage.cc
  3683. * src/BtHandshakeMessage.cc
  3684. * src/BtPieceMessage.cc
  3685. * src/BtPortMessage.cc
  3686. * src/Cookie.cc
  3687. * src/DHTAnnouncePeerMessage.cc
  3688. * src/DHTAutoSaveCommand.cc
  3689. * src/DHTGetPeersReplyMessage.cc
  3690. * src/DHTNode.cc
  3691. * src/DHTQueryMessage.cc
  3692. * src/DHTResponseMessage.cc
  3693. * src/DHTUnknownMessage.cc
  3694. * src/DefaultBtAnnounce.cc
  3695. * src/DefaultBtContext.cc
  3696. * src/DefaultBtInteractive.cc
  3697. * src/DefaultBtProgressInfoFile.cc
  3698. * src/DefaultPeerStorage.cc
  3699. * src/DownloadEngine.cc
  3700. * src/FeatureConfig.cc
  3701. * src/File.cc
  3702. * src/FtpConnection.cc
  3703. * src/FtpNegotiationCommand.cc
  3704. * src/HandshakeExtensionMessage.cc
  3705. * src/HttpConnection.cc
  3706. * src/HttpRequest.cc
  3707. * src/HttpResponseCommand.cc
  3708. * src/HttpServer.cc
  3709. * src/IndexBtMessage.cc
  3710. * src/Metalink2RequestGroup.cc
  3711. * src/OptionHandlerImpl.h
  3712. * src/PStringBuildVisitor.cc
  3713. * src/Peer.cc
  3714. * src/PeerListenCommand.cc
  3715. * src/Piece.cc
  3716. * src/RangeBtMessage.cc
  3717. * src/Request.cc
  3718. * src/Request.h
  3719. * src/RequestGroup.cc
  3720. * src/RequestGroupMan.cc
  3721. * src/ServerStat.cc
  3722. * src/ServerStatMan.cc
  3723. * src/UTPexExtensionMessage.cc
  3724. * src/Util.cc
  3725. * src/a2functional.h
  3726. * src/download_helper.cc
  3727. * src/messageDigest.cc
  3728. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3729. Unchoke a peer randomly at first and second choke round in seed
  3730. state.
  3731. * src/BtSeederStateChoke.cc
  3732. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3733. Added (sock_t) to quiet compiler warnings in MinGW
  3734. * src/SocketCore.cc
  3735. * src/SocketCore.h
  3736. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3737. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3738. * src/EpollEventPoll.h
  3739. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3740. Added fork() emulation using CreateProcess() in MinGW
  3741. * src/RequestGroupMan.cc
  3742. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3743. * Release 1.4.0
  3744. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3745. Added utf8.torrent to EXTRA_DIST
  3746. * test/Makefile.am
  3747. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3748. Fixed docs of aria2.addMetalink xml-rpc method.
  3749. * doc/aria2c.1.txt
  3750. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3751. Added Slovak translation. Updated Ukrainian and Brazilian
  3752. Portuguese translation. Thanks to all translators.
  3753. * po/sk.po
  3754. * po/uk.po
  3755. * po/pt_BR.po
  3756. * po/LINGUAS
  3757. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3758. Added test case for XmlRpcProcessor to fail to parse malformed
  3759. document.
  3760. * test/XmlRpcRequestProcessorTest.cc
  3761. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3762. Removed *.gmo files in po because they are generated on 'make
  3763. dist'
  3764. * po/*.gmo
  3765. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3766. Documented max-concurrent-downloads of changeGlobalOption method
  3767. in man page.
  3768. * doc/aria2c.1.txt
  3769. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3770. Added max-concurrent-downloads option to changeGlobalOption
  3771. xml-rpc method. Rewritten loop conditional in
  3772. RequestGroupMan::fillRequestGroupFromReserver().
  3773. * src/RequestGroupMan.cc
  3774. * src/RequestGroupMan.h
  3775. * src/XmlRpcMethod.cc
  3776. * src/XmlRpcMethodImpl.cc
  3777. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3778. Documented position parameter in man page.
  3779. * doc/aria2c.1.txt
  3780. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3781. Added 'position' parameter to addUri, addTorrent and addMetalink
  3782. xml-rpc method.
  3783. * src/RequestGroupMan.cc
  3784. * src/RequestGroupMan.h
  3785. * src/XmlRpcMethodImpl.cc
  3786. * test/XmlRpcMethodTest.cc
  3787. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3788. Removed Peer.cc from compile source list when --disable-bittorrent
  3789. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3790. takes Peer.
  3791. * src/DefaultPieceStorage.cc
  3792. * src/DefaultPieceStorage.h
  3793. * src/Makefile.am
  3794. * src/PieceStorage.h
  3795. * src/UnknownLengthPieceStorage.cc
  3796. * src/UnknownLengthPieceStorage.h
  3797. * test/MockPieceStorage.h
  3798. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3799. Implemented getter methods in header files to give them more
  3800. chance of optimization.
  3801. Return const reference for SharadHandle if possible.
  3802. * src/AbstractAuthResolver.cc
  3803. * src/AbstractAuthResolver.h
  3804. * src/AbstractBtMessage.cc
  3805. * src/AbstractBtMessage.h
  3806. * src/AbstractSingleDiskAdaptor.cc
  3807. * src/AbstractSingleDiskAdaptor.h
  3808. * src/AsyncNameResolver.cc
  3809. * src/AsyncNameResolver.h
  3810. * src/BNode.cc
  3811. * src/BNode.h
  3812. * src/BitfieldMan.cc
  3813. * src/BitfieldMan.h
  3814. * src/BtAbortOutstandingRequestEvent.h
  3815. * src/BtExtendedMessage.cc
  3816. * src/BtExtendedMessage.h
  3817. * src/BtSeederStateChoke.cc
  3818. * src/BtSeederStateChoke.h
  3819. * src/Cookie.cc
  3820. * src/Cookie.h
  3821. * src/DHTBucket.cc
  3822. * src/DHTBucket.h
  3823. * src/DHTConnectionImpl.cc
  3824. * src/DHTConnectionImpl.h
  3825. * src/DHTFindNodeReplyMessage.cc
  3826. * src/DHTFindNodeReplyMessage.h
  3827. * src/DHTGetPeersReplyMessage.cc
  3828. * src/DHTGetPeersReplyMessage.h
  3829. * src/DHTInteractionCommand.cc
  3830. * src/DHTMessage.cc
  3831. * src/DHTMessage.h
  3832. * src/DHTMessageDispatcherImpl.cc
  3833. * src/DHTMessageEntry.cc
  3834. * src/DHTMessageReceiver.cc
  3835. * src/DHTMessageReceiver.h
  3836. * src/DHTMessageTrackerEntry.cc
  3837. * src/DHTMessageTrackerEntry.h
  3838. * src/DHTPeerAnnounceEntry.cc
  3839. * src/DHTPeerAnnounceEntry.h
  3840. * src/DHTPeerLookupTask.cc
  3841. * src/DHTPeerLookupTask.h
  3842. * src/DHTRoutingTableDeserializer.cc
  3843. * src/DHTRoutingTableDeserializer.h
  3844. * src/DefaultBtAnnounce.cc
  3845. * src/DefaultBtAnnounce.h
  3846. * src/DefaultBtMessageDispatcher.cc
  3847. * src/DefaultBtMessageDispatcher.h
  3848. * src/DefaultBtRequestFactory.cc
  3849. * src/DefaultBtRequestFactory.h
  3850. * src/DiskAdaptor.cc
  3851. * src/DiskAdaptor.h
  3852. * src/DownloadContext.cc
  3853. * src/DownloadContext.h
  3854. * src/DownloadEngine.cc
  3855. * src/DownloadEngine.h
  3856. * src/EpollEventPoll.cc
  3857. * src/EpollEventPoll.h
  3858. * src/FtpConnection.cc
  3859. * src/FtpConnection.h
  3860. * src/HttpConnection.cc
  3861. * src/HttpConnection.h
  3862. * src/HttpHeader.cc
  3863. * src/HttpHeader.h
  3864. * src/HttpRequest.cc
  3865. * src/HttpRequest.h
  3866. * src/HttpResponse.cc
  3867. * src/HttpResponse.h
  3868. * src/LibsslTLSContext.cc
  3869. * src/LibsslTLSContext.h
  3870. * src/MSEHandshake.cc
  3871. * src/MSEHandshake.h
  3872. * src/MetalinkEntry.cc
  3873. * src/MetalinkEntry.h
  3874. * src/MetalinkParserController.cc
  3875. * src/MetalinkParserController.h
  3876. * src/MetalinkParserStateMachine.cc
  3877. * src/MetalinkParserStateMachine.h
  3878. * src/MultiDiskAdaptor.cc
  3879. * src/MultiDiskAdaptor.h
  3880. * src/NetrcAuthResolver.cc
  3881. * src/NetrcAuthResolver.h
  3882. * src/Peer.cc
  3883. * src/Peer.h
  3884. * src/PeerSessionResource.cc
  3885. * src/PeerSessionResource.h
  3886. * src/Piece.cc
  3887. * src/Piece.h
  3888. * src/PieceStatMan.cc
  3889. * src/PieceStatMan.h
  3890. * src/Request.cc
  3891. * src/Request.h
  3892. * src/RequestGroup.cc
  3893. * src/RequestGroup.h
  3894. * src/RequestGroupMan.cc
  3895. * src/RequestGroupMan.h
  3896. * src/RequestSlot.cc
  3897. * src/RequestSlot.h
  3898. * src/SegmentMan.cc
  3899. * src/SegmentMan.h
  3900. * src/SelectEventPoll.cc
  3901. * src/SelectEventPoll.h
  3902. * src/ServerStat.cc
  3903. * src/ServerStat.h
  3904. * src/Signature.cc
  3905. * src/Signature.h
  3906. * src/URIResult.cc
  3907. * src/URIResult.h
  3908. * src/UTPexExtensionMessage.cc
  3909. * src/UTPexExtensionMessage.h
  3910. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3911. Fixed compile error without BitTorrent and Metalink support.
  3912. * src/XmlRpcMethod.cc
  3913. * src/XmlRpcMethodFactory.cc
  3914. * src/XmlRpcMethodImpl.cc
  3915. * src/XmlRpcMethodImpl.h
  3916. * test/XmlRpcMethodTest.cc
  3917. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3918. Rewritten the help message for --allow-overwrite option.
  3919. * doc/aria2c.1.txt
  3920. * src/usage_text.h
  3921. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3922. Fixed typo
  3923. * doc/aria2c.1.txt
  3924. * src/usage_text.h
  3925. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3926. Updated README for 1.4.0 release. Use new table syntax of
  3927. asciidoc.
  3928. * README
  3929. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3930. Documented --xml-rpc-max-request-size option in man page.
  3931. * doc/aria2c.1.txt
  3932. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3933. Moved C_* constants from BtContext to DefaultBtContext.
  3934. * src/BtContext.cc: Removed.
  3935. * src/BtContext.h
  3936. * src/DefaultBtContext.cc
  3937. * src/DefaultBtContext.h
  3938. * src/Makefile.am
  3939. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3940. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3941. path key respectively when persing .torrent file.
  3942. * src/BtContext.cc
  3943. * src/BtContext.h
  3944. * src/DefaultBtContext.cc
  3945. * test/DefaultBtContextTest.cc
  3946. * test/utf8.torrent
  3947. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3948. Added --xml-rpc-max-request-size option to limit the size of
  3949. XML-RPC request.
  3950. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3951. Documented XML-RPC API in man page.
  3952. * doc/aria2c.1.txt
  3953. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3954. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3955. will break strict-aliasing rules
  3956. * src/PeerConnection.cc
  3957. * test/DHTRoutingTableSerializerTest.cc
  3958. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3959. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3960. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3961. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3962. PKG_CHECK_MODULES macro uses latter name.
  3963. * m4/sqlite3.m4
  3964. * src/Makefile.am
  3965. * test/Makefile.am
  3966. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3967. Fixed typo
  3968. * configure.ac
  3969. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3970. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3971. presence of libgnutls using pkg-config first. If it fails, fall
  3972. back to old macro libgnutls.m4.
  3973. * configure.ac
  3974. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3975. Use s itself instead of !s.bad()
  3976. * src/CookieStorage.cc
  3977. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3978. Documented --on-download-* option and --save-cookies option in man
  3979. page.
  3980. * doc/aria2c.1.txt
  3981. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3982. Set possible values for --load-cookie option to "/path/to/file".
  3983. * src/OptionHandlerFactory.cc
  3984. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3985. Added --save-cookies option.
  3986. * src/Cookie.cc
  3987. * src/Cookie.h
  3988. * src/CookieStorage.cc
  3989. * src/CookieStorage.h
  3990. * src/MultiUrlRequestInfo.cc
  3991. * src/OptionHandlerFactory.cc
  3992. * src/prefs.cc
  3993. * src/prefs.h
  3994. * src/usage_text.h
  3995. * test/CookieStorageTest.cc
  3996. * test/CookieTest.cc
  3997. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3998. Removed tellAll XML-RPC command because its reponse tends to be
  3999. big if stopped/waiting downloads pile up.
  4000. * src/XmlRpcMethodFactory.cc
  4001. * src/XmlRpcMethodImpl.cc
  4002. * src/XmlRpcMethodImpl.h
  4003. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4004. Added the ability to execute command when download starts and
  4005. stops. You can also specify command for particular cases such as
  4006. complete/error download. Added --on-download-start,
  4007. --on-download-stop, --on-download-complete and --on-download-error
  4008. option.
  4009. * src/OptionHandlerFactory.cc
  4010. * src/RequestGroupMan.cc
  4011. * src/prefs.cc
  4012. * src/prefs.h
  4013. * src/usage_text.h
  4014. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4015. Fixed test error
  4016. * test/BencodeTest.cc
  4017. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4018. Added unit tests.
  4019. * test/XmlRpcMethodTest.cc
  4020. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4021. Made exception message more verbose.
  4022. * src/bencode.cc
  4023. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4024. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  4025. space in console readout. Also they are now shown in MiB/s if
  4026. speed > 1024KiB/s.
  4027. * src/ConsoleStatCalc.cc
  4028. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4029. Added SEED to console output, which represents the number of
  4030. seeders currently the client is connecting to.
  4031. * src/ConsoleStatCalc.cc
  4032. * src/ConsoleStatCalc.h
  4033. * src/DownloadEngine.cc
  4034. * src/NullStatCalc.h
  4035. * src/StatCalc.h
  4036. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4037. Added source filename(__FILE__) and line number(__LINE__) to
  4038. exception message.
  4039. * src/AbstractCommand.cc
  4040. * src/AbstractDiskWriter.cc
  4041. * src/AbstractProxyResponseCommand.cc
  4042. * src/BDE.h
  4043. * src/BtAllowedFastMessage.cc
  4044. * src/BtHandshakeMessageValidator.h
  4045. * src/BtHaveAllMessage.cc
  4046. * src/BtHaveNoneMessage.cc
  4047. * src/BtPieceMessage.cc
  4048. * src/BtRejectMessage.cc
  4049. * src/ChunkedDecoder.cc
  4050. * src/CookieStorage.cc
  4051. * src/DHTAnnouncePeerMessage.cc
  4052. * src/DHTEntryPointNameResolveCommand.cc
  4053. * src/DHTMessageFactoryImpl.cc
  4054. * src/DHTMessageTracker.cc
  4055. * src/DHTRoutingTableDeserializer.cc
  4056. * src/DHTRoutingTableSerializer.cc
  4057. * src/DHTSetup.cc
  4058. * src/DHTTokenTracker.cc
  4059. * src/DefaultBtAnnounce.cc
  4060. * src/DefaultBtContext.cc
  4061. * src/DefaultBtInteractive.cc
  4062. * src/DefaultBtMessageFactory.cc
  4063. * src/DefaultBtProgressInfoFile.cc
  4064. * src/DefaultExtensionMessageFactory.cc
  4065. * src/DlAbortEx.h
  4066. * src/DlRetryEx.h
  4067. * src/DownloadCommand.cc
  4068. * src/DownloadEngineFactory.cc
  4069. * src/DownloadFailureException.h
  4070. * src/Exception.cc
  4071. * src/Exception.h
  4072. * src/ExpatMetalinkProcessor.cc
  4073. * src/ExpatXmlRpcRequestProcessor.cc
  4074. * src/FallocFileAllocationIterator.cc
  4075. * src/FatalException.h
  4076. * src/FtpConnection.cc
  4077. * src/FtpFinishDownloadCommand.cc
  4078. * src/FtpInitiateConnectionCommand.cc
  4079. * src/FtpNegotiationCommand.cc
  4080. * src/GZipDecoder.cc
  4081. * src/HandshakeExtensionMessage.cc
  4082. * src/HttpConnection.cc
  4083. * src/HttpHeaderProcessor.cc
  4084. * src/HttpInitiateConnectionCommand.cc
  4085. * src/HttpResponse.cc
  4086. * src/HttpResponseCommand.cc
  4087. * src/HttpServer.cc
  4088. * src/HttpSkipResponseCommand.cc
  4089. * src/InitiateConnectionCommandFactory.cc
  4090. * src/IteratableChunkChecksumValidator.cc
  4091. * src/LibgcryptARC4Context.h
  4092. * src/LibgcryptARC4Decryptor.h
  4093. * src/LibgcryptARC4Encryptor.h
  4094. * src/LibgcryptDHKeyExchange.h
  4095. * src/LibgnutlsTLSContext.cc
  4096. * src/LibsslARC4Context.h
  4097. * src/LibsslARC4Decryptor.h
  4098. * src/LibsslARC4Encryptor.h
  4099. * src/LibsslDHKeyExchange.h
  4100. * src/LibsslTLSContext.cc
  4101. * src/MSEHandshake.cc
  4102. * src/MessageDigestHelper.cc
  4103. * src/MetalinkHelper.cc
  4104. * src/MultiDiskAdaptor.cc
  4105. * src/NameMatchOptionHandler.h
  4106. * src/NameResolver.cc
  4107. * src/Netrc.cc
  4108. * src/NsCookieParser.cc
  4109. * src/OptionHandlerException.cc
  4110. * src/OptionHandlerException.h
  4111. * src/OptionHandlerImpl.h
  4112. * src/OptionParser.cc
  4113. * src/ParameterizedStringParser.cc
  4114. * src/PeerAbstractCommand.cc
  4115. * src/PeerConnection.cc
  4116. * src/PeerMessageUtil.cc
  4117. * src/PeerReceiveHandshakeCommand.cc
  4118. * src/Platform.cc
  4119. * src/ReceiverMSEHandshakeCommand.cc
  4120. * src/RecoverableException.h
  4121. * src/RequestGroup.cc
  4122. * src/SimpleLogger.cc
  4123. * src/SocketCore.cc
  4124. * src/Sqlite3MozCookieParser.cc
  4125. * src/UTPexExtensionMessage.cc
  4126. * src/Util.cc
  4127. * src/XML2SAXMetalinkProcessor.cc
  4128. * src/Xml2XmlRpcRequestProcessor.cc
  4129. * src/XmlRpcMethodImpl.cc
  4130. * src/bencode.cc
  4131. * src/download_helper.cc
  4132. * src/messageDigest.h
  4133. * test/ExceptionTest.cc
  4134. * test/TestUtil.cc
  4135. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4136. Bump up version number to 1.4.0
  4137. * configure.ac
  4138. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4139. Added 2files.metalink to EXTRA_DIST
  4140. * test/Makefile.am
  4141. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4142. Added missing 2files.metalink
  4143. * test/2files.metalink
  4144. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4145. Show "[MEMORY]" prefix before filename in download summary if it
  4146. is downloaded into memory.
  4147. * src/DownloadResult.h
  4148. * src/RequestGroup.cc
  4149. * src/RequestGroupMan.cc
  4150. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4151. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  4152. * src/ExpatXmlRpcRequestProcessor.cc
  4153. * src/Xml2XmlRpcRequestProcessor.cc
  4154. * src/message.h
  4155. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4156. Defined const BDEs to avoid duplicate instantiation.
  4157. Defined MSG_GID_NOT_PROVIDED.
  4158. * src/XmlRpcMethodImpl.cc
  4159. * src/message.h
  4160. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4161. Code cleanup
  4162. * src/Xml2XmlRpcRequestProcessor.cc
  4163. * src/Xml2XmlRpcRequestProcessor.h
  4164. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4165. Defined ENABLE_XML_RPC
  4166. * configure.ac
  4167. * configure
  4168. * config.h.in
  4169. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4170. Added ExpatXmlRpcRequestProcessor
  4171. * src/ExpatXmlRpcRequestProcessor.cc
  4172. * src/ExpatXmlRpcRequestProcessor.h
  4173. * src/Makefile.am
  4174. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4175. Added tests for addTorrent and addMetalink command.
  4176. * test/TestUtil.cc
  4177. * test/TestUtil.h
  4178. * test/XmlRpcMethodTest.cc
  4179. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4180. Corrected the description of --file-allocation option.
  4181. * doc/aria2c.1.txt
  4182. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4183. Added tellAll command.
  4184. * src/XmlRpcMethodFactory.cc
  4185. * src/XmlRpcMethodImpl.cc
  4186. * src/XmlRpcMethodImpl.h
  4187. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4188. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  4189. * src/XmlRpcMethodImpl.cc
  4190. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4191. Added changeGlobalOption command. Currently,
  4192. max-overall-download-limit and max-overall-upload-limit option are
  4193. available.
  4194. * src/RequestGroupMan.h
  4195. * src/XmlRpcMethod.cc
  4196. * src/XmlRpcMethod.h
  4197. * src/XmlRpcMethodFactory.cc
  4198. * src/XmlRpcMethodImpl.cc
  4199. * src/XmlRpcMethodImpl.h
  4200. * test/XmlRpcMethodTest.cc
  4201. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4202. Added changeOption command. Currently, max-download-limit,
  4203. max-upload-limit option are available in this command.
  4204. * src/RequestGroup.h
  4205. * src/XmlRpcMethod.cc
  4206. * src/XmlRpcMethod.h
  4207. * src/XmlRpcMethodFactory.cc
  4208. * src/XmlRpcMethodImpl.cc
  4209. * src/XmlRpcMethodImpl.h
  4210. * test/XmlRpcMethodTest.cc
  4211. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4212. Added purgeDownloadResult command.
  4213. * src/RequestGroupMan.cc
  4214. * src/RequestGroupMan.h
  4215. * src/XmlRpcMethodFactory.cc
  4216. * src/XmlRpcMethodImpl.cc
  4217. * src/XmlRpcMethodImpl.h
  4218. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4219. Refactored.
  4220. * src/XmlRpcMethod.cc
  4221. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4222. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  4223. XmlRpcResponse.
  4224. * src/HttpServerBodyCommand.cc
  4225. * src/Makefile.am
  4226. * src/XmlRpcMethod.cc
  4227. * src/XmlRpcMethod.h
  4228. * src/XmlRpcMethodImpl.cc
  4229. * src/XmlRpcResponse.cc
  4230. * src/XmlRpcResponse.h
  4231. * test/XmlRpcMethodTest.cc
  4232. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4233. In XML-RPC option struct, header and index-out option can take
  4234. array as value.
  4235. * src/XmlRpcMethod.cc
  4236. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4237. Removed unused option member from PeerConnection.
  4238. * src/InitiatorMSEHandshakeCommand.cc
  4239. * src/PeerConnection.cc
  4240. * src/PeerConnection.h
  4241. * src/PeerInteractionCommand.cc
  4242. * src/PeerReceiveHandshakeCommand.cc
  4243. * src/ReceiverMSEHandshakeCommand.cc
  4244. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4245. Added "seeder" key to getPeers response.
  4246. * src/XmlRpcMethodImpl.cc
  4247. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4248. Added addMetalink XML-RPC command.
  4249. * src/XmlRpcMethodFactory.cc
  4250. * src/XmlRpcMethodImpl.cc
  4251. * src/XmlRpcMethodImpl.h
  4252. * src/download_helper.cc
  4253. * src/download_helper.h
  4254. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4255. Fixed the bug that POU peers are never choked in seeding.
  4256. * src/BtSeederStateChoke.cc
  4257. * src/BtSeederStateChoke.h
  4258. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4259. Added web-seeding URI handling in addTorrent command.
  4260. * src/XmlRpcMethodImpl.cc
  4261. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4262. Added "length" key to getFiles response.
  4263. * src/XmlRpcMethodImpl.cc
  4264. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4265. Moved --no-netrc option from ftp option section to http/ftp option
  4266. section.
  4267. * doc/aria2c.1.txt
  4268. * src/OptionHandlerFactory.cc
  4269. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4270. Removed garbage "\" character before '
  4271. * doc/aria2c.1.txt
  4272. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4273. Removed garbage "\" character before http.
  4274. * doc/aria2c.1.txt
  4275. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4276. Documented additional options that can be specified in -i list.
  4277. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  4278. and --xml-rpc-passwd. Removed --enable-http-server and
  4279. --http-server-listen-port.
  4280. * doc/aria2c.1.txt
  4281. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4282. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  4283. * src/DefaultPeerStorage.cc
  4284. * src/DefaultPeerStorage.h
  4285. * src/PeerStorage.h
  4286. * src/XmlRpcMethodImpl.cc
  4287. * test/MockPeerStorage.h
  4288. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4289. Put a call to Socket::isReadable() in try block.
  4290. * src/HttpServerBodyCommand.cc
  4291. * src/HttpServerCommand.cc
  4292. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4293. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  4294. exception , so it is now in try block.
  4295. * src/HttpServerResponseCommand.cc
  4296. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4297. Added "amChoking" and "peerChoking" key in getPeers response.
  4298. * src/XmlRpcMethodImpl.cc
  4299. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4300. Added test case for zero-length filter.
  4301. * test/BitfieldManTest.cc
  4302. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4303. getFiles command now returns file data for finished/stopped
  4304. downloads.
  4305. * src/XmlRpcMethodImpl.cc
  4306. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4307. DownloadResult now has the list of FileEntry. The download
  4308. summary displays the path of first selected file and the number of
  4309. remaining files for multi-file torrent.
  4310. * src/DownloadResult.h
  4311. * src/RequestGroup.cc
  4312. * src/RequestGroupMan.cc
  4313. * test/RequestGroupTest.cc
  4314. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4315. Fixed segmentation fault error when no file is selected in
  4316. multi-file torrent.
  4317. * src/BitfieldMan.cc
  4318. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4319. Escaped <,>,& character in XML-RPC response.
  4320. * src/XmlRpcMethod.cc
  4321. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4322. Throw DlAbortEx instead of FatalException during parsing options
  4323. because we don't want for aria2 to quit when bad option is passed
  4324. via XML-RPC.
  4325. * src/OptionHandlerException.cc
  4326. * src/OptionHandlerException.h
  4327. * src/OptionHandlerImpl.h
  4328. * src/OptionParser.cc
  4329. * src/OptionParser.h
  4330. * src/PStringSegment.cc
  4331. * src/ParameterizedStringParser.cc
  4332. * src/download_helper.cc
  4333. * test/ParameterizedStringParserTest.cc
  4334. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4335. Selecting files are now done in
  4336. DefaultBtContext::setFileFileter().
  4337. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  4338. functions are removed because they are no longer used. Creating
  4339. filter in BitfieldMan is done in new funtion
  4340. PieceStorage::setupFileFilter()
  4341. * src/BtContext.cc
  4342. * src/BtContext.h
  4343. * src/DefaultBtContext.cc
  4344. * src/DefaultBtContext.h
  4345. * src/DefaultPieceStorage.cc
  4346. * src/DefaultPieceStorage.h
  4347. * src/DiskAdaptor.cc
  4348. * src/DiskAdaptor.h
  4349. * src/PieceStorage.h
  4350. * src/RequestGroup.cc
  4351. * src/UnknownLengthPieceStorage.h
  4352. * src/XmlRpcMethodImpl.cc
  4353. * test/DefaultBtContextTest.cc
  4354. * test/MockBtContext.h
  4355. * test/MockPieceStorage.h
  4356. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4357. Fixed compile error on Mac OS X
  4358. * src/HttpServer.cc
  4359. * src/XmlRpcMethod.h
  4360. * src/XmlRpcMethodImpl.cc
  4361. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4362. Use std::binary_search instead of std::find
  4363. * src/DefaultPieceStorage.cc
  4364. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4365. Removed unnecessary BDE() call; leave them to implicit conversion.
  4366. * src/XmlRpcMethodImpl.cc
  4367. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4368. Return connections and gid in string
  4369. * src/XmlRpcMethodImpl.cc
  4370. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4371. Renamed addURI as addUri
  4372. * src/XmlRpcMethodFactory.cc
  4373. * src/XmlRpcMethodImpl.cc
  4374. * src/XmlRpcMethodImpl.h
  4375. * test/XmlRpcMethodTest.cc
  4376. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4377. Renamed addTorrentFile as addTorrent
  4378. * src/XmlRpcMethodFactory.cc
  4379. * src/XmlRpcMethodImpl.cc
  4380. * src/XmlRpcMethodImpl.h
  4381. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4382. The information for files, URIs, peers are removed from the
  4383. reponse of TellaActive, TellStatus command because they tend to be
  4384. large. Instead they can be retrieved by the dedicated commands:
  4385. getFiles, getUris and getPeers respectively.
  4386. * src/XmlRpcMethodFactory.cc
  4387. * src/XmlRpcMethodImpl.cc
  4388. * src/XmlRpcMethodImpl.h
  4389. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4390. Removed --max-overall-upload-limit and
  4391. --max-overall-download-limit option from listRequestOptions.
  4392. * src/download_helper.cc
  4393. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4394. Log incoming host in HttpListenCommand.
  4395. * src/HttpListenCommand.cc
  4396. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4397. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4398. --xml-rpc-passwd option.
  4399. * src/HttpServer.cc
  4400. * src/HttpServer.h
  4401. * src/HttpServerCommand.cc
  4402. * src/OptionHandlerFactory.cc
  4403. * src/prefs.cc
  4404. * src/prefs.h
  4405. * src/usage_text.h
  4406. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4407. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4408. processing 0 length request.
  4409. * src/HttpServerBodyCommand.cc
  4410. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4411. Removed --enable-http-server and --http-server-listen-port
  4412. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4413. instead. The original feature for --enable-http-server that
  4414. reports download progress in HTML was officially removed. Persist
  4415. XML-RPC connection if client supports keep-alive.
  4416. * src/DownloadEngineFactory.cc
  4417. * src/HttpServerCommand.cc
  4418. * src/HttpServerResponseCommand.cc
  4419. * src/Makefile.am
  4420. * src/Makefile.in
  4421. * src/OptionHandlerFactory.cc
  4422. * src/RequestGroupMan.cc
  4423. * src/main.cc
  4424. * src/option_processing.cc
  4425. * src/prefs.cc
  4426. * src/prefs.h
  4427. * src/usage_text.h
  4428. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4429. Added "uris" key to the response of tellStatus command. Added
  4430. "connections" key to the response of tellStatus and tellActive
  4431. command.
  4432. * src/XmlRpcMethodImpl.cc
  4433. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4434. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4435. Added TellStatusXmlRpcMethod. Remove command can now remove
  4436. waiting RequestGroup.
  4437. * src/RequestGroupMan.cc
  4438. * src/RequestGroupMan.h
  4439. * src/XmlRpcMethodFactory.cc
  4440. * src/XmlRpcMethodImpl.cc
  4441. * src/XmlRpcMethodImpl.h
  4442. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4443. Initialized _peerId
  4444. * src/Peer.cc
  4445. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4446. Return fault structure for error. FailXmlRpcMethod is renamed as
  4447. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4448. in non-torrent download. Return single param value.
  4449. * src/XmlRpcMethod.cc
  4450. * src/XmlRpcMethodFactory.cc
  4451. * src/XmlRpcMethodImpl.cc
  4452. * src/XmlRpcMethodImpl.h
  4453. * test/XmlRpcMethodTest.cc
  4454. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4455. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4456. command.
  4457. * src/RequestGroup.cc
  4458. * src/RequestGroup.h
  4459. * src/RequestGroupMan.cc
  4460. * src/XmlRpcMethodImpl.cc
  4461. * test/RequestGroupTest.cc
  4462. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4463. Added more options that can be specified in -i list and xml-rpc
  4464. add* command.
  4465. * src/download_helper.h
  4466. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4467. The available options in -i list should be listed in
  4468. listRequestOptions().
  4469. * src/download_helper.cc
  4470. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4471. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4472. command.
  4473. * src/XmlRpcMethodImpl.cc
  4474. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4475. Now RequestGroup has its own copy of Option object. This will help
  4476. to give custom option for each RequestGroup.
  4477. addTorrentFile command now takes options.
  4478. * src/AbstractCommand.cc
  4479. * src/AbstractCommand.h
  4480. * src/AbstractProxyRequestCommand.cc
  4481. * src/ActivePeerConnectionCommand.cc
  4482. * src/ActivePeerConnectionCommand.h
  4483. * src/AdaptiveURISelector.cc
  4484. * src/BtCheckIntegrityEntry.cc
  4485. * src/BtDependency.cc
  4486. * src/BtDependency.h
  4487. * src/BtFileAllocationEntry.cc
  4488. * src/BtPostDownloadHandler.cc
  4489. * src/CheckIntegrityEntry.cc
  4490. * src/DownloadCommand.cc
  4491. * src/FtpDownloadCommand.cc
  4492. * src/FtpFinishDownloadCommand.cc
  4493. * src/FtpInitiateConnectionCommand.cc
  4494. * src/FtpNegotiationCommand.cc
  4495. * src/HttpInitiateConnectionCommand.cc
  4496. * src/HttpRequestCommand.cc
  4497. * src/HttpResponseCommand.cc
  4498. * src/HttpSkipResponseCommand.cc
  4499. * src/InitiateConnectionCommand.cc
  4500. * src/InitiateConnectionCommandFactory.cc
  4501. * src/InitiatorMSEHandshakeCommand.cc
  4502. * src/InitiatorMSEHandshakeCommand.h
  4503. * src/Metalink2RequestGroup.cc
  4504. * src/Metalink2RequestGroup.h
  4505. * src/MetalinkPostDownloadHandler.cc
  4506. * src/MultiUrlRequestInfo.cc
  4507. * src/MultiUrlRequestInfo.h
  4508. * src/PeerAbstractCommand.cc
  4509. * src/PeerInteractionCommand.cc
  4510. * src/PeerInteractionCommand.h
  4511. * src/PeerReceiveHandshakeCommand.cc
  4512. * src/PeerReceiveHandshakeCommand.h
  4513. * src/RequestGroup.cc
  4514. * src/RequestGroup.h
  4515. * src/TrackerWatcherCommand.cc
  4516. * src/TrackerWatcherCommand.h
  4517. * src/XmlRpcMethod.cc
  4518. * src/XmlRpcMethod.h
  4519. * src/XmlRpcMethodImpl.cc
  4520. * src/download_helper.cc
  4521. * src/download_helper.h
  4522. * src/main.cc
  4523. * test/BtDependencyTest.cc
  4524. * test/BtPostDownloadHandlerTest.cc
  4525. * test/DefaultBtMessageDispatcherTest.cc
  4526. * test/DownloadHandlerFactoryTest.cc
  4527. * test/DownloadHelperTest.cc
  4528. * test/Metalink2RequestGroupTest.cc
  4529. * test/MetalinkPostDownloadHandlerTest.cc
  4530. * test/RequestGroupManTest.cc
  4531. * test/RequestGroupTest.cc
  4532. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4533. Added tellActiveStatus xml-rpc command which reports download
  4534. status of active downloads.
  4535. * src/XmlRpcMethodFactory.cc
  4536. * src/XmlRpcMethodImpl.cc
  4537. * src/XmlRpcMethodImpl.h
  4538. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4539. Added addTorrentFile xml-rpc command which receives uploaded
  4540. torrent file and add download for it.
  4541. * src/RequestGroupMan.cc
  4542. * src/XmlRpcMethodFactory.cc
  4543. * src/XmlRpcMethodImpl.cc
  4544. * src/XmlRpcMethodImpl.h
  4545. * src/download_helper.cc
  4546. * src/download_helper.h
  4547. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Added remove xml-rpc command which removes specified download.
  4549. There is a known issue: the removed unfinished downloads are
  4550. reported ERR when aria2 exits. They should be reported as INPR.
  4551. * src/RequestGroupMan.cc
  4552. * src/RequestGroupMan.h
  4553. * src/XmlRpcMethodFactory.cc
  4554. * src/XmlRpcMethodImpl.cc
  4555. * src/XmlRpcMethodImpl.h
  4556. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4557. If --enable-http-server is enabled, don't stop aria2 when all
  4558. download finished and don't quit when no files to download at
  4559. start up.
  4560. * src/RequestGroupMan.cc
  4561. * src/main.cc
  4562. * src/option_processing.cc
  4563. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4564. Added missing AM_CONDITIONAL
  4565. * configure.ac
  4566. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4567. Added xml-rpc functionality. Currently only addURI commad is
  4568. supported. To enable xml-rpc, run aria2 with
  4569. --enable-http-server. This option name is temporal and will be
  4570. changed. The feature that reports download progress in html format
  4571. is temporarily disabled.
  4572. * src/HttpServer.cc
  4573. * src/HttpServer.h
  4574. * src/HttpServerBodyCommand.cc
  4575. * src/HttpServerBodyCommand.h
  4576. * src/HttpServerCommand.cc
  4577. * src/HttpServerResponseCommand.cc
  4578. * src/Makefile.am
  4579. * src/OptionParser.cc
  4580. * src/OptionParser.h
  4581. * src/RequestGroupMan.cc
  4582. * src/RequestGroupMan.h
  4583. * src/XmlRpcMethod.cc
  4584. * src/XmlRpcMethod.h
  4585. * src/XmlRpcMethodFactory.cc
  4586. * src/XmlRpcMethodFactory.h
  4587. * src/XmlRpcMethodImpl.cc
  4588. * src/XmlRpcMethodImpl.h
  4589. * src/download_helper.cc
  4590. * src/download_helper.h
  4591. * test/Makefile.am
  4592. * test/XmlRpcMethodTest.cc
  4593. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4594. Added xml-rpc request parser. The supported value types are:
  4595. i4/int, string, double, struct, array, base64. Currently only
  4596. libxml2 version is provided.
  4597. * src/Xml2XmlRpcRequestProcessor.cc
  4598. * src/Xml2XmlRpcRequestProcessor.h
  4599. * src/XmlRpcElements.cc
  4600. * src/XmlRpcElements.h
  4601. * src/XmlRpcRequest.h
  4602. * src/XmlRpcRequestParserController.cc
  4603. * src/XmlRpcRequestParserController.h
  4604. * src/XmlRpcRequestParserState.h
  4605. * src/XmlRpcRequestParserStateImpl.cc
  4606. * src/XmlRpcRequestParserStateImpl.h
  4607. * src/XmlRpcRequestParserStateMachine.cc
  4608. * src/XmlRpcRequestParserStateMachine.h
  4609. * src/XmlRpcRequestProcessor.h
  4610. * test/XmlRpcRequestParserControllerTest.cc
  4611. * test/XmlRpcRequestProcessorTest.cc
  4612. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4613. * Release 1.3.3
  4614. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4615. Fixed compile error since r1202.
  4616. * src/ExpatMetalinkProcessor.cc
  4617. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4618. Updated Ukrainian, Russian and Simplified Chinese
  4619. translations. Thanks to all translators.
  4620. * po/ru.po
  4621. * po/uk.po
  4622. * po/zh_CN.po
  4623. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4624. Pass reference of Option object instead of pointer.
  4625. * src/download_helper.cc
  4626. * src/download_helper.h
  4627. * src/main.cc
  4628. * test/DownloadHelperTest.cc
  4629. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4630. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4631. from option directly. Instead, get them from RequestGroup.
  4632. * src/ActivePeerConnectionCommand.cc
  4633. * src/ActivePeerConnectionCommand.h
  4634. * src/PeerReceiveHandshakeCommand.cc
  4635. * src/RequestGroup.h
  4636. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4637. Removed unused uploadLimitCheck and uploadLimit from
  4638. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4639. PeerInteractionCommand.
  4640. * src/PeerAbstractCommand.cc
  4641. * src/PeerAbstractCommand.h
  4642. * src/PeerInteractionCommand.cc
  4643. * src/PeerInteractionCommand.h
  4644. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4645. Fixed broken file renaming feature since r1202.
  4646. * src/FtpNegotiationCommand.cc
  4647. * src/FtpNegotiationCommand.h
  4648. * src/HttpResponseCommand.cc
  4649. * src/RequestGroup.cc
  4650. * src/RequestGroup.h
  4651. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4652. Removed unused debug log
  4653. * src/SocketCore.cc
  4654. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4655. Generated configure and Makefile.in using autoconf 2.63 and
  4656. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4657. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4658. * configure.ac
  4659. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4660. Moved piece statistics stuff to new PieceStatMan class.
  4661. Refactored PieceSelector interface.
  4662. * src/DefaultPieceStorage.cc
  4663. * src/DefaultPieceStorage.h
  4664. * src/LongestSequencePieceSelector.cc
  4665. * src/LongestSequencePieceSelector.h
  4666. * src/Makefile.am
  4667. * src/PieceSelector.h
  4668. * src/PieceStatMan.cc
  4669. * src/PieceStatMan.h
  4670. * src/RarestPieceSelector.cc
  4671. * src/RarestPieceSelector.h
  4672. * src/RequestGroup.cc
  4673. * test/DefaultPieceStorageTest.cc
  4674. * test/InOrderPieceSelector.h
  4675. * test/Makefile.am
  4676. * test/PieceStatManTest.cc
  4677. * test/RarestPieceSelectorTest.cc
  4678. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4679. Added static member _protocolFamily to SocketCore. By default,
  4680. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4681. address. Sometime SocketCore::bind() and
  4682. SocketCore::establishConnection() use difference protocl family
  4683. and latter cannot connect to former. To avoid this situation, we
  4684. limit protocol family to AF_INET for unit tests.
  4685. * src/SocketCore.cc
  4686. * src/SocketCore.h
  4687. * test/AllTest.cc
  4688. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4689. Avoid std::bad_alloc for negative bencode string length.
  4690. * src/bencode.cc
  4691. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4692. Supported segmented downloading with chunked transfer encoding and
  4693. content-length.
  4694. * src/DownloadCommand.cc
  4695. * src/HttpResponseCommand.cc
  4696. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4697. Bump up version number to 1.3.3
  4698. * configure.ac
  4699. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4700. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4701. from 4096 to 65536 (for insanely large ftp login banners)
  4702. * src/FtpConnection.h
  4703. * test/FtpConnectionTest.cc
  4704. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4705. In DefaultBtContext::getActualBasePath(), return first
  4706. FileEntry::getPath() for single file torrent.
  4707. * src/DefaultBtContext.cc
  4708. * test/DefaultBtContextTest.cc
  4709. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4710. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4711. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4712. Removed _directIOAllowed member from DiskWriter.
  4713. * src/AbstractDiskWriter.cc
  4714. * src/AbstractDiskWriter.h
  4715. * src/AbstractSingleDiskAdaptor.cc
  4716. * src/AbstractSingleDiskAdaptor.h
  4717. * src/BinaryStream.h
  4718. * src/ByteArrayDiskWriter.h
  4719. * src/DefaultPieceStorage.cc
  4720. * src/DiskWriter.h
  4721. * src/MultiDiskAdaptor.cc
  4722. * src/MultiDiskAdaptor.h
  4723. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4724. Now the constructor of AbstractDiskWriter takes filename as an
  4725. argument and filename argument is removed from openFile(),
  4726. initAndOpenFile(), openExistingFile() interface. storeDir member
  4727. and its accessor functions are removed from DiskAdaptor because it
  4728. is not used anymore. size() member function of DefaultDiskWriter,
  4729. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4730. opening file.
  4731. * src/AbstractDiskWriter.cc
  4732. * src/AbstractDiskWriter.h
  4733. * src/AbstractSingleDiskAdaptor.cc
  4734. * src/AbstractSingleDiskAdaptor.h
  4735. * src/ByteArrayDiskWriter.cc
  4736. * src/ByteArrayDiskWriter.h
  4737. * src/ByteArrayDiskWriterFactory.cc
  4738. * src/ByteArrayDiskWriterFactory.h
  4739. * src/DefaultDiskWriter.cc
  4740. * src/DefaultDiskWriter.h
  4741. * src/DefaultDiskWriterFactory.cc
  4742. * src/DefaultDiskWriterFactory.h
  4743. * src/DefaultPieceStorage.cc
  4744. * src/DirectDiskAdaptor.cc
  4745. * src/DirectDiskAdaptor.h
  4746. * src/DiskAdaptor.h
  4747. * src/DiskWriter.h
  4748. * src/DiskWriterFactory.h
  4749. * src/MessageDigestHelper.cc
  4750. * src/MultiDiskAdaptor.cc
  4751. * src/RequestGroup.cc
  4752. * src/UnknownLengthPieceStorage.cc
  4753. * src/Util.cc
  4754. * test/DefaultDiskWriterTest.cc
  4755. * test/DirectDiskAdaptorTest.cc
  4756. * test/FallocFileAllocationIteratorTest.cc
  4757. * test/MessageDigestHelperTest.cc
  4758. * test/MetalinkProcessorTest.cc
  4759. * test/MultiDiskAdaptorTest.cc
  4760. * test/MultiFileAllocationIteratorTest.cc
  4761. * test/SingleFileAllocationIteratorTest.cc
  4762. * test/UtilTest.cc
  4763. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4764. Fixed the bug that aria2 aborts when --select-file is used. This
  4765. bug was introduced in r1199.
  4766. * src/MultiDiskAdaptor.cc
  4767. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4768. Code cleanup
  4769. * test/MockPieceStorage.cc
  4770. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4771. Fixed the bug that read-only file with wrong file size will cause
  4772. error because it cannot be truncated to the correct size. Now if
  4773. file size is different than the expected one, re-open file in
  4774. writable mode.
  4775. * src/AbstractSingleDiskAdaptor.cc
  4776. * src/AbstractSingleDiskAdaptor.h
  4777. * src/BtCheckIntegrityEntry.cc
  4778. * src/DiskAdaptor.h
  4779. * src/MultiDiskAdaptor.h
  4780. * src/RequestGroup.cc
  4781. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4782. Fixed the bug that with --check-integrity option aria2 reports
  4783. downloaded file size is 0 even if some parts of file is correctly
  4784. downloaded. This bug is reproducible for the download that a file
  4785. includes last piece is missing. This bug doesn't reveal for
  4786. single-torrent with file allocation on.
  4787. * src/IteratableChecksumValidator.cc
  4788. * test/IteratableChecksumValidatorTest.cc
  4789. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4790. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4791. * src/RequestGroupMan.cc
  4792. * src/AdaptiveURISelector.cc
  4793. * src/AdaptiveURISelector.h
  4794. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4795. * Release 1.3.2
  4796. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4797. Updated README
  4798. * README
  4799. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4800. Updated Ukrainian translations. Thanks to Alexander10.
  4801. * po/uk.po
  4802. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4803. Code cleanup
  4804. * src/MetalinkParserStateMachine.cc
  4805. * src/MetalinkParserStateMachine.h
  4806. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4807. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4808. and expat simultaneously, MetalinkProcessor is now not base class
  4809. and it is directly implemented in XML2SAXMetalinkProcessor and
  4810. ExpatMetalinkProcessor.
  4811. * src/ExpatMetalinkProcessor.cc
  4812. * src/ExpatMetalinkProcessor.h
  4813. * src/Makefile.am
  4814. * src/MetalinkHelper.cc
  4815. * src/MetalinkProcessor.h
  4816. * src/MetalinkProcessorFactory.cc: Removed.
  4817. * src/MetalinkProcessorFactory.h: Removed
  4818. * src/XML2SAXMetalinkProcessor.cc
  4819. * src/XML2SAXMetalinkProcessor.h
  4820. * test/MetalinkProcessorTest.cc
  4821. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4822. Bump up version number to 1.3.2
  4823. * configure.ac
  4824. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4825. Added missing file.
  4826. * test/Makefile.am
  4827. * test/url-list-singleFileEndsWithSlash.torrent
  4828. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4829. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4830. request.
  4831. * src/AnnounceList.cc
  4832. * src/AnnounceList.h
  4833. * src/BDE.cc: Added
  4834. * src/BDE.h: Added
  4835. * src/DHTAbstractMessage.cc
  4836. * src/DHTAbstractMessage.h
  4837. * src/DHTAnnouncePeerMessage.cc
  4838. * src/DHTAnnouncePeerMessage.h
  4839. * src/DHTAnnouncePeerReplyMessage.cc
  4840. * src/DHTAnnouncePeerReplyMessage.h
  4841. * src/DHTFindNodeMessage.cc
  4842. * src/DHTFindNodeMessage.h
  4843. * src/DHTFindNodeReplyMessage.cc
  4844. * src/DHTFindNodeReplyMessage.h
  4845. * src/DHTGetPeersMessage.cc
  4846. * src/DHTGetPeersMessage.h
  4847. * src/DHTGetPeersReplyMessage.cc
  4848. * src/DHTGetPeersReplyMessage.h
  4849. * src/DHTMessageFactory.h
  4850. * src/DHTMessageFactoryImpl.cc
  4851. * src/DHTMessageFactoryImpl.h
  4852. * src/DHTMessageReceiver.cc
  4853. * src/DHTMessageTracker.cc
  4854. * src/DHTMessageTracker.h
  4855. * src/DHTPingMessage.cc
  4856. * src/DHTPingMessage.h
  4857. * src/DHTPingReplyMessage.cc
  4858. * src/DHTPingReplyMessage.h
  4859. * src/DHTQueryMessage.cc
  4860. * src/DHTQueryMessage.h
  4861. * src/DHTResponseMessage.cc
  4862. * src/DHTResponseMessage.h
  4863. * src/DefaultBtAnnounce.cc
  4864. * src/DefaultBtContext.cc
  4865. * src/DefaultBtContext.h
  4866. * src/HandshakeExtensionMessage.cc
  4867. * src/Makefile.am
  4868. * src/PeerListProcessor.h
  4869. * src/UTPexExtensionMessage.cc
  4870. * src/bencode.cc
  4871. * src/bencode.h
  4872. * test/AnnounceListTest.cc
  4873. * test/BDETest.cc: Added
  4874. * test/BencodeTest.cc
  4875. * test/DHTAnnouncePeerMessageTest.cc
  4876. * test/DHTAnnouncePeerReplyMessageTest.cc
  4877. * test/DHTFindNodeMessageTest.cc
  4878. * test/DHTFindNodeReplyMessageTest.cc
  4879. * test/DHTGetPeersMessageTest.cc
  4880. * test/DHTGetPeersReplyMessageTest.cc
  4881. * test/DHTMessageFactoryImplTest.cc
  4882. * test/DHTMessageTrackerTest.cc
  4883. * test/DHTPingMessageTest.cc
  4884. * test/DHTPingReplyMessageTest.cc
  4885. * test/Makefile.am
  4886. * test/MockDHTMessageFactory.h
  4887. * test/PeerListProcessorTest.cc
  4888. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4889. Use url-list (web-seeding) only for single-file torrent. This is
  4890. basically the same behavior with Metalink file with torrent and
  4891. URIs.
  4892. * src/RequestGroup.cc
  4893. * src/DefaultBtContext.cc
  4894. * test/DefaultBtContextTest.cc
  4895. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4896. Rewritten expr
  4897. * src/array_fun.h
  4898. * test/array_funTest.cc
  4899. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4900. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4901. * src/DefaultBtMessageDispatcher.cc
  4902. * src/a2algo.h
  4903. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4904. Removed ExtendedMessagingAware. Instead of using inheritance,
  4905. added ExtensionMessageRegistry and it is passed to
  4906. DefaultExtensionMessageFactory.
  4907. * src/DefaultBtInteractive.cc
  4908. * src/DefaultBtInteractive.h
  4909. * src/DefaultExtensionMessageFactory.cc
  4910. * src/DefaultExtensionMessageFactory.h
  4911. * src/ExtendedMessagingAware.h: Removed.
  4912. * src/ExtensionMessageFactory.h
  4913. * src/ExtensionMessageRegistry.h: Added.
  4914. * src/Makefile.am
  4915. * src/PeerInteractionCommand.cc
  4916. * test/DefaultExtensionMessageFactoryTest.cc
  4917. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4918. Fixed typo in log messages
  4919. * src/MSEHandshake.cc
  4920. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4921. Fixed the bug that prevents torrent download from finishing. The
  4922. bug doesn't reveal for all torrents. The torrents affected this
  4923. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4924. of pieces.
  4925. * src/bitfield.h
  4926. * test/bitfieldTest.cc
  4927. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4928. Code cleanup
  4929. * src/PeerListProcessor.h
  4930. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4931. Removed RequestGroupAware
  4932. * src/AbstractCommand.cc
  4933. * src/AbstractCommand.h
  4934. * src/ActivePeerConnectionCommand.cc
  4935. * src/ActivePeerConnectionCommand.h
  4936. * src/DHTGetPeersCommand.cc
  4937. * src/DHTGetPeersCommand.h
  4938. * src/InitiatorMSEHandshakeCommand.cc
  4939. * src/InitiatorMSEHandshakeCommand.h
  4940. * src/Makefile.am
  4941. * src/PeerInitiateConnectionCommand.cc
  4942. * src/PeerInitiateConnectionCommand.h
  4943. * src/PeerInteractionCommand.cc
  4944. * src/PeerInteractionCommand.h
  4945. * src/RealtimeCommand.cc
  4946. * src/RealtimeCommand.h
  4947. * src/RequestGroupAware.cc: Removed
  4948. * src/RequestGroupAware.h: Removed
  4949. * src/SeedCheckCommand.cc
  4950. * src/SeedCheckCommand.h
  4951. * src/SleepCommand.cc
  4952. * src/TrackerWatcherCommand.cc
  4953. * src/TrackerWatcherCommand.h
  4954. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4955. Rewritten PeerListProcessor
  4956. * src/PeerListProcessor.h
  4957. * src/CompactPeerListProcessor.h: Removed
  4958. * src/CompactPeerListProcessor.cc: Removed
  4959. * src/DelegatingPeerListProcessor.cc: Removed.
  4960. * src/DefaultBtAnnounce.cc
  4961. * src/Makefile.am
  4962. * src/UTPexExtensionMessage.cc
  4963. * src/DefaultPeerListProcessor.h: Removed.
  4964. * src/DefaultPeerListProcessor.cc: Removed.
  4965. * src/DelegatingPeerListProcessor.h: Removed.
  4966. * test/Makefile.am
  4967. * test/PeerListProcessorTest.cc
  4968. * test/DefaultPeerListProcessorTest.cc: Removed.
  4969. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4970. Rewritten RequestGroupMan::calculateStat()
  4971. * src/RequestGroupMan.cc
  4972. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4973. Removed unnecessary virtual destructor for Request class.
  4974. * src/Request.cc
  4975. * src/Request.h
  4976. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4977. Avoid dynamic_pointer_cast.
  4978. * src/DHTGetPeersCommand.cc
  4979. * src/DHTGetPeersCommand.h
  4980. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4981. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4982. BtEvent.
  4983. * src/AbstractBtEventListener.h: Removed.
  4984. * src/AbstractBtMessage.cc
  4985. * src/AbstractBtMessage.h
  4986. * src/BtAbortOutstandingRequestEvent.h
  4987. * src/BtCancelSendingPieceEvent.h
  4988. * src/BtChokedEvent.h: Removed.
  4989. * src/BtChokingEvent.h
  4990. * src/BtEvent.h: Removed
  4991. * src/BtEventListener.h: Removed.
  4992. * src/BtMessage.h
  4993. * src/BtPieceMessage.cc
  4994. * src/BtPieceMessage.h
  4995. * src/BtRequestMessage.cc
  4996. * src/BtRequestMessage.h
  4997. * src/DefaultBtMessageDispatcher.cc
  4998. * src/Makefile.am
  4999. * src/a2functional.h
  5000. * test/BtPieceMessageTest.cc
  5001. * test/BtRequestMessageTest.cc
  5002. * test/DefaultBtMessageDispatcherTest.cc
  5003. * test/MockBtMessage.h
  5004. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5005. Code cleanup
  5006. * src/RequestGroupMan.cc
  5007. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5008. Code cleanup
  5009. * src/DownloadCommand.cc
  5010. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5011. Fixed segmentation fault when GZipDecoder::decode() returns 0
  5012. byte.
  5013. * src/DownloadCommand.cc
  5014. * src/bitfield.h
  5015. * test/bitfieldTest.cc
  5016. Fixed the bug that causes infinite loop if broken web server
  5017. returns chunked response without last "0" chunk-size marker and
  5018. closes connection.
  5019. * src/DownloadCommand.cc
  5020. Instantiate properly configured HttpDownloadCommand for
  5021. non-resumable downlaods.
  5022. * src/HttpResponseCommand.cc
  5023. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5024. Rewritten array operation functions.
  5025. * src/BitfieldMan.cc
  5026. * src/array_fun.h
  5027. * test/array_funTest.cc
  5028. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5029. Removed unused variable 'query'
  5030. * src/Request.cc
  5031. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5032. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  5033. accidentally set to false in r1162.
  5034. * configure.ac
  5035. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5036. Code cleanup
  5037. * src/BNode.cc
  5038. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5039. Increase prefixLength for the bucket which doesn't own local node
  5040. ID when splitting bucket.
  5041. * src/DHTBucket.cc
  5042. * test/DHTBucketTest.cc
  5043. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5044. * Release 1.3.1
  5045. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5046. Bump up version number to 1.3.1
  5047. * configure.ac
  5048. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Removed unused variable checkPoint. Also removed include directive
  5050. for TimeA2.h.
  5051. * src/SeedCheckCommand.h
  5052. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5053. Fixed the bug that upload limit exceeds the value specified in
  5054. --seed-ratio option depending on the timing of the execution of
  5055. SeedCheckCommand.
  5056. * src/SeedCheckCommand.cc
  5057. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5058. Fixed the bug that removed peer's session upload/download length
  5059. are counted twice in _cachedTransferStat before it is
  5060. re-calculated. This affected the calculation of shara ratio,
  5061. resulting aria2 wrongly determines that specified share ratio is
  5062. reached. Also fixed the typo in calculateStatFor function name.
  5063. * src/BtSetup.cc
  5064. * src/DefaultPeerStorage.cc
  5065. * src/ShareRatioSeedCriteria.h
  5066. * test/ShareRatioSeedCriteriaTest.cc
  5067. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5068. * Release 1.3.0
  5069. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5070. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  5071. Nynorsk translations. Thanks to all translators.
  5072. * po/es.po
  5073. * po/ja.po
  5074. * po/nn.po
  5075. * po/ru.po
  5076. * po/uk.po
  5077. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5078. Rewritten isInRange()
  5079. * src/DHTBucket.cc
  5080. * test/DHTBucketTest.cc
  5081. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5082. Fixed typo
  5083. * doc/aria2c.1.txt
  5084. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5085. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  5086. malloc/realloc is not used.
  5087. * src/configure.ac
  5088. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5089. BitfieldMan::getMissingIndexes family functions now takes unsigned
  5090. char* bitfield instead of stl container for efficiency.
  5091. PieceSelector::select now takes this
  5092. bitfield. RarestPieceSelector::select now also performs
  5093. efficiently for this change. bitfield namespace is introduced and
  5094. it has several helper functions to handle basic bitfield
  5095. operations such as test, count set bits, etc.
  5096. * src/BitfieldMan.cc
  5097. * src/BitfieldMan.h
  5098. * src/DefaultBtRequestFactory.cc
  5099. * src/DefaultPieceStorage.cc
  5100. * src/DefaultPieceStorage.h
  5101. * src/LongestSequencePieceSelector.cc
  5102. * src/LongestSequencePieceSelector.h
  5103. * src/Makefile.am
  5104. * src/Piece.cc
  5105. * src/Piece.h
  5106. * src/PieceSelector.h
  5107. * src/RarestPieceSelector.cc
  5108. * src/RarestPieceSelector.h
  5109. * src/Util.cc
  5110. * src/Util.h
  5111. * src/bitfield.h
  5112. * test/BitfieldManTest.cc
  5113. * test/LongestSequencePieceSelectorTest.cc
  5114. * test/Makefile.am
  5115. * test/RarestPieceSelectorTest.cc
  5116. * test/UtilTest.cc
  5117. * test/bitfieldTest.cc
  5118. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5119. Made accepted socket non-block.
  5120. * src/FtpNegotiationCommand.cc
  5121. * src/HttpListenCommand.cc
  5122. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5123. Guarded #ifdef HAVE_POSIX_FALLOCATE
  5124. * src/AbstractSingleDiskAdaptor.cc
  5125. * src/DefaultPieceStorage.cc
  5126. * src/DiskAdaptor.h
  5127. * src/DiskAdaptor.h
  5128. * src/MultiFileAllocationIterator.cc
  5129. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5130. Run
  5131. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  5132. in every 1 sec. The timeout of RequestSlot is 60s by default and
  5133. it doesn't need to be called every time when
  5134. DefaultBtInteractive::doInteractionProcessing() is called.
  5135. * src/DefaultBtInteractive.cc
  5136. * src/DefaultBtInteractive.h
  5137. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5138. Documented 'falloc' in man page.
  5139. * doc/aria2c.1.txt
  5140. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5141. Updated doc
  5142. * src/usage_text.h
  5143. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5144. Added 'falloc' parameter for --file-allocation option. 'falloc'
  5145. allocation mode uses posix_fallocate() system call to allocate
  5146. file on disk. If you are using newer file systems such as ext4
  5147. (with extents support), btrfs or xfs, 'falloc' is your best
  5148. choice. It allocates large(few GiB) files almost instantly. Don't
  5149. use 'falloc' with legacy file systems such as ext3 because it
  5150. takes almost same time as 'prealloc' and it blocks aria2 entirely
  5151. until allocation finishes. 'falloc' may not be available if your
  5152. system doesn't have posix_fallocate() system call.
  5153. * configure.ac
  5154. * src/AbstractDiskWriter.cc
  5155. * src/AbstractDiskWriter.h
  5156. * src/AbstractSingleDiskAdaptor.cc
  5157. * src/BinaryStream.h
  5158. * src/BtCheckIntegrityEntry.cc
  5159. * src/ByteArrayDiskWriter.h
  5160. * src/CheckIntegrityEntry.cc
  5161. * src/CheckIntegrityEntry.h
  5162. * src/DefaultPieceStorage.cc
  5163. * src/DiskAdaptor.cc
  5164. * src/DiskAdaptor.h
  5165. * src/DiskWriter.h
  5166. * src/FallocFileAllocationIterator.cc
  5167. * src/FallocFileAllocationIterator.h
  5168. * src/FileAllocationEntry.cc
  5169. * src/FileAllocationEntry.h
  5170. * src/Makefile.am
  5171. * src/MultiFileAllocationIterator.cc
  5172. * src/MultiFileAllocationIterator.h
  5173. * src/OptionHandlerFactory.cc
  5174. * src/RequestGroup.cc
  5175. * src/StreamCheckIntegrityEntry.cc
  5176. * src/prefs.cc
  5177. * src/prefs.h
  5178. * src/usage_text.h
  5179. * test/FallocFileAllocationIteratorTest.cc
  5180. * test/Makefile.am
  5181. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5182. Removed duplicate enableDirectIO() call.
  5183. * src/MultiFileAllocationIterator.cc
  5184. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5185. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  5186. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  5187. cost of std::rotate().
  5188. * src/RarestPieceSelector.cc
  5189. * src/RarestPieceSelector.h
  5190. * test/RarestPieceSelectorTest.cc
  5191. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5192. Updated usage doc for --bt-tracker-interval option.
  5193. * src/usage_text.h
  5194. * doc/aria2c.1.txt
  5195. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5196. Documented --bt-tracker-interval option in man page.
  5197. * doc/aria2c.1.txt
  5198. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5199. Added an option to specify the interval between tracker requests.
  5200. If non-zero value is specified, aria2 uses it and ignores the
  5201. interval value in the response of tracker. If zero is specified,
  5202. aria2 determines the inteval value based on the tarcker response
  5203. and download progress.
  5204. * src/DefaultBtAnnounce.cc
  5205. * src/DefaultBtAnnounce.h
  5206. * src/OptionHandlerFactory.cc
  5207. * src/RequestGroup.cc
  5208. * src/prefs.cc
  5209. * src/prefs.h
  5210. * src/usage_text.h
  5211. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5212. Added operator+=, operator-=, operator-
  5213. * src/TransferStat.cc
  5214. * src/TransferStat.h
  5215. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5216. Refactored RarestPieceSelector to reduce CPU load, especially for
  5217. addPieceStats.
  5218. * src/RarestPieceSelector.cc
  5219. * src/RarestPieceSelector.h
  5220. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5221. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  5222. getAllMissingBlockIndexes to reduce a call to
  5223. array_function_base::operator[].
  5224. * src/BitfieldMan.cc
  5225. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5226. Cached TransferStat/download speed to avoid to sum them up in each
  5227. call.
  5228. * src/DefaultPeerStorage.cc
  5229. * src/DefaultPeerStorage.h
  5230. * src/SegmentMan.cc
  5231. * src/SegmentMan.h
  5232. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5233. Typedefed cuid_t as int32_t in Command.h
  5234. * src/CUIDCounter.h
  5235. * src/Command.cc
  5236. * src/Command.h
  5237. * src/DownloadEngine.cc
  5238. * src/DownloadEngine.h
  5239. * src/PeerStat.h
  5240. * src/SegmentMan.cc
  5241. * src/SegmentMan.h
  5242. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5243. Reduced the number of calls to PeerStorage::calculateStat() and
  5244. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  5245. transfer rate.
  5246. * src/DefaultBtInteractive.cc
  5247. * src/DefaultBtMessageDispatcher.cc
  5248. * src/DefaultPeerStorage.cc
  5249. * src/DefaultPeerStorage.h
  5250. * src/DownloadCommand.cc
  5251. * src/DownloadEngine.cc
  5252. * src/PeerStorage.h
  5253. * src/SegmentMan.cc
  5254. * src/SegmentMan.h
  5255. * test/MockPeerStorage.h
  5256. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5257. Prepended _dir+"/" after joining path elements in torrent file.
  5258. * src/DefaultBtContext.cc
  5259. * test/DefaultBtContextTest.cc
  5260. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5261. Added missing IndexBtMessageValidator.h
  5262. * src/Makefile.am
  5263. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5264. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  5265. Chinese translations. Thank you for contributing our project.
  5266. * po/id.po
  5267. * po/it.po
  5268. * po/ru.po
  5269. * po/uk.po
  5270. * po/zh_CN.po
  5271. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5272. Updated README
  5273. * README
  5274. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5275. Bump up version number to 1.3.0
  5276. * configure.ac
  5277. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5278. Updated doc
  5279. * src/DefaultBtContext.h
  5280. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5281. Slice/joinPath for name of single torrent.
  5282. * src/DefaultBtContext.cc
  5283. * test/DefaultBtContextTest.cc
  5284. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5285. Updated man page: Documented --dry-run and --index-out
  5286. options. Changed the default value of --uri-selector and
  5287. --http-auth-challenge options. Removed --direct-file-mapping
  5288. option. Added example for --index-out
  5289. * doc/aria2c.1.txt
  5290. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5291. Updated TEXT_DRY_RUN
  5292. * src/usage_text.h
  5293. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5294. Changed the default value of --uri-selector option from 'inorder'
  5295. to 'feedback'
  5296. * src/OptionHandlerFactory.cc
  5297. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5298. Included current URI in exception message.
  5299. * src/AbstractCommand.cc
  5300. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5301. Renamed ServerStatURISelector as FeedbackURISelector.
  5302. * src/FeedbackURISelector.cc
  5303. * src/FeedbackURISelector.h
  5304. * src/Makefile.am
  5305. * src/RequestGroupMan.cc
  5306. * src/ServerStatURISelector.cc
  5307. * src/ServerStatURISelector.h
  5308. * test/FeedbackURISelectorTest.cc
  5309. * test/Makefile.am
  5310. * test/ServerStatURISelectorTest.cc
  5311. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5312. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  5313. all URIs are tested and their timeout is not reached.
  5314. * src/AdaptiveURISelector.cc
  5315. * src/AdaptiveURISelector.h
  5316. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5317. Changed the default value of --http-auth-challenge option to false.
  5318. * src/OptionHandlerFactory.cc
  5319. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5320. Reuse URIs when all unused URIs run out.
  5321. * src/OptionHandlerFactory.cc
  5322. * src/RequestGroup.cc
  5323. * src/prefs.cc
  5324. * src/prefs.h
  5325. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5326. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  5327. and BtRejectMessage are derived from RangeBtMessage class.
  5328. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  5329. derived from IndexBtMessage class. BtChokeMessage,
  5330. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  5331. BtNotInterestedMessage and BtUnchokeMessage are derived from
  5332. ZeroBtMessage class.
  5333. * src/AbstractBtMessage.cc
  5334. * src/AbstractBtMessage.h
  5335. * src/BtAllowedFastMessage.cc
  5336. * src/BtAllowedFastMessage.h
  5337. * src/BtAllowedFastMessageValidator.h: Removed
  5338. * src/BtBitfieldMessage.cc
  5339. * src/BtBitfieldMessage.h
  5340. * src/BtCancelMessage.cc
  5341. * src/BtCancelMessage.h
  5342. * src/BtCancelMessageValidator.h: Removed
  5343. * src/BtChokeMessage.cc
  5344. * src/BtChokeMessage.h
  5345. * src/BtExtendedMessage.cc
  5346. * src/BtExtendedMessage.h
  5347. * src/BtHandshakeMessage.cc
  5348. * src/BtHandshakeMessage.h
  5349. * src/BtHaveAllMessage.cc
  5350. * src/BtHaveAllMessage.h
  5351. * src/BtHaveMessage.cc
  5352. * src/BtHaveMessage.h
  5353. * src/BtHaveMessageValidator.h: Removed
  5354. * src/BtHaveNoneMessage.cc
  5355. * src/BtHaveNoneMessage.h
  5356. * src/BtInterestedMessage.cc
  5357. * src/BtInterestedMessage.h
  5358. * src/BtKeepAliveMessage.cc
  5359. * src/BtKeepAliveMessage.h
  5360. * src/BtNotInterestedMessage.cc
  5361. * src/BtNotInterestedMessage.h
  5362. * src/BtPieceMessage.cc
  5363. * src/BtPieceMessage.h
  5364. * src/BtPortMessage.cc
  5365. * src/BtPortMessage.h
  5366. * src/BtRejectMessage.cc
  5367. * src/BtRejectMessage.h
  5368. * src/BtRejectMessageValidator.h: Removed
  5369. * src/BtRequestMessage.cc
  5370. * src/BtRequestMessage.h
  5371. * src/BtRequestMessageValidator.h: Removed
  5372. * src/BtSuggestPieceMessage.cc
  5373. * src/BtSuggestPieceMessage.h
  5374. * src/BtSuggestPieceMessageValidator.h: Removed
  5375. * src/BtUnchokeMessage.cc
  5376. * src/BtUnchokeMessage.h
  5377. * src/DefaultBtMessageFactory.cc
  5378. * src/IndexBtMessage.cc
  5379. * src/IndexBtMessage.h
  5380. * src/IndexBtMessageValidator.h
  5381. * src/Makefile.am
  5382. * src/PeerMessageUtil.cc
  5383. * src/PeerMessageUtil.h
  5384. * src/RangeBtMessage.cc
  5385. * src/RangeBtMessage.h
  5386. * src/RangeBtMessageValidator.h
  5387. * src/SimpleBtMessage.cc
  5388. * src/SimpleBtMessage.h
  5389. * src/ZeroBtMessage.cc
  5390. * src/ZeroBtMessage.h
  5391. * test/BtRequestMessageTest.cc
  5392. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5393. Reverted usage_text.h to r1093 to avoid to lose translated
  5394. messages.
  5395. * src/usage_text.h
  5396. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5397. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5398. declared as non-const previously is now const and defined in class
  5399. definition.
  5400. * src/AbstractBtMessage.cc
  5401. * src/AbstractBtMessage.h
  5402. * src/BtAllowedFastMessage.cc
  5403. * src/BtAllowedFastMessage.h
  5404. * src/BtBitfieldMessage.h
  5405. * src/BtCancelMessage.cc
  5406. * src/BtCancelMessage.h
  5407. * src/BtChokeMessage.cc
  5408. * src/BtChokeMessage.h
  5409. * src/BtExtendedMessage.cc
  5410. * src/BtExtendedMessage.h
  5411. * src/BtHandshakeMessage.cc
  5412. * src/BtHandshakeMessage.h
  5413. * src/BtHaveAllMessage.cc
  5414. * src/BtHaveAllMessage.h
  5415. * src/BtHaveMessage.cc
  5416. * src/BtHaveMessage.h
  5417. * src/BtHaveNoneMessage.cc
  5418. * src/BtHaveNoneMessage.h
  5419. * src/BtInterestedMessage.cc
  5420. * src/BtInterestedMessage.h
  5421. * src/BtKeepAliveMessage.cc
  5422. * src/BtKeepAliveMessage.h
  5423. * src/BtMessage.h
  5424. * src/BtNotInterestedMessage.cc
  5425. * src/BtNotInterestedMessage.h
  5426. * src/BtPieceMessage.h
  5427. * src/BtPortMessage.cc
  5428. * src/BtPortMessage.h
  5429. * src/BtRejectMessage.cc
  5430. * src/BtRejectMessage.h
  5431. * src/BtRequestMessage.cc
  5432. * src/BtRequestMessage.h
  5433. * src/BtSuggestPieceMessage.cc
  5434. * src/BtSuggestPieceMessage.h
  5435. * src/BtUnchokeMessage.cc
  5436. * src/BtUnchokeMessage.h
  5437. * src/SimpleBtMessage.cc
  5438. * src/SimpleBtMessage.h
  5439. * test/MockBtMessage.h
  5440. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5441. Use FileEntry::exists()
  5442. * src/MultiDiskAdaptor.cc
  5443. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5444. Added exists()
  5445. * src/FileEntry.cc
  5446. * src/FileEntry.h
  5447. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5448. Added missing prefix dir.
  5449. * src/download_helper.cc
  5450. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5451. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5452. * src/CopyDiskAdaptor.cc: Removed
  5453. * src/CopyDiskAdaptor.h: Removed
  5454. * src/DefaultPieceStorage.cc
  5455. * src/Makefile.am
  5456. * src/OptionHandlerFactory.cc
  5457. * src/prefs.cc
  5458. * src/prefs.h
  5459. * src/usage_text.h
  5460. * test/CopyDiskAdaptorTest.cc: Removed
  5461. * test/Makefile.am
  5462. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5463. Rewritten isSameFileBeingDownloaded()
  5464. * src/RequestGroupMan.cc
  5465. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5466. Removed getName() from DownloadContext. getName() is declared in
  5467. BtContext.
  5468. * src/BtContext.h
  5469. * src/DownloadContext.h
  5470. * src/SingleFileDownloadContext.cc
  5471. * src/SingleFileDownloadContext.h
  5472. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5473. in AbstractSingleDiskAdaptor.
  5474. * src/AbstractSingleDiskAdaptor.h
  5475. * src/DiskAdaptor.h
  5476. * src/MultiDiskAdaptor.h
  5477. * src/RequestGroup.cc
  5478. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5479. MultiDiskAdaptor.
  5480. * src/DefaultPieceStorage.cc
  5481. * src/MultiDiskAdaptor.cc
  5482. * src/MultiDiskAdaptor.h
  5483. * test/MultiDiskAdaptorTest.cc
  5484. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5485. FileEntry::getPath() contains store(top level) directory to
  5486. simplify path handling operation. In the previous implementation,
  5487. store directory is concatenated to FileEntry::getPath() in
  5488. DownloadContext.
  5489. * src/BtDependency.cc
  5490. * src/BtPostDownloadHandler.cc
  5491. * src/CopyDiskAdaptor.cc
  5492. * src/DefaultBtContext.cc
  5493. * src/DirectDiskAdaptor.cc
  5494. * src/FileEntry.cc
  5495. * src/FileEntry.h
  5496. * src/FtpNegotiationCommand.cc
  5497. * src/HttpResponse.cc
  5498. * src/HttpResponseCommand.cc
  5499. * src/Metalink2RequestGroup.cc
  5500. * src/MultiDiskAdaptor.cc
  5501. * src/MultiDiskAdaptor.h
  5502. * src/MultiFileAllocationIterator.cc
  5503. * src/RequestGroup.cc
  5504. * src/SingleFileDownloadContext.cc
  5505. * src/SingleFileDownloadContext.h
  5506. * src/download_helper.cc
  5507. * test/BtDependencyTest.cc
  5508. * test/CopyDiskAdaptorTest.cc
  5509. * test/DefaultBtContextTest.cc
  5510. * test/DefaultBtProgressInfoFileTest.cc
  5511. * test/DirectDiskAdaptorTest.cc
  5512. * test/DownloadHelperTest.cc
  5513. * test/FileEntryTest.cc
  5514. * test/MultiDiskAdaptorTest.cc
  5515. * test/MultiFileAllocationIteratorTest.cc
  5516. * test/RequestGroupTest.cc
  5517. * test/SingleFileDownloadContextTest.cc
  5518. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5519. Fixed compiler warning
  5520. * src/download_helper.cc
  5521. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5522. Throw exception if same infohash torrent is now downloading.
  5523. * src/RequestGroup.cc
  5524. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5525. Added --dry-run option. In this mode, aria2 just checks whether
  5526. the remote file is available and doesn't download data. This
  5527. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5528. are canceled in this mode.
  5529. * src/FtpNegotiationCommand.cc
  5530. * src/HttpResponseCommand.cc
  5531. * src/HttpResponseCommand.h
  5532. * src/OptionHandlerFactory.cc
  5533. * src/RequestGroup.cc
  5534. * src/RequestGroupMan.cc
  5535. * src/prefs.cc
  5536. * src/prefs.h
  5537. * src/usage_text.h
  5538. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5539. Fixed compiler waring
  5540. * test/UriListParserTest.cc
  5541. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5542. Parse options in -i list using OptionParser.
  5543. * src/UriListParser.cc
  5544. * src/UriListParser.h
  5545. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5546. Don't reset URI in retry to avoid additional round trips because
  5547. of redirects.
  5548. * src/AbstractCommand.cc
  5549. * src/OptionHandlerFactory.cc
  5550. * src/prefs.cc
  5551. * src/prefs.h
  5552. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5553. Declared hide() in OptionHandler.
  5554. * src/NameMatchOptionHandler.h
  5555. * src/OptionHandler.h
  5556. * src/OptionHandlerImpl.h
  5557. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5558. Updated doc
  5559. * src/Peer.h
  5560. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5561. Added log message in setStatusInternal()
  5562. * src/ServerStat.cc
  5563. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5564. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5565. effectively exclude failed server.
  5566. * src/AbstractCommand.cc
  5567. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5568. Added --index-out option to specify each file path for torrent.
  5569. Here index shown in --show-files option is used to specify which
  5570. file path should be altered. For example, to change the file path
  5571. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5572. option multiple times: --index-out=1=aria2.tar.bz2
  5573. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5574. available. This option can be specified in -i list.
  5575. * src/DefaultBtContext.cc
  5576. * src/DefaultBtContext.h
  5577. * src/MultiDiskAdaptor.cc
  5578. * src/MultiDiskAdaptor.h
  5579. * src/MultiFileAllocationIterator.cc
  5580. * src/OptionHandlerFactory.cc
  5581. * src/OptionHandlerImpl.h
  5582. * src/Util.cc
  5583. * src/Util.h
  5584. * src/download_helper.cc
  5585. * src/prefs.cc
  5586. * src/prefs.h
  5587. * src/usage_text.h
  5588. * test/DefaultBtContextTest.cc
  5589. * test/MultiDiskAdaptorTest.cc
  5590. * test/MultiFileAllocationIteratorTest.cc
  5591. * test/UtilTest.cc
  5592. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5593. Use Util::pathJoin()
  5594. * src/MetalinkParserController.cc
  5595. * test/test.xml
  5596. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5597. Use Util::pathJoin()
  5598. * src/DefaultBtContext.cc
  5599. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5600. Added Util::pathJoin()
  5601. * src/Util.h
  5602. * test/UtilTest.cc
  5603. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5604. Applied basename function to remove directory element in
  5605. content-disposition value.
  5606. Return empty string if content-disposition value is ".." or ".".
  5607. * src/Util.cc
  5608. * test/UtilTest.cc
  5609. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5610. Added --max-overall-download-limit in man page.
  5611. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5612. * doc/aria2c.1.txt
  5613. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5614. Added --max-overall-download-limit option. Now --max-upload-limit
  5615. option is not ignored when --max-overall-upload-limit option has
  5616. non-zero value. aria2 checks download(upload) speed in the order:
  5617. first checks overall speed limit and if it is not exceeded, then
  5618. checks speed limit per download. Thus you can specify both
  5619. value. For example, set --max-overall-download-limit=1M and
  5620. --max-download-limit=500K to prevent from one download from eating
  5621. all overall speed limit.
  5622. * src/DefaultBtInteractive.cc
  5623. * src/DefaultBtInteractive.h
  5624. * src/DefaultBtMessageDispatcher.cc
  5625. * src/DefaultBtMessageDispatcher.h
  5626. * src/DownloadCommand.cc
  5627. * src/DownloadCommand.h
  5628. * src/FtpNegotiationCommand.cc
  5629. * src/HttpResponseCommand.cc
  5630. * src/OptionHandlerFactory.cc
  5631. * src/PeerInteractionCommand.cc
  5632. * src/RequestGroup.cc
  5633. * src/RequestGroup.h
  5634. * src/RequestGroupMan.cc
  5635. * src/RequestGroupMan.h
  5636. * src/prefs.cc
  5637. * src/prefs.h
  5638. * src/usage_text.h
  5639. * test/DefaultBtMessageDispatcherTest.cc
  5640. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5641. Documented select-file option in Input File section.
  5642. Documented --http-auth-challenge option.
  5643. * doc/aria2c.1.txt
  5644. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5645. Now select-file can be specified in the uri list(-i list).
  5646. * src/BtContext.cc
  5647. * src/BtContext.h
  5648. * src/RequestGroup.cc
  5649. * src/Sequence.h
  5650. * src/download_helper.cc
  5651. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5652. Made the upper value of --max-concurrent-downloads options unlimited.
  5653. * src/OptionHandlerFactory.cc
  5654. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5655. Fixed the bug that disk writer is not created even if it shares
  5656. same piece with the preceding file if the length of previous file
  5657. is 0.
  5658. * src/MultiDiskAdaptor.cc
  5659. * test/MultiDiskAdaptorTest.cc
  5660. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5661. In BitTorrent, Open files in read-only mode for hash check. After
  5662. that, re-open file in read/write mode only when the download is
  5663. not finished.
  5664. * src/AbstractDiskWriter.cc
  5665. * src/AbstractDiskWriter.h
  5666. * src/AbstractSingleDiskAdaptor.cc
  5667. * src/AbstractSingleDiskAdaptor.h
  5668. * src/BtCheckIntegrityEntry.cc
  5669. * src/DiskAdaptor.h
  5670. * src/DiskWriter.h
  5671. * src/MultiDiskAdaptor.cc
  5672. * src/MultiDiskAdaptor.h
  5673. * src/RequestGroup.cc
  5674. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5675. Added --http-auth-challenge option. If it is set to true(by
  5676. default), aria2 sends HTTP authorization header only when it is
  5677. requested by the server. If false is set, then authorization
  5678. header is always sent to the server. This is useful for servers
  5679. that don't respond 401 code when authentication is required.
  5680. There is an exception: if username and password are embedded in
  5681. URI, authorization header is always sent to the server regardless
  5682. of this option.
  5683. * src/AuthConfigFactory.cc
  5684. * src/HttpSkipResponseCommand.cc
  5685. * src/OptionHandlerFactory.cc
  5686. * src/prefs.cc
  5687. * src/prefs.h
  5688. * src/usage_text.h
  5689. * test/AuthConfigFactoryTest.cc
  5690. * test/HttpRequestTest.cc
  5691. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5692. * Release 1.2.0
  5693. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5694. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5695. Thanks to all translators.
  5696. * po/es.po
  5697. * po/ja.po
  5698. * po/ru.po
  5699. * po/uk.po
  5700. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5701. Call deleteSocketForReadCheck() before socket is closed.
  5702. * src/HttpListenCommand.cc
  5703. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5704. Defined virtual destructor for BObject.
  5705. * src/bencode.h
  5706. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5707. Rewritten BDE to make it efficient.
  5708. * src/bencode.cc
  5709. * src/bencode.h
  5710. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5711. Removed function throw list.
  5712. * src/bencode.cc
  5713. * src/bencode.h
  5714. * test/BencodeTest.cc
  5715. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5716. Enclosed all URLs in double quotes in command-line examples.
  5717. * doc/aria2c.1.txt
  5718. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5719. Updated reference/see also section.
  5720. * README
  5721. * doc/aria2c.1.txt
  5722. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5723. Reorganized man page based on man man-pages.
  5724. * doc/aria2c.1.txt
  5725. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5726. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5727. because same documents are available in man page. Added
  5728. References section.
  5729. * README
  5730. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5731. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5732. PERFORMANCE PROFILE section.
  5733. * doc/aria2c.1.txt
  5734. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5735. Rewritten the section for configuration file.
  5736. * README
  5737. * doc/aria2c.1.txt
  5738. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5739. Fixed the segmentation fault during execution of choking algorithm
  5740. in leecher state because of broken compare operator
  5741. implementation.
  5742. * src/BtLeecherStateChoke.cc
  5743. * src/BtLeecherStateChoke.h
  5744. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5745. Open file in binary mode.
  5746. * src/CookieStorage.cc
  5747. * src/DHTSetup.cc
  5748. * src/DHTUtil.cc
  5749. * src/Netrc.cc
  5750. * src/NsCookieParser.cc
  5751. * src/ProtocolDetector.cc
  5752. * src/RequestGroupMan.cc
  5753. * src/Signature.cc
  5754. * src/bencode.cc
  5755. * src/download_helper.cc
  5756. * src/option_processing.cc
  5757. * test/CookieParserTest.cc
  5758. * test/DefaultBtProgressInfoFileTest.cc
  5759. * test/FileTest.cc
  5760. * test/GZipDecoderTest.cc
  5761. * test/RequestGroupManTest.cc
  5762. * test/SignatureTest.cc
  5763. * test/SingleFileAllocationIteratorTest.cc
  5764. * test/UriListParserTest.cc
  5765. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5766. Removed operator[] because it is ambiguous with built-in []
  5767. operator.
  5768. * src/array_fun.h
  5769. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5770. Fixed compile error
  5771. * src/OptionParser.cc
  5772. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5773. Added missing call to arrayWrapperConst
  5774. * test/array_funTest.cc
  5775. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5776. Use array_wrapper instead of array_ptr.
  5777. * src/DHTRoutingTableDeserializer.cc
  5778. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5779. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5780. * src/array_fun.h
  5781. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5782. Added array_wrapper template.
  5783. * src/array_fun.h
  5784. * test/array_funTest.cc
  5785. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5786. Use operator T* of array_ptr.
  5787. * src/OptionParser.cc
  5788. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5789. Use localhost instead of 127.0.0.1
  5790. * test/FtpConnectionTest.cc
  5791. * test/MSEHandshakeTest.cc
  5792. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5793. Added operator T*
  5794. * src/array_fun.h
  5795. * test/array_funTest.cc
  5796. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5797. Use dynamically allocated char array to detect memory access
  5798. violation.
  5799. * src/DHTRoutingTableDeserializer.cc
  5800. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5801. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5802. defined.
  5803. * src/PeerMessageUtil.cc
  5804. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5805. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5806. * configure.ac
  5807. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5808. Added a check to see struct sockaddr_in has sin_len member.
  5809. * configure.ac
  5810. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5811. Fixed buffer overrun.
  5812. * src/DHTRoutingTableDeserializer.cc
  5813. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5814. Added LL for long long int constant.
  5815. * test/FtpConnectionTest.cc
  5816. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5817. Casted to unsigned int to suppress compiler warning on netbsd.
  5818. * src/BtRuntime.h
  5819. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5820. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5821. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5822. type time_t.
  5823. * src/SimpleLogger.cc
  5824. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5825. Added test for FtpConnection::receiveSizeResponse().
  5826. * test/FtpConnectionTest.cc
  5827. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5828. Fix epoll error on the old kernel 2.6.8 or ealier.
  5829. * src/EpollEventPoll.cc
  5830. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5831. Use Util::parseLLInt instead of sscanf for portability. The
  5832. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5833. * src/FtpConnection.cc
  5834. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5835. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5836. block. It should not filter anything.
  5837. * src/BitfieldMan.cc
  5838. * src/ConsoleStatCalc.cc
  5839. * test/BitfieldManTest.cc
  5840. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5841. Fixed the bug that the boolean options that don't take arguments
  5842. don't work.
  5843. * src/OptionHandlerImpl.h
  5844. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5845. Fixed broken selected file BitTorrent download.
  5846. * src/MultiDiskAdaptor.cc
  5847. * test/MultiDiskAdaptorTest.cc
  5848. * test/MultiFileAllocationIteratorTest.cc
  5849. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5850. Fixed #define guard for EpollEventPoll
  5851. * src/EpollEventPoll.h
  5852. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5853. Wait 2 seconds. 1 second is sometimes not enough.
  5854. * test/TimeSeedCriteriaTest.cc
  5855. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5856. Use localhost instead of 127.0.0.1.
  5857. * test/DHTConnectionImplTest.cc
  5858. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5859. Suppressed compiler warning.
  5860. * src/AdaptiveURISelector.cc
  5861. * src/DefaultPieceStorage.cc
  5862. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5863. Defined virtual destructor.
  5864. * src/MetalinkParserState.h
  5865. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5866. Give NULL for second argument of getaddrinfo instead of "0".
  5867. * src/NameResolver.cc
  5868. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5869. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5870. included strptime doesn't parse data for this format.
  5871. * src/FtpConnection.cc
  5872. * test/FtpConnectionTest.cc
  5873. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5874. Removed tests giving -1 for unsigned argument.
  5875. * test/SingleFileDownloadContextTest.cc
  5876. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5877. Don't use sha256 in tests because it might not be supported by the
  5878. SSL library.
  5879. * test/MetalinkProcessorTest.cc
  5880. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5881. Removed tests giving -1 for unsigned argument.
  5882. * test/AlphaNumberDecoratorTest
  5883. * test/BitfieldManTest.cc
  5884. * test/DefaultBtContextTest.cc
  5885. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5886. Fixed compile error without libcares when epoll is available.
  5887. * src/EpollEventPoll.cc
  5888. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5889. Included fstream instead of iostream.
  5890. * test/SignatureTest.cc
  5891. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5892. Removed #include <algorithm>
  5893. * test/RequestGroupTest.cc
  5894. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5895. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5896. using RequestGroup::extractURIResult().
  5897. * src/AdaptiveURISelector.cc
  5898. * src/RequestGroup.cc
  5899. * src/RequestGroup.h
  5900. * test/RequestGroupTest.cc
  5901. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5902. Added tests for array_ptr.
  5903. * test/array_funTest.cc
  5904. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5905. Don't send ip parameter to a tracker if ip parameter is empty
  5906. string.
  5907. * src/DefaultBtAnnounce.cc
  5908. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5909. Adjusted line feed.
  5910. * src/version_usage.cc
  5911. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5912. Print tags, possible values when OptionHandlerException is caught.
  5913. * src/option_processing.cc
  5914. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5915. Changed the message for FatalException.
  5916. * src/OptionParser.cc
  5917. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5918. Documented --bt-external-ip option in man page. Updated man pages
  5919. for --proxy-method option.
  5920. * doc/aria2c.1.txt
  5921. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5922. Use GET method for FTP via HTTP proxy.
  5923. * src/FtpInitiateConnectionCommand.cc
  5924. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5925. Changed the default value of --proxy-method option from 'tunnel'
  5926. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5927. option.
  5928. * src/AbstractCommand.cc
  5929. * src/AbstractCommand.h
  5930. * src/FtpInitiateConnectionCommand.cc
  5931. * src/HttpDownloadCommand.cc
  5932. * src/HttpInitiateConnectionCommand.cc
  5933. * src/HttpInitiateConnectionCommand.h
  5934. * src/OptionHandlerFactory.cc
  5935. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5936. Initialized _logger
  5937. * src/SelectEventPoll.cc
  5938. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5939. Defined a copy constructor for the same type.
  5940. * src/SharedHandle.h
  5941. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5942. Added OptionParser::parseArg() which internally uses getopt_long
  5943. to parse command-line options. All command-line options are now
  5944. configured by OptionHandler. No manual editing of struct option*
  5945. is required any more.
  5946. * src/NameMatchOptionHandler.h
  5947. * src/OptionHandler.h
  5948. * src/OptionHandlerFactory.cc
  5949. * src/OptionHandlerImpl.h
  5950. * src/OptionParser.cc
  5951. * src/OptionParser.h
  5952. * src/array_fun.h
  5953. * src/main.cc
  5954. * src/option_processing.cc
  5955. * test/OptionHandlerTest.cc
  5956. * test/OptionParserTest.cc
  5957. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5958. Fixed configure error with --disable-epoll
  5959. * configure.ac
  5960. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5961. Fixed compile error when HAVE_EPOLL is not defined.
  5962. Fixed linker error on bigendian systems.
  5963. * src/SocketCore.cc
  5964. * src/SocketCore.h
  5965. * test/DefaultBtProgressInfoFileTest.cc
  5966. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5967. Added --bt-external-ip option. You can specify the external IP
  5968. address to report to a BitTorrent tracker. Although this function
  5969. is named 'external', it can accept any kind of IP addresses.
  5970. * src/DefaultBtAnnounce.cc
  5971. * src/OptionHandlerFactory.cc
  5972. * src/option_processing.cc
  5973. * src/prefs.cc
  5974. * src/prefs.h
  5975. * src/usage_text.h
  5976. * test/DefaultBtAnnounceTest.cc
  5977. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5978. Extracted the algorithm to find the longest incremental sequence
  5979. as max_sequence template.
  5980. * src/LongestSequencePieceSelector.cc
  5981. * src/a2algo.h
  5982. * test/Makefile.am
  5983. * test/a2algoTest.cc
  5984. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5985. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5986. * src/usage_text.h
  5987. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5988. Updated doc for --uri-selector, --http-server-listen-port and
  5989. --enable-http-server option. Documented --event-poll option.
  5990. * doc/aria2c.1.txt
  5991. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5992. Updated doc for --enable-http-server.
  5993. * src/usage_text.h
  5994. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5995. Documented --http-server-listen-port and --enable-http-server in
  5996. man page.
  5997. * doc/aria2c.1.txt
  5998. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5999. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  6000. translations. Thanks to all translators.
  6001. * po/es.po
  6002. * po/id.po
  6003. * po/it.po
  6004. * po/ru.po
  6005. * po/uk.po
  6006. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6007. Bump up version number to 1.2.0
  6008. * configure.ac
  6009. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6010. BtContext::getAnnounceTiers() now returns const reference.
  6011. * src/BtContext.h
  6012. * src/DefaultBtContext.cc
  6013. * src/DefaultBtContext.h
  6014. * test/MockBtContext.h
  6015. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6016. Change the number of retries for tracker request based on the
  6017. number of available tracker in a torrent file.
  6018. * src/TrackerWatcherCommand.cc
  6019. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6020. Added _maxTries property to RequestGroup and assign the option
  6021. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  6022. RequestGroup::getMaxTries() instead of
  6023. Option::getAsInt(PREF_MAX_TRIES).
  6024. * src/AbstractCommand.cc
  6025. * src/RequestGroup.cc
  6026. * src/RequestGroup.h
  6027. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6028. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  6029. Mandriva. I modified the patch: make RequestGroup have the
  6030. timeout value and AdaptiveURISelector directly modifies that
  6031. value.
  6032. * src/AbstractCommand.cc
  6033. * src/AdaptiveURISelector.cc
  6034. * src/AdaptiveURISelector.h
  6035. * src/FtpNegotiationCommand.cc
  6036. * src/RequestGroup.cc
  6037. * src/RequestGroup.h
  6038. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6039. Fixed compiler warning
  6040. * test/IteratableChecksumValidatorTest.cc
  6041. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6042. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  6043. integrated downloads. This PieceSelector subclass finds the
  6044. longest continuous sequence in the available missing pieces and
  6045. selects the last index of such sequence. This makes HTTP/FTP
  6046. connections less interrupted by the pieces obtained by BitTorrent
  6047. peers.
  6048. * src/DefaultPieceStorage.cc
  6049. * src/DefaultPieceStorage.h
  6050. * src/LongestSequencePieceSelector.cc
  6051. * src/LongestSequencePieceSelector.h
  6052. * src/Makefile.am
  6053. * src/PieceSelector.h
  6054. * src/RarestPieceSelector.h
  6055. * src/RequestGroup.cc
  6056. * test/BtDependencyTest.cc
  6057. * test/DefaultPieceStorageTest.cc
  6058. * test/IteratableChecksumValidatorTest.cc
  6059. * test/LongestSequencePieceSelectorTest.cc
  6060. * test/Makefile.am
  6061. * test/SegmentManTest.cc
  6062. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6063. Fixed the bug that the average speed is wrong in
  6064. http/ftp/BitTorrent integrated download. Only the download bytes
  6065. in BitTorrent were considered.
  6066. * src/RequestGroup.cc
  6067. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6068. Choose port for BitTorrent/DHT randomly from the specified range.
  6069. * src/DHTConnectionImpl.cc
  6070. * src/PeerListenCommand.cc
  6071. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6072. Send HTTP Authorization header only if it is requested by the
  6073. server(response 401). There are some exceptions. The authorization
  6074. header for proxy is always sent if it is available without request
  6075. by the server. If username/password is specified in the URI, it
  6076. is immediately sent to the server without request by the server.
  6077. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  6078. SharedHandle<AuthConfig>().
  6079. NetrcAuthResolver::resolveAuthConfig() returns
  6080. SharedHandle<AuthConfig>() if no AuthConfig is available.
  6081. * src/AbstractAuthResolver.cc
  6082. * src/AbstractProxyRequestCommand.cc
  6083. * src/AuthConfigFactory.cc
  6084. * src/AuthConfigFactory.h
  6085. * src/HttpConnection.cc
  6086. * src/HttpRequest.cc
  6087. * src/HttpRequest.h
  6088. * src/HttpResponse.cc
  6089. * src/HttpResponseCommand.cc
  6090. * src/HttpSkipResponseCommand.cc
  6091. * test/AuthConfigFactoryTest.cc
  6092. * test/HttpRequestTest.cc
  6093. * test/HttpResponseTest.cc
  6094. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6095. Remove leading "--" from help keyword and a substring after "="
  6096. from help keyword, so that one can query options by '-h--max-' or
  6097. '-hmax-peers=10'.
  6098. * src/option_processing.cc
  6099. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6100. Rewritten PStringVisitor and its implementation.
  6101. * src/PStringBuildVisitor.cc
  6102. * src/PStringBuildVisitor.h
  6103. * src/PStringDatum.h
  6104. * src/PStringNumLoop.h
  6105. * src/PStringSegment.cc
  6106. * src/PStringSegment.h
  6107. * src/PStringSelect.h
  6108. * src/PStringVisitor.h
  6109. * src/download_helper.cc
  6110. * test/PStringBuildVisitorTest.cc
  6111. * test/ParameterizedStringParserTest.cc
  6112. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6113. Persist connection between the built-in HTTP server and a client
  6114. if a client supports keep-alive. Fixed the bug that aria2 exits
  6115. when the HTTP server receives EOF from a client.
  6116. * src/HttpServer.cc
  6117. * src/HttpServer.h
  6118. * src/HttpServerCommand.cc
  6119. * src/HttpServerCommand.h
  6120. * src/HttpServerResponseCommand.cc
  6121. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6122. Added experimental built-in HTTP server. Currently, when a client
  6123. accesses to the server, it responds with the current download
  6124. progress. By default, it is disabled. To enable the server, give
  6125. --enable-http-server option. To change the default port number
  6126. for the server to listen to, use --http-server-listen-port option.
  6127. The response HTML is very simple and refreshes it self each 1
  6128. second. Because of this refresh, you see flicker in normal web
  6129. browser such as Firefox. I recommend to use console-based browser
  6130. such as elinks, w3m. To connect to the server, run 'elinks
  6131. http://localhost:6800/' while running aria2. Please replace port
  6132. number '6800'(which is default) with your preference.
  6133. * src/DownloadEngineFactory.cc
  6134. * src/HttpHeader.cc
  6135. * src/HttpHeader.h
  6136. * src/HttpHeaderProcessor.cc
  6137. * src/HttpHeaderProcessor.h
  6138. * src/HttpListenCommand.cc
  6139. * src/HttpListenCommand.h
  6140. * src/HttpServer.cc
  6141. * src/HttpServer.h
  6142. * src/HttpServerCommand.cc
  6143. * src/HttpServerCommand.h
  6144. * src/HttpServerResponseCommand.cc
  6145. * src/HttpServerResponseCommand.h
  6146. * src/Makefile.am
  6147. * src/OptionHandlerFactory.cc
  6148. * src/Util.cc
  6149. * src/Util.h
  6150. * src/help_tags.h
  6151. * src/option_processing.cc
  6152. * src/prefs.cc
  6153. * src/prefs.h
  6154. * src/usage_text.h
  6155. * test/HttpHeaderProcessorTest.cc
  6156. * test/UtilTest.cc
  6157. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6158. Removed.
  6159. * src/CheckIntegrityMan.cc
  6160. * src/FileAllocationMan.cc
  6161. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6162. Made (piece) hash check sequential for each RequestGroup because
  6163. simultaneous hash check is slower than sequential execution.
  6164. * src/CheckIntegrityCommand.cc
  6165. * src/CheckIntegrityDispatcherCommand.cc
  6166. * src/CheckIntegrityDispatcherCommand.h
  6167. * src/CheckIntegrityMan.h
  6168. * src/ConsoleStatCalc.cc
  6169. * src/DownloadCommand.cc
  6170. * src/DownloadEngine.cc
  6171. * src/DownloadEngine.h
  6172. * src/DownloadEngineFactory.cc
  6173. * src/Makefile.am
  6174. * src/Makefile.in
  6175. * src/RequestGroup.cc
  6176. * src/StatCalc.h
  6177. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6178. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  6179. SequentialDispatcherCommand.
  6180. * src/FileAllocationDispatcherCommand.cc
  6181. * src/SequentialDispatcherCommand.h
  6182. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6183. Rewritten FileAllocationDispatcherCommand using brand new
  6184. SequentialDispatcherCommand.
  6185. * src/DownloadEngineFactory.cc
  6186. * src/FileAllocationCommand.cc
  6187. * src/FileAllocationDispatcherCommand.cc
  6188. * src/FileAllocationDispatcherCommand.h
  6189. * src/Makefile.am
  6190. * src/SequentialDispatcherCommand.h
  6191. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6192. Replaced FileAllocationMan with
  6193. SequentialPicker<FileAllocationEntry>.
  6194. * src/BtCheckIntegrityEntry.cc
  6195. * src/ConsoleStatCalc.cc
  6196. * src/DownloadEngine.cc
  6197. * src/DownloadEngine.h
  6198. * src/DownloadEngineFactory.cc
  6199. * src/FileAllocationCommand.cc
  6200. * src/FileAllocationDispatcherCommand.cc
  6201. * src/FileAllocationMan.h
  6202. * src/Makefile.am
  6203. * src/SequentialPicker.h
  6204. * src/StatCalc.h
  6205. * src/StreamCheckIntegrityEntry.cc
  6206. * test/Makefile.am
  6207. * test/SequentialPickerTest.cc
  6208. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6209. Added doc for adaptive URI selector.
  6210. * doc/aria2c.1.txt
  6211. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6212. Added doc for adaptive URI selector.
  6213. * src/usage_text.h
  6214. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6215. Added doc for --bt-max-peers option.
  6216. * doc/aria2c.1.txt
  6217. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6218. Added doc for --bt-hash-check-seed option.
  6219. * doc/aria2c.1.txt
  6220. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6221. Documented exit codes.
  6222. * doc/aria2c.1.txt
  6223. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6224. Added --bt-max-peers option to specify the maximum number of peers
  6225. per torrent. 0 means unlimited number of peers.
  6226. * src/ActivePeerConnectionCommand.cc
  6227. * src/BtRuntime.h
  6228. * src/DefaultPeerStorage.cc
  6229. * src/DefaultPeerStorage.h
  6230. * src/OptionHandlerFactory.cc
  6231. * src/RequestGroup.cc
  6232. * src/option_processing.cc
  6233. * src/prefs.cc
  6234. * src/prefs.h
  6235. * src/usage_text.h
  6236. * test/DefaultPeerStorageTest.cc
  6237. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6238. Added --bt-hash-check-seed option. If true is given to this
  6239. option, after hash check using --check-integrity option and file
  6240. is complete, continue to seed file. If you want to check file and
  6241. download it only when it is damaged or incomplete, set this option
  6242. to false. This option has effect only on BitTorrent download.
  6243. The default value is true(This is the same behavior with the
  6244. previous release).
  6245. * src/BtCheckIntegrityEntry.cc
  6246. * src/OptionHandlerFactory.cc
  6247. * src/option_processing.cc
  6248. * src/prefs.cc
  6249. * src/prefs.h
  6250. * src/usage_text.h
  6251. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6252. Updated copyright year.
  6253. * src/version_usage.cc
  6254. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6255. Rewritten the usage text for --bt-request-peer-speed-limit option.
  6256. * doc/aria2c.1.txt
  6257. * src/usage_text.h
  6258. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6259. Made the max value of split option unlimited.
  6260. * doc/aria2c.1.txt
  6261. * src/OptionHandlerFactory.cc
  6262. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6263. Fixed compile warning/error.
  6264. * src/DownloadResult.h
  6265. * src/HttpDownloadCommand.cc
  6266. * src/ServerStat.cc
  6267. * test/RequestGroupTest.cc
  6268. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6269. Added --event-poll option to select the method for polling events.
  6270. The available methods are "select" and "epoll". "epoll" is
  6271. available on Linux only. The earlier release has the compile
  6272. option to choose from these methods.
  6273. * configure.ac
  6274. * src/RequestGroupMan.cc
  6275. * src/OptionHandlerFactory.cc
  6276. * src/EpollEventPoll.h
  6277. * src/StreamFileAllocationEntry.cc
  6278. * src/a2io.h
  6279. * src/SelectEventPoll.h
  6280. * src/option_processing.cc
  6281. * src/prefs.h
  6282. * src/EpollEventPoll.cc
  6283. * src/EventPoll.h
  6284. * src/SocketCore.h
  6285. * src/Makefile.am
  6286. * src/main.cc
  6287. * src/DownloadEngine.h
  6288. * src/SelectEventPoll.cc
  6289. * src/DownloadEngine.cc
  6290. * src/SocketCore.cc
  6291. * src/DownloadEngineFactory.cc
  6292. * src/Makefile.in
  6293. * src/prefs.cc
  6294. * src/usage_text.h
  6295. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6296. Included RecoverableException.h from main.cc
  6297. * src/main.cc
  6298. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6299. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  6300. now returns last error encountered in the HTTP/FTP downloads as a
  6301. exit status value. If all downloads finished successfully, aria2
  6302. returns 0. The error code is defined in src/DownloadResult.h.
  6303. The error occurred in the download currently in progress is not
  6304. reported as a last error. If no error has encountered but there
  6305. are in progress or waiting downloads, aria2 returns 7.
  6306. * src/AbstractCommand.cc
  6307. * src/DlAbortEx.h
  6308. * src/DlRetryEx.h
  6309. * src/DownloadCommand.cc
  6310. * src/DownloadFailureException.h
  6311. * src/DownloadResult.h
  6312. * src/FtpNegotiationCommand.cc
  6313. * src/HttpSkipResponseCommand.cc
  6314. * src/Makefile.am
  6315. * src/MultiUrlRequestInfo.cc
  6316. * src/MultiUrlRequestInfo.h
  6317. * src/RecoverableException.h
  6318. * src/RequestGroup.cc
  6319. * src/RequestGroup.h
  6320. * src/RequestGroupMan.cc
  6321. * src/RequestGroupMan.h
  6322. * src/URIResult.cc
  6323. * src/URIResult.h
  6324. * src/main.cc
  6325. * src/option_processing.cc
  6326. * test/RequestGroupTest.cc
  6327. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6328. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  6329. patch adds AdaptiveURISelector, which selects one of the bests
  6330. mirrors for first and reserved connections. For supplementary
  6331. ones, it returns mirrors which has not been tested yet, and if
  6332. each of them already tested, returns mirrors which has to be
  6333. tested again. Otherwise, it doesn't return anymore mirrors.
  6334. * src/AdaptiveURISelector.cc
  6335. * src/AdaptiveURISelector.h
  6336. * src/FtpNegotiationCommand.cc
  6337. * src/HttpResponseCommand.cc
  6338. * src/Makefile.am
  6339. * src/Makefile.in
  6340. * src/OptionHandlerFactory.cc
  6341. * src/RequestGroup.cc
  6342. * src/RequestGroup.h
  6343. * src/RequestGroupMan.cc
  6344. * src/ServerStat.cc
  6345. * src/ServerStat.h
  6346. * src/ServerStatMan.cc
  6347. * src/SpeedCalc.cc
  6348. * src/URISelector.h
  6349. * src/prefs.cc
  6350. * src/prefs.h
  6351. * test/RequestGroupManTest.cc
  6352. * test/ServerStatManTest.cc
  6353. * test/ServerStatTest.cc
  6354. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6355. Fixed unit test error.
  6356. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  6357. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6358. * Release 1.1.2
  6359. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6360. Updated Russian translation. Thanks to the translators.
  6361. * po/ru.po
  6362. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6363. Added the description of --use-head option to man page.
  6364. * doc/aria2c.1.txt
  6365. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6366. Bump up version number to 1.1.2
  6367. * configure.ac
  6368. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6369. Added --use-head option to toggle whether HEAD method should be
  6370. used in the first HTTP request. By default aria2 uses HEAD method
  6371. as the first request. When the server doesn't recognize HEAD, then
  6372. give aria2 --use-head=false to force aria2 to use GET method
  6373. instead.
  6374. * src/OptionHandlerFactory.cc
  6375. * src/RequestGroupMan.cc
  6376. * src/option_processing.cc
  6377. * src/prefs.cc
  6378. * src/prefs.h
  6379. * src/usage_text.h
  6380. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6381. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6382. message is received before CHOKE message. The old implementation
  6383. doen't clear the use-bit of the piece when recieved REJECT
  6384. message.
  6385. * src/DefaultBtMessageDispatcher.cc
  6386. * test/DefaultBtMessageDispatcherTest.cc
  6387. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6388. * Release 1.1.1
  6389. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6390. Bump up version number to 1.1.1.
  6391. * configure.ac
  6392. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6393. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6394. is printed repeatedly.
  6395. * src/ConsoleStatCalc.cc
  6396. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6397. * Release 1.1.0
  6398. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6399. Added ifdef clause for conditional compilation.
  6400. * src/main.cc
  6401. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6402. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6403. translations. Thanks to all translators.
  6404. * po/ja.po
  6405. * po/ru.po
  6406. * po/uk.po
  6407. * po/zh_CN.po
  6408. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6409. Added the preceding ">>> " before the message "Printing the
  6410. contents of file..." to make the output more readable.
  6411. * src/main.cc
  6412. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6413. Added try-catch block in the loop in showFiles() to continue the
  6414. operation even if the exception occurred in one file.
  6415. * src/main.cc (showFiles)
  6416. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6417. Made messages in showFiles() translatable.
  6418. * po/aria2.pot
  6419. * src/main.cc
  6420. * src/message.h
  6421. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6422. Print the contents of Torrent/Metalink files are printed without
  6423. -T/-M options.
  6424. * src/main.cc
  6425. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6426. Escaped '--' with '\--'
  6427. * README
  6428. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6429. Updated "How to build" section in README. Mentioned about
  6430. --with-ca-bundle compile option.
  6431. * README
  6432. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6433. Bump up version number to 1.1.0.
  6434. * configure.ac
  6435. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6436. Added a note for --dht-listen-port option.
  6437. * doc/aria2c.1.txt
  6438. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6439. Update doc for --realtime-chunk-checksum option.
  6440. * doc/aria2c.1.txt
  6441. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6442. Update doc for --realtime-chunk-checksum option.
  6443. * src/usage_text.h
  6444. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6445. Updated French, Japanese, Russian and Ukrainian translations.
  6446. Thanks to all translators.
  6447. * po/fr.po
  6448. * po/ja.po
  6449. * po/ru.po
  6450. * po/uk.po
  6451. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6452. Renamed aria2c.pot to aria2.pot
  6453. * po/aria2.pot
  6454. * po/aria2c.pot: Removed.
  6455. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6456. Removed MetaEntry.h
  6457. * src/Makefile.am
  6458. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6459. Rename file by appending digits if a local file exists and its
  6460. file size is larger than that of remote file with --continue
  6461. option. The old implementation just throws exception in such case.
  6462. * src/RequestGroup.cc
  6463. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6464. Fixed the bug that download progress summary is not printed in the
  6465. interval specified by the option.
  6466. * src/ConsoleStatCalc.cc
  6467. * src/ConsoleStatCalc.h
  6468. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6469. Fixed compiler warning
  6470. * src/Cookie.cc
  6471. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6472. Fixed the cookie implementation based on RFC2965.
  6473. Now if a value in domain field is not started with dot, then
  6474. prepend dot. That means a cookie with domain=sf.net is sent to
  6475. wiki.sf.net.
  6476. * src/Cookie.cc
  6477. * test/CookieParserTest.cc
  6478. * test/CookieStorageTest.cc
  6479. * test/CookieTest.cc
  6480. * test/NsCookieParserTest.cc
  6481. * test/Sqlite3MozCookieParserTest.cc
  6482. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6483. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6484. is enabled and the server doesn't support keep-alive.
  6485. * src/AbstractCommand.cc
  6486. * src/DownloadCommand.cc
  6487. * src/HttpDownloadCommand.cc
  6488. * src/HttpDownloadCommand.h
  6489. * src/HttpResponseCommand.cc
  6490. * src/Request.cc
  6491. * src/Request.h
  6492. * test/RequestTest.cc
  6493. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6494. Removed Dictionary/List/Data and its related classes.
  6495. * src/BencodeVisitor.cc: Removed.
  6496. * src/BencodeVisitor.h: Removed.
  6497. * src/Data.cc: Removed.
  6498. * src/Data.h: Removed.
  6499. * src/Dictionary.cc: Removed.
  6500. * src/Dictionary.h: Removed.
  6501. * src/List.cc: Removed.
  6502. * src/List.h: Removed.
  6503. * src/Makefile.am
  6504. * src/MetaEntry.h: Removed.
  6505. * src/MetaEntryVisitor.h: Removed.
  6506. * src/MetaFileUtil.cc: Removed.
  6507. * src/MetaFileUtil.h: Removed.
  6508. * test/BencodeVisitorTest.cc: Removed.
  6509. * test/DataTest.cc: Removed.
  6510. * test/DictionaryTest.cc: Removed.
  6511. * test/ListTest.cc: Removed.
  6512. * test/Makefile.am
  6513. * test/MetaFileUtilTest.cc: Removed.
  6514. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6515. Removed include of MetaEntry.h
  6516. * test/DHTMessageTrackerEntryTest.cc
  6517. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6518. Use BDE instead of Dictionary/List/Data.
  6519. * src/AnnounceList.cc
  6520. * src/AnnounceList.h
  6521. * test/AnnounceListTest.cc
  6522. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6523. Use BDE instead of Dictionary/List/Data.
  6524. * src/DHTAbstractMessage.cc
  6525. * src/DHTAbstractMessage.h
  6526. * src/DHTAnnouncePeerMessage.cc
  6527. * src/DHTAnnouncePeerMessage.h
  6528. * src/DHTAnnouncePeerReplyMessage.cc
  6529. * src/DHTAnnouncePeerReplyMessage.h
  6530. * src/DHTFindNodeMessage.cc
  6531. * src/DHTFindNodeMessage.h
  6532. * src/DHTFindNodeReplyMessage.cc
  6533. * src/DHTFindNodeReplyMessage.h
  6534. * src/DHTGetPeersMessage.cc
  6535. * src/DHTGetPeersMessage.h
  6536. * src/DHTGetPeersReplyMessage.cc
  6537. * src/DHTGetPeersReplyMessage.h
  6538. * src/DHTMessageFactory.h
  6539. * src/DHTMessageFactoryImpl.cc
  6540. * src/DHTMessageFactoryImpl.h
  6541. * src/DHTMessageReceiver.cc
  6542. * src/DHTMessageTracker.cc
  6543. * src/DHTMessageTracker.h
  6544. * src/DHTPingMessage.cc
  6545. * src/DHTPingMessage.h
  6546. * src/DHTPingReplyMessage.cc
  6547. * src/DHTPingReplyMessage.h
  6548. * src/DHTQueryMessage.cc
  6549. * src/DHTQueryMessage.h
  6550. * src/DHTResponseMessage.cc
  6551. * src/DHTResponseMessage.h
  6552. * test/DHTAnnouncePeerMessageTest.cc
  6553. * test/DHTAnnouncePeerReplyMessageTest.cc
  6554. * test/DHTFindNodeMessageTest.cc
  6555. * test/DHTFindNodeReplyMessageTest.cc
  6556. * test/DHTGetPeersMessageTest.cc
  6557. * test/DHTGetPeersReplyMessageTest.cc
  6558. * test/DHTMessageFactoryImplTest.cc
  6559. * test/DHTMessageTrackerTest.cc
  6560. * test/DHTPingMessageTest.cc
  6561. * test/DHTPingReplyMessageTest.cc
  6562. * test/MockDHTMessageFactory.h
  6563. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6564. Added tests the case where length < 0 is specified.
  6565. * test/BencodeTest.cc
  6566. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6567. Fixed memory leak in decoderawstring()
  6568. * src/bencode.cc
  6569. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6570. Added missing #ifdef guard. Added uc() function for String and
  6571. removeKey() for Dict.
  6572. * src/bencode.cc
  6573. * src/bencode.h
  6574. * test/BencodeTest.cc
  6575. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6576. Use BDE instead of Dictionary/List/Data.
  6577. * src/HandshakeExtensionMessage.cc
  6578. * src/HandshakeExtensionMessage.h
  6579. * test/HandshakeExtensionMessageTest.cc
  6580. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6581. Added --max-overall-upload-limit option. This option limits the
  6582. overall upload speed. Stated in help message that the existing
  6583. --max-upload-limit option limits the upload speed per each
  6584. torrent. Man page is also updated.
  6585. * doc/aria2c.1.txt
  6586. * src/DefaultBtMessageDispatcher.cc
  6587. * src/DefaultBtMessageDispatcher.h
  6588. * src/OptionHandlerFactory.cc
  6589. * src/PeerInteractionCommand.cc
  6590. * src/option_processing.cc
  6591. * src/prefs.cc
  6592. * src/prefs.h
  6593. * src/usage_text.h
  6594. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6595. Use BDE instead of Dictionary/List/Data classes.
  6596. * src/CompactPeerListProcessor.cc
  6597. * src/CompactPeerListProcessor.h
  6598. * src/DefaultBtAnnounce.cc
  6599. * src/DefaultBtContext.cc
  6600. * src/DefaultBtContext.h
  6601. * src/DefaultPeerListProcessor.cc
  6602. * src/DefaultPeerListProcessor.h
  6603. * src/DelegatingPeerListProcessor.cc
  6604. * src/DelegatingPeerListProcessor.h
  6605. * src/PeerListProcessor.h
  6606. * src/UTPexExtensionMessage.cc
  6607. * src/Util.h
  6608. * src/message.h
  6609. * test/DefaultBtContextTest.cc
  6610. * test/DefaultPeerListProcessorTest.cc
  6611. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6612. Added bencode helper functions and BDE class.
  6613. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6614. * src/Makefile.am
  6615. * src/bencode.cc
  6616. * src/bencode.h
  6617. * test/BencodeTest.cc
  6618. * test/Makefile.am
  6619. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6620. Fixed the bug that bad URI is sent to the tracker when the announe
  6621. URI in torrent file includes query.
  6622. * src/DefaultBtAnnounce.cc
  6623. * test/DefaultBtAnnounceTest.cc
  6624. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6625. Added Option::blank().
  6626. Use !Option::blank(name) instead of Option::defined(name) for
  6627. the options that take filename.
  6628. * src/MultiUrlRequestInfo.cc
  6629. * src/Option.cc
  6630. * src/Option.h
  6631. * src/main.cc
  6632. * src/option_processing.cc
  6633. * test/OptionTest.cc
  6634. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6635. Documented the default value of --check-certificate option in man
  6636. page.
  6637. * doc/aria2c.1.txt
  6638. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6639. Enabled --check-certificate by default. Added compile
  6640. time(configure) option --with-ca-bundle to specify CA bundle.
  6641. Warn if --check-certificate=true and --ca-certificate is not
  6642. specified or loading CA certificate is failed.
  6643. * configure.ac
  6644. * src/MultiUrlRequestInfo.cc
  6645. * src/OptionHandlerFactory.cc
  6646. * src/message.h
  6647. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6648. Mentioned https tag in help option.
  6649. * doc/aria2c.1.txt
  6650. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6651. Added `https' tag to help option category. Added https tag to
  6652. --ca-certificate, --certificate, --check-certificate and
  6653. --private-key option.
  6654. * src/OptionHandlerFactory.cc
  6655. * src/help_tags.h
  6656. * src/option_processing.cc
  6657. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6658. Changed the package name from `aria2c' to `aria2' in order to fix
  6659. the packaging issue in Debian and Fedora. The name of the
  6660. executable is not changed.
  6661. * configure.ac
  6662. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6663. Fixed typos
  6664. * src/usage_text.h
  6665. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6666. Fixed typos and updated doc.
  6667. * README
  6668. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6669. Fixed typos
  6670. * doc/aria2c.1.txt
  6671. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6672. Fixed typos
  6673. * src/usage_text.h
  6674. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6675. Print a message when no files to download.
  6676. * src/download_helper.cc
  6677. * src/main.cc
  6678. * src/message.h
  6679. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6680. RFC3986 complied Percent-Encoding(urlencode).
  6681. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6682. ones.
  6683. * src/Request.cc
  6684. * src/Util.cc
  6685. * src/Util.h
  6686. * test/BtHandshakeMessageTest.cc
  6687. * test/DefaultBtAnnounceTest.cc
  6688. * test/DefaultBtContextTest.cc
  6689. * test/RequestTest.cc
  6690. * test/UtilTest.cc
  6691. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6692. Fixed the bug that prevents aria2 from downloading 0-length files
  6693. via HTTP/FTP.
  6694. * src/DefaultBtContext.cc
  6695. * src/DefaultBtContext.h
  6696. * src/DownloadContext.h
  6697. * src/FtpNegotiationCommand.cc
  6698. * src/HttpResponseCommand.cc
  6699. * src/HttpResponseCommand.h
  6700. * src/RequestGroup.cc
  6701. * src/SingleFileDownloadContext.cc
  6702. * src/SingleFileDownloadContext.h
  6703. * test/BtPostDownloadHandlerTest.cc
  6704. * test/MetalinkPostDownloadHandlerTest.cc
  6705. * test/MockBtContext.h
  6706. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6707. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6708. * src/option_processing.cc
  6709. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6710. Applied aria2-1.0.1-mingw.patch.
  6711. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6712. mingw.
  6713. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6714. * src/SocketCore.cc
  6715. * src/a2netcompat.h
  6716. * test/SocketCoreTest.cc
  6717. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6718. * Release 1.0.1
  6719. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6720. Updated Ukrainian and Norwegian Nynorsk translations.
  6721. Thanks to all translators.
  6722. * po/nn.po
  6723. * po/uk.po
  6724. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6725. Don't show download result when -S option is used.
  6726. * src/main.cc
  6727. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6728. Bump up version number to 1.0.1
  6729. * configure.ac
  6730. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6731. Closed files after the test cases in MultiDiskWriterTest::
  6732. testResetDiskWriterEntries(). This will fix the unit test error
  6733. in mingw32 build.
  6734. * test/MultiDiskWriterTest.cc
  6735. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6736. Use HEAD method to get file size from HTTP server for segmented
  6737. downloading.
  6738. The request to the BitTorrent Tracker always uses GET method because
  6739. the response of the tracker is small and it doesn't need segmented
  6740. download.
  6741. * src/FtpNegotiationCommand.cc
  6742. * src/HttpRequest.cc
  6743. * src/HttpResponseCommand.cc
  6744. * src/HttpSkipResponseCommand.cc
  6745. * src/RequestGroup.cc
  6746. * src/RequestGroup.h
  6747. * src/TrackerWatcherCommand.cc
  6748. * test/HttpRequestTest.cc
  6749. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6750. Fixed the bug that causes floating exception when -T option is used and
  6751. no URIs are given.
  6752. * src/download_helper.cc
  6753. * test/DownloadHelperTest.cc
  6754. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6755. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6756. errors in MinGW:
  6757. Closed file after saving server stats (RequestGroupMan.cc)
  6758. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6759. Ignored case & handled 2-digit years (strptime.c)
  6760. Added missing suseconds_t definition (a2time.h)
  6761. Fixed socket CLOSE() define (SocketCore.cc)
  6762. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6763. Changed utime() test values from x000 to x00000 as MinGW failed on
  6764. values less than timezone offset from Unix epoch
  6765. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6766. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6767. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6768. handle negative dates (CookieParserTest.cc)
  6769. * src/a2time.h
  6770. * src/FtpConnection.cc
  6771. * src/RequestGroupMan.cc
  6772. * src/SocketCore.cc
  6773. * src/strptime.c
  6774. * test/CookieParserTest.cc
  6775. * test/CopyDiskAdaptorTest.cc
  6776. * test/FileTest.cc
  6777. * test/FtpConnectionTest.cc
  6778. * test/MultiDiskAdaptorTest.cc
  6779. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6780. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6781. * doc/aria2c.1.txt
  6782. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6783. * Release 1.0.0
  6784. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6785. Added '~' to reserved characters.
  6786. * src/Util.cc
  6787. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6788. Do not urlencode Request::url in setUrl() because we want unmodified
  6789. URL using Request::getUrl()
  6790. * src/Request.cc
  6791. * src/Request.h
  6792. * test/RequestTest.cc
  6793. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6794. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6795. Thanks to all translators.
  6796. * po/bg.po
  6797. * po/fr.po
  6798. * po/ja.po
  6799. * po/ru.po
  6800. * po/uk.po
  6801. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6802. Bump up version number to 1.0.0
  6803. * configure.ac
  6804. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6805. Added nosqlite3 build to build_test.sh.
  6806. Renamed noxml as expat.
  6807. * build_test.sh
  6808. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6809. Updated INPUT FILE section.
  6810. * doc/aria2c.1.txt
  6811. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6812. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6813. on big endian systems because test .aria2 files are made for little
  6814. endian systems.
  6815. * test/DefaultBtProgressInfoFileTest.cc
  6816. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6817. Dropped ares support.
  6818. * README
  6819. * configure.ac
  6820. * m4/libares.m4: Removed.
  6821. * src/AsyncNameResolver.cc
  6822. * src/Makefile.am
  6823. * test/Makefile.am
  6824. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6825. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6826. Removed const qualifier from DiskWriter::size().
  6827. * src/AbstractDiskWriter.cc
  6828. * src/AbstractDiskWriter.h
  6829. * src/ByteArrayDiskWriter.cc
  6830. * src/ByteArrayDiskWriter.h
  6831. * src/DiskWriter.h
  6832. * test/ByteArrayDiskWriterTest.cc
  6833. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6834. Fixed the bug that causes segmentation fault/bus error during executing
  6835. choking algorithm while seeding. This is caused by improper
  6836. implementation of compare function which returns inconsistent results
  6837. depending on the timing of last unchoke.
  6838. * src/BtSeederStateChoke.cc
  6839. * src/BtSeederStateChoke.h
  6840. * src/DefaultPeerStorage.cc
  6841. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6842. Removed TODO
  6843. * TODO
  6844. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6845. Added a section that explains how to pass argument to options that
  6846. takes optional arguments with its short form.
  6847. * doc/aria2c.1.txt
  6848. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6849. Added -u for the short form of --max-upload-limit option.
  6850. * doc/aria2c.1.txt
  6851. * src/option_processing.cc
  6852. * src/usage_text.h
  6853. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6854. Added -V for the short form of --check-integrity option.
  6855. Now the argument of --check-integrity option is optional:
  6856. if it is omitted, it is evaluated as true.
  6857. * doc/aria2c.1.txt
  6858. * src/option_processing.cc
  6859. * src/usage_text.h
  6860. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6861. Made the default value of --ftp-pasv option set to true and it can take
  6862. true/false values.
  6863. * src/OptionHandlerFactory.cc
  6864. * src/option_processing.cc
  6865. * src/usage_text.h
  6866. * doc/aria2c.1.txt
  6867. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6868. Given custom random number generator to std::random_shuffle.
  6869. * src/AnnounceList.cc
  6870. * src/BtLeecherStateChoke.cc
  6871. * src/BtSeederStateChoke.cc
  6872. * src/DefaultBtRequestFactory.cc
  6873. * src/MetalinkEntry.cc
  6874. * src/RarestPieceSelector.cc
  6875. * src/SimpleRandomizer.cc
  6876. * src/SimpleRandomizer.h
  6877. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6878. Now the default value of --enable-direct-io is true.
  6879. * src/OptionHandlerFactory.cc
  6880. * doc/aria2c.1.txt
  6881. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6882. Erase peer before executing onReturningPeer and onErasingPeer
  6883. because choking algorithm called from onReturningPeer doesn't
  6884. like erasing peer in the active peer list.
  6885. * src/DefaultPeerStorage.cc
  6886. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6887. Instead of creating special filename in createDownloadResult() if
  6888. inMemoryDownload() is true, now it is done in getFilePath().
  6889. * src/RequestGroup.cc
  6890. * test/RequestGroupTest.cc
  6891. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6892. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6893. processed in memory. This is the fix for previous comment out.
  6894. * src/MemoryBufferPreDownloadHandler.cc
  6895. * src/RequestGroup.cc
  6896. * src/RequestGroup.h
  6897. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6898. Commented out the code which sets virtual directory path "[MEMORY]"
  6899. propagate directory to store to following RequestGroup.
  6900. * src/MemoryBufferPreDownloadHandler.cc
  6901. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6902. Bump up version number to 1.0.0b
  6903. * configure.ac
  6904. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6905. Added input_uris.txt to EXTRA_DIST
  6906. * test/Makefile.am
  6907. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6908. Removed PeerObject.h from Makefile.am
  6909. * src/Makefile.am
  6910. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6911. Avoid slow seeding
  6912. * src/PeerInteractionCommand.cc
  6913. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6914. Updated usage for -i option.
  6915. * src/usage_text.h (TEXT_INPUT_FILE)
  6916. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6917. Added INPUT FILE section to man page.
  6918. Escaped fake URLs.
  6919. * doc/aria2c.1.txt
  6920. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6921. Fixed wrong note position for -o option.
  6922. * doc/aria2c.1.txt
  6923. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6924. Fixed compile error without SSL/XML library.
  6925. * src/DefaultBtProgressInfoFile.cc
  6926. * src/DefaultBtProgressInfoFile.h
  6927. * src/FileMetalinkParserState.cc
  6928. * src/RequestGroup.h
  6929. * src/SocketCore.cc
  6930. * src/SocketCore.h
  6931. * src/VerificationMetalinkParserState.cc
  6932. * src/download_helper.h
  6933. * src/main.cc
  6934. * test/DefaultBtProgressInfoFileTest.cc
  6935. * test/DownloadHelperTest.cc
  6936. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6937. Rewritten URI handling functions. They are now provided as a testable
  6938. functions.
  6939. * src/Makefile.am
  6940. * src/RequestGroup.cc
  6941. * src/RequestGroup.h
  6942. * src/download_helper.cc
  6943. * src/download_helper.h
  6944. * src/main.cc
  6945. * test/DownloadHelperTest.cc
  6946. * test/Makefile.am
  6947. * test/input_uris.txt
  6948. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6949. Quickly terminate commands when ctrl-c is pressed.
  6950. * src/DownloadEngine.cc
  6951. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6952. Quickly terminate idle commands when download finished.
  6953. * src/AbstractCommand.cc
  6954. * src/DownloadCommand.cc
  6955. * src/DownloadEngine.cc
  6956. * src/DownloadEngine.h
  6957. * src/SleepCommand.cc
  6958. * src/SleepCommand.h
  6959. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6960. Added the ability to specify output filename and directory in input
  6961. file.
  6962. Additional parameters are added in the following line of URIs
  6963. with proceeding white space(s), 1 parameter in 1 line.
  6964. The parameter names are the same with the command-line option name
  6965. without proceeding "--". Not all the options are available here:
  6966. at the moment, 'dir' and 'out' options are avialable.
  6967. Please note that out option has no effect against Metalink or BitTorrent
  6968. downloads.
  6969. Example input file:
  6970. http://host/foo-1.1.tar.bz2
  6971. out=foo.tar.bz2
  6972. dir=/tmp/downloads
  6973. http://host/thundermonkey-2.0.tar.bz2
  6974. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6975. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6976. thundermonkey-2.0.tar.bz2 is saved as
  6977. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6978. * src/BtPostDownloadHandler.cc
  6979. * src/Metalink2RequestGroup.cc
  6980. * src/Metalink2RequestGroup.h
  6981. * src/MetalinkPostDownloadHandler.cc
  6982. * src/UriListParser.cc
  6983. * src/UriListParser.h
  6984. * src/main.cc
  6985. * test/Metalink2RequestGroupTest.cc
  6986. * test/UriListParserTest.cc
  6987. * test/filelist1.txt
  6988. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6989. Fixed error when SSL library is not found.
  6990. * configure.ac
  6991. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6992. Cross referenced among -s, -C and -j options.
  6993. Updated usage of -C and -s options.
  6994. * src/usage_text.h
  6995. * doc/aria2c.1.txt
  6996. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6997. Fixed bad cast in 32bit platforms.
  6998. * test/DefaultPieceStorageTest.cc
  6999. (DefaultPieceStorageTest::testGetCompletedLength)
  7000. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7001. Fixed unit test fails on 32bit platforms.
  7002. * test/CookieParserTest.cc
  7003. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7004. Show an average download speed in Download results.
  7005. * src/BtFileAllocationEntry.cc
  7006. * src/DefaultPieceStorage.cc
  7007. * src/DownloadContext.cc
  7008. * src/DownloadContext.h
  7009. * src/DownloadResult.h
  7010. * src/RequestGroup.cc
  7011. * src/RequestGroupMan.cc
  7012. * src/StreamFileAllocationEntry.cc
  7013. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7014. Fixed the bug that metalink file is not processed if Content-Type
  7015. field has a paramter.
  7016. * src/HttpResponse.cc
  7017. * src/HttpResponse.h
  7018. * test/HttpResponseTest.cc
  7019. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7020. Removed unused code.
  7021. * src/DefaultBtAnnounce.cc
  7022. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7023. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  7024. the value larger than DefaultPieceStorage::getTotalLength() when
  7025. in flight pieces are involved.
  7026. * src/DefaultPieceStorage.cc
  7027. * test/DefaultPieceStorageTest.cc
  7028. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7029. Bump up version number to 1.0.0a.
  7030. * configure.ac
  7031. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7032. Updated configure.ac
  7033. * configure.ac
  7034. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7035. Added usege for proxy.
  7036. * doc/aria2c.1.txt
  7037. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7038. Added usage for --ca-certificate, --certificate, --private-key and
  7039. --check-certificate options.
  7040. * doc/aria2c.1.txt
  7041. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7042. Updated man page
  7043. * doc/aria2c.1.txt
  7044. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7045. Added --no-proxy option. It receives comman separated hostname or
  7046. domains to which proxy should not be used.
  7047. aria2 honors the environment variable no_proxy to override no-proxy
  7048. value in configuration file. The user can override the environment
  7049. variable no_proxy with --no-proxy command-line option.
  7050. * src/AbstractCommand.cc
  7051. * src/OptionHandlerFactory.cc
  7052. * src/option_processing.cc
  7053. * src/prefs.cc
  7054. * src/prefs.h
  7055. * src/usage_text.h
  7056. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7057. Added the ability to verify peer in SSL/TLS using given CA certificates.
  7058. The CA certificates are specified in --ca-certificate option.
  7059. By default, the verification is disabled. Use --check-certificate
  7060. option to enable it.
  7061. * src/HttpRequestCommand.cc
  7062. * src/LibgnutlsTLSContext.cc
  7063. * src/LibgnutlsTLSContext.h
  7064. * src/LibsslTLSContext.cc
  7065. * src/LibsslTLSContext.h
  7066. * src/MultiUrlRequestInfo.cc
  7067. * src/OptionHandlerFactory.cc
  7068. * src/SocketCore.cc
  7069. * src/SocketCore.h
  7070. * src/a2functional.h
  7071. * src/message.h
  7072. * src/option_processing.cc
  7073. * src/prefs.cc
  7074. * src/prefs.h
  7075. * src/usage_text.h
  7076. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7077. Added client certificate authentication for SSL/TLS.
  7078. Currently a private key must be decrypted for use with aria2.
  7079. If a user accidentally gives encrypted file to aria2 then following
  7080. thing happens:
  7081. If encrypted private key is given to aria2, it behaves differently
  7082. depending on the ssl library it uses. If aria2 built with openssl then
  7083. openssl prompts the user for password. If aria2 build with gnutls then
  7084. aria2 exists with error at start up.
  7085. * src/DownloadEngineFactory.cc
  7086. * src/MultiUrlRequestInfo.cc
  7087. * src/OptionHandlerFactory.cc
  7088. * src/option_processing.cc
  7089. * src/prefs.cc
  7090. * src/prefs.h
  7091. * src/usage_text.h
  7092. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7093. Introduced TLSContext that holds TLS related data that can be shared
  7094. with multiple SSL connections.
  7095. * src/DownloadEngineFactory.cc
  7096. * src/LibgnutlsTLSContext.cc
  7097. * src/LibgnutlsTLSContext.h
  7098. * src/LibsslTLSContext.cc
  7099. * src/LibsslTLSContext.h
  7100. * src/Makefile.am
  7101. * src/SocketCore.cc
  7102. * src/SocketCore.h
  7103. * src/TLSContext.h
  7104. * src/message.h
  7105. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7106. Fixed the bug that the DiskWriter of the first FileEntry whose
  7107. `needsFileAllocation' property is false is not created
  7108. even if it shares a piece with next FileEntry which `requested' property
  7109. is true.
  7110. Fixed the bug that zero-length file is not created if pre file
  7111. allocation is not done.
  7112. * src/MultiDiskAdaptor.cc
  7113. * src/MultiDiskAdaptor.h
  7114. * test/MultiDiskAdaptorTest.cc
  7115. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. Added the ability to pool proxy connection.
  7117. The conneciton in FTP with proxy-method=GET is not pooled.
  7118. Proxy-Connection header will not be sent when sending CONNECT method.
  7119. * src/DownloadEngine.cc
  7120. * src/DownloadEngine.h
  7121. * src/FtpFinishDownloadCommand.cc
  7122. * src/FtpInitiateConnectionCommand.cc
  7123. * src/FtpNegotiationCommand.cc
  7124. * src/HttpDownloadCommand.cc
  7125. * src/HttpInitiateConnectionCommand.cc
  7126. * src/HttpRequest.cc
  7127. * src/HttpRequest.h
  7128. * src/HttpResponse.cc
  7129. * src/HttpSkipResponseCommand.cc
  7130. * test/HttpRequestTest.cc
  7131. * test/HttpResponseTest.cc
  7132. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7133. Handle date before epoch.
  7134. To create *bad* Time object, call Time::null().
  7135. * src/CookieParser.cc
  7136. * src/FtpConnection.cc
  7137. * src/FtpConnection.h
  7138. * src/FtpNegotiationCommand.cc
  7139. * src/RequestGroup.cc
  7140. * src/TimeA2.cc
  7141. * src/TimeA2.h
  7142. * test/CookieParserTest.cc
  7143. * test/FtpConnectionTest.cc
  7144. * test/TimeTest.cc
  7145. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7146. Added support for following envrionment variables: http_proxy,
  7147. https_proxy, ftp_proxy and all_proxy.
  7148. Each variable is equivalent to the aria2 option whose name is the
  7149. variable name with '_' replaced with '-'.
  7150. They overrides options specified in aria2.conf file.
  7151. The envrionment variables can be overrode using command-line option.
  7152. * src/option_processing.cc
  7153. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Renamed --http-proxy-method as --proxy-method.
  7155. * src/AbstractCommand.cc
  7156. * src/FtpInitiateConnectionCommand.cc
  7157. * src/HttpInitiateConnectionCommand.cc
  7158. * src/OptionHandlerFactory.cc
  7159. * src/option_processing.cc
  7160. * src/prefs.cc
  7161. * src/prefs.h
  7162. * src/usage_text.h
  7163. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7164. Deprecated --http-proxy-user and --http-proxy-passwd options.
  7165. Added --https-proxy, --ftp-proxy and --all-proxy options.
  7166. Above 3 options and --http-proxy option can handle proxy in URL format
  7167. like: http://user:passwd@host:port.
  7168. If a proxy requires user/password, they must be specified in a URL.
  7169. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  7170. instead.
  7171. * src/AbstractCommand.cc
  7172. * src/AbstractCommand.h
  7173. * src/AbstractProxyRequestCommand.cc
  7174. * src/AbstractProxyRequestCommand.h
  7175. * src/AuthConfigFactory.cc
  7176. * src/AuthConfigFactory.h
  7177. * src/FtpFinishDownloadCommand.cc
  7178. * src/FtpInitiateConnectionCommand.cc
  7179. * src/FtpInitiateConnectionCommand.h
  7180. * src/FtpNegotiationCommand.cc
  7181. * src/FtpTunnelRequestCommand.cc
  7182. * src/FtpTunnelRequestCommand.h
  7183. * src/HttpDownloadCommand.cc
  7184. * src/HttpInitiateConnectionCommand.cc
  7185. * src/HttpInitiateConnectionCommand.h
  7186. * src/HttpProxyRequestCommand.cc
  7187. * src/HttpProxyRequestCommand.h
  7188. * src/HttpRequest.cc
  7189. * src/HttpRequest.h
  7190. * src/HttpRequestCommand.cc
  7191. * src/HttpRequestCommand.h
  7192. * src/HttpSkipResponseCommand.cc
  7193. * src/InitiateConnectionCommand.cc
  7194. * src/InitiateConnectionCommand.h
  7195. * src/OptionHandlerFactory.cc
  7196. * src/OptionHandlerImpl.h
  7197. * src/Request.cc
  7198. * src/option_processing.cc
  7199. * src/prefs.cc
  7200. * src/prefs.h
  7201. * src/usage_text.h
  7202. * test/AuthConfigFactoryTest.cc
  7203. * test/HttpRequestTest.cc
  7204. * test/OptionHandlerTest.cc
  7205. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7206. Execute choking algorithm when unchoked and interested peer is
  7207. disconected.
  7208. * src/DefaultPeerStorage.cc
  7209. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7210. Added testcase for BtNotInterestedMessage from unchoked peer.
  7211. * test/BtNotInterestedMessageTest.cc
  7212. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Execute choking algorithm when BtInterestedMessage arrives from
  7214. unchoked peer.
  7215. * src/BtInterestedMessage.cc
  7216. * src/BtInterestedMessage.h
  7217. * src/DefaultBtMessageFactory.cc
  7218. * test/BtInterestedMessageTest.cc
  7219. * test/MockPeerStorage.h
  7220. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7221. AuthConfigFactory is now part of DownloadEngine.
  7222. * src/AbstractProxyRequestCommand.cc
  7223. * src/AuthConfigFactory.h
  7224. * src/DownloadEngine.cc
  7225. * src/DownloadEngine.h
  7226. * src/FtpConnection.cc
  7227. * src/FtpConnection.h
  7228. * src/FtpNegotiationCommand.cc
  7229. * src/HttpConnection.cc
  7230. * src/HttpRequest.cc
  7231. * src/HttpRequest.h
  7232. * src/HttpRequestCommand.cc
  7233. * src/HttpResponse.cc
  7234. * src/HttpResponseCommand.cc
  7235. * src/HttpSkipResponseCommand.cc
  7236. * src/MultiUrlRequestInfo.cc
  7237. * src/main.cc
  7238. * test/FtpConnectionTest.cc
  7239. * test/HttpRequestTest.cc
  7240. * test/HttpResponseTest.cc
  7241. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7242. Corrected catched exception type.
  7243. * src/ServerStatMan.cc
  7244. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7245. DNSCache is now part of DownloadEngine.
  7246. * src/DNSCache.h
  7247. * src/DownloadEngine.cc
  7248. * src/DownloadEngine.h
  7249. * src/InitiateConnectionCommand.cc
  7250. * src/MultiUrlRequestInfo.cc
  7251. * test/Makefile.am
  7252. * test/Makefile.in
  7253. * test/SimpleDNSCacheTest.cc
  7254. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7255. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  7256. DownloadEngine.
  7257. * src/ActivePeerConnectionCommand.cc
  7258. * src/BtSetup.cc
  7259. * src/CUIDCounter.h
  7260. * src/DHTSetup.cc
  7261. * src/DownloadCommand.cc
  7262. * src/DownloadEngine.cc
  7263. * src/DownloadEngine.h
  7264. * src/DownloadEngineFactory.cc
  7265. * src/FileAllocationDispatcherCommand.cc
  7266. * src/InitiatorMSEHandshakeCommand.cc
  7267. * src/PeerInitiateConnectionCommand.cc
  7268. * src/PeerInteractionCommand.cc
  7269. * src/PeerListenCommand.cc
  7270. * src/RequestGroup.cc
  7271. * src/StreamFileAllocationEntry.cc
  7272. * src/TrackerWatcherCommand.cc
  7273. * src/main.cc
  7274. * test/RequestGroupManTest.cc
  7275. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7276. Implemented commented code in BtSeederStateChoke
  7277. * src/BtSeederStateChoke.cc
  7278. * src/Peer.cc
  7279. * src/Peer.h
  7280. * src/PeerInteractionCommand.cc
  7281. * src/PeerSessionResource.cc
  7282. * src/PeerSessionResource.h
  7283. * test/MockBtMessageDispatcher.h
  7284. * test/PeerSessionResourceTest.cc
  7285. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  7287. its object.
  7288. * src/AbstractBtMessage.cc
  7289. * src/ActivePeerConnectionCommand.cc
  7290. * src/ActivePeerConnectionCommand.h
  7291. * src/BtContextAwareCommand.cc
  7292. * src/BtContextAwareCommand.h
  7293. * src/BtExtendedMessage.cc
  7294. * src/BtExtendedMessage.h
  7295. * src/BtInterestedMessage.cc
  7296. * src/BtInterestedMessage.h
  7297. * src/BtNotInterestedMessage.cc
  7298. * src/BtNotInterestedMessage.h
  7299. * src/BtRegistry.cc
  7300. * src/BtRegistry.h
  7301. * src/BtSeederStateChoke.cc
  7302. * src/BtSetup.cc
  7303. * src/DHTGetPeersCommand.cc
  7304. * src/DHTGetPeersCommand.h
  7305. * src/DHTPeerAnnounceEntry.cc
  7306. * src/DHTPeerAnnounceEntry.h
  7307. * src/DHTPeerAnnounceStorage.cc
  7308. * src/DHTPeerAnnounceStorage.h
  7309. * src/DHTPeerLookupTask.cc
  7310. * src/DHTPeerLookupTask.h
  7311. * src/DHTSetup.cc
  7312. * src/DHTSetup.h
  7313. * src/DHTTaskFactory.h
  7314. * src/DHTTaskFactoryImpl.cc
  7315. * src/DHTTaskFactoryImpl.h
  7316. * src/DefaultBtAnnounce.cc
  7317. * src/DefaultBtInteractive.cc
  7318. * src/DefaultBtInteractive.h
  7319. * src/DefaultBtMessageDispatcher.cc
  7320. * src/DefaultBtMessageDispatcher.h
  7321. * src/DefaultBtMessageFactory.cc
  7322. * src/DefaultBtMessageFactory.h
  7323. * src/DefaultBtMessageReceiver.cc
  7324. * src/DefaultBtProgressInfoFile.cc
  7325. * src/DefaultBtProgressInfoFile.h
  7326. * src/DefaultBtRequestFactory.cc
  7327. * src/DefaultBtRequestFactory.h
  7328. * src/DefaultExtensionMessageFactory.cc
  7329. * src/DefaultExtensionMessageFactory.h
  7330. * src/DefaultPeerStorage.cc
  7331. * src/DefaultPeerStorage.h
  7332. * src/DownloadEngine.cc
  7333. * src/DownloadEngine.h
  7334. * src/InitiatorMSEHandshakeCommand.cc
  7335. * src/InitiatorMSEHandshakeCommand.h
  7336. * src/MSEHandshake.cc
  7337. * src/MSEHandshake.h
  7338. * src/Makefile.am
  7339. * src/Makefile.in
  7340. * src/PeerChokeCommand.cc
  7341. * src/PeerChokeCommand.h
  7342. * src/PeerInitiateConnectionCommand.cc
  7343. * src/PeerInitiateConnectionCommand.h
  7344. * src/PeerInteractionCommand.cc
  7345. * src/PeerInteractionCommand.h
  7346. * src/PeerObject.h
  7347. * src/PeerReceiveHandshakeCommand.cc
  7348. * src/PeerReceiveHandshakeCommand.h
  7349. * src/ReceiverMSEHandshakeCommand.cc
  7350. * src/RequestGroup.cc
  7351. * src/RequestGroup.h
  7352. * src/RequestGroupMan.cc
  7353. * src/RequestGroupMan.h
  7354. * src/SeedCheckCommand.cc
  7355. * src/SeedCheckCommand.h
  7356. * src/ShareRatioSeedCriteria.h
  7357. * src/SimpleBtMessage.cc
  7358. * src/TrackerWatcherCommand.cc
  7359. * src/TrackerWatcherCommand.h
  7360. * src/UTPexExtensionMessage.cc
  7361. * src/UTPexExtensionMessage.h
  7362. * test/BtCancelMessageTest.cc
  7363. * test/BtChokeMessageTest.cc
  7364. * test/BtExtendedMessageTest.cc
  7365. * test/BtInterestedMessageTest.cc
  7366. * test/BtNotInterestedMessageTest.cc
  7367. * test/BtPieceMessageTest.cc
  7368. * test/BtPortMessageTest.cc
  7369. * test/BtRegistryTest.cc
  7370. * test/BtRejectMessageTest.cc
  7371. * test/BtRequestMessageTest.cc
  7372. * test/DHTPeerAnnounceEntryTest.cc
  7373. * test/DHTPeerAnnounceStorageTest.cc
  7374. * test/DefaultBtMessageDispatcherTest.cc
  7375. * test/DefaultBtMessageFactoryTest.cc
  7376. * test/DefaultBtProgressInfoFileTest.cc
  7377. * test/DefaultBtRequestFactoryTest.cc
  7378. * test/DefaultExtensionMessageFactoryTest.cc
  7379. * test/MSEHandshakeTest.cc
  7380. * test/MockDHTTaskFactory.h
  7381. * test/ShareRatioSeedCriteriaTest.cc
  7382. * test/UTPexExtensionMessageTest.cc
  7383. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7384. Fixed compiler warning.
  7385. * test/UtilTest.cc
  7386. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. Treat Cookie object as session cookie if expiry = 0 is given.
  7388. With this change, you can specify session scoped cookies in an external
  7389. file setting expiry value to 0.
  7390. * src/Cookie.cc
  7391. * src/Cookie.h
  7392. * test/CookieParserTest.cc
  7393. * test/CookieStorageTest.cc
  7394. * test/CookieTest.cc
  7395. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7396. Changed signature of DHTMessageFactory::createResponseMessage().
  7397. Removed unused validateIDMatch.
  7398. * src/DHTMessageFactory.h
  7399. * src/DHTMessageFactoryImpl.cc
  7400. * src/DHTMessageFactoryImpl.h
  7401. * src/DHTMessageTracker.cc
  7402. * test/DHTMessageFactoryImplTest.cc
  7403. * test/MockDHTMessageFactory.h
  7404. Dropped DHT message coming from same ID of localhost.
  7405. * src/DHTMessageReceiver.cc
  7406. Rejected adding node whose ID is the same as localhost's.
  7407. * src/DHTRoutingTable.cc
  7408. * test/BtPortMessageTest.cc
  7409. * test/DHTRoutingTableTest.cc
  7410. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7411. Pool connection when redirection occurs with Content-Length = 0.
  7412. * src/HttpSkipResponseCommand.cc
  7413. * src/HttpSkipResponseCommand.h
  7414. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Fixed the bug that causes time out when redirection occurs with
  7416. content-length 0.
  7417. * src/HttpResponseCommand.cc
  7418. * src/HttpSkipResponseCommand.cc
  7419. * src/HttpSkipResponseCommand.h
  7420. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Now each status legends is shown only when it appears in Download
  7422. Result. If Download Result has no item, then status legend will not
  7423. be printed.
  7424. * src/RequestGroupMan.cc
  7425. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7426. Removed duplicate creation of OptionHandlers.
  7427. * src/option_processing.cc
  7428. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7429. Fixed the bug that causes segmentation fault when accessing files which
  7430. don't exist or are not included in --select-file option while
  7431. validating chunk checksum.
  7432. * src/MultiDiskAdaptor.cc
  7433. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7434. Fixed compiler warning.
  7435. * test/UtilTest.cc
  7436. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7438. * src/IteratableChecksumValidator.cc
  7439. * src/IteratableChunkChecksumValidator.cc
  7440. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7441. * Release 0.16.2
  7442. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7443. Added Serbian translation. Updated Ukrainian translation.
  7444. Thanks to all translators.
  7445. * po/sr.po
  7446. * po/uk.po
  7447. * po/LINGUAS
  7448. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7449. Bump up version number to 0.16.2
  7450. * configure.ac
  7451. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Added length equality test to operator== to drop a piece message
  7453. whose length does not match to the requested one.
  7454. * src/RequestSlot.cc
  7455. * test/DefaultBtMessageDispatcherTest.cc
  7456. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7457. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7458. recieved.
  7459. In this fix, if a request larger than 16KiB length is received, aria2
  7460. disconnects the peer.
  7461. * src/BtConstants.h
  7462. * src/PeerMessageUtil.cc
  7463. * src/PeerMessageUtil.h
  7464. * test/BtRequestMessageTest.cc
  7465. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7466. * Release 0.16.1
  7467. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7468. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7469. * doc/aria2c.1.txt
  7470. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7471. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7472. Updated French, Simplified Chinese and Japanese translations.
  7473. Thanks to all translators.
  7474. en@quot and en@boldquot are also added.
  7475. * po/LINGUAS
  7476. * po/fr.po
  7477. * po/ja.po
  7478. * po/uk.po
  7479. * po/vi.po
  7480. * po/zh_CN.po
  7481. * po/zh_TW.po
  7482. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. Bump up version number to 0.16.1.
  7484. * configure.ac
  7485. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7486. Updated README.
  7487. * README
  7488. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7489. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7490. not to replace '--' with em dash character.
  7491. * doc/aria2c.1.txt
  7492. * doc/makeman
  7493. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7494. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7495. every SEC seconds.
  7496. * src/DownloadEngineFactory.cc
  7497. * src/OptionHandlerFactory.cc
  7498. * src/option_processing.cc
  7499. * src/usage_text.h
  7500. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Fixed compile warning on linux-amd64
  7502. * src/FtpConnection.cc
  7503. * src/IteratableChunkChecksumValidator.cc
  7504. * src/MultiDiskAdaptor.cc
  7505. Fixed the bug that unit test fails on linux-amd64
  7506. * test/UtilTest.cc
  7507. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. Added --dht-file-path option to change the path to dht.dat, which is a
  7509. serialized DHT routing table.
  7510. * src/OptionHandlerFactory.cc
  7511. * src/option_processing.cc
  7512. * src/usage_text.h
  7513. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7514. Fixed possible underflow.
  7515. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7516. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. Fixed the bug that last character in URI is not encoded.
  7518. * src/Request.cc
  7519. * test/RequestTest.cc
  7520. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7521. Fixed the bug that referer header field contains fragment.
  7522. Now Request class removes fragment part of URI and encodes it
  7523. in Request::setUri() and setReferer().
  7524. * src/Request.h
  7525. * src/Request.cc
  7526. * test/RequestTest.cc
  7527. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Added missing m4 macros.
  7529. * m4/cppunit.m4
  7530. * m4/libgcrypt.m4
  7531. * m4/libgnutls-extra.m4
  7532. * m4/libgnutls.m4
  7533. * m4/libxml2.m4
  7534. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7535. Fixed compile error with gcc-4.4(snapshot)
  7536. * src/File.cc
  7537. * src/FtpConnection.cc
  7538. * src/OptionHandlerImpl.h
  7539. * src/Util.cc
  7540. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7541. Removed assert()
  7542. * src/SocketBuffer.cc (SocketBuffer::send)
  7543. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Changed the type of _numNewConnection to unsigned int.
  7545. * src/ActivePeerConnectionCommand.cc
  7546. * src/ActivePeerConnectionCommand.h
  7547. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7548. * Release 0.16.0
  7549. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7550. Updated doc
  7551. * README
  7552. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7553. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7554. translations. Thanks to all translators.
  7555. * po/bg.po
  7556. * po/de.po
  7557. * po/fr.po
  7558. * po/ja.po
  7559. * po/zh_CN.po
  7560. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7561. Bump up version number to 0.16.0.
  7562. * configure.ac
  7563. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7564. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7565. int32_t.
  7566. Changed the type of count to int32_t.
  7567. * src/Metalink2RequestGroup.cc
  7568. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. Added test for Time::elapsed(time_t).
  7570. * test/TimeTest.cc
  7571. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7573. Util::difftv() should be used instead.
  7574. * src/TimeA2.cc
  7575. * src/TimeA2.h
  7576. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7577. Made socket for dht connections non-blocking
  7578. * src/DHTAbstractMessage.cc
  7579. * src/DHTAbstractMessage.h
  7580. * src/DHTConnection.h
  7581. * src/DHTConnectionImpl.cc
  7582. * src/DHTConnectionImpl.h
  7583. * src/DHTMessage.h
  7584. * src/DHTMessageDispatcherImpl.cc
  7585. * src/DHTMessageDispatcherImpl.h
  7586. * src/DHTUnknownMessage.cc
  7587. * src/DHTUnknownMessage.h
  7588. * src/SocketCore.cc
  7589. * src/SocketCore.h
  7590. * test/MockDHTMessage.h
  7591. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7592. Changed the type of offset to int.
  7593. * src/ParameterizedStringParser.cc
  7594. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7595. Made getAsInt() return int32_t
  7596. * src/Option.h
  7597. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7598. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7599. build.
  7600. * configure.ac
  7601. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7602. Use sqlite3_open if sqlite3_open_v2 is not available.
  7603. * src/Sqlite3MozCookieParser.cc
  7604. * src/Sqlite3MozCookieParser.h
  7605. * m4/sqlite3.m4
  7606. * test/Sqlite3MozCookieParserTest.cc
  7607. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7608. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7609. * src/BtPieceMessage.cc
  7610. * src/DHTPeerAnnounceStorage.cc
  7611. * src/DefaultPieceStorage.cc
  7612. * src/DownloadCommand.cc
  7613. * src/DownloadEngine.cc
  7614. * src/FtpConnection.cc
  7615. * src/PeerConnection.cc
  7616. * src/PeerMessageUtil.cc
  7617. * src/RequestGroup.cc
  7618. * src/RequestGroupMan.cc
  7619. * src/SimpleBtMessage.cc
  7620. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7622. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7623. * src/AbstractDiskWriter.cc
  7624. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Don't set Request::supportsPersistentConnection() in HttpConnection
  7626. since this code is also used in AbstractProxyResponseCommand.
  7627. Moved those code to HttpResponse.
  7628. * src/HttpResponse.cc
  7629. * src/HttpResponse.h
  7630. * src/HttpConnection.cc
  7631. * src/HttpConnection.h
  7632. * src/HttpResponseCommand.cc
  7633. * test/HttpResponseTest.cc
  7634. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7635. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7636. The configuration is minimum: no torrent, no metalink, so there may be
  7637. other compile error on their code.
  7638. * src/a2netcompat.h
  7639. * src/File.cc
  7640. * src/File.h
  7641. * src/SocketCore.cc
  7642. * src/SocketCore.h
  7643. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7644. Made a socket of incoming peer non-blocking.
  7645. * src/PeerListenCommand.cc
  7646. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7647. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7648. whole message data is not sent in one send() call.
  7649. * src/BtPieceMessage.cc
  7650. * src/BtPieceMessage.h
  7651. * src/PeerConnection.cc
  7652. * src/PeerConnection.h
  7653. * src/SimpleBtMessage.cc
  7654. * src/SimpleBtMessage.h
  7655. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7656. Fixed the bug that aria2 downloads faster than max-download-limit when
  7657. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7658. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7659. , instead of sum of them.
  7660. * src/ActivePeerConnectionCommand.cc
  7661. * src/DefaultBtInteractive.cc
  7662. * src/DownloadCommand.cc
  7663. * src/PeerInteractionCommand.cc
  7664. * src/PeerReceiveHandshakeCommand.cc
  7665. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7666. Fixed the bug that HTTPS download fails.
  7667. * src/AbstractCommand.cc
  7668. * src/AbstractCommand.h
  7669. * src/DownloadCommand.cc
  7670. * src/FtpConnection.cc
  7671. * src/HttpConnection.cc
  7672. * src/HttpRequestCommand.cc
  7673. * src/HttpResponseCommand.cc
  7674. * src/HttpSkipResponseCommand.cc
  7675. * src/MSEHandshake.cc
  7676. * src/PeerConnection.cc
  7677. * src/SocketCore.cc
  7678. * src/SocketCore.h
  7679. Fixed the bug that aria2 doesn't download whole content body and cannot
  7680. reuse connection if chunked transfer encoding and gzip content encoding
  7681. are set.
  7682. * src/DownloadCommand.cc
  7683. * src/HttpSkipResponseCommand.cc
  7684. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7685. Updated man page.
  7686. * doc/aria2c.1.txt
  7687. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7688. When error occurred while aria2 was parsing an .aria2.conf file, print
  7689. the usage of the option that caused error.
  7690. * src/option_processing.cc
  7691. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7692. Fixed compile error on OptionHandlerException
  7693. * src/Makefile.am
  7694. * src/OptionHandlerException.cc
  7695. * src/OptionHandlerException.h
  7696. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7697. Moved message of the error to OptionHandlerException.h
  7698. * src/NameMatchOptionHandler.h
  7699. * src/OptionHandlerException.h
  7700. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7701. When error occurs while aria2 is parsing an command-line option, print
  7702. the usage of the option.
  7703. * src/Makefile.am
  7704. * src/NameMatchOptionHandler.h
  7705. * src/OptionHandlerException.h
  7706. * src/option_processing.cc
  7707. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. Reverted previous change.
  7709. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7710. username is not in URI.
  7711. * src/HttpRequest.cc
  7712. * src/Request.cc
  7713. * test/HttpRequestTest.cc
  7714. * test/RequestTest.cc
  7715. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Now colon is required for username and password in FTP URL, like:
  7717. ftp://username:password@host.
  7718. If colon is not there, aria2 don't parse it as a username. For example,
  7719. aria2 don't retrieve username from ftp://username@host.
  7720. This fix was made in order to login FTP server via non-transparent ftp
  7721. proxy.
  7722. * src/Request.cc
  7723. * test/RequestTest.cc
  7724. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. Use netrc for HTTP.
  7726. Now FTP user/password is sent in Authorization header when
  7727. --ftp-via-http-proxy=get is given.
  7728. * src/AuthConfigFactory.cc
  7729. * src/HttpRequest.cc
  7730. * src/HttpRequest.h
  7731. * src/NetrcAuthResolver.cc
  7732. * src/NetrcAuthResolver.h
  7733. * src/OptionHandlerFactory.cc
  7734. * src/option_processing.cc
  7735. * src/prefs.cc
  7736. * src/prefs.h
  7737. * test/AuthConfigFactoryTest.cc
  7738. * test/HttpRequestTest.cc
  7739. * test/NetrcAuthResolverTest.cc
  7740. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Issue PWD command first and get working directory and use it as a prefix
  7742. for CWD command.
  7743. * src/DownloadEngine.cc
  7744. * src/DownloadEngine.h
  7745. * src/FtpConnection.cc
  7746. * src/FtpConnection.h
  7747. * src/FtpFinishDownloadCommand.cc
  7748. * src/FtpInitiateConnectionCommand.cc
  7749. * src/FtpNegotiationCommand.cc
  7750. * src/FtpNegotiationCommand.h
  7751. * test/FtpConnectionTest.cc
  7752. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7753. Removed default user/pass for FTP user/pass, since it should not have
  7754. precedence over netrc configuration by default.
  7755. * src/OptionHandlerFactory.cc
  7756. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7757. Added debug log for socket event.
  7758. * src/AbstractCommand.cc
  7759. * src/PeerAbstractCommand.cc
  7760. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7761. Log microseconds.
  7762. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7763. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7764. Replaced HelpItem.cc with OptionHandler.cc.
  7765. * po/POTFILES.in
  7766. Updated po files with 'make update-po'
  7767. * po/aria2c.pot
  7768. * po/*.po
  7769. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7770. Removed possible values from the text.
  7771. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7772. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Removed unused preferences:
  7774. PREF_NO_PREALLOCATION
  7775. PREF_STDOUT_LOG
  7776. PREF_TRACKER_MAX_TRIES
  7777. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7778. PREF_MIN_SEGMENT_SIZE
  7779. * src/option_processing.cc
  7780. * src/prefs.cc
  7781. * src/prefs.h
  7782. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Integrated HelpItem into OptionParser to ease the workload for adding
  7784. new options. Removed default value from usage text.
  7785. * src/HelpItem.cc: Removed.
  7786. * src/HelpItem.h: Removed.
  7787. * src/HelpItemFactory.cc: Removed.
  7788. * src/HelpItemFactory.h: Removed.
  7789. * src/Makefile.am
  7790. * src/Makefile.in
  7791. * src/NameMatchOptionHandler.h
  7792. * src/OptionHandler.cc
  7793. * src/OptionHandler.h
  7794. * src/OptionHandlerFactory.cc
  7795. * src/OptionHandlerImpl.h
  7796. * src/OptionParser.cc
  7797. * src/OptionParser.h
  7798. * src/TagContainer.cc: Removed.
  7799. * src/TagContainer.h: Removed.
  7800. * src/TaggedItem.cc: Removed.
  7801. * src/TaggedItem.h: Removed.
  7802. * src/main.cc
  7803. * src/option_processing.cc
  7804. * src/usage_text.h
  7805. * src/version_usage.cc
  7806. * test/HelpItemTest.cc: Removed.
  7807. * test/Makefile.am
  7808. * test/Makefile.in
  7809. * test/OptionHandlerTest.cc
  7810. * test/OptionParserTest.cc
  7811. * test/TagContainerTest.cc: Removed.
  7812. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. Moved `TransferStat stat = ...' to inside the `if' clause.
  7814. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7815. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7816. Fixed the bug that a block in a piece is requested when same block is
  7817. already requested to the same peer in end game mode.
  7818. * src/BtRequestFactory.h
  7819. * src/DefaultBtInteractive.cc
  7820. * src/DefaultBtRequestFactory.cc
  7821. * src/DefaultBtRequestFactory.h
  7822. * src/DefaultPieceStorage.cc
  7823. * src/DefaultPieceStorage.h
  7824. * src/PieceStorage.h
  7825. * src/UnknownLengthPieceStorage.cc
  7826. * src/UnknownLengthPieceStorage.h
  7827. * test/DefaultBtRequestFactoryTest.cc
  7828. * test/DefaultPieceStorageTest.cc
  7829. * test/MockBtRequestFactory.h
  7830. * test/MockPieceStorage.h
  7831. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7832. Removed _uploadLength and _downloadLength from PeerSessionResource
  7833. and use PeerStat::_sessionUploadLength and
  7834. PeerStat::_sessionDownloadLength.
  7835. * src/PeerSessionResource.cc
  7836. * src/PeerSessionResource.h
  7837. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7838. Fixed the bug that prefixLength of split bucket which doesn't include
  7839. local node ID is incremented.
  7840. * src/DHTBucket.cc
  7841. * src/DHTBucket.h
  7842. * test/DHTBucketTest.cc
  7843. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Added cookies.sqlite to EXTRA_DIST
  7845. * test/Makefile.am
  7846. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. Added Turkish translation. Updated French, German, Russian and
  7848. Simplified Chinese translations. Thanks to all translators.
  7849. * po/LINGUAS
  7850. * po/de.po
  7851. * po/fr.po
  7852. * po/ru.po
  7853. * po/tr.po
  7854. * po/zh_CN.po
  7855. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Added deliminating text to the beginning of the log so that one can find
  7857. where the log starts easily.
  7858. * src/main.cc
  7859. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7861. to fix compile error when async DNS is not enabled by configuration.
  7862. * src/AbstractCommand.cc
  7863. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. If establishing conneciton to a server is failed, then mark error on
  7865. its ServerStat.
  7866. Added the cause of error to log when error event occurred.
  7867. Moved message string to message.h for translation.
  7868. * src/AbstractCommand.cc
  7869. * src/AbstractCommand.h
  7870. * src/FtpNegotiationCommand.cc
  7871. * src/HttpRequestCommand.cc
  7872. * src/PeerAbstractCommand.cc
  7873. * src/message.h
  7874. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7875. Added the function to get error message from socket.
  7876. * src/SocketCore.cc
  7877. * src/SocketCore.h
  7878. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7879. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7880. * src/RequestGroupMan.cc
  7881. * src/RequestGroupMan.h
  7882. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7883. If error event is received in epoll, then abort download immediately.
  7884. * src/AbstractCommand.cc
  7885. * src/Command.cc
  7886. * src/Command.h
  7887. * src/DownloadEngine.cc
  7888. * src/PeerAbstractCommand.cc
  7889. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7890. Added usage message for --uri-selector, --server-stat-of,
  7891. --server-stat-in, --server-stat-timeout options.
  7892. * src/HelpItemFactory.cc
  7893. * src/usage_text.h
  7894. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7895. Added upper limit of FTP response buffer. The current implementation
  7896. uses 4096bytes as a limit.
  7897. * src/FtpConnection.cc
  7898. * src/FtpConnection.h
  7899. * test/FtpConnectionTest.cc
  7900. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7901. Use non-blocking socket for TCP communication to avoid possible
  7902. blocking due to buffer full.
  7903. * src/AbstractProxyRequestCommand.cc
  7904. * src/FtpConnection.cc
  7905. * src/FtpConnection.h
  7906. * src/FtpNegotiationCommand.cc
  7907. * src/FtpNegotiationCommand.h
  7908. * src/HttpConnection.cc
  7909. * src/HttpConnection.h
  7910. * src/HttpRequestCommand.cc
  7911. * src/InitiatorMSEHandshakeCommand.cc
  7912. * src/InitiatorMSEHandshakeCommand.h
  7913. * src/MSEHandshake.cc
  7914. * src/MSEHandshake.h
  7915. * src/Makefile.am
  7916. * src/PeerConnection.cc
  7917. * src/PeerConnection.h
  7918. * src/PeerInteractionCommand.cc
  7919. * src/PeerListenCommand.cc
  7920. * src/ReceiverMSEHandshakeCommand.cc
  7921. * src/ReceiverMSEHandshakeCommand.h
  7922. * src/SocketBuffer.cc
  7923. * src/SocketBuffer.h
  7924. * src/SocketCore.cc
  7925. * src/SocketCore.h
  7926. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7927. Call setStatusRealtime() in constructor.
  7928. * src/RealtimeCommand.cc
  7929. * src/RealtimeCommand.h
  7930. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. Call Download::setNoWait(true) to execute newly created command without
  7932. a pause.
  7933. * src/AbstractCommand.cc
  7934. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7936. found' error from HTTP/FTP server NUM times without getting single
  7937. bytes of data, then force the download to fail.
  7938. Basically aria2 tris all URIs available. So if long list of URIs are
  7939. specified in Metalink, then aria2 will take a long time to fail
  7940. eventually if all URIs are outdated. This option eases this situation
  7941. to limit the number of servers to try.
  7942. * src/FtpNegotiationCommand.cc
  7943. * src/HelpItemFactory.cc
  7944. * src/HttpResponseCommand.cc
  7945. * src/OptionHandlerFactory.cc
  7946. * src/PeerStat.h
  7947. * src/RequestGroup.cc
  7948. * src/RequestGroup.h
  7949. * src/SegmentMan.cc
  7950. * src/SegmentMan.h
  7951. * src/option_processing.cc
  7952. * src/prefs.cc
  7953. * src/prefs.h
  7954. * src/usage_text.h
  7955. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7956. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7957. response even if more than one response is in it.
  7958. * src/FtpConnection.cc
  7959. * src/FtpConnection.h
  7960. * test/FtpConnectionTest.cc
  7961. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. Merged from stable-0.15
  7963. * m4/libcares.m4
  7964. Use pkg-config
  7965. * m4/sqlite3.m4
  7966. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7967. Removed unnecessary if statement.
  7968. * src/DefaultPieceStorage.cc (initPieceStorage)
  7969. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Added --connect-timeout option to specify connect timeout in seconds.
  7971. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7972. connecting to BitTorrent peer is not controlled by this option.
  7973. * src/AbstractProxyRequestCommand.cc
  7974. * src/FtpNegotiationCommand.cc
  7975. * src/HelpItemFactory.cc
  7976. * src/HttpRequestCommand.cc
  7977. * src/OptionHandlerFactory.cc
  7978. * src/option_processing.cc
  7979. * src/prefs.cc
  7980. * src/prefs.h
  7981. * src/usage_text.h
  7982. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7983. Added help message for -R option.
  7984. * src/HelpItemFactory.cc
  7985. * src/usage_text.h
  7986. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Added the message that the time is in local time zone.
  7988. * src/RequestGroup.cc
  7989. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Implemented the ability to get timestamp from remote FTP server using
  7991. MDTM command described in RFC3659.
  7992. * src/FtpConnection.cc
  7993. * src/FtpConnection.h
  7994. * src/FtpNegotiationCommand.cc
  7995. * src/FtpNegotiationCommand.h
  7996. * test/FtpConnectionTest.cc
  7997. * test/Makefile.am
  7998. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7999. Implemented the ability to get timestamp from remote HTTP server and
  8000. apply it to local file. To enable this feature, --remote-time option
  8001. is added. No usage text has been written yet.
  8002. If several servers returns difference timestamp, then aria2 uses latest
  8003. one.
  8004. * src/CopyDiskAdaptor.cc
  8005. * src/CopyDiskAdaptor.h
  8006. * src/DirectDiskAdaptor.cc
  8007. * src/DirectDiskAdaptor.h
  8008. * src/DiskAdaptor.h
  8009. * src/File.cc
  8010. * src/File.h
  8011. * src/HttpHeader.cc
  8012. * src/HttpHeader.h
  8013. * src/HttpResponse.cc
  8014. * src/HttpResponse.h
  8015. * src/HttpResponseCommand.cc
  8016. * src/HttpResponseCommand.h
  8017. * src/MultiDiskAdaptor.cc
  8018. * src/MultiDiskAdaptor.h
  8019. * src/OptionHandlerFactory.cc
  8020. * src/RequestGroup.cc
  8021. * src/RequestGroup.h
  8022. * src/RequestGroupMan.cc
  8023. * src/option_processing.cc
  8024. * src/prefs.cc
  8025. * src/prefs.h
  8026. * test/CopyDiskAdaptorTest.cc
  8027. * test/FileTest.cc
  8028. * test/Makefile.am
  8029. * test/Makefile.in
  8030. * test/MultiDiskAdaptorTest.cc
  8031. * test/TestUtil.cc
  8032. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8033. Fixed the bug that DiskWriterEntry is not created when its
  8034. FileEntry.isRequested() is false and it doesn't share a piece with
  8035. other FileEntries that are requested. This bug causes segmentation fault
  8036. in the end.
  8037. * src/MultiDiskAdaptor.cc
  8038. * src/MultiDiskAdaptor.h
  8039. * src/MultiFileAllocationIterator.cc
  8040. * test/MultiDiskAdaptorTest.cc
  8041. * test/MultiFileAllocationIteratorTest.cc
  8042. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8043. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  8044. called if the number of file entries are greater than max open files.
  8045. * src/AbstractSingleDiskAdaptor.cc
  8046. * src/AbstractSingleDiskAdaptor.h
  8047. * src/DiskAdaptor.h
  8048. * src/MultiDiskAdaptor.cc
  8049. * src/MultiDiskAdaptor.h
  8050. * test/MultiDiskAdaptorTest.cc
  8051. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8052. Added a constuctor that receives struct timeval.
  8053. Added operator<.
  8054. * src/TimeA2.cc
  8055. * src/TimeA2.h
  8056. * test/TimeTest.cc
  8057. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8058. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  8059. * src/CookieParser.cc
  8060. * test/CookieParserTest.cc
  8061. * test/HttpResponseTest.cc
  8062. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8063. Implmented the functions to parse date.
  8064. * src/TimeA2.cc
  8065. * src/TimeA2.h
  8066. * test/TimeTest.cc
  8067. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8068. Added "Firefox3 Cookie" feature to FeatureConfig
  8069. * src/FeatureConfig.cc
  8070. * src/FeatureConfig.h
  8071. * test/FeatureConfigTest.cc
  8072. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. Bump up version number to 0.16.0b
  8074. * configure.ac
  8075. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. Use pkg-config if is is available.
  8077. * m4/openssl.m4
  8078. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  8080. * src/BtAnnounce.h
  8081. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8082. If an error occurred with a URI, remove identical URI from remaining
  8083. URI list because it is likely that same error occurred in the end and it
  8084. is waste of time.
  8085. * src/AbstractCommand.cc
  8086. * src/RequestGroup.cc
  8087. * src/RequestGroup.h
  8088. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Removed wrong comment.
  8090. * src/DefaultPeerStorage.cc
  8091. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  8093. Added return value of getpid() to argument of srand() to achieve more
  8094. randomized value.
  8095. * src/SimpleRandomizer.cc
  8096. * src/SimpleRandomizer.h
  8097. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8098. Contact tracker frequently when the number of connections are 0 and
  8099. download is not finished yet.
  8100. * src/ActivePeerConnectionCommand.cc
  8101. * src/BtAnnounce.h
  8102. * src/DefaultBtAnnounce.cc
  8103. * src/DefaultBtAnnounce.h
  8104. * test/MockBtAnnounce.h
  8105. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8106. Moved threshold values to UTPexExtensionMessage.
  8107. * src/DefaultBtInteractive.cc
  8108. * src/Peer.cc
  8109. * src/Peer.h
  8110. * src/UTPexExtensionMessage.cc
  8111. * src/UTPexExtensionMessage.h
  8112. * test/UTPexExtensionMessageTest.cc
  8113. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. Added _incoming member to Peer class and made it true if the peer
  8115. initiated connection. Don't add those peer to UTPex message.
  8116. If extended handshake is received, assign _incoming to false.
  8117. * src/DefaultBtInteractive.cc
  8118. * src/HandshakeExtensionMessage.cc
  8119. * src/Peer.cc
  8120. * src/Peer.h
  8121. * src/PeerListenCommand.cc
  8122. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  8124. Encoding Decoder. Removed size threshold for turning off on the fly
  8125. inflation because resulting file may or may not be inflated depending
  8126. on the file size and I think it is not expected by users.
  8127. This change fixes segmentation fault when Metalink file contains gzipped
  8128. file and its filesize is provided.
  8129. * src/HttpResponseCommand.cc
  8130. * src/HttpResponseCommand.h
  8131. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8132. Made Cookie immutable.
  8133. * src/Cookie.cc
  8134. * src/Cookie.h
  8135. * src/CookieParser.cc
  8136. * src/CookieParser.h
  8137. * src/CookieStorage.cc
  8138. * test/CookieParserTest.cc
  8139. * test/CookieStorageTest.cc
  8140. * test/NsCookieParserTest.cc
  8141. * test/Sqlite3MozCookieParserTest.cc
  8142. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8143. Removed CookieBox, CookieBoxFactory.
  8144. * src/CookieBox.cc
  8145. * src/CookieBox.h
  8146. * src/CookieBoxFactory.cc
  8147. * src/CookieBoxFactory.h
  8148. * src/Makefile.am
  8149. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. Use CookieStorage class instead of CookieBox class.
  8151. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  8152. * src/AbstractProxyRequestCommand.cc
  8153. * src/CookieStorage.cc
  8154. * src/DownloadEngine.cc
  8155. * src/DownloadEngine.h
  8156. * src/HttpConnection.cc
  8157. * src/HttpConnection.h
  8158. * src/HttpRequest.cc
  8159. * src/HttpRequest.h
  8160. * src/HttpRequestCommand.cc
  8161. * src/HttpResponse.cc
  8162. * src/HttpResponseCommand.cc
  8163. * src/HttpSkipResponseCommand.cc
  8164. * src/Makefile.am
  8165. * src/MultiUrlRequestInfo.cc
  8166. * src/Request.cc
  8167. * src/Request.h
  8168. * src/main.cc
  8169. * test/AllTest.cc
  8170. * test/CookieStorageTest.cc
  8171. * test/CookieTest.cc
  8172. * test/HttpRequestTest.cc
  8173. * test/HttpResponseTest.cc
  8174. * test/Makefile.am
  8175. * test/NsCookieParserTest.cc
  8176. * test/Sqlite3MozCookieParserTest.cc
  8177. * test/nscookietest.txt
  8178. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8179. Updated
  8180. * test/Cookies.sqlite
  8181. * test/nscookietest.txt
  8182. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Added tests for CookieStorage::load()
  8184. * test/CookieStorageTest.cc
  8185. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Added CookieStorage class which is based on RFC2109 and manages cookies
  8187. more strictly than CookieBox and CookieBoxFactory class.
  8188. * src/CookieStorage.cc
  8189. * src/CookieStorage.h
  8190. * src/Cookie.cc
  8191. * src/Cookie.h
  8192. * test/CookieStorageTest.cc
  8193. * test/CookieTest.cc
  8194. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8195. Fixed the bug that commands are created more than the number of pieces.
  8196. * src/RequestGroup.cc
  8197. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Fixed infinite loop bug in FTP when SIZE command failed.
  8199. * src/FtpNegotiationCommand.cc
  8200. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8201. Removed DirectDiskAdaptorTest.h
  8202. * test/Makefile.am
  8203. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8204. Fixed chunk checksum validation cannot detect trailing garbage data.
  8205. BUG#2074141
  8206. * src/AbstractSingleDiskAdaptor.cc
  8207. * src/AbstractSingleDiskAdaptor.h
  8208. * src/CheckIntegrityEntry.cc
  8209. * src/CheckIntegrityEntry.h
  8210. * src/DiskAdaptor.h
  8211. * src/MultiDiskAdaptor.cc
  8212. * src/MultiDiskAdaptor.h
  8213. * src/RequestGroup.cc
  8214. * test/DirectDiskAdaptorTest.cc
  8215. * test/MultiDiskAdaptorTest.cc
  8216. * test/TestUtil.cc
  8217. * test/TestUtil.h
  8218. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8219. Bump up version number of dht.dat file to 3. In version 3 format, time
  8220. is stored in 64bit, network byte order.
  8221. New build can load old format(version 2) but it saves the file in new
  8222. format. It means once you used new build, your dht.dat becomes
  8223. incompatible with older build.
  8224. * src/DHTRoutingTableDeserializer.cc
  8225. * src/DHTRoutingTableSerializer.cc
  8226. * test/DHTRoutingTableSerializerTest.cc
  8227. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8228. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  8229. * test/Makefile.am
  8230. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8231. Bump up version number of .aria2 control file to 0001.
  8232. New aria2 can still load version 0000 file but it saves the file in
  8233. version 0001 format. It means that new aria2 can resume download
  8234. started by old aria2 but the opposite is not true.
  8235. * src/DefaultBtProgressInfoFile.cc
  8236. * src/DefaultBtProgressInfoFile.h
  8237. * test/DefaultBtProgressInfoFileTest.cc
  8238. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Added ntoh64 and hton64 as inline functions.
  8240. * src/Util.cc
  8241. * test/UtilTest.cc
  8242. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8243. Added sqlite3 depenency and Firefox3 cookie support.
  8244. * README
  8245. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8246. State that firefox3 cookie is supported explicitly in the usage.
  8247. * src/usage_text.h
  8248. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8249. Externalized message.
  8250. * src/RequestGroupMan.cc
  8251. * src/message.h
  8252. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8253. Save temporary file first and rename to the destination on success.
  8254. Added test cases.
  8255. * src/RequestGroupMan.cc
  8256. * test/RequestGroupManTest.cc
  8257. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8258. Fixed the bug that the number of connected peer is exceeding the limit
  8259. (55 by default) in seeding mode.
  8260. Multiplied 0.8 to _maxUploadSpeedLimit.
  8261. * src/ActivePeerConnectionCommand.cc
  8262. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8263. Clear table item.
  8264. * src/Dictionary.cc
  8265. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Fixed error handling of lseek.
  8267. * src/AbstractDiskWriter.cc
  8268. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8269. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  8270. style cookie file.
  8271. * src/usage_text.h
  8272. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8273. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  8274. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  8275. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  8276. * src/Util.cc
  8277. * src/Util.h
  8278. * src/CookieParser.cc
  8279. * test/UtilTest.cc
  8280. * test/CookieParserTest.cc
  8281. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8282. Separate the implementation to load old mozilla format of cookie to
  8283. NsCookieParser class.
  8284. * src/CookieBoxFactory.cc
  8285. * src/CookieBoxFactory.h
  8286. * src/NsCookieParser.cc
  8287. * src/NsCookieParser.h
  8288. * test/NsCookieParserTest.cc
  8289. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8290. Made parse() const
  8291. * src/Sqlite3MozCookieParser.cc
  8292. * src/Sqlite3MozCookieParser.h
  8293. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8294. Added firefox3 cookie support based on the patch submitted by
  8295. tizianomueller.
  8296. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  8297. this functionality.
  8298. * configure.ac
  8299. * m4/sqlite3.m4
  8300. * src/CookieBoxFactory.cc
  8301. * src/CookieBoxFactory.h
  8302. * src/Makefile.am
  8303. * src/Makefile.in
  8304. * src/Sqlite3MozCookieParser.cc
  8305. * src/Sqlite3MozCookieParser.h
  8306. * src/main.cc
  8307. * test/CookieBoxFactoryTest.cc
  8308. * test/Makefile.am
  8309. * test/Makefile.in
  8310. * test/Sqlite3MozCookieParserTest.cc
  8311. * test/badcookies.sqlite
  8312. * test/cookies.sqlite
  8313. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8314. Added Danish and Greek translations.
  8315. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  8316. Great thanks to all translators.
  8317. * po/LINGUAS
  8318. * po/el.po
  8319. * po/da.po
  8320. * po/es.po
  8321. * po/ca.po
  8322. * po/nn.po
  8323. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. Fixed man page: --follow-bittorrent should be --follow-torrent
  8325. * doc/aria2c.1.txt
  8326. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Fixed: numCommand is less than the value specified in -C option.
  8328. * src/RequestGroup.cc
  8329. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. Fixed occasional assertion failure in PieceSegment.
  8331. Calling PieceStorage::getMissingPiece(size_t) was missing after
  8332. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  8333. creation of duplicate segments and one of the segment was finished then
  8334. assertion failure was caused.
  8335. * src/SegmentMan.cc
  8336. * test/SegmentManTest.cc
  8337. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8338. Added options to load/save the server's performance/status to a file
  8339. and the timeout to drop their data.
  8340. --server-stat-of=FILE specifies the file to which performance data
  8341. is saved.
  8342. --server-stat-if=FILE specifies the file to read previously saved
  8343. by --server-stat-of option. Might be used with --uri-selector=feedback.
  8344. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  8345. TIMEOUT is specified in seconds and the default value is 24hours.
  8346. * src/MultiUrlRequestInfo.cc
  8347. * src/OptionHandlerFactory.cc
  8348. * src/RequestGroupMan.cc
  8349. * src/RequestGroupMan.h
  8350. * src/ServerStatMan.cc
  8351. * src/ServerStatMan.h
  8352. * src/option_processing.cc
  8353. * src/prefs.cc
  8354. * src/prefs.h
  8355. * test/ServerStatManTest.cc
  8356. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  8358. * src/ServerStatMan.cc
  8359. * src/ServerStatMan.h
  8360. * test/ServerStatManTest.cc
  8361. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8362. Implemented ServerStatMan::load(...) function and its test case.
  8363. * src/ServerStat.cc
  8364. * src/ServerStat.h
  8365. * src/ServerStatMan.cc
  8366. * test/ServerStatManTest.cc
  8367. * test/ServerStatTest.cc
  8368. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8369. Use time_t instead of int32_t. Use int64_t where milli second is
  8370. expected.
  8371. * src/TimeA2.cc
  8372. * src/TimeA2.h
  8373. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. Implemented ServerStatMan::save(...) function and its test case.
  8375. * src/ServerStat.cc
  8376. * src/ServerStat.h
  8377. * src/ServerStatMan.cc
  8378. * src/ServerStatMan.h
  8379. * test/ServerStatManTest.cc
  8380. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8381. Now aria2 uses name attribute in Metalink as local filename in
  8382. BitTorrent downloads. BUG#2033999
  8383. * src/BtContext.h
  8384. * src/BtDependency.cc
  8385. * src/DefaultBtContext.cc
  8386. * src/DefaultBtContext.h
  8387. * src/SingleFileDownloadContext.cc
  8388. * src/SingleFileDownloadContext.h
  8389. * test/BtDependencyTest.cc
  8390. * test/DefaultBtContextTest.cc
  8391. * test/MockBtContext.h
  8392. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Added AC_C_BIGENDIAN
  8394. * src/configure.ac
  8395. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Limited numCommand less than or equal to the number of piece.
  8397. * src/RequestGroup.cc
  8398. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8399. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8400. directive.
  8401. * test/DefaultPieceStorageTest.cc
  8402. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8403. Fixed memory leak in test code
  8404. * test/AnnounceListTest.cc
  8405. * test/DefaultPeerListProcessorTest.cc
  8406. * test/DefaultPeerStorageTest.cc
  8407. * test/MetaFileUtilTest.cc
  8408. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8410. * src/DefaultPieceStorage.cc
  8411. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8412. Initialized _directIOAllowed
  8413. * src/MultiDiskAdaptor.cc
  8414. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. Fixed memory leak
  8416. * src/GZipDecoder.cc
  8417. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8418. Fixed memory leak
  8419. * src/MetalinkParserStateMachine.cc
  8420. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8421. Fixed memory leak
  8422. * src/Dictionary.cc
  8423. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8424. Fixed memory leak
  8425. * src/IteratableChunkChecksumValidator.h
  8426. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8427. Fixed unmatched malloc/free.
  8428. * src/IteratableChunkChecksumValidator.cc
  8429. * src/IteratableChecksumValidator.cc
  8430. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8431. Removed max chunk size check. This change fixes BUG#2040169
  8432. * src/ChunkedDecoder.cc
  8433. * src/ChunkedDecoder.h
  8434. * test/ChunkedDecoderTest.cc
  8435. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8436. Implemented download speed based URI selection algorithm.
  8437. Introduced new option --uri-selector.
  8438. If --uri-selector=feedback is given, aria2 uses download speed observed
  8439. in the previous downloads and chooses fastest server in the URI list.
  8440. Currently at most 10 URIs are considered to introduce randomeness for
  8441. finding better servers. The speed is average download speed in the
  8442. downloads.
  8443. On the other hand, if --uri-selector=inorder is given, which is default,
  8444. URI is tried in order in URI list.
  8445. The usage text for the new option has not been written yet.
  8446. * src/AbstractCommand.cc
  8447. * src/DownloadCommand.cc
  8448. * src/DownloadEngine.cc
  8449. * src/DownloadEngineFactory.cc
  8450. * src/InOrderURISelector.cc
  8451. * src/InOrderURISelector.h
  8452. * src/OptionHandlerFactory.cc
  8453. * src/PeerStat.h
  8454. * src/RequestGroup.cc
  8455. * src/RequestGroup.h
  8456. * src/RequestGroupMan.cc
  8457. * src/RequestGroupMan.h
  8458. * src/SegmentMan.cc
  8459. * src/SegmentMan.h
  8460. * src/ServerStat.cc
  8461. * src/ServerStat.h
  8462. * src/ServerStatMan.cc
  8463. * src/ServerStatMan.h
  8464. * src/ServerStatURISelector.cc
  8465. * src/ServerStatURISelector.h
  8466. * src/URISelector.h
  8467. * src/option_processing.cc
  8468. * src/prefs.cc
  8469. * src/prefs.h
  8470. * test/InOrderURISelectorTest.cc
  8471. * test/RequestGroupManTest.cc
  8472. * test/ServerStatManTest.cc
  8473. * test/ServerStatURISelectorTest.cc
  8474. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. * Release 0.15.1+2
  8476. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8477. Bump up version number to 0.15.1+2
  8478. * configure.ac
  8479. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8480. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8481. * m4/aria2_arg.m4
  8482. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. * Release 0.15.1+1
  8484. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. Bump up version number to 0.15.1+1
  8486. * configure.ac
  8487. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8488. Fixed the bug that causes segmentaion fault when resuming download
  8489. using metalink without size tag. Reproducible only using HTTP URI.
  8490. * src/HttpResponseCommand.cc
  8491. * src/FtpNegotiationCommand.cc
  8492. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8493. * Release 0.15.1
  8494. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Updated Bulgarian and French translations, thanks to all translators.
  8496. * po/bg.po
  8497. * po/fr.po
  8498. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8499. Bump up version number to 0.15.1
  8500. * configure.ac
  8501. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Avoid repeated call of gettimeofday() when calculating speed.
  8503. * src/SpeedCalc.cc
  8504. * src/SpeedCalc.h
  8505. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8506. Removed writable check when socket's send buffer is full in BitTorrent
  8507. downloads to lower CPU usage.
  8508. * src/PeerInteractionCommand.cc
  8509. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8510. Fixed broken gzip inflation.
  8511. Turn off segmented downloading if gzip content is smaller than or equal
  8512. to 1MiB and inflate the data on the fly, because HTTP response header
  8513. doesn't contain the length of inflated file we can't determin where
  8514. the chunk of data should be written.
  8515. On the other hand, if gzip content is larger than 1MB, then turn off
  8516. on the fly inflation, because some servers returns "content-type: gzip"
  8517. for *.tgz, *.gz files.
  8518. * src/DownloadCommand.cc
  8519. * src/HttpResponseCommand.cc
  8520. * src/HttpResponseCommand.h
  8521. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8522. Applied tizianomueller's patch to fix compile error.
  8523. * test/BitfieldManTest.cc
  8524. * test/BtRequestMessageTest.cc
  8525. * test/DefaultBtContextTest.cc
  8526. * test/DefaultDiskWriterTest.cc
  8527. * test/DefaultPieceStorageTest.cc
  8528. * test/HttpHeaderProcessorTest.cc
  8529. * test/HttpResponseTest.cc
  8530. * test/Metalink2RequestGroupTest.cc
  8531. * test/MetalinkParserControllerTest.cc
  8532. * test/MetalinkProcessorTest.cc
  8533. * test/PeerSessionResourceTest.cc
  8534. * test/UtilTest.cc
  8535. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8536. * Release 0.15.0
  8537. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. Reordered src files in POTFILES.in so that usage text appears first.
  8539. * po/POTFILES.in
  8540. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8541. Bump up version number to 0.15.0
  8542. * configure.ac
  8543. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Added Bulgarian translation.
  8545. Updated Catalan, Spanish, French and Japanese translations.
  8546. Thanks to all translators.
  8547. * po/LINGUAS
  8548. * po/bg.po
  8549. * po/ca.po
  8550. * po/es.po
  8551. * po/fr.po
  8552. * po/ja.po
  8553. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Updated feature list. Added libz for dependency section.
  8555. Added a description about unit testing using CppUnit.
  8556. * README
  8557. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8558. Added a test for libz. Quoted where it is necessary.
  8559. * build_test.sh
  8560. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8561. Added GZip to `Enabled Features' list.
  8562. * src/FeatureConfig.cc
  8563. * src/FeatureConfig.h
  8564. * test/FeatureConfigTest.cc
  8565. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8566. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8567. the transfer has not yet started.
  8568. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8569. * src/SegmentMan.cc
  8570. * src/SegmentMan.h
  8571. * test/SegmentManTest.cc
  8572. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. Cache last calculated average download/upload speed.
  8574. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8575. cached value.
  8576. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8577. * src/PeerStat.h
  8578. * src/SpeedCalc.cc
  8579. * src/SpeedCalc.h
  8580. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8581. Call parseUrl directly.
  8582. * src/Request.cc (resetUrl)
  8583. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Supported absolute/relative path in Location header field.
  8585. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8586. * src/HttpHeader.cc
  8587. * src/HttpHeader.h
  8588. * src/HttpResponse.cc
  8589. * src/HttpSkipResponseCommand.cc
  8590. * src/Request.cc
  8591. * test/HttpHeaderTest.cc
  8592. * test/HttpResponseTest.cc
  8593. * test/RequestTest.cc
  8594. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8595. Changed help text for --load-cookie option.
  8596. * doc/aria2c.1.txt
  8597. * src/usage_text.h
  8598. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. Regenerated test/Makefile.in to remove stale ChangeLog.
  8600. * test/Makefile.in
  8601. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8602. Updated po files.
  8603. * po/aria2c.pot
  8604. * po/*.po
  8605. * po/*.gmo
  8606. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8607. Bump up version number to 0.15.0b
  8608. * configure.ac
  8609. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Externalize messages.
  8611. * src/RequestGroupMan.cc
  8612. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8613. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8614. Use File::exists() instead of File::isFile() to allow non-regular file
  8615. such as block special files.
  8616. * src/AbstractDiskWriter.cc
  8617. * src/MultiDiskWriter.cc
  8618. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8619. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8620. * src/gai_strerror.h
  8621. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8622. Fixed compile error. Thanks gknauf for the patch.
  8623. * src/asctime_r.c
  8624. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8625. Included asctime_r.h from a2time.h.
  8626. * src/a2time.h
  8627. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8628. Added a message "aria2 doesn't verify signature" to log message when
  8629. signature file is saved.
  8630. * src/RequestGroupMan.cc
  8631. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. Added the ability to save signature when download is completed if
  8633. signature is available. The filename of signature file is the path to
  8634. download file followed by ".sig". If it already exists, then signature
  8635. will not be saved.
  8636. * src/RequestGroupMan.cc
  8637. * src/Signature.cc
  8638. * test/SignatureTest.cc
  8639. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Updated the descriptions for --bt-seed-unverified.
  8641. * doc/aria2c.1
  8642. * doc/aria2c.1.html
  8643. * doc/aria2c.1.txt
  8644. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8646. that this is not going to verify files using piece hashes.
  8647. * src/HelpItemFactory.cc
  8648. * src/OptionHandlerFactory.cc
  8649. * src/RequestGroup.cc
  8650. * src/option_processing.cc
  8651. * src/prefs.cc
  8652. * src/prefs.h
  8653. * src/usage_text.h
  8654. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Added the ability to retrieve signature from Metalink file.
  8656. A retrieved signature is stored in Signature class and it is held by
  8657. DownloadContext class. Note that aria2 doesn't verify signature.
  8658. * src/DownloadContext.cc
  8659. * src/DownloadContext.h
  8660. * src/Makefile.am
  8661. * src/Makefile.in
  8662. * src/Metalink2RequestGroup.cc
  8663. * src/MetalinkEntry.cc
  8664. * src/MetalinkEntry.h
  8665. * src/MetalinkParserController.cc
  8666. * src/MetalinkParserController.h
  8667. * src/MetalinkParserStateMachine.cc
  8668. * src/MetalinkParserStateMachine.h
  8669. * src/Signature.cc
  8670. * src/Signature.h
  8671. * src/SignatureMetalinkParserState.cc
  8672. * src/SignatureMetalinkParserState.h
  8673. * src/VerificationMetalinkParserState.cc
  8674. * src/VerificationMetalinkParserState.h
  8675. * test/Metalink2RequestGroupTest.cc
  8676. * test/MetalinkParserControllerTest.cc
  8677. * test/MetalinkProcessorTest.cc
  8678. * test/test.xml
  8679. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8680. Close DiskAdaptor after renaming file.
  8681. * src/RequestGroup.cc
  8682. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Corrected indentation
  8684. * src/DefaultBtProgressInfoFile.cc
  8685. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8686. Moved the calls of std::ios::exceptions() inside of try-catch block
  8687. because if an error occurred in constructor of std::fstream, then
  8688. exception is thrown immediately when std::ios::exceptions() is called
  8689. which results unhandled exception and aria2c aborts.
  8690. * src/DefaultBtProgressInfoFile.cc
  8691. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8692. Added the test for the previous change in DefaultBtContext.cc
  8693. * test/DefaultBtContextTest.cc
  8694. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8695. Fixed the bug that causes infinite loop when the number of pieces are
  8696. fewer than allowed fast set size which is 10 by default.
  8697. * src/DefaultBtContext.cc
  8698. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. Updated the descriptions for -j, -s. Added --bt-seed.
  8700. * doc/aria2c.1
  8701. * doc/aria2c.1.html
  8702. * doc/aria2c.1.txt
  8703. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8704. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8705. aria2 seeds previously downloaded files without validating piece hashs.
  8706. * src/HelpItemFactory.cc
  8707. * src/OptionHandlerFactory.cc
  8708. * src/RequestGroup.cc
  8709. * src/option_processing.cc
  8710. * src/prefs.cc
  8711. * src/prefs.h
  8712. * src/usage_text.h
  8713. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8714. Updated DESCRIPTION of man page.
  8715. * doc/aria2c.1
  8716. * doc/aria2c.1.html
  8717. * doc/aria2c.1.txt
  8718. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8719. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8720. Don't define `struct addrinfo' when __sun is defined.
  8721. * src/getaddrinfo.h
  8722. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8723. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8724. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8725. second argument is of type `struct _stati64'. Otherwise it is defined as
  8726. `struct stat'.
  8727. * src/AbstractDiskWriter.cc
  8728. * src/File.cc
  8729. * src/File.h
  8730. * src/a2io.h
  8731. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8732. Fixed the compile error in hurd-i386
  8733. See the original bug report:
  8734. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8735. * src/a2io.h
  8736. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8737. Code cleanup.
  8738. * src/PeerAbstractCommand.cc
  8739. * src/PeerAbstractCommand.h
  8740. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Removed TransferEncoding.
  8742. * src/DownloadCommand.cc
  8743. * src/DownloadCommand.h
  8744. * src/HttpResponseCommand.cc
  8745. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8746. Updated po files.
  8747. * po/aria2c.pot
  8748. * po/*.po
  8749. * po/*.gmo
  8750. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8751. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8752. * src/A2STR.cc
  8753. * src/A2STR.h
  8754. * src/ChunkedDecoder.cc
  8755. * src/ChunkedDecoder.h
  8756. * src/ChunkedEncoding.cc: Removed
  8757. * src/ChunkedEncoding.h: Removed
  8758. * src/DownloadCommand.cc
  8759. * src/DownloadCommand.h
  8760. * src/HttpDownloadCommand.cc
  8761. * src/HttpResponse.cc
  8762. * src/HttpResponse.h
  8763. * src/HttpResponseCommand.cc
  8764. * src/HttpSkipResponseCommand.cc
  8765. * src/HttpSkipResponseCommand.h
  8766. * src/Makefile.am
  8767. * src/TransferEncoding.h: Removed
  8768. * test/ChunkedDecoderTest.cc
  8769. * test/ChunkedEncodingTest.cc: Removed
  8770. * test/HttpResponseTest.cc
  8771. * test/Makefile.am
  8772. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8773. Use append instead of insert.
  8774. * src/GZipDecoder.cc
  8775. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Updated doc
  8777. * src/Decoder.h
  8778. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Updated usage text for -s option.
  8780. * src/usage_text.h
  8781. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8782. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8783. * src/Request.cc
  8784. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Cleaned up configure.ac.
  8786. * configure.ac
  8787. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8789. AC_ARG_ENABLE.
  8790. * configure.ac
  8791. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8792. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8793. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8794. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8795. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8796. fly and writes decoded data to a local disk.
  8797. * README
  8798. * README.html
  8799. * configure.ac
  8800. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8801. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8802. * m4/libz.m4
  8803. * src/Decoder.h
  8804. * src/DownloadCommand.cc
  8805. * src/DownloadCommand.h
  8806. * src/Exception.h
  8807. * src/GZipDecoder.cc
  8808. * src/GZipDecoder.h
  8809. * src/HttpHeader.cc
  8810. * src/HttpHeader.h
  8811. * src/HttpRequest.cc
  8812. * src/HttpRequest.h
  8813. * src/HttpResponse.cc
  8814. * src/HttpResponse.h
  8815. * src/HttpResponseCommand.cc
  8816. * src/Makefile.am
  8817. * test/GZipDecoderTest.cc
  8818. * test/HttpRequestTest.cc
  8819. * test/HttpResponseTest.cc
  8820. * test/Makefile.am
  8821. * test/Makefile.in
  8822. * test/gzip_decode_test.gz
  8823. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8824. Clarified usage of -j option.
  8825. * src/usage_text.h
  8826. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Disabled getting size from the response of RETR.
  8828. If SIZE command failed, then disable resuming and segmented downloading.
  8829. * src/FtpConnection.cc
  8830. * src/FtpConnection.h
  8831. * src/FtpNegotiationCommand.cc
  8832. * src/FtpNegotiationCommand.h
  8833. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8834. Use digits to find first byte of file size, which makes the intention
  8835. of the code clearer.
  8836. * src/FtpConnection.cc
  8837. Don't call validateTotalLength() when size is 0.
  8838. * src/FtpNegotiationCommand.cc
  8839. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8840. Updated po files.
  8841. * po/aria2c.pot
  8842. * po/*.gmo
  8843. * po/*.po
  8844. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Clarified usage text for --split option.
  8846. * src/usage_text.h
  8847. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8848. Bump up version number to 0.15.0dev. "dev" means "development"
  8849. version, which means I started the development of the next release!
  8850. * src/configure.ac
  8851. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8852. If FTP server returns negative response with REST raw command and
  8853. requested range is not 0, throw exception. If requested range is 0,
  8854. continue download a file from 0 byte.
  8855. * src/FtpNegotiationCommand.cc
  8856. * src/FtpNegotiationCommand.h
  8857. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8858. Supported FTP server which don't recognize SIZE raw command.
  8859. If SIZE raw command is failed, aria2 will try to get file size
  8860. from the response of RETR raw command. If both attempts are failed,
  8861. then resuming and segmented downloading are disabled.
  8862. * src/FtpConnection.cc
  8863. * src/FtpConnection.h
  8864. * src/FtpNegotiationCommand.cc
  8865. * src/FtpNegotiationCommand.h
  8866. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. * Release 0.14.0+1
  8868. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8869. Bump up version number to 0.14.0+1
  8870. * src/configure.ac
  8871. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8872. Fixed the code that refers static member variable from non-static
  8873. context.
  8874. * src/DefaultPeerStorage.cc
  8875. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8876. * Release 0.14.0
  8877. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8878. Added build test script
  8879. * build_test.sh
  8880. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8881. Updated ja.po
  8882. * src/ja.po
  8883. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8884. Bump up version number to 0.14.0
  8885. * src/configure.ac
  8886. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8887. Updated ja.po and fr.po. Great thanks for french translators and
  8888. Sebastien WILLEMIJNS.
  8889. * po/fr.po
  8890. * po/ja.po
  8891. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8892. Added configure option to enable/disable epoll support.
  8893. * configure.ac
  8894. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8895. Updated man page.
  8896. * doc/aria2c.1.txt
  8897. * doc/aria2c.1
  8898. * doc/aria2c.1.html
  8899. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8900. Added missing default value '5' to the usage of --split option.
  8901. * src/HelpItemFactory.cc
  8902. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8903. Filled up pieces based on the number of missing blocks, rather than
  8904. simplay the number of piece * block length.
  8905. * src/BtRequestFactory.h
  8906. * src/DefaultBtInteractive.cc
  8907. * src/DefaultBtInteractive.h
  8908. * src/DefaultBtRequestFactory.cc
  8909. * src/DefaultBtRequestFactory.h
  8910. * src/Piece.cc
  8911. * src/Piece.h
  8912. * test/BitfieldManTest.cc
  8913. * test/DefaultBtRequestFactoryTest.cc
  8914. * test/MockBtRequestFactory.h
  8915. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8916. Made _epEvents a member variable.
  8917. * src/DownloadEngine.cc
  8918. * src/DownloadEngine.h
  8919. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8920. Cancel download if http redirect is bounded more than 20 times.
  8921. * src/AbstractCommand.cc
  8922. * src/HttpSkipResponseCommand.cc
  8923. * src/Request.cc
  8924. * src/Request.h
  8925. * test/RequestTest.cc
  8926. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. Fixed unhandled exception(removed keyword `new').
  8928. * src/SocketCore.cc (initEPOLL)
  8929. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8930. Removed visit(const MetaEntry*)
  8931. * src/MetaEntryVisitor.h:
  8932. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8933. and made them virtual.
  8934. * src/BencodeVisitor.h
  8935. * src/BencodeVisitor.cc
  8936. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8937. Updated po files.
  8938. * po/aria2c.pot
  8939. * po/*.po
  8940. * po/*.gmo
  8941. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8943. the number of socket to watch out.
  8944. * src/PeerInteractionCommand.cc
  8945. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. When there is not enough space in disk when writing a chunk of data,
  8947. aria2 now prints the message to the console to warn user and aborts
  8948. its download. Not all downloads are canceled because some downloads
  8949. may use another disk or partition. BUG#1640332
  8950. * src/AbstractDiskWriter.cc
  8951. * src/PeerAbstractCommand.cc
  8952. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8953. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8954. setHaltRequested(true) to cancel download.
  8955. * src/PeerInteractionCommand.h
  8956. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8958. socket from int to sock_t as sockets are unsigned in Windows.
  8959. For AsyncNameResolver, DownloadEngine, I did additional modification
  8960. for the portion of the code changed according to epoll support.
  8961. I defined sock_t in a2netcompat.h to use sock_t without including
  8962. SocketCore.h.
  8963. * src/AsyncNameResolver.cc
  8964. * src/AsyncNameResolver.h
  8965. * src/DownloadEngine.cc
  8966. * src/DownloadEngine.h
  8967. * src/SocketCore.cc
  8968. * src/SocketCore.h
  8969. * src/a2netcompat.h
  8970. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8971. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8972. changes in the patch were applied.
  8973. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8974. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8975. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8976. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8977. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8978. a2io.h and common.h were modified.
  8979. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8980. MinGW.
  8981. * src/common.h: Changed off_t to 64 bit in MinGW.
  8982. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8983. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8984. only a2netcompat.h is modified.
  8985. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8986. directives.
  8987. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8988. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8989. only gai_strerror.h is modified.
  8990. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8991. winsock errors in MinGW.
  8992. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8993. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8994. follow sources are applied.
  8995. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8996. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8997. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8998. I included locale.h from Platform.cc.
  8999. * src/main.cc: Moved common setup/teardown code to Platform class.
  9000. * test/AllTest.cc: Use Platform class.
  9001. Set locale to C in AllTest.cc to prevent the messages to be localized.
  9002. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  9004. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  9005. * test/HttpRequestTest.cc: Casted to off_t where it should.
  9006. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9007. Applied Ross's aria2-0.13.2+1-mingw.patch and
  9008. aria2-0.13.2+1-mingw-2.patch.
  9009. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  9010. systems which don't have termious.h. I moved the directive inside of
  9011. if(isTTY) { ... clause so that line is wiped out without termious.h.
  9012. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  9013. anyway.
  9014. * src/asctime_r.h
  9015. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  9016. I added 2nd argument to the prototype declaration.
  9017. * src/StringFormat.cc: Get rid of vasprintf.
  9018. * src/getaddrinfo.h: Fixed constants.
  9019. * configure.ac: Added the check for asctime_r function.
  9020. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  9021. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9022. Added writable test for Socket when the sending message is in progress.
  9023. Usually the sending message is piece message. Without wriable check,
  9024. upload latency is dropped to more than 1sec.
  9025. * src/PeerInteractionCommand.cc
  9026. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9027. Create only requested files and files which shares a piece with
  9028. requested file in multi-torrent downloads. Directory structures are
  9029. also created in the same rule.
  9030. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  9031. DiskWriterEntry as in the previous implementation.
  9032. * src/MultiDiskWriter.cc
  9033. * src/MultiFileAllocationIterator.cc
  9034. * src/MultiFileAllocationIterator.h
  9035. * test/MultiFileAllocationIteratorTest.cc
  9036. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9037. Commented out -lprofiler
  9038. * src/Makefile.am
  9039. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Bump up version number to 0.14.0b.
  9041. * src/configure.ac
  9042. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9043. Actively establish connection to peers in seeding, when peer cache
  9044. is not full and max upload speed limit is not reached.
  9045. * src/ActivePeerConnectionCommand.cc
  9046. * src/ActivePeerConnectionCommand.h
  9047. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9048. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  9049. to make room more fleshy, recently found peers.
  9050. Peer::_badConditionStartTime is not used anymore. Consider to remove
  9051. it.
  9052. * src/DefaultPeerStorage.cc
  9053. * test/DefaultPeerStorageTest.cc
  9054. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9055. Returns cached data only when the previous receiveHandshake() is called
  9056. with peek = true.
  9057. * src/PeerConnection.cc (receiveHandshake)
  9058. * src/PeerConnection.h (receiveHandshake)
  9059. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9060. Changed default value of -s option from 1 to 5.
  9061. Also max value of -s option is changed from 5 to 16.
  9062. * src/HelpItemFactory.cc
  9063. * src/OptionHandlerFactory.cc
  9064. * src/option_processing.cc
  9065. * src/usage_text.h
  9066. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9067. Changed -s options behavior. Now it means the number of connections
  9068. made simultaneously in each http/ftp download.
  9069. If 1 URL is specified, the behavior is the same with old implementation.
  9070. If -s N is given and more than N URLs are specified, first N URLs are
  9071. used and remaining URLs are used for backup. If less than N URLs are
  9072. specified, some of URLs are used more than once so that totally N
  9073. connections are made simultaneously.
  9074. * src/main.cc
  9075. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9076. Included missing iosfwd or ostream header.
  9077. * src/RequestGroupMan.cc
  9078. * src/TaggedItem.cc
  9079. * src/TaggedItem.h
  9080. * src/Util.cc
  9081. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9082. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  9083. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  9084. * src/HttpConnection.cc: Included missing sstream.
  9085. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Added --bt-max-open-files option.
  9087. * src/DefaultPieceStorage.cc
  9088. * src/HelpItemFactory.cc
  9089. * src/MultiDiskAdaptor.cc
  9090. * src/MultiDiskAdaptor.h
  9091. * src/OptionHandlerFactory.cc
  9092. * src/option_processing.cc
  9093. * src/prefs.cc
  9094. * src/prefs.h
  9095. * src/usage_text.h
  9096. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9097. Fixed the bug that aria2 aborts when a path to a directory is given
  9098. in command-line.
  9099. * src/ProtocolDetector.cc
  9100. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9101. Limited the number files opened in each BitTorrent download. The default
  9102. value is 100. The option to change this value will be added.
  9103. * src/MultiDiskAdaptor.cc
  9104. * src/MultiDiskAdaptor.h
  9105. * src/MultiFileAllocationIterator.cc
  9106. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9107. Fixed the bug that HTTP downloads don't start with old libraries.
  9108. * src/HttpHeaderProcessor.cc
  9109. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. Use empty() instead of size() > 0.
  9111. * src/HttpConnection.cc
  9112. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9113. Drop connection if the incoming peer ID is the same with localhost's
  9114. one. The previous implementation drops connection when incoming peer's
  9115. IP address is the same with localhost's one.
  9116. * src/PeerListenCommand.cc
  9117. * src/DefaultBtInteractive.cc
  9118. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9119. Returns cached data without checking whether socket is readable
  9120. if the cache is available.
  9121. * src/PeerConnection.cc (receiveHandshake)
  9122. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9123. Included stdint.h
  9124. * src/common.h
  9125. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9126. Removed duplicate HAVE_GETTIMEOFDAY
  9127. * src/Makefile.am
  9128. * src/Makefile.in
  9129. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9130. Use interval as a minInterval when minInterval is not supplied.
  9131. * src/DefaultBtAnnounce.cc
  9132. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  9134. attempt is failed, then 2nd attempt get kicked out more quickly.
  9135. And it is now static const member of DefaultBtAnnounce.
  9136. * src/DefaultBtAnnounce.h
  9137. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9138. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  9139. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  9140. * src/ActivePeerConnectionCommand.cc
  9141. * src/BtConstants.h
  9142. * src/BtRuntime.h
  9143. * src/DHTGetPeersCommand.cc
  9144. * src/DefaultBtAnnounce.cc
  9145. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  9146. BtRuntime::MAX_PEERS.
  9147. * src/DefaultPeerStorage.h
  9148. * src/InitiatorMSEHandshakeCommand.cc
  9149. * src/PeerInitiateConnectionCommand.cc
  9150. * src/PeerInteractionCommand.cc
  9151. * src/PeerReceiveHandshakeCommand.cc
  9152. * src/TrackerWatcherCommand.cc
  9153. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9154. Always Connect to _numNewConnection
  9155. * src/ActivePeerConnectionCommand.cc
  9156. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9157. Made `begin' unsigned int.
  9158. * src/GrowSegment.h
  9159. * src/Piece.cc
  9160. * src/Piece.h
  9161. * src/PiecedSegment.cc
  9162. * src/PiecedSegment.h
  9163. * src/Segment.h
  9164. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Calculate piece hash when data is arrived if the data is arrived in
  9166. order. This removes additional read operation for hash calculation.
  9167. If the data is arrived in out of order, the hash is calucated when the
  9168. piece is completed. This is the same behavior as the old implementation.
  9169. * src/BtPieceMessage.cc
  9170. * src/DefaultBtProgressInfoFile.cc
  9171. * src/DefaultPieceStorage.cc
  9172. * src/DownloadCommand.cc
  9173. * src/DownloadCommand.h
  9174. * src/DownloadEngine.cc
  9175. * src/GrowSegment.cc
  9176. * src/GrowSegment.h
  9177. * src/Piece.cc
  9178. * src/Piece.h
  9179. * src/PiecedSegment.cc
  9180. * src/PiecedSegment.h
  9181. * src/Segment.h
  9182. * test/PieceTest.cc
  9183. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9184. Try to keep the ordering of outgoing piece message.
  9185. * src/DefaultBtMessageDispatcher.cc
  9186. (DefaultBtMessageDispatcher::sendMessages)
  9187. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9188. Fixed busy loop when error/hup epoll events occur.
  9189. * src/AbstractCommand.cc
  9190. * src/PeerAbstractCommand.cc
  9191. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. Added --bt-request-peer-speed-limit option, which was a constant
  9193. SLOW_SPEED_THRESHOLD.
  9194. * src/ActivePeerConnectionCommand.cc
  9195. * src/ActivePeerConnectionCommand.h
  9196. * src/BtConstants.h
  9197. * src/HelpItemFactory.cc
  9198. * src/OptionHandlerFactory.cc
  9199. * src/PeerReceiveHandshakeCommand.cc
  9200. * src/option_processing.cc
  9201. * src/prefs.cc
  9202. * src/prefs.h
  9203. * src/usage_text.h
  9204. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9205. Removed repeated call of getTopDirPath(). Instead, call it once and
  9206. cache the result.
  9207. * src/MultiDiskAdaptor.cc
  9208. * src/MultiDiskAdaptor.h
  9209. (mkdir, openFile, initAndOpenFile, openExistingFile)
  9210. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9211. Fixed compile error on debian etch.
  9212. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  9213. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  9214. it is undefined.
  9215. * src/Util.cc (ULLONG_MAX)
  9216. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9217. Added epoll support. Use epoll if it is available. If not, use select.
  9218. When async dns is enabled in compile time, epoll support is enabled
  9219. only when aria2 is built with c-ares. This condition statement is
  9220. defined in a2io.h.
  9221. Currently aria2 supports both c-ares and ares, but ares is maintained
  9222. for quite a while and debian already has c-ares package, ares support
  9223. will be dropped in the future version.
  9224. * configure.ac
  9225. * src/AbstractCommand.cc
  9226. * src/AsyncNameResolver.cc
  9227. * src/AsyncNameResolver.h
  9228. * src/Command.cc
  9229. * src/Command.h
  9230. * src/DownloadEngine.cc
  9231. * src/DownloadEngine.h
  9232. * src/PeerAbstractCommand.cc
  9233. * src/SocketCore.cc
  9234. * src/SocketCore.h
  9235. * src/a2io.h
  9236. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9237. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  9238. directive.
  9239. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9240. Do not do write operation to /dev/null file.
  9241. * src/LogFactory.cc
  9242. * src/SimpleLogger.cc
  9243. Replaced vasprintf with vsnprintf
  9244. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  9245. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9246. * src/BtRequestMessage.cc
  9247. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  9248. for segmentation fault caused by previous commit.
  9249. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9250. Reduced the usage of gettimeofday().
  9251. * src/DefaultBtMessageDispatcher.cc
  9252. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  9253. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9254. * src/RequestSlot.cc
  9255. * src/RequestSlot.h
  9256. (RequestSlot::isTimeout)
  9257. Made RequestSlot have a reference to Piece object to avoid find
  9258. Piece repeatedly.
  9259. * src/DefaultBtMessageDispatcher.cc
  9260. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  9261. * src/RequestSlot.cc
  9262. * src/RequestSlot.h
  9263. (RequestSlot::getPiece)
  9264. * test/DefaultBtMessageDispatcherTest.cc
  9265. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9266. * src/TimeA2.cc
  9267. * src/TimeA2.h
  9268. (Time::difference): New function.
  9269. (Time::elapsed): Done optimization.
  9270. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9271. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  9272. directive.
  9273. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9274. * src/option_processing.cc: Added missing `defined' keyword to #if
  9275. directive.
  9276. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9277. Bump up version number to 0.13.2+1
  9278. * src/configure.ac
  9279. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9280. Refactored broken outstanding piece handling.
  9281. * src/DefaultPieceStorage.cc
  9282. * src/DefaultPieceStorage.h
  9283. * src/Piece.cc
  9284. * src/Piece.h
  9285. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9286. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  9287. name collision of static variable and predefined macro.
  9288. * src/BtContext.cc
  9289. * src/BtContext.h
  9290. * src/CookieBoxFactory.cc
  9291. * src/CookieBoxFactory.h
  9292. * src/CookieParser.cc
  9293. * src/CookieParser.h
  9294. * src/DefaultBtContext.cc
  9295. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. * src/RequestGroup.cc
  9297. (RequestGroup::createInitialCommand): Use empty() instead of size().
  9298. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. * Release 0.13.2
  9300. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9301. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  9302. * po/fr.po
  9303. * po/ja.po
  9304. * po/aria2c.pot
  9305. * po/*.po
  9306. * po/*.gmo
  9307. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9308. Bump up version number to 0.13.2
  9309. * src/configure.ac
  9310. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9311. Refactord.
  9312. * src/RequestGroupMan.cc
  9313. (removeStoppedGroup)
  9314. (fillRequestGroupFromReserver)
  9315. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9316. Fixed compile error on Ubuntu.
  9317. * src/BtPieceMessage.cc
  9318. * src/MessageDigestHelper.cc
  9319. * src/Util.cc
  9320. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9321. Fixed compile error when configured with --disable-bittorrent
  9322. * test/DownloadHandlerFactoryTest.cc
  9323. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9324. Done make update-po
  9325. * po/aria2c.pot
  9326. * po/*.po
  9327. * po/*.gmo
  9328. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9329. Bump up version number to 0.13.2rc.
  9330. * src/configure.ac
  9331. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9332. Made option name bold. Updated SYNOPSIS to make it more readable.
  9333. * doc/aria2c.1.txt
  9334. * doc/aria2c.1
  9335. * doc/aria2c.1.html
  9336. * src/version_usage.cc
  9337. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9338. Refactored. Use std::string instead of size and char*.
  9339. * Data.cc
  9340. * Data.h
  9341. * test/Data.cc
  9342. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Added trimSelf(). Rewritten trim() to use trimSelf().
  9344. * Util.cc
  9345. * Util.h
  9346. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9347. * src/ChunkChecksum.h (getChecksum): Return const reference.
  9348. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9349. Fixed compile error when configured with --disable-metalink.
  9350. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  9351. * test/FeatureConfigTest.cc
  9352. * test/DownloadHandlerFactoryTest.cc
  9353. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9354. Fixed compile error when configured with --without-gnutls
  9355. --without-openssl
  9356. * src/main.cc
  9357. * test/DefaultBtProgressInfoFileTest.cc
  9358. * test/SegmentManTest.cc
  9359. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9360. Fixed compile error with OpenSSL.
  9361. * src/IteratableChunkChecksumValidator.cc
  9362. * src/LibsslDHKeyExchange.h
  9363. * src/MessageDigestHelper.cc
  9364. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Revert the default value of --max-concurrent-downloads to 5.
  9366. Revert the default value of --metalink-servers to 5.
  9367. Man pages was also updated.
  9368. * src/option_processing.cc
  9369. * doc/aria2c.1.txt
  9370. * doc/aria2c.1.html
  9371. * doc/aria2c.1
  9372. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9373. Returns const reference:
  9374. DownloadContext::getPieceHash, DownloadContext::getName,
  9375. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9376. BtContext::getInfoHashAsString,
  9377. * src/BtContext.h
  9378. * src/DefaultBtContext.cc
  9379. * src/DefaultBtContext.h
  9380. * src/DownloadContext.h
  9381. * src/SingleFileDownloadContext.h
  9382. * test/MockBtContext.h
  9383. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9384. * src/RequestGroup.h (getDir): Removed.
  9385. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9386. Returns const reference. The internal urlencode function was optimized
  9387. a little bit.
  9388. * src/Request.cc
  9389. * src/Request.h
  9390. * src/HttpRequest.cc
  9391. * src/HttpRequest.h
  9392. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9393. Defined option name and possible values as std::string to reduce
  9394. temporary string object creation in runtime.
  9395. * src/HelpItemFactory.cc
  9396. * src/LogFactory.cc
  9397. * src/Option.cc
  9398. * src/OptionHandlerFactory.cc
  9399. * src/option_processing.cc
  9400. * src/prefs.cc
  9401. * src/prefs.h
  9402. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9403. Return const reference.
  9404. * src/DownloadHandlerConstants.cc
  9405. * src/DownloadHandlerConstants.h
  9406. (getMetalinkExtensions)
  9407. (getMetalinkContentTypes)
  9408. (getBtExtensions)
  9409. (getBtContentTypes)
  9410. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9411. * src/HttpHeader.cc (get): Rewritten.
  9412. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9413. Make HttpHeader::getFirst(...) return const reference.
  9414. * src/HttpHeader.cc
  9415. * src/HttpHeader.h
  9416. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9417. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9418. it with V_TRUE.
  9419. * src/DefaultPieceStorage.cc
  9420. * src/DownloadCommand.cc
  9421. * src/FtpNegotiationCommand.cc
  9422. * src/HttpRequest.cc
  9423. * src/InitiateConnectionCommand.cc
  9424. * src/RequestGroup.cc
  9425. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9426. Made Option::get(...) return const reference of std::string.
  9427. * src/Option.cc
  9428. * src/Option.h
  9429. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Replaced std:copy with insert.
  9431. * src/DefaultBtMessageDispatcher.cc
  9432. * src/DefaultPieceStorage.cc
  9433. * src/DownloadEngineFactory.cc
  9434. * src/RequestGroup.cc
  9435. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9436. Included SocketCore.h to fix compiler warning.
  9437. * src/InitiateConnectionCommand.cc
  9438. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9439. Put piece selection strategy algorithm to RarestPieceSelector class,
  9440. Added a switch to choose whether randomized selection so that unit
  9441. tests emit same results in, possibly, win32.
  9442. * src/DefaultPieceStorage.cc
  9443. * src/DefaultPieceStorage.h
  9444. * src/RarestPieceSelector.cc
  9445. * src/RarestPieceSelector.h
  9446. * test/DefaultPieceStorageTest.cc
  9447. * test/RarestPieceSelectorTest.cc
  9448. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9449. Don't pool connection if HTTP proxy is enabled.
  9450. * src/FtpFinishDownloadCommand.cc
  9451. * src/FtpNegotiationCommand.cc
  9452. * src/HttpSkipResponseCommand.cc
  9453. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9455. * src/AbstractCommand.cc
  9456. * src/AbstractCommand.h
  9457. * src/ActivePeerConnectionCommand.cc
  9458. * src/FtpInitiateConnectionCommand.cc
  9459. * src/HttpInitiateConnectionCommand.cc
  9460. * src/InitiateConnectionCommandFactory.cc
  9461. * src/PeerAbstractCommand.cc
  9462. * src/PeerAbstractCommand.h
  9463. * src/PeerInitiateConnectionCommand.cc
  9464. * src/TrackerWatcherCommand.cc
  9465. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9466. Sort RequestSlot in ascending order and manipulate them using
  9467. lower_bound.
  9468. * src/DefaultBtMessageDispatcher.cc
  9469. * src/DefaultBtMessageDispatcher.h
  9470. (getMessageQueue): Added const qualifier.
  9471. (getRequestSlots): Added const qualifier.
  9472. (sendMessages): Use empty() instead of size().
  9473. (doCancelSendingPieceAction): Use HandleEvent object.
  9474. (doAbortOutstandingRequestAction): Rewritten.
  9475. (doChokedAction): Rewritten.
  9476. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9477. (isOutstandingRequest): Rewritten.
  9478. (getOutstandingRequest): Rewritten.
  9479. (removeOutstandingRequest): Rewritten.
  9480. (addOutstandingRequest): Rewritten.
  9481. * src/RequestSlot.cc
  9482. * src/RequestSlot.h
  9483. (operator=): Rewritten.
  9484. (operator!=): New function.
  9485. (operator<): New function.
  9486. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9487. * src/DefaultBtRequestFactory.cc
  9488. (doChokedAction): Rewritten.
  9489. (removeCompletedPiece): Rewritten.
  9490. (removeTargetPiece): Rewritten.
  9491. (createRequestMessages): Added the debug log.
  9492. (createRequestMessagesOnEndGame: Added the debug log.
  9493. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. Added the debug log message.
  9495. * src/BtPieceMessage.cc (doReceivedAction)
  9496. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9497. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9498. used lower_bound to process them rather than linear search.
  9499. * src/DHTPeerAnnounceStorage.cc
  9500. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9502. peer has at least one completed piece.
  9503. * src/Peer.cc
  9504. * src/Peer.h
  9505. * src/PeerInteractionCommand.cc
  9506. * src/PeerSessionResource.cc
  9507. * src/PeerSessionResource.h
  9508. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. Removed unnecessary sorting
  9510. * src/DefaultPieceStorage (DefaultPieceStorage)
  9511. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9512. Rewritten the portion of the code that mangaes allowed fast indexes.
  9513. * src/PeerSessionResource.cc
  9514. * src/PeerSessionResource.h
  9515. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9516. Removed the invalid string including '\r' from ru.po and
  9517. did make update-po.
  9518. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9519. Added --log-level and --summary-interval to man page.
  9520. * doc/aria2c.1.txt
  9521. * doc/aria2c.1.html
  9522. * doc/aria2c.1
  9523. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9524. Added --log-level option to specify log level. Log messages under
  9525. the specified level are not output. Default value is `debug'.
  9526. * src/HelpItemFactory.cc
  9527. * src/LogFactory.cc
  9528. * src/LogFactory.h
  9529. * src/Logger.h
  9530. * src/OptionHandlerFactory.cc
  9531. * src/SimpleLogger.cc
  9532. * src/SimpleLogger.h
  9533. * src/main.cc
  9534. * src/option_processing.cc
  9535. * src/prefs.h
  9536. * src/usage_text.h
  9537. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. Print download progress summary of all parallel downloads in specified
  9539. interval, default 60 secs. While aria2 could download several files
  9540. in parallel (see -j option), it displayed just first download progress,
  9541. and the other downloads are hidden from the users. This new feature
  9542. prints all downloads currently in-progress to the console so that you
  9543. can check the status of all downloads. The interval can be adjusted
  9544. by --summary-interval option.
  9545. The progress readout is now cut so that all fits in the one line of
  9546. console.
  9547. * src/ConsoleStatCalc.cc
  9548. * src/ConsoleStatCalc.h
  9549. * src/HelpItemFactory.cc
  9550. * src/OptionHandlerFactory.cc
  9551. * src/RequestGroupMan.cc
  9552. * src/RequestGroupMan.h
  9553. * src/main.cc
  9554. * src/option_processing.cc
  9555. * src/prefs.h
  9556. * src/usage_text.h
  9557. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9558. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9559. * src/DownloadEngine.cc (DownloadEngine)
  9560. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9561. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9562. defined.
  9563. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9564. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9565. Use erase+lower_bound+insert instead of sort.
  9566. * src/DefaultPieceStorage.cc (addPieceStats)
  9567. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9568. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9569. * src/A2STR.cc
  9570. * src/A2STR.h
  9571. * src/OptionParser.cc (parse)
  9572. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9573. Defined fake filename `[tracker.announce]' as static const std::string.
  9574. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9575. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. Defined default filename `index.html' as static const std::string
  9577. * src/SingleFileDownloadContext.cc
  9578. * src/SingleFileDownloadContext.h
  9579. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9580. Defined "[MEMORY]" as static const std::string.
  9581. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9582. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Defined control file's version number as static const std::string.
  9584. * src/DefaultBtProgressInfoFile.cc
  9585. * src/DefaultBtProgressInfoFile.h
  9586. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9587. Use Request::METHOD_GET
  9588. * src/RequestGroup.cc (createNextCommandWithAdj)
  9589. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9590. Defined "OK", "ERR", "INPR" as static const std::string
  9591. * src/RequestGroupMan.cc (showDownloadResults)
  9592. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9593. Defined default client used in extended handshake as static const
  9594. std::string
  9595. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9596. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9597. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9598. * src/HttpConnection.cc (eraseConfidentialInfo)
  9599. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9600. Defined default ftp user and password as static const std::string
  9601. * src/AuthConfigFactory.cc
  9602. * src/AuthConfigFactory.h
  9603. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9604. Defined strings used in netrc as static const std::string
  9605. * src/Netrc.cc
  9606. * src/Netrc.h
  9607. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9608. Defined HTTP status as static const std::string
  9609. * src/AbstractProxyResponseCommand.cc
  9610. * src/HttpHeader.cc
  9611. * src/HttpHeader.h
  9612. * src/HttpResponse.cc
  9613. * src/HttpResponseCommand.cc
  9614. * src/HttpSkipResponseCommand.cc
  9615. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9616. Defined "\r\n", "A", "I" as static const std::string
  9617. * src/A2STR.cc
  9618. * src/A2STR.h
  9619. * src/FtpConnection.cc
  9620. * src/FtpConnection.h
  9621. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9622. Added COLON_C(".") and used it in Request::parseUrl()
  9623. * src/A2STR.cc
  9624. * src/A2STR.h
  9625. * src/Request.cc (parseUrl)
  9626. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9627. Changed the type of padName from `const std::string&' to `const char*'.
  9628. * src/MSEHandshake.cc (verifyPadLength)
  9629. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9630. Defined "sha1" as static const std::string.
  9631. * src/MetalinkParserController.cc
  9632. * src/MetalinkParserController.h
  9633. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9634. Defined message digest algorithm name as static const std::string
  9635. * src/DHTTokenTracker.cc
  9636. * src/DHTUtil.cc
  9637. * src/DefaultBtContext.cc
  9638. * src/MSEHandshake.cc
  9639. * src/MessageDigestHelper.cc
  9640. * src/Peer.cc
  9641. * src/messageDigest.cc
  9642. * src/messageDigest.h
  9643. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9644. Made string literals used in SAX parser static const std::string.
  9645. * src/FileMetalinkParserState.cc
  9646. * src/FileMetalinkParserState.h
  9647. * src/FilesMetalinkParserState.cc
  9648. * src/FilesMetalinkParserState.h
  9649. * src/InitialMetalinkParserState.cc
  9650. * src/InitialMetalinkParserState.h
  9651. * src/MetalinkMetalinkParserState.cc
  9652. * src/MetalinkMetalinkParserState.h
  9653. * src/PiecesMetalinkParserState.cc
  9654. * src/PiecesMetalinkParserState.h
  9655. * src/ResourcesMetalinkParserState.cc
  9656. * src/ResourcesMetalinkParserState.h
  9657. * src/VerificationMetalinkParserState.cc
  9658. * src/VerificationMetalinkParserState.h
  9659. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9660. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9661. * src/A2STR.cc
  9662. * src/A2STR.h
  9663. * src/File.cc
  9664. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9665. Defined static const std::string IP("ip"), PORT("port") and use them
  9666. instead of string literals.
  9667. * src/DefaultPeerListProcessor.cc
  9668. * src/DefaultPeerListProcessor.h
  9669. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9670. Made string literals for torrent file processing static const
  9671. std::string.
  9672. * src/BtContext.cc
  9673. * src/BtContext.h
  9674. * src/DefaultBtContext.cc
  9675. * src/DefaultBtContext.h
  9676. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9677. Made string literal for tracker response static const std::string
  9678. * src/BtAnnounce.cc
  9679. * src/BtAnnounce.h
  9680. * src/DefaultBtAnnounce.cc
  9681. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9682. Use DHTMessage::T instead of "t".
  9683. * src/DHTMessageTracker.cc (messageArrived)
  9684. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9685. Made keyName static const. Made trimmed charset static const
  9686. std::string.
  9687. * src/Util.cc (getContentDispositionFilename)
  9688. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. Made USER_AGENT const. Made "/" static const std::string.
  9690. * src/A2STR.cc
  9691. * src/A2STR.h
  9692. * src/HttpRequest.cc
  9693. * src/HttpRequest.h
  9694. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9695. Made string listeral to static const std::string:
  9696. "Content-Range", "Content-Length"
  9697. * src/HttpHeader.cc
  9698. * src/HttpHeader.h
  9699. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9700. Made string listeral to static const std::string.
  9701. * src/HttpConnection.cc
  9702. * src/HttpHeader.cc
  9703. * src/HttpHeader.h
  9704. * src/HttpResponse.cc
  9705. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9706. Made string listeral to static const std::string.
  9707. * src/A2STR.cc
  9708. * src/A2STR.h
  9709. * src/SimpleLogger.cc
  9710. * src/SimpleLogger.h
  9711. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9712. Made string literal to static const std::string.
  9713. Rewritten CookieParser::setField.
  9714. * src/A2STR.cc
  9715. * src/A2STR.h
  9716. * src/CookieBoxFactory.cc
  9717. * src/CookieBoxFactory.h
  9718. * src/CookieParser.cc
  9719. * src/CookieParser.h
  9720. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. Made string literal to static const std::string
  9722. * src/DHTAbstractMessage.cc
  9723. * src/DHTAnnouncePeerMessage.cc
  9724. * src/DHTAnnouncePeerMessage.h
  9725. * src/DHTAnnouncePeerReplyMessage.cc
  9726. * src/DHTAnnouncePeerReplyMessage.h
  9727. * src/DHTFindNodeMessage.cc
  9728. * src/DHTFindNodeMessage.h
  9729. * src/DHTFindNodeReplyMessage.cc
  9730. * src/DHTFindNodeReplyMessage.h
  9731. * src/DHTGetPeersMessage.cc
  9732. * src/DHTGetPeersMessage.h
  9733. * src/DHTGetPeersReplyMessage.cc
  9734. * src/DHTGetPeersReplyMessage.h
  9735. * src/DHTMessage.cc
  9736. * src/DHTMessage.h
  9737. * src/DHTMessageFactoryImpl.cc
  9738. * src/DHTMessageReceiver.cc
  9739. * src/DHTPingMessage.cc
  9740. * src/DHTPingMessage.h
  9741. * src/DHTPingReplyMessage.cc
  9742. * src/DHTPingReplyMessage.h
  9743. * src/DHTQueryMessage.cc
  9744. * src/DHTQueryMessage.h
  9745. * src/DHTResponseMessage.cc
  9746. * src/DHTResponseMessage.h
  9747. * src/DHTUnknownMessage.cc
  9748. * src/DHTUnknownMessage.h
  9749. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9750. Made string literal to static const std::string
  9751. * src/BtChokeMessage.cc (toString)
  9752. * src/BtHaveAllMessage.cc (toString)
  9753. * src/BtHaveNoneMessage.cc (toString)
  9754. * src/BtInterestedMessage.cc (toString)
  9755. * src/BtNotInterestedMessage.cc (toString)
  9756. * src/BtUnchokeMessage.cc (toString)
  9757. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9758. Replaced "" with static const variable A2STR::NIL.
  9759. Replaced string comparison against "" with std::string::empty().
  9760. Added PROTO_* to Request class and use them as a protocol string
  9761. constant.
  9762. Made "started", "stopped", "completed" static const variable in
  9763. AnnounceList class.
  9764. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9765. Updated translations. Great thanks to translators.
  9766. * po/ca.po
  9767. * po/de.po
  9768. * po/fr.po
  9769. * po/it.po
  9770. * po/ja.po
  9771. * po/ru.po
  9772. * po/zh_CN.po
  9773. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9774. Updated man page; categorized options and fixed typo.
  9775. * doc/aria2c.1.txt
  9776. * doc/aria2c.1.html
  9777. * doc/aria2c.1
  9778. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9779. Removed const ref
  9780. * src/MetalinkEntry.cc (AddProtocolPreference)
  9781. * src/RequestGroup.cc (FindServerHostByHostname)
  9782. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9783. Rewritten Accept-Features handling.
  9784. * src/HttpRequestCommand.cc (createHttpRequest)
  9785. * src/a2functional.h
  9786. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9787. Changed method signature:
  9788. DHTAbstractNodeLookupTask::toEntries
  9789. * src/DHTAbstractNodeLookupTask.cc
  9790. * src/DHTAbstractNodeLookupTask.h
  9791. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9792. Changed method signature:
  9793. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9794. * src/BtContext.h
  9795. * src/DefaultBtContext.cc
  9796. * src/DefaultBtContext.h
  9797. * src/DefaultBtInteractive.cc
  9798. * test/DefaultBtContextTest.cc
  9799. * test/MockBtContext.h
  9800. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9801. Changed method signature:
  9802. MultiFileAllocationIterator::makeDiskWriterEntries
  9803. * src/MultiFileAllocationIterator.cc
  9804. * src/MultiFileAllocationIterator.h
  9805. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9806. Changed method sinature:
  9807. MetalinkEntry::toFileEntry,
  9808. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9809. Metalinker::queryEntry
  9810. * src/Metalink2RequestGroup.cc
  9811. * src/MetalinkEntry.cc
  9812. * src/MetalinkEntry.h
  9813. * src/MetalinkHelper.cc
  9814. * src/MetalinkHelper.h
  9815. * src/Metalinker.cc
  9816. * src/Metalinker.h
  9817. * src/main.cc
  9818. * test/MetalinkHelperTest.cc
  9819. * test/MetalinkerTest.cc
  9820. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9821. Changed method sinature:
  9822. RequestGroup::getURIs
  9823. * src/RequestGroup.cc
  9824. * src/RequestGroup.h
  9825. * test/Metalink2RequestGroupTest.cc
  9826. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9827. Changed method signature:
  9828. PeerListProcessor::extractPeer
  9829. * src/CompactPeerListProcessor.cc
  9830. * src/CompactPeerListProcessor.h
  9831. * src/DefaultBtAnnounce.cc
  9832. * src/DefaultPeerListProcessor.cc
  9833. * src/DefaultPeerListProcessor.h
  9834. * src/DelegatingPeerListProcessor.cc
  9835. * src/DelegatingPeerListProcessor.h
  9836. * src/PeerListProcessor.h
  9837. * src/UTPexExtensionMessage.cc
  9838. * test/DefaultPeerListProcessorTest.cc
  9839. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9840. Changed method signature:
  9841. BtRequestFactory::createRequestMessages,
  9842. BtRequestFactory::createRequestMessagesOnEndGame
  9843. * src/BtRequestFactory.h
  9844. * src/DefaultBtInteractive.cc
  9845. * src/DefaultBtRequestFactory.cc
  9846. * src/DefaultBtRequestFactory.h
  9847. * test/DefaultBtRequestFactoryTest.cc
  9848. * test/MockBtRequestFactory.h
  9849. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Changed method signature:
  9851. PieceStorage::getInFlightPieces
  9852. * src/DefaultBtProgressInfoFile.cc
  9853. * src/DefaultPieceStorage.cc
  9854. * src/DefaultPieceStorage.h
  9855. * src/PieceStorage.h
  9856. * src/UnknownLengthPieceStorage.cc
  9857. * src/UnknownLengthPieceStorage.h
  9858. * test/DefaultBtProgressInfoFileTest.cc
  9859. * test/MockPieceStorage.h
  9860. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9861. Changed method signature:
  9862. PostDownloadHandler::getNextRequestGroups
  9863. Metalink2RequestGroup::generate
  9864. RequestGroup::postDownloadProcessing
  9865. * src/BtPostDownloadHandler.cc
  9866. * src/BtPostDownloadHandler.h
  9867. * src/Metalink2RequestGroup.cc
  9868. * src/Metalink2RequestGroup.h
  9869. * src/MetalinkPostDownloadHandler.cc
  9870. * src/MetalinkPostDownloadHandler.h
  9871. * src/PostDownloadHandler.h
  9872. * src/RequestGroup.cc
  9873. * src/RequestGroup.h
  9874. * src/RequestGroupMan.cc
  9875. * src/main.cc
  9876. * test/BtPostDownloadHandlerTest.cc
  9877. * test/Metalink2RequestGroupTest.cc
  9878. * test/MetalinkPostDownloadHandlerTest.cc
  9879. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. Rewritten AccRequestGroup
  9881. * src/main.cc
  9882. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9883. Rewritten.
  9884. * src/TaggedItem.cc (toTagString)
  9885. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9886. Rewritten Accept-Features handling.
  9887. * src/HttpRequestCommand.cc (createHttpRequest)
  9888. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Rewritten accept types handling.
  9890. * HttpRequest.cc (createRequest)
  9891. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. Rewritten
  9893. * src/FeatureConfig.cc (featureSummary)
  9894. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9895. Changed method signature:
  9896. PeerStorage::getActivePeers
  9897. * src/DHTPeerAnnounceEntry.cc
  9898. * src/DefaultPeerStorage.cc
  9899. * src/DefaultPeerStorage.h
  9900. * src/PeerStorage.h
  9901. * test/DefaultPeerStorageTest.cc
  9902. * test/MockPeerStorage.h
  9903. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9904. Changed method signature:
  9905. DHTPeerAnnounceStorage::getPeers,
  9906. DHTPeerAnnounceEntry::getPeers
  9907. * src/DHTGetPeersMessage.cc
  9908. * src/DHTPeerAnnounceEntry.cc
  9909. * src/DHTPeerAnnounceEntry.h
  9910. * src/DHTPeerAnnounceStorage.cc
  9911. * src/DHTPeerAnnounceStorage.h
  9912. * test/DHTAnnouncePeerMessageTest.cc
  9913. * test/DHTPeerAnnounceEntryTest.cc
  9914. * test/DHTPeerAnnounceStorageTest.cc
  9915. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9916. Changed method signature:
  9917. NameResolver::resolve
  9918. * src/DHTEntryPointNameResolveCommand.cc
  9919. * src/InitiateConnectionCommand.cc
  9920. * src/NameResolver.cc
  9921. * src/NameResolver.h
  9922. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9923. Changed method signature:
  9924. PieceStorage::getAdvertisedPieceIndexes
  9925. * src/DefaultBtInteractive.cc
  9926. * src/DefaultPieceStorage.cc
  9927. * src/DefaultPieceStorage.h
  9928. * src/PieceStorage.h
  9929. * src/UnknownLengthPieceStorage.h
  9930. * test/MockPieceStorage.h
  9931. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9932. Changed method signature:
  9933. SegmentMan::getInFlightSegment
  9934. * src/AbstractCommand.cc
  9935. * src/SegmentMan.cc
  9936. * src/SegmentMan.h
  9937. * test/SegmentManTest.cc
  9938. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9939. Changed method signature:
  9940. DHTAbstractNodeLookupTask::getNodesFromMessage
  9941. * src/DHTAbstractNodeLookupTask.cc
  9942. * src/DHTAbstractNodeLookupTask.h
  9943. * src/DHTNodeLookupTask.cc
  9944. * src/DHTNodeLookupTask.h
  9945. * src/DHTPeerLookupTask.cc
  9946. * src/DHTPeerLookupTask.h
  9947. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9948. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9949. * src/AbstractCommand.cc
  9950. * src/BtCheckIntegrityEntry.cc
  9951. * src/BtCheckIntegrityEntry.h
  9952. * src/BtFileAllocationEntry.cc
  9953. * src/BtFileAllocationEntry.h
  9954. * src/BtSetup.cc
  9955. * src/BtSetup.h
  9956. * src/CheckIntegrityCommand.cc
  9957. * src/CheckIntegrityEntry.h
  9958. * src/ChecksumCheckIntegrityEntry.cc
  9959. * src/ChecksumCheckIntegrityEntry.h
  9960. * src/DHTSetup.cc
  9961. * src/DHTSetup.h
  9962. * src/DownloadEngine.cc
  9963. * src/FileAllocationCommand.cc
  9964. * src/FileAllocationEntry.h
  9965. * src/RequestGroup.cc
  9966. * src/RequestGroup.h
  9967. * src/RequestGroupMan.cc
  9968. * src/RequestGroupMan.h
  9969. * src/StreamCheckIntegrityEntry.cc
  9970. * src/StreamCheckIntegrityEntry.h
  9971. * src/StreamFileAllocationEntry.cc
  9972. * src/StreamFileAllocationEntry.h
  9973. * src/TrackerWatcherCommand.cc
  9974. * src/a2functional.h
  9975. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9976. Changed method signature:
  9977. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9978. DHTBucket::getGoodNodes,
  9979. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9980. * src/BNode.cc
  9981. * src/BNode.h
  9982. * src/DHTAbstractNodeLookupTask.cc
  9983. * src/DHTAutoSaveCommand.cc
  9984. * src/DHTBucket.cc
  9985. * src/DHTBucket.h
  9986. * src/DHTBucketRefreshTask.cc
  9987. * src/DHTFindNodeMessage.cc
  9988. * src/DHTGetPeersMessage.cc
  9989. * src/DHTRoutingTable.cc
  9990. * src/DHTRoutingTable.h
  9991. * test/BNodeTest.cc
  9992. * test/DHTBucketTest.cc
  9993. * test/DHTRoutingTableTest.cc
  9994. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9995. In piece selection functions, Pass std::deque<...> by reference rather
  9996. than returning it.
  9997. * src/BitfieldMan.cc
  9998. * src/BitfieldMan.h
  9999. * src/DefaultBtRequestFactory.cc
  10000. * src/DefaultPieceStorage.cc
  10001. * src/Piece.cc
  10002. * src/Piece.h
  10003. * test/BitfieldManTest.cc
  10004. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10005. Implemented rarest piece first piece selection strategy.
  10006. * src/AbstractBtMessage.cc
  10007. * src/AbstractBtMessage.h
  10008. * src/BitfieldMan.cc
  10009. * src/BitfieldMan.h
  10010. * src/BtBitfieldMessage.cc
  10011. * src/BtHaveAllMessage.cc
  10012. * src/BtHaveMessage.cc
  10013. * src/DefaultPieceStorage.cc
  10014. * src/DefaultPieceStorage.h
  10015. * src/PeerInteractionCommand.cc
  10016. * src/PieceStorage.h
  10017. * src/UnknownLengthPieceStorage.h
  10018. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10019. Rewritten readData and writeData.
  10020. * src/MultiDiskAdaptor.cc
  10021. * src/MultiDiskAdaptor.h
  10022. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. Move \n out of the message "Usage: ...".
  10024. * src/version_usage.cc
  10025. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10026. Bump up version number to 0.13.2b.
  10027. * configure.ac
  10028. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10029. Added const qualifier to argument Exception& e.
  10030. * src/Logger.h
  10031. * src/SimpleLogger.cc
  10032. * src/SimpleLogger.h
  10033. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10034. Pool connection when CWD, SIZE command fails.
  10035. * src/FtpNegotiationCommand.cc
  10036. * src/FtpNegotiationCommand.h
  10037. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10038. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  10039. * src/HttpResponseCommand.cc
  10040. * src/HttpSkipResponseCommand.cc
  10041. * src/HttpSkipResponseCommand.h
  10042. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10043. Pool connection when a server returns 4xx, 5xx responses.
  10044. * src/HttpNullDownloadCommand.cc
  10045. * src/HttpNullDownloadCommand.h
  10046. * src/HttpResponse.cc
  10047. * src/HttpResponse.h
  10048. * src/HttpResponseCommand.cc
  10049. * src/HttpResponseCommand.h
  10050. * test/HttpResponseTest.cc
  10051. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10052. Print usage when no URL is specifed or bad command-line option is
  10053. specified.
  10054. * src/HelpItemFactory.cc
  10055. * src/help_tags.h
  10056. * src/option_processing.cc
  10057. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10058. Removed duplicate log message.
  10059. * src/AbstractCommand.cc (asyncResolveHostname)
  10060. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10061. Updated man page: --async-dns and --ftp-reuse-connection were added.
  10062. Changed -j option's default value from 5 to 1.
  10063. Added new examples using protocol auto detection feature.
  10064. Removed -T, -M usage where it can be omitted.
  10065. * doc/aria2c.1.txt
  10066. * doc/aria2c.1.html
  10067. * doc/aria2c.1.txt
  10068. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10069. Updated command-line usage text, so that it tells users that they
  10070. can specify any number of torrent files and metalink files in
  10071. command-line.
  10072. * src/version_usage.cc
  10073. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10074. Changed the default value of -j option to 1.
  10075. * src/HelpItemFactory.cc
  10076. * src/option_processing.cc
  10077. * src/usage_text.h
  10078. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Added the ability to reuse connection in FTP and it is enabled by
  10080. default. It can be disabled by --ftp-reuse-connection=false option.
  10081. * src/Command.cc
  10082. * src/DownloadCommand.cc
  10083. * src/FtpDownloadCommand.cc
  10084. * src/FtpDownloadCommand.h
  10085. * src/FtpFinishDownloadCommand.cc
  10086. * src/FtpFinishDownloadCommand.h
  10087. * src/FtpInitiateConnectionCommand.cc
  10088. * src/FtpNegotiationCommand.cc
  10089. * src/FtpNegotiationCommand.h
  10090. * src/HelpItemFactory.cc
  10091. * src/Makefile.am
  10092. * src/Makefile.in
  10093. * src/OptionHandlerFactory.cc
  10094. * src/option_processing.cc
  10095. * src/prefs.h
  10096. * src/usage_text.h
  10097. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10098. Call Command::transitStatus() before calling Command::execute(),
  10099. so that the status change made in execute() is not cleared.
  10100. * src/DownloadEngine.cc
  10101. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10102. Removed forward declaration of SocketCore class.
  10103. * src/HttpDownloadCommand.h
  10104. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10105. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  10106. in InitiateConnectionCommandFactory. They should be set only when
  10107. the protocol is HTTP or HTTPS.
  10108. * src/InitiateConnectionCommandFactory.cc
  10109. * src/RequestGroup.cc
  10110. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10111. Fixed infinite loop in checksum checking.
  10112. * src/IteratableChecksumValidator.cc
  10113. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10114. Set _supportsPersistentConnection to true by default.
  10115. * src/Request.cc
  10116. * src/RequestGroup.cc
  10117. * test/HttpRequestTest.cc
  10118. * test/RequestTest.cc
  10119. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. Added timeout to socket pool. The default timeout is 15 seconds,
  10121. which is the same value Apache uses.
  10122. * src/DownloadEngine.cc
  10123. * src/DownloadEngine.h
  10124. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10125. Fixed misuse of multimap::find()
  10126. * src/HttpHeader.cc
  10127. * test/HttpHeaderTest.cc
  10128. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10129. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  10130. option.
  10131. The asynchronous DNS is not capable of IPv6 yet.
  10132. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  10133. least for HTTP download.
  10134. * src/AbstractCommand.cc
  10135. * src/AbstractCommand.h
  10136. * src/AsyncNameResolver.cc
  10137. * src/AsyncNameResolver.h
  10138. * src/DHTEntryPointNameResolveCommand.cc
  10139. * src/DHTEntryPointNameResolveCommand.h
  10140. * src/DownloadEngine.cc
  10141. * src/DownloadEngine.h
  10142. * src/FtpInitiateConnectionCommand.cc
  10143. * src/FtpInitiateConnectionCommand.h
  10144. * src/HelpItemFactory.cc
  10145. * src/HttpInitiateConnectionCommand.cc
  10146. * src/HttpInitiateConnectionCommand.h
  10147. * src/InitiateConnectionCommand.cc
  10148. * src/InitiateConnectionCommand.h
  10149. * src/Makefile.am
  10150. * src/Makefile.in
  10151. * src/NameResolver.cc
  10152. * src/NameResolver.h
  10153. * src/OptionHandlerFactory.cc
  10154. * src/SocketCore.cc
  10155. * src/SocketCore.h
  10156. * src/Util.cc
  10157. * src/Util.h
  10158. * src/option_processing.cc
  10159. * src/prefs.h
  10160. * src/usage_text.h
  10161. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10162. Updated man page: --quiet, --header were added.
  10163. --metalink-servers and --enable-http-keep-alive option were updated.
  10164. * doc/aria2c.1
  10165. * doc/aria2c.1.html
  10166. * doc/aria2c.1.txt
  10167. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10168. Enable HTTP keep-alive by default.
  10169. * src/HelpItemFactory.cc
  10170. * src/option_processing.cc
  10171. * src/usage_text.h
  10172. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10173. Disable http keep-alive if the remote server is not HTTP/1.1.
  10174. * src/HttpConnection.cc
  10175. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10176. Receive content body of 302 response so that the connection can be
  10177. reused later when http keep-alive is enabled.
  10178. * src/HttpNullDownloadCommand.cc
  10179. * src/HttpNullDownloadCommand.h
  10180. * src/HttpResponseCommand.cc
  10181. * src/HttpResponseCommand.h
  10182. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10183. const SharedHandle<Request> -> const SharedHandle<Request>&
  10184. * src/FtpDowndloadCommand.cc
  10185. * src/FtpDowndloadCommand.h
  10186. * src/HttpDownloadCommand.cc
  10187. * src/HttpDownloadCommand.h
  10188. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10189. Fixed the bug that the control file(.aria2 file) is not renamed
  10190. according to tryAutoFileRenaming().
  10191. tryAutoFileRenaming() was rewritten so that if both renamed file and
  10192. its control file exist, use them and continue download.
  10193. The old implementation didn't take into account of control file's
  10194. existence, so basically you couldn't continue download of renamed file.
  10195. * src/BtProgressInfoFile.h
  10196. * src/DefaultBtProgressInfoFile.cc
  10197. * src/DefaultBtProgressInfoFile.h
  10198. * src/NullProgressInfoFile.h
  10199. * src/RequestGroup.cc
  10200. * test/DefaultBtProgressInfoFileTest.cc
  10201. * test/MockBtProgressInfoFile.h
  10202. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10203. Change the default value of --metalink-servers option from `5' to `1'.
  10204. * src/HelpItemFactory.cc
  10205. * src/option_processing.cc
  10206. * src/usage_text.h
  10207. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10208. Reimplemented transparent metalink using Accept request header.
  10209. * src/HttpRequest.cc
  10210. * src/HttpRequest.h
  10211. * src/HttpRequestCommand.cc
  10212. * src/Metalink2RequestGroup.cc
  10213. * src/RequestGroup.cc
  10214. * src/RequestGroup.h
  10215. * test/HttpRequestTest.cc
  10216. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10217. Bump up version number to 0.13.2a
  10218. * configure.ac
  10219. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10220. Updated configure.ac using the result of autoscan.
  10221. * configure.ac
  10222. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10223. Fixed compilation error without gcrypt/openssl.
  10224. * src/DownloadCommand.cc
  10225. * src/DownloadCommand.h
  10226. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10227. Reorganized version information so that it can be displayed in a
  10228. standard terminal screen without scrolling.
  10229. Removed http, ftp from Configuration section, because they are always
  10230. enabled.
  10231. * src/FeatureConfig.cc
  10232. * src/FeatureConfig.h
  10233. * src/main.cc
  10234. * src/messageDigest.cc
  10235. * src/messageDigest.h
  10236. * src/version_usage.cc
  10237. * test/FeatureConfigTest.cc
  10238. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10239. Masked user ID in log.
  10240. * src/FtpConnection.cc (sendUser)
  10241. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10242. Removed query part from filename in HTTP download. The query part means
  10243. the substring after "?" in URL. Firefox seems do the same thing.
  10244. A query part is sometimes very long and not suitable to filename,
  10245. so I think it is better to remove it from filename.
  10246. * src/HttpRequest.cc
  10247. * src/HttpRequest.h
  10248. * src/Request.cc
  10249. * src/Request.h
  10250. * test/HttpRequestTest.cc
  10251. * test/RequestTest.cc
  10252. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10253. Rewritten Exception class. Throw exception object, not its pointer and
  10254. catch by reference, so that remove problematic delete operator for
  10255. catched exception.
  10256. * src/Exception.cc
  10257. * src/Exception.h
  10258. * test/ExceptionTest.cc
  10259. * src/*: All files throwing/catching exception.
  10260. * test/*: All files throwing/catching exception.
  10261. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10262. Now auto protocol detection is enabled without -Z option.
  10263. But there is a important difference between with/without -Z optoin.
  10264. For example, if you type:
  10265. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  10266. then, aria2 interprets there are 3 request groups:
  10267. (1) http://host/file, http://mirror/file <-- multi-source download
  10268. (2) file1.torrent
  10269. (3) file2.metalink
  10270. On the other hand, if you invoke above command with -Z option, it is
  10271. interpreted as 4 request groups:
  10272. (1) http://host/file
  10273. (2) file1.torrent
  10274. (3) file2.metalink
  10275. (4) http://mirror/file
  10276. I think usually user don't mix multi-source URLs and torrent files, so
  10277. there is no big problem here.
  10278. * src/main.cc
  10279. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. Fixed the bug that causes segmentaion fault when reading XML containing
  10281. unescapsed character like '&'.
  10282. Also a modification was made which avoids adding unnecessary
  10283. characters stack and appending unused string.
  10284. * src/ExpatMetalinkProcessor.cc
  10285. * src/FileMetalinkParserState.h
  10286. * src/FilesMetalinkParserState.h
  10287. * src/FinMetalinkParserState.h
  10288. * src/HashMetalinkParserState.h
  10289. * src/InitialMetalinkParserState.h
  10290. * src/LanguageMetalinkParserState.h
  10291. * src/MetalinkMetalinkParserState.h
  10292. * src/MetalinkParserState.h
  10293. * src/MetalinkParserStateMachine.cc
  10294. * src/MetalinkParserStateMachine.h
  10295. * src/OSMetalinkParserState.h
  10296. * src/PieceHashMetalinkParserState.h
  10297. * src/PiecesMetalinkParserState.h
  10298. * src/ResourcesMetalinkParserState.h
  10299. * src/SizeMetalinkParserState.h
  10300. * src/SkipTagMetalinkParserState.h
  10301. * src/URLMetalinkParserState.h
  10302. * src/VerificationMetalinkParserState.h
  10303. * src/VersionMetalinkParserState.h
  10304. * src/XML2SAXMetalinkProcessor.cc
  10305. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10306. Added StringFormat class, which internally calls vasprintf.
  10307. operator<< is defined for this class, so it can be used with iostream
  10308. classes nicely. SimpleLogger and following functions are rewritten
  10309. using StringFormat class.
  10310. Besides, now Logger class's methods are non-const, many classes
  10311. that has a const Logger* as a member variable are modified to remove
  10312. const qualifier from the variable declaration.
  10313. * src/HelpItemFactory.cc
  10314. * src/Request.cc
  10315. * src/SimpleLogger.cc
  10316. * src/StringFormat.cc
  10317. * src/StringFormat.h
  10318. * src/Util.cc
  10319. * src/option_processing.cc
  10320. * src/version_usage.cc
  10321. * test/StringFormatTest.cc
  10322. * src/*.h: The classes that has const Logger* as a member variable.
  10323. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10324. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  10325. failed. Also fixed memory link when exception is thrown there.
  10326. * src/main.cc (AccRequestGroup)
  10327. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10328. Added build-in "Accept-Features" support. For now only "metalink" is
  10329. used in this header field.
  10330. This "metalink" value is removed from the list when connecting URLs
  10331. fed by metalink file to avoid loop in "transparent" metlaink.
  10332. * src/HttpRequest.cc
  10333. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  10334. header is also held in this variable. Also renamed setUserHeaders as
  10335. addHeader and it was rewritten to add header not just to clear the old
  10336. value.
  10337. * src/HttpRequestCommand.cc
  10338. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  10339. from "Accept-Features" list.
  10340. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  10341. default.
  10342. * src/RequestGroup.h
  10343. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  10344. * src/a2functional.h: Included <string> because Concat class depends on
  10345. it.
  10346. * test/HttpRequestTest.cc
  10347. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10348. Added comment
  10349. * src/RequestGroup.cc (createNextCommand)
  10350. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10351. Capitalized METHOD_GET and METHOD_HEAD
  10352. * src/Request.cc
  10353. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10354. Added getDownloadResults() method
  10355. * src/RequestGroupMan.cc
  10356. * src/RequestGroupMan.h
  10357. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10358. Fixed the bug that aria2 exits when commands is empty() but
  10359. _routineCommands are not.
  10360. * src/DownloadEngine.cc
  10361. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10362. Use the default value pulled from Option object in HelpItemFactory.
  10363. except options whose defualt value is embedded in a usage text.
  10364. * src/HelpItemFactory.cc
  10365. * src/HelpItemFactory.h
  10366. * src/option_processing.cc
  10367. * src/version_usage.cc
  10368. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10369. Added --quiet option to make aria2 quiet (no console output).
  10370. --quiet option is tagged with ADVANCED.
  10371. * src/HelpItemFactory.cc
  10372. * src/LogFactory.cc
  10373. * src/LogFactory.h
  10374. * src/MultiUrlRequestInfo.cc
  10375. * src/MultiUrlRequestInfo.h
  10376. * src/NullStatCalc.h: New class. This class prints nothing.
  10377. * src/OptionHandlerFactory.cc
  10378. * src/main.cc
  10379. * src/option_processing.cc
  10380. * src/prefs.h
  10381. * src/usage_text.h
  10382. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10383. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10384. * src/HelpItemFactory.cc (createHelpItems):
  10385. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10386. Fixed compilation error in ExpatMetalinkProcessor.cc
  10387. * src/ExpatMetalinkProcessor.cc
  10388. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10389. Reuse socket if the origin server supports HTTP keep-alive and
  10390. --enable-http-keep-alive or --enable-http-pipelining is given.
  10391. The current implementation doesn't reuse the connections established
  10392. against proxy server.
  10393. * src/AbstractCommand.cc
  10394. * src/DownloadEngine.cc
  10395. * src/DownloadEngine.h
  10396. * src/HttpDownloadCommand.cc
  10397. * src/HttpInitiateConnectionCommand.cc
  10398. * src/HttpResponseCommand.cc
  10399. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. Rewritten HTTP keep-alive and pipelining routine.
  10401. * src/AbstractCommand.cc
  10402. * src/HttpConnection.cc
  10403. * src/HttpDownloadCommand.cc
  10404. * src/HttpRequest.cc
  10405. * src/HttpRequestCommand.cc
  10406. * src/HttpResponseCommand.cc
  10407. * src/Request.cc
  10408. * src/Request.h
  10409. * src/RequestGroup.cc
  10410. * test/HttpRequestTest.cc
  10411. * test/HttpResponseTest.cc
  10412. * test/RequestTest.cc
  10413. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10414. Added missing setUserHeaders call
  10415. * src/HttpRequestCommand.cc
  10416. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10417. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10418. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10419. waste of time because it is more likey false.
  10420. * src/FileAllocationDispatcherCommand.cc (execute)
  10421. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. Now HTTP status and version are a member variable of HttpHeader.
  10423. HTTP status is processed as a string, not integer.
  10424. * src/AbstractProxyResponseCommand.cc
  10425. * src/HttpConnection.cc
  10426. * src/HttpHeader.cc
  10427. * src/HttpHeader.h
  10428. * src/HttpHeaderProcessor.cc
  10429. * src/HttpHeaderProcessor.h
  10430. * src/HttpResponse.cc
  10431. * src/HttpResponse.h
  10432. * test/HttpHeaderProcessorTest.cc
  10433. * test/HttpResponseTest.cc
  10434. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10435. Added --header option. You can specify any number of additional HTTP headers
  10436. like:
  10437. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10438. Unlike other commad-line option, you can use --header option multiple times.
  10439. * src/HelpItemFactory.cc
  10440. * src/HttpRequest.{cc, h}
  10441. * src/HttpRequestCommand.cc
  10442. * src/OptionHandlerFactory.cc
  10443. * src/OptionHandlerImpl.h
  10444. * src/option_processing.cc
  10445. * src/prefs.h
  10446. * src/usage_text.h
  10447. * test/HttpRequestTest.cc (testUserHeaders)
  10448. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10449. Eliminates the time lag between sequential downloads and commands in
  10450. the same RequestGroup.
  10451. In old implementation, aria2 occasionally waits 1 seconds before
  10452. executing next command or RequestGroup.
  10453. This is really a waste of time, and new implementation eliminates
  10454. this unnecessary time lag.
  10455. * src/AbstractCommand.cc
  10456. * src/AutoSaveCommand.cc
  10457. * src/CheckIntegrityCommand.cc
  10458. * src/Command.{cc, h}
  10459. * src/DownloadEngine.{cc, h}
  10460. * src/DownloadEngineFactory.cc
  10461. * src/FileAllocationCommand.cc
  10462. * src/FileAllocationDispatcherCommand.cc
  10463. * src/FillRequestGroupCommand.cc
  10464. * src/FtpInitiateConnectionCommand.cc
  10465. * src/HaveEraseCommand.cc
  10466. * src/HttpInitiateConnectionCommand.cc
  10467. * src/HttpResponseCommand.cc
  10468. * src/RealtimeCommand.cc
  10469. * src/RequestGroup.cc
  10470. * src/RequestGroupMan.cc
  10471. * src/StreamFileAllocationEntry.cc
  10472. * src/TimeBasedCommand.{cc, h}
  10473. * src/TimedHaltCommand.cc
  10474. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10476. keyword explicit and SharedHandle's default constructor initializes
  10477. its internal obj to null, old implementation initializes it using
  10478. obj's default constructor.
  10479. To assign null, write SharedHandle<T> x(...); x.reset();
  10480. TODO: test/SharedHandleTest.cc needs more tests.
  10481. * src/SharedHandle.h
  10482. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10483. Fixed type in man page.
  10484. * doc/aria2c.1.txt
  10485. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10486. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10487. * src/SimpleLogger.{cc, h}
  10488. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. Implemented auto protocol detection.
  10490. Now you can do:
  10491. aria2c -Z http://host/file file1.torrent file2.metalink
  10492. (Note: -Z option is required for auto protcol detection.)
  10493. Then aria2c downloads 3 files simultaneously:
  10494. 1. http://host/file
  10495. 2. file1.torrent <-- read local torrent file
  10496. 3. file2.metalink <-- read local Metalink file.
  10497. Same thing goes with -i option. Assume your uris.txt contans:
  10498. http://host/file
  10499. file1.torrent
  10500. file2.metalink
  10501. Then you can do: aria2c -i uris.txt
  10502. (Note: -Z option is not needed if -i option is given.)
  10503. * src/main.cc
  10504. * src/ProtocolDetector.{cc, h}
  10505. * test/ProtocolDetectorTest.cc
  10506. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10507. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10508. installed
  10509. * src/ARC4Encryptor.h
  10510. * src/ARC4Decryptor.h
  10511. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10512. Renamed argument from 'errno' to 'err', since errno is confused with
  10513. errno defined in errno.h.
  10514. * src/LibgcryptARC4Decryptor.h
  10515. * src/LibgcryptARC4Context.h
  10516. * src/LibgcryptDHKeyExchange.h
  10517. * src/LibgcryptARC4Encryptor.h
  10518. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10519. Rewritten choking algorithm.
  10520. * src/PeerChokeCommand.{cc, h}
  10521. * src/BtInterestedMessage.cc
  10522. * src/PeerSessionResource.{cc, h}
  10523. * src/DefaultPeerStorage.{cc, h}
  10524. * src/BtNotInterestedMessage.cc
  10525. * src/DefaultBtMessageDispatcher.{cc, h}
  10526. * src/BtMessageDispatcher.h
  10527. * src/Peer.{cc, h}
  10528. * src/BtLeecherStateChoke.{cc, h}
  10529. * src/BtSetup.cc
  10530. * src/BtSeederStateChoke.{cc, h}
  10531. * src/PeerStorage.h
  10532. * test/MockPeerStorage.h
  10533. * test/MockBtMessageDispatcher.h
  10534. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10535. Fixed compilation error on x84-64 platform.
  10536. * src/AuthConfig.cc: Included ostream.
  10537. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10538. Rewritten getBasename() and getDirname(), without standard library
  10539. basename(), dirname().
  10540. * src/File.cc
  10541. * test/FileTest.cc
  10542. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10543. Added Simplified Chinese translation. Also updated the following
  10544. translations: Polish, Dutch, German. Great thanks to all translators.
  10545. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10546. Suppress content-range error when 'Content-Range' response header
  10547. doesn't contains bytes-unit specifier 'bytes'
  10548. * src/HttpHeader.cc (getRange)
  10549. * test/HttpHeaderTest.cc
  10550. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10551. Fixed compilation error with g++-4.3
  10552. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10553. Added missing include files for MinGW
  10554. * test/HttpHeaderProcessorTest.cc
  10555. * test/DHTRoutingTableSerializerTest.cc
  10556. * test/DHTRoutingTableDeserializerTest.cc
  10557. * test/UriListParserTest.cc
  10558. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10559. Now download line is printed nicely with no garbage at the end of
  10560. line. I use ioctl to get the columns of terminal.
  10561. If stdout is redirected to another device, instead of carriage return,
  10562. end of line '\n' character is used. This is feature request#1909659
  10563. * src/ConsoleStatCalc.cc (calculateStat)
  10564. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10565. Included a2time.h
  10566. * src/DHTMessageDispatcher.h
  10567. * src/DHTMessageEntry.h
  10568. * src/DHTReplaceNodeTask.h
  10569. * src/DHTMessageTracker.h
  10570. * src/Util.h
  10571. * src/CookieBox.h
  10572. * src/SocketCore.h
  10573. * src/DefaultBtMessageDispatcher.h
  10574. * src/SocketCore.cc
  10575. * src/Util.cc
  10576. * src/DHTPingTask.h
  10577. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10578. Fixed high memory footprint when DHT is enabled.
  10579. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10580. queued than it is processed and the queue is getting longer. As a
  10581. consequence, momory usage is increased.
  10582. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10583. replacement cache in DHTBucket which is described in Kademlia paper.
  10584. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10585. DHTReplaceNodeTask.
  10586. * src/DHTBucket.{h, cc}
  10587. (cacheNode): New function.
  10588. (getCachedNodes): New function.
  10589. (dropNode): Push back cached node to _nodes.
  10590. * test/DHTBucketTest.cc
  10591. (testCacheNode): New test
  10592. (testDropNode): New test
  10593. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10594. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10595. the unused 4KB memory when ssl is not used.
  10596. * src/SocketCore.cc
  10597. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10598. Added summary log for peer announce storage.
  10599. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10600. Removed cast
  10601. * src/DefaultPeerStorage.cc (addPeer)
  10602. Log exception message
  10603. * src/DHTMessageTracker.cc (handleTimeout)
  10604. Fixed casting
  10605. * test/HttpRequestTest.cc
  10606. * test/MetalinkProcessorTest.cc
  10607. * test/PieceTest.cc
  10608. * test/MetalinkEntryTest.cc
  10609. * test/SequenceTest.cc
  10610. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10611. * src/ParameterizedStringParser.cc (createLoop):
  10612. Removed unused variable sstep.
  10613. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10614. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10615. * src/Util.{h, cc}
  10616. (parseUInt): New function.
  10617. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10618. The actual range is uint32_t.
  10619. * test/UtilTest.cc
  10620. * src/ParameterizedStringParser.cc:
  10621. Use Util::parseUInt() for loop variables.
  10622. * test/ParameterizedStringParserTest.cc
  10623. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10624. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10625. Rewritten the functions for binding port.
  10626. * src/DHTConnectionImpl.{h, cc}
  10627. * src/PeerListenCommand.{h, cc}
  10628. * src/DHTSetup.cc
  10629. * src/BtSetup.cc
  10630. * test/DHTConnectionImplTest.cc
  10631. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10632. type cleanup for allmost all remaining files.
  10633. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10634. Type clarification
  10635. * src/PeerSessionResource.{h, cc}
  10636. * src/DefaultPieceStorage.{h, cc}
  10637. * src/Peer.{h, cc}
  10638. * test/PeerSessionResourceTest.cc
  10639. Use div function
  10640. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10641. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. Type clarification
  10643. * src/DefaultPeerStorage.{h, cc}
  10644. * test/DefaultPeerStorageTest.cc
  10645. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10646. Type clarification: size_t for length or size, uint64_t for file
  10647. length, off_t for file offset.
  10648. * src/DefaultBtProgressInfoFile.cc
  10649. * src/DefaultBtContext.{h, cc}
  10650. * src/DefaultBtInteractive.cc
  10651. * src/DownloadCommand.{h, cc}
  10652. * src/IteratableChunkChecksumValidator.{h, cc}
  10653. * src/SegmentMan.{h, cc}
  10654. * src/SingleFileDownloadContext.{h, cc}
  10655. * src/IteratableChecksumValidator.{h, cc}
  10656. * src/BtContext.h
  10657. * src/IteratableValidator.h
  10658. * src/DownloadContext.h
  10659. * test/SingleFileDownloadContextTest.cc
  10660. * test/DefaultBtContextTest.cc
  10661. * test/MockBtContext.h
  10662. * test/Metalink2RequestGroupTest.cc
  10663. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10664. Type clarification: size_t for length or size, uint64_t for file
  10665. length, off_t for file offset.
  10666. * src/PiecedSegment.cc
  10667. * src/GrowSegment.h
  10668. * src/DefaultBtRequestFactory.h
  10669. * src/DefaultBtProgressInfoFile.cc
  10670. * src/UnknownLengthPieceStorage.h
  10671. * src/DefaultPieceStorage.cc
  10672. * src/UnknownLengthPieceStorage.cc
  10673. * src/DefaultBtInteractive.cc
  10674. * src/GrowSegment.cc
  10675. * src/BitfieldMan.h
  10676. * src/DownloadCommand.cc
  10677. * src/BtRequestFactory.h
  10678. * src/PiecedSegment.h
  10679. * src/DefaultPieceStorage.h
  10680. * src/Piece.cc
  10681. * src/DefaultBtRequestFactory.cc
  10682. * src/PieceStorage.h
  10683. * src/Segment.h
  10684. * src/Piece.h
  10685. * src/BitfieldMan.cc
  10686. * src/Util.cc
  10687. * test/DefaultBtProgressInfoFileTest.cc
  10688. * test/DefaultPieceStorageTest.cc
  10689. * test/MockPieceStorage.h
  10690. * test/BtRequestMessageTest.cc
  10691. * test/DefaultBtMessageDispatcherTest.cc
  10692. * test/BitfieldManTest.cc
  10693. * test/GrowSegmentTest.cc
  10694. * test/PieceTest.cc
  10695. * test/SegmentTest.cc
  10696. * test/SegmentManTest.cc
  10697. * test/DefaultBtRequestFactoryTest.cc
  10698. * test/MockBtRequestFactory.h
  10699. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10700. Fixed compilation error with --disable-nls
  10701. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10702. in gettext.h causes the problem.
  10703. * src/common.h
  10704. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10705. Removed subPiece related functions.
  10706. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10707. * src/DefaultPieceStorage.{h, cc}
  10708. * test/PieceTest.cc
  10709. * test/DefaultPieceStorageTest.cc
  10710. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10711. Use unsigned char for data store.
  10712. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10713. Bump up version number to 0.13.0+1
  10714. * configure.ac
  10715. * Release 0.13.0+1
  10716. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10717. Changed inactive connection timeout to 120.
  10718. To accept more mulually interested peers, disconnect peer when there
  10719. is no interest between us after certain time passed.
  10720. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10721. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10722. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10723. when compiled with async DNS support.
  10724. * src/DownloadEngine.cc
  10725. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10726. value '10' will be a little bit short when some DNS servers are
  10727. offline and several DNS servers are tried. It should be configured
  10728. by command-line option.
  10729. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10730. Merged Ross's mingw patch.
  10731. * src/DHTRoutingTableDeserializer.cc
  10732. * src/DHTRoutingTableSerializer.cc
  10733. * src/Platform.{h, cc}
  10734. * src/timegm.h
  10735. * src/gettimeofday.h
  10736. * src/getaddrinfo.h
  10737. * src/SocketCore.h
  10738. * src/common.h
  10739. * src/inet_aton.h
  10740. * src/DownloadEngine.h
  10741. * src/gai_strerror.h
  10742. * src/a2netcompat.h
  10743. * configure.ac
  10744. * configure
  10745. * aclocal.m4
  10746. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10747. Included missing iostream.
  10748. * test/AllTest.cc
  10749. * test/BtDependencyTest.cc
  10750. * test/BtExtendedMessageTest.cc
  10751. * test/DHTConnectionImplTest.cc
  10752. * test/DHTMessageFactoryImplTest.cc
  10753. * test/DHTMessageTrackerEntryTest.cc
  10754. * test/DHTNodeTest.cc
  10755. * test/DHTRoutingTableSerializerTest.cc
  10756. * test/DefaultBtAnnounceTest.cc
  10757. * test/DefaultBtContextTest.cc
  10758. * test/DefaultBtMessageFactoryTest.cc
  10759. * test/DefaultExtensionMessageFactoryTest.cc
  10760. * test/HandshakeExtensionMessageTest.cc
  10761. * test/HttpResponseTest.cc
  10762. * test/MetalinkProcessorTest.cc
  10763. * test/MultiFileAllocationIteratorTest.cc
  10764. * test/SocketCoreTest.cc
  10765. * test/UTPexExtensionMessageTest.cc
  10766. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10767. Reorganized includes.
  10768. * src/NameResolver.cc
  10769. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10770. Fixed compilation error without ares/c-ares
  10771. * src/NameResolver.h:
  10772. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10773. Added a test for large file.
  10774. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10775. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10776. Fixed the bug that file size is ignored if size > INT32_MAX
  10777. * src/SizeMetalinkParserState.cc (endElement):
  10778. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10779. Bump up version number to 0.13.0
  10780. * configure.ac
  10781. * Release 0.13.0
  10782. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10783. Updated Makfefile.am to make 'make dist' work.
  10784. Now packaged filename is aria2c-VERSION.tar.bz2.
  10785. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10786. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10787. Large file support is now configured by configure script.
  10788. * configure.ac
  10789. Removed unsused source files
  10790. * src/
  10791. * test/
  10792. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10793. Peer.h and BtContext.h respectively.
  10794. * src/Peer.h
  10795. * src/BtContext.h
  10796. Updated translations.
  10797. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10798. translations. Great thanks to all translators!;)
  10799. * po/*.{po, gmo}
  10800. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10801. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10802. statically declared sha1 MessageDigestContext.
  10803. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10804. initialization of short-lived MessageDigestContext.
  10805. * src/MessageDigestHelper.{h, cc}
  10806. * src/main.cc
  10807. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10808. the initialization of MessageDigestContext every time in validating
  10809. chunk checksum.
  10810. * src/DownloadCommand.{h, cc}
  10811. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10812. Add a file descriptor which connected to fast peer(latency<1500) to
  10813. select(). This change reduced CPU load.
  10814. * src/PeerInteractionCommand.cc
  10815. * src/DefaultBtInteractive.{h, cc}
  10816. * src/BtInteractive.h
  10817. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10818. Fixed the previous insufficient fix for possible busy loop.
  10819. * src/MSEHandshake.cc (identifyHandshakeType)
  10820. Removed unused functions.
  10821. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10822. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10823. Fixed possible busy loop if first 20 bytes are not received for a few
  10824. minutes.
  10825. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10826. * src/ReceiverMSEHandshakeCommand.cc
  10827. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10828. Fixed compilation error
  10829. * src/ExpatMetalinkProcessor.cc
  10830. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10831. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10832. * src/DHTBucket.cc
  10833. Removed unnecessary cast.
  10834. * src/HandshakeExtensionMessage.cc
  10835. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10836. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10837. is missing.
  10838. * src/OptionHandlerFactory.cc
  10839. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10840. Fixed the bug that HAVE message is not sent for a piece they are
  10841. downloaded fom http/ftp server before any BitTorrent handshake is done
  10842. with peers.
  10843. * src/DefaultBtInteractive.cc
  10844. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10845. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10846. * src/Makefile.am
  10847. * src/Makefile.in
  10848. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10849. Updated README. Added html version of README and man page.
  10850. * README
  10851. * README.html
  10852. * readme2html: Shell script to generate README.html from README using
  10853. asciidoc.
  10854. * doc/aria2c.1.html
  10855. * doc/makeman: Added the line to generate aria2c.1.html
  10856. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10857. Fixed offset calculation.
  10858. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10859. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10860. Rewritten itos and uitos using template. llitos and ullitos are
  10861. replaced with itos and uitos respectively.
  10862. * src/Util.{h, cc}
  10863. * test/UtilTest.cc
  10864. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10865. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10866. of the number of bytes required for storing public key and shared
  10867. secret.
  10868. * src/LibgcryptDHKeyExchange.h
  10869. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10870. * src/MSEHandshake.cc
  10871. * test/DHKeyExchangeTest.cc
  10872. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10873. Removed since they are not used.
  10874. * src/Xml2MetalinkProcessor.{h, cc}
  10875. * src/Socket.cc
  10876. * src/SegmentSplitter.{h, cc}
  10877. * test/Xml2MetalinkProcessorTest.cc
  10878. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10879. Fixed the bug that prevents aria2 from stopping other than by pressing
  10880. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10881. option. aria2 doesn't stop even after --seed-time is satisfied and
  10882. continues to output blank lines in the console.
  10883. * src/ReceiverMSEHandshakeCommand.cc
  10884. * src/PeerReceiveHandshakeCommand.cc
  10885. * src/PeerListenCommand.cc
  10886. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10887. Bump up version number to 0.13.0rc
  10888. * configure.ac
  10889. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10890. Updated man page and some usage text.
  10891. * doc/aria2c.1.txt
  10892. * src/usage_text.h
  10893. * po/*.{po, gmo}
  10894. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10895. Updated translations. Added Finnish and Hebrew translations.
  10896. Great thanks to all translators!
  10897. * po/*.{po, gmo}
  10898. * po/LINGUAS
  10899. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10900. Log more detailed information about each message.
  10901. * src/DHTQueryMessage.{h, cc}
  10902. * src/DHTGetPeersMessage.{h, cc}
  10903. * src/DHTFindNodeReplyMessage.{h, cc}
  10904. * src/DHTGetPeersReplyMessage.{h, cc}
  10905. * src/DHTAnnouncePeerMessage.{h, cc}
  10906. * src/DHTResponseMessage.{h, cc}
  10907. * src/DHTFindNodeMessage.{h, cc}
  10908. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10909. Use constants defined in prefs.h
  10910. * src/option_processing.cc
  10911. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10912. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10913. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10914. Make room for future enchancements for IPv6 addresses.
  10915. Bump up version number of dht.dat file format to 2.
  10916. Not compatible with previous version.
  10917. * src/DHTRoutingTableSerializer.cc
  10918. * src/DHTRoutingTableDeserializer.cc
  10919. * test/DHTRoutingTableSerializerTest.cc
  10920. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10921. Added handling for the return values from
  10922. PeerMessageUtil::createcompact().
  10923. * src/DefaultBtContext.cc (computeFastSet):
  10924. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10925. Fixed abort when peer's ip address is IPv4-mapped address.
  10926. * src/DefaultBtContext.cc (computeFastSet)
  10927. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10928. cannot handle IPv4-mapped addresses.
  10929. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10930. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10931. Proper return value handling for OpenSSL functions.
  10932. * src/LibsslDHKeyExchange.h
  10933. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10934. Random bytes generation using libgcrypt and OpenSSL.
  10935. * src/DHTUtil.{h, cc}
  10936. * test/DHTUtilTest.cc
  10937. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10938. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10939. received.
  10940. * src/DHTMessageReceiver.cc (receiveMessage)
  10941. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10942. Fixed the bug that a return code is always 0. BUG#1897704
  10943. If error occurred during the download or there exist unfinished
  10944. downloads, aria2 returns with code 1.
  10945. * src/RequestGroupMan.{h, cc}
  10946. * src/MultiUrlRequestInfo.{h, cc}
  10947. * src/main.cc
  10948. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10949. IPv6 support for SocketCore class.
  10950. TODO: In SocketCore::establishConnection(), this is insufficient to
  10951. determin the failure of connect() here because the socket is
  10952. non-blocking state. The next addresses should be tried after select().
  10953. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10954. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10955. instead which address family independent.
  10956. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10957. information in a compact peer format which is for IPv4 only.
  10958. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10959. this is a spec of BitTorrent protocol.
  10960. * src/SocketCore.{h, cc}
  10961. * src/PeerMessageUtil.cc
  10962. * test/SocketCoreTest.cc
  10963. * test/PeerMessageUtilTest.cc
  10964. * test/DHTConnectionImplTest.cc
  10965. Handle IPv4-mapped addresses.
  10966. * src/DHTNode.cc: Now identity is determined by node id.
  10967. * src/DHTMessageTrackerEntry.cc
  10968. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10969. should handle it.
  10970. * src/DHTRoutingTableDeserializer.cc
  10971. * src/DHTMessageFactoryImpl.cc
  10972. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10973. Change the unit of --stop option from a minute to a second.
  10974. * src/usage_text.h
  10975. * src/DownloadEngineFactory.cc
  10976. * src/OptionHandlerFactory.cc
  10977. * src/message.h
  10978. * src/TimedHaltCommand.cc
  10979. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10980. Make listening socket non-block mode.
  10981. * src/FtpConnection.cc
  10982. * src/FtpNegotiationCommand.{h, cc}
  10983. * src/PeerListenCommand.cc
  10984. Fixed the bug that cause slow ftp negotiation.
  10985. * src/FtpNegotiationCommand.{h, cc}
  10986. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10987. Added basic tag to --enable-dht, --dht-listen-port option.
  10988. * src/HelpItemFactory.cc (createHelpItems)
  10989. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10990. Updated text.
  10991. * src/usage_text.h
  10992. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10993. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10994. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10995. Determin _threadtholdSpeed in each constructor for
  10996. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10997. * src/ActivePeerConnectionCommand.{h, cc}
  10998. * src/PeerReceiveHandshakeCommand.{h, cc}
  10999. * src/BtSetup.cc
  11000. * src/BtConstants.h
  11001. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11002. Added --bt-min-crypto-level and --bt-require-crypto options.
  11003. * src/OptionHandlerFactory.cc
  11004. * src/MSEHandshake.cc
  11005. * src/HelpItemFactory.cc
  11006. * src/option_processing.cc
  11007. * src/ReceiverMSEHandshakeCommand.cc
  11008. * src/prefs.h
  11009. * src/DefaultBtAnnounce.cc
  11010. * src/InitiatorMSEHandshakeCommand.cc
  11011. * src/usage_text.h
  11012. * test/MSEHandshakeTest.cc
  11013. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11014. Bump version number to 0.13.0b
  11015. * configure.ac
  11016. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Updated doc.
  11018. * src/MessageDigestHelper.h:
  11019. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11020. Use raw message digest as a token instead of its hexadecimal
  11021. representation.
  11022. * src/DHTTokenTracker.cc (generateToken)
  11023. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11024. Added Message Stream Encryption(MSE) support.
  11025. Currently, aria2 accepts incoming connections with Obfuscation Header
  11026. and legacy BitTorrent Header and establishes connections with
  11027. Obfuscation Header first and if failed then retry with legacy
  11028. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  11029. choose ARC4. The new option to change the default behavior is planned.
  11030. For tracker extension, "supportcrypto=1" is added statically.
  11031. * src/PeerInitiateConnectionCommand.{h, cc}
  11032. * src/PeerConnection.{h, cc}
  11033. * src/HandleRegistry.h
  11034. * src/SocketCore.h
  11035. * src/PeerReceiveHandshakeCommand.{h, cc}
  11036. * src/BtRegistry.{h, cc}
  11037. * src/PeerListenCommand.cc
  11038. * src/InitiatorMSEHandshakeCommand.{h, cc}
  11039. * src/ReceiverMSEHandshakeCommand.{h, cc}
  11040. * src/MSEHandshake.{h, cc}
  11041. * src/ARC4Encryptor.h
  11042. * src/ARC4Decryptor.h
  11043. * src/LibgcryptARC4Encryptor.h
  11044. * src/LibgcryptARC4Decryptor.h
  11045. * src/LibgcryptARC4Context.h
  11046. * src/LibsslARC4Encryptor.h
  11047. * src/LibsslARC4Decryptor.h
  11048. * src/LibsslARC4Context.h
  11049. * src/DHKeyExchange.h
  11050. * src/LibgcryptDHKeyExchange.h
  11051. * src/LibsslDHKeyExchange.h
  11052. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  11053. * test/DefaultBtAnnounceTest.cc
  11054. * test/ARC4Test.cc
  11055. * test/DHKeyExchangeTest.cc
  11056. Removed prepareForRetry() because it is not used.
  11057. * src/PeerAbstractCommand.{h, cc}
  11058. * src/PeerInteractionCommand.{h, cc}
  11059. * src/PeerInitiateConnectionCommand.{h, cc}
  11060. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11061. Added the ability to load nodes from torrent file. These nodes are
  11062. added to the routing table when downloading that torrent.
  11063. * src/BtContext.h
  11064. * src/DefaultBtContext.{h, cc}
  11065. * src/DHTSetup.cc
  11066. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  11067. hostname and port pair, and resolves all of them.
  11068. * src/NameResolver.{h, cc}: Added reset().
  11069. * src/RequestGroup.cc
  11070. * test/DefaultBtContextTest.cc
  11071. * test/MockBtContext.h
  11072. Removed assert() from DefaultBtContext and throw exception instead.
  11073. * src/DefaultBtContext.cc
  11074. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11075. Fixed segmentation fault bug when exiting if dht is disabled.
  11076. * src/RequestGroup.cc
  11077. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11078. Fixed typo in log message and define the message in message.h
  11079. * src/TimedHaltCommand.cc
  11080. * src/message.h
  11081. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11082. Included RecoverableException.h to fix compilation error.
  11083. * test/DHTMessageFactoryImplTest.cc
  11084. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11085. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  11086. * test/DHTPingMessageTest.cc
  11087. * test/DHTGetPeersMessageTest.cc
  11088. * test/DHTFindNodeMessageTest.cc
  11089. * test/DHTAnnouncePeerMessageTest.cc
  11090. * test/MockDHTMessage.h
  11091. * test/MockDHTMessageFactory.h
  11092. * test/MockDHTMessageDispatcher.h: New class.
  11093. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11094. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  11095. virtual.
  11096. * src/DHTMessageDispatcher.h
  11097. * src/DHTMessageDispatcherImpl.{h, cc}
  11098. * src/DHTSetup.cc
  11099. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11100. Adding handling of DHT error message. Just log error message and
  11101. throw exception.
  11102. * src/DHTMessageFactoryImpl.cc
  11103. * test/DHTMessageFactoryImplTest.cc
  11104. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11105. Added handling of dynamic cast failure.
  11106. * src/DHTNodeLookupTask.cc
  11107. * src/DHTPeerLookupTask.cc
  11108. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11109. Added the ability to stop aria2 itself when given time has passed
  11110. from start. Use --stop option to specify time in minutes.
  11111. When 0 is given, this feature is disabled.
  11112. * src/OptionHandlerFactory.cc
  11113. * src/TimeBasedCommand.h: Make _interval protected scope.
  11114. * src/HelpItemFactory.cc
  11115. * src/option_processing.cc
  11116. * src/prefs.h
  11117. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  11118. before calling RequestGroupMan::fillRequestGroupFromReserver().
  11119. Without this modification, the result list shows "ERR" when aria2 is
  11120. stopped by --stop option. It should be "INPR".
  11121. * src/DownloadEngine.{h, cc}
  11122. * src/DownloadEngineFactory.cc
  11123. * src/usage_text.h
  11124. * src/TimedHaltCommand.{h, cc}: New class.
  11125. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11126. Bootstrap through node added by port message.
  11127. Currently bootstrap is executed if the number of buckets in routing
  11128. table is 1.
  11129. * src/BtPortMessage.{h, cc}
  11130. * src/DefaultBtMessageFactory.{h, cc}
  11131. * src/PeerInteractionCommand.cc
  11132. * test/BtPortMessageTest.cc
  11133. * test/MockDHTTask.h
  11134. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11135. Extract the Peer class's member variables, which are only needed after
  11136. PeerInteractionCommand, into PeerSessionResource class.
  11137. This class is instantiated in PeerInteractionCommand class's ctor and
  11138. released in its dtor.
  11139. This will make Peer class lightweight and uses less memory for peers
  11140. which are not connected and wait in the queue.
  11141. * src/PeerChokeCommand.cc
  11142. * src/PeerSessionResource.{h, cc}
  11143. * src/PeerInteractionCommand.cc
  11144. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  11145. * src/DefaultBtInteractive.cc
  11146. * src/BtPieceMessage.cc
  11147. * src/BtInterestedMessage.cc
  11148. * src/BtUnchokeMessage.cc
  11149. * src/DefaultPeerStorage.{h, cc}
  11150. * src/PeerInitiateConnectionCommand.cc
  11151. * src/ActivePeerConnectionCommand.cc
  11152. * src/BtNotInterestedMessage.cc
  11153. * src/DefaultBtMessageDispatcher.cc
  11154. * src/BtChokeMessage.cc
  11155. * src/BtRequestMessage.cc
  11156. * src/Peer.{h, cc}
  11157. * src/BtRegistry.h
  11158. * src/TrackerWatcherCommand.cc
  11159. * src/PeerReceiveHandshakeCommand.cc
  11160. * test/BtExtendedMessageTest.cc
  11161. * test/BtAllowedFastMessageTest.cc
  11162. * test/BtCancelMessageTest.cc
  11163. * test/DefaultPieceStorageTest.cc
  11164. * test/BtBitfieldMessageTest.cc
  11165. * test/BtHaveMessageTest.cc
  11166. * test/BtNotInterestedMessageTest.cc
  11167. * test/BtRequestMessageTest.cc
  11168. * test/PeerSessionResourceTest.cc
  11169. * test/DefaultBtMessageDispatcherTest.cc
  11170. * test/PeerTest.cc
  11171. * test/BtInterestedMessageTest.cc
  11172. * test/BtRejectMessageTest.cc
  11173. * test/BtChokeMessageTest.cc
  11174. * test/DefaultPeerStorageTest.cc
  11175. * test/BtHaveNoneMessageTest.cc
  11176. * test/BtHaveAllMessageTest.cc
  11177. * test/DefaultExtensionMessageFactoryTest.cc
  11178. * test/BtUnchokeMessageTest.cc
  11179. * test/DefaultBtMessageFactoryTest.cc
  11180. * test/HandshakeExtensionMessageTest.cc
  11181. * test/UTPexExtensionMessageTest.cc
  11182. * test/DefaultBtRequestFactoryTest.cc
  11183. * test/BtPieceMessageTest.cc
  11184. Removed typedef PeerStats.
  11185. * src/PeerStat.h
  11186. * src/SegmentMan.cc
  11187. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11188. Added std namespace to copy, remove_copy, back_inserter,
  11189. front_inserter.
  11190. * src/RequestGroupMan.cc
  11191. * src/DefaultPieceStorage.cc
  11192. * src/StreamFileAllocationEntry.cc
  11193. * src/BtFileAllocationEntry.cc
  11194. * src/RequestGroup.cc
  11195. * src/MetalinkEntry.cc
  11196. * src/DelegatingPeerListProcessor.cc
  11197. * src/DefaultBtRequestFactory.cc
  11198. * src/DefaultBtMessageDispatcher.cc
  11199. * src/version_usage.cc: Included <algorithm>
  11200. * src/main.cc
  11201. * src/MetalinkParserController.cc
  11202. * src/DefaultBtContext.cc
  11203. * src/DownloadEngineFactory.cc
  11204. * src/a2algo.h
  11205. Removed.
  11206. * test/StreamUriListParserTest.cc
  11207. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11208. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  11209. ActivePeerConnectionCommand when it is given and
  11210. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  11211. * src/ActivePeerConnectionCommand.{h, cc}
  11212. * src/BtSetup.cc
  11213. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11214. Only add socket to DownloadEngine's select routine when peer or
  11215. localhost is unchoked and interested. This lowers CPU usage a
  11216. little bit.
  11217. * src/PeerInteractionCommand.cc
  11218. * src/PeerAbstractCommand.{h, cc}
  11219. * src/BtInteractive.h
  11220. * src/DefaultBtInteractive.{h, cc}
  11221. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11222. Revert previous change because get_peers message is needed for
  11223. announce_peer anyway.
  11224. * src/DHTGetPeersCommand.cc
  11225. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11226. Request peers thought DHT only when download hasn't finished.
  11227. * src/DHTGetPeersCommand.cc
  11228. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11229. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  11230. * src/DHTBucketRefreshTask.{h, cc}
  11231. * src/DHTSetup.cc
  11232. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11233. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  11234. standard classes.
  11235. Included string.h where mem* function are used.
  11236. Added namespace aria2.
  11237. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11238. Create directory before saving DHT routing table.
  11239. Now ios::failure is now handled properly.
  11240. * src/DHTAutoSaveCommand.cc
  11241. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11242. Removed unnecessary cerr.
  11243. * src/DownloadEngine.cc
  11244. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11245. Catch exception inside DHTMessageReceiver::receiveMessage().
  11246. Log unknown message.
  11247. * src/DHTMessageReceiver.{h, cc}
  11248. * src/DHTMessageFactory.h
  11249. * src/DHTMessageFactoryImpl.{h, cc}
  11250. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  11251. * src/DHTInteractionCommand.cc
  11252. * src/DHTUnknownMessage.{h, cc}
  11253. * test/DHTUnknownMessageTest.cc
  11254. * test/MockDHTMessageFactory.h
  11255. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11256. Commented out ip address comparison because a host can have multiple
  11257. ip addresses and it is hard to predict the hostname is resolved into
  11258. which one.
  11259. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  11260. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11261. * po/Makefile.in: Removed since this is generated by configure.
  11262. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11263. Fixed compiler warning about redefinition of SIZE_MAX.
  11264. Use common.h instead of config.h directly here.
  11265. * src/Platform.{h, cc}
  11266. The check of ENABLE_NLS is made in gettext.h, so it is not required
  11267. here.
  11268. * common.h
  11269. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  11270. Updated gettext related files.
  11271. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  11272. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  11273. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11274. Added DHT functionality, compatible with mainline.
  11275. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  11276. You may need to specify entry point to DHT network using
  11277. --dht-entry-point. DHT uses UDP port to listen incoming message.
  11278. Use --dht-listen-port to specify port number. Make sure that your
  11279. firewall configuration can pass through UDP traffic to the port.
  11280. The routing table is saved in $HOME/.aria2/dht.dat.
  11281. * src/DHT*
  11282. * src/BNode.{h, cc}
  11283. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  11284. particular torrent.
  11285. * src/Data.cc: Rewritten ctor.
  11286. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  11287. --dht-entry-point.
  11288. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  11289. * src/RequestGroup.cc: Initialize DHT functionality. When download
  11290. ends, remove BtContext from DHTPeerAnnounceStorage.
  11291. * src/BtPortMessage.{h, cc}: Rewritten.
  11292. * src/message.h
  11293. * src/OptionHandlerImpl.cc
  11294. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  11295. --dht-entry-point.
  11296. * src/Dictionary.{h, cc} (remove): New function.
  11297. * src/prefs.h
  11298. * src/DefaultBtMessageFactory.h
  11299. * src/BtHandshakeMessage.cc
  11300. * src/ActivePeerConnectionCommand.cc
  11301. * src/SocketCore.{h, cc}: Added datagram socket support.
  11302. * src/DefaultBtMessageFactory.cc
  11303. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  11304. Create DHT commands.
  11305. * src/BtMessageFactory.h
  11306. * src/PeerMessageUtil.{h, cc}
  11307. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11308. Fixed the bug that log file is not written when configuration file doesn't exist.
  11309. This is caused by using Logger class before LogFactory is not configured.
  11310. BUG #1875079
  11311. * src/option_processing.cc
  11312. Warning message "configuration doesn't exist" is only printed when --conf is
  11313. given.
  11314. * src/option_processing.cc
  11315. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11316. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  11317. ShaVisitor is now deprecated and slated to be removed.
  11318. * src/DefaultBtContext.cc
  11319. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11320. Externalize message to message.h
  11321. * src/Platform.cc
  11322. * src/message.h
  11323. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11324. Set default domain and default path to cookie.
  11325. * src/HttpResponse.cc
  11326. * src/CookieBox.{h, cc}
  11327. * src/CookieParser.{h, cc}
  11328. * test/CookieParserTest.cc
  11329. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11330. Added --no-conf and --conf-path command-line option.
  11331. --no-conf option disables loading aria2.conf file.
  11332. --conf-path option changes the configuration file path. The default
  11333. file path is $HOME/.aria2/aria2.conf
  11334. Added a warning message when the configuration file is not found.
  11335. * src/HelpItemFactory.cc
  11336. * src/option_processing.cc
  11337. * src/prefs.h
  11338. * src/usage_text.h
  11339. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11340. Added the message to inform users that other help categories are
  11341. available in -h option.
  11342. * src/version_usage.cc
  11343. * src/TagContainer.{h, cc}
  11344. * test/TagContainerTest.cc
  11345. * src/TaggedItem.{h, cc}
  11346. * test/TaggedItemTest.cc
  11347. * src/HelpItem.h
  11348. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11349. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  11350. from PiecedSegment's ctor.
  11351. Previously Piece::getAllMissingBlockIndexes() is called from
  11352. PiecedSegment() but it is rather expensive since only first element is
  11353. used.
  11354. * src/PiecedSegment.cc
  11355. * src/Piece.{h, cc}
  11356. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11357. Rewritten get*Missing*Index functions. Now no need to allocate memory
  11358. each time these functions are called.
  11359. * src/BitfieldMan.{h, cc}
  11360. * test/BitfieldManTest.cc
  11361. * src/array_fun.h
  11362. * test/array_funTest.cc
  11363. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  11364. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  11365. filtered. Removed unnecessary cast to int32_t.
  11366. * src/BitfieldMan.{h, cc}
  11367. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11368. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  11369. payload length(4bytes) are received. This happens because lenbufLength
  11370. is not updated in this particular case and successive call of
  11371. receiveMessage() overwrites payload length with bytes recieved which
  11372. are payload body.
  11373. * src/PeerConnection.{h, cc}
  11374. * src/message.h
  11375. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11376. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11377. peer if there are peers that have same ipaddr and port.
  11378. I've experiened segmentation fault and "pure virtual function was
  11379. called" error.
  11380. * src/Peer.h
  11381. * test/PeerTest.cc
  11382. * src/DefaultPeerStorage.cc
  11383. * test/DefaultPeerStorageTest.cc
  11384. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11385. Removed a call to isPowerOf() because it is no longer necessary here
  11386. and a request block is not always power of 2.
  11387. BUG#1866924
  11388. * src/PeerMessageUtil.cc (checkLength)
  11389. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11390. Fixed the bug that always first found Segment is removed from
  11391. usedSegmentEntries. Removed unused functions.
  11392. * src/SegmentMan.{h, cc}
  11393. * test/SegmentManTest.cc
  11394. Fixed the bug that ServerHost is not removed.
  11395. * src/RequestGroup.cc
  11396. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11397. Fixed the bug that SegmentMan::completeSegment() is not called
  11398. even if Segment is complete when --lowest-speed-limit is enabled.
  11399. BUG#1864525
  11400. * src/DownloadCommand.{h, cc}
  11401. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11402. Fixed: hash algorithm 'sha1' is always used.
  11403. * src/DownloadCommand.cc (validatePieceHash)
  11404. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11405. Added --enable-peer-exchange command-line option.
  11406. * src/OptionHandlerFactory.cc
  11407. * src/HelpItemFactory.cc
  11408. * src/option_processing.cc
  11409. * src/usage_text.h
  11410. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11411. Move extension from BtRuntime to ExtensionMessageFactory, because
  11412. extension can be specified per peer, not per torrent.
  11413. * src/DefaultBtInteractive.cc
  11414. * src/BtRuntime.h
  11415. * src/ExtendedMessagingAware.h
  11416. * src/ExtensionMessageFactory.h
  11417. * src/DefaultExtensionMessageFactory.cc
  11418. * test/DefaultExtensionMessageFactoryTest.cc
  11419. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11420. Added categorized option help. Specify category using --help option.
  11421. Also added the ability to search options in forward match.
  11422. * src/HelpItem.{h, cc}
  11423. * test/HelpItemTest.cc
  11424. * src/HelpItemFactory.{h, cc}
  11425. * src/TagContainer.{h, cc}
  11426. * test/TagContainerTest.cc
  11427. * src/option_processing.cc
  11428. * src/prefs.h
  11429. * src/TaggedItem.{h, cc}
  11430. * test/TaggedItemTest.cc
  11431. * src/version_usage.cc
  11432. * src/help_tags.h
  11433. * src/usage_text.h
  11434. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11435. Fixed segmentation fault when bad torrent metainfo is parsed.
  11436. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11437. and then throw exception or skip it.
  11438. * src/DefaultBtContext.{h, cc}
  11439. * test/DefaultBtContextTest.cc
  11440. * src/AnnounceList.cc
  11441. * src/CompactPeerListProcessor.cc
  11442. * src/message.h
  11443. * src/DefaultBtAnnounce.{h, cc}
  11444. * test/DefaultBtAnnounceTest.cc
  11445. * src/BencodeVisitor.cc
  11446. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11447. Added missing "B"(=Byte). So now the message looks like this:
  11448. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11449. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11450. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11451. Show the seed ratio after torrent downloads.
  11452. For example, after torrent download completed and --seed-time and
  11453. --seed-ratio conditions are fulfilled, following message is printed
  11454. right after "Download complete: .....":
  11455. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11456. * src/RequestGroupMan.cc
  11457. * src/RequestGroup.{h, cc}
  11458. * src/message.h
  11459. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11460. Remove a defunct control file. A defunct control file means that while
  11461. it exists, but the corresponding download file is missing.
  11462. After its removal, a download restarts from the beginning.
  11463. * src/RequestGroup.cc
  11464. * src/message.h
  11465. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11466. Allocate bitfield in Peer when it is really used. More specifically,
  11467. bitfield in Peer is allocated after the connection is established and
  11468. deallocated when the connection is dropped.
  11469. Since 2 parameters(piece length and total length) was removed from the
  11470. constructor of Peer class, many test classes were modified accordingly.
  11471. See svn log for more detailed information.
  11472. * src/PeerInteractionCommand.cc
  11473. * src/CompactPeerListProcessor.cc
  11474. * src/Peer.cc
  11475. * src/DefaultPeerListProcessor.cc
  11476. * src/PeerListenCommand.cc
  11477. * src/PeerReceiveHandshakeCommand.cc
  11478. Fixed memory leak
  11479. * src/Piece.cc
  11480. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11481. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11482. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11483. command-line options.
  11484. * src/option_processing.cc
  11485. * src/ActivePeerConnectionCommand.cc
  11486. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11487. Send have message to peer if it already has the piece.
  11488. * src/BtHaveMessage.{h, cc}
  11489. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11490. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11491. port.
  11492. * src/DefaultPeerStorage.{h, cc}
  11493. * test/DefaultPeerStorageTest.cc
  11494. * src/HandshakeExtensionMessage.cc
  11495. * test/HandshakeExtensionMessageTest.cc
  11496. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11497. * src/PeerStorage.h
  11498. * test/MockPeerStorage.h
  11499. * src/PeerListenCommand.cc
  11500. * src/PeerReceiveHandshakeCommand.cc
  11501. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11502. Added --metalink-enable-unique-protocol option.
  11503. * src/Metalink2RequestGroup.cc
  11504. * src/option_processing.cc
  11505. * src/prefs.h
  11506. * src/version_usage.cc
  11507. * doc/aria2c.1.txt
  11508. * doc/aria2c.1
  11509. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11510. Allow a peer in incomingPeer to be added peers.
  11511. * src/DefaultPeerStorage.cc
  11512. * test/DefaultPeerStorageTest.cc
  11513. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11514. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11515. I could reproduce this bug in following procedure:
  11516. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11517. 2. Restart aria2.
  11518. 3. You see the download stopped around 99%.
  11519. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11520. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11521. If timeout is reached, then _nextCommand is unused and it may contains
  11522. segments and they won't be canceled. Actually, timeout is not needed
  11523. here because if the server dropped connection, then retry is made.
  11524. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11525. Added uTorrent compatible Peer Exchange.
  11526. * src/BencodeVisitor.{h, cc}
  11527. * test/BencodeVisitorTest.cc
  11528. * src/BtConstants.h
  11529. * src/BtContext.h: Added 'private' flag.
  11530. * src/BtExtendedMessage.{h, cc}
  11531. * test/BtExtendedMessageTest.cc
  11532. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11533. reserved field.
  11534. * test/BtHandshakeMessageTest.cc
  11535. * src/BtMessageFactory.h
  11536. * src/BtRegistry.h
  11537. * src/BtRuntime.h: This class holds default extension message IDs for
  11538. aria2. By default, aria2 uses ID 8 for ut_pex.
  11539. * src/DefaultBtContext.cc
  11540. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11541. When it is true, aria2 enables ut_pex. This value is set by
  11542. PeerInteractionCommand.
  11543. * src/DefaultBtMessageFactory.{h, cc}
  11544. * test/DefaultBtMessageFactoryTest.cc
  11545. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11546. handling to DefaultBtInteractive class.
  11547. * src/DefaultExtensionMessageFactory.{h, cc}
  11548. * test/DefaultExtensionMessageFactoryTest.cc
  11549. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11550. the container(peers and incomingPeers. The equality is determined by
  11551. Peer::id).
  11552. * test/DefaultPeerStorageTest.cc
  11553. * src/ExtensionMessage.h
  11554. * test/MockExtensionMessage.h
  11555. * src/ExtensionMessageFactory.h
  11556. * test/MockExtensionMessageFactory.h
  11557. * src/HandshakeExtensionMessage.{h, cc}
  11558. * test/HandshakeExtensionMessageTest.cc
  11559. * src/MetaEntry.h
  11560. * src/Peer.{h, cc}
  11561. * src/PeerInteractionCommand.cc
  11562. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11563. addIncomingPeer.
  11564. * src/PeerMessageUtil.{h, cc}
  11565. * src/PeerObject.h
  11566. * src/UTPexExtensionMessage.{h, cc}
  11567. * test/UTPexExtensionMessageTest.cc
  11568. * src/message.h
  11569. * src/prefs.h
  11570. Fixed the bug that returns incomplete data when it contains null
  11571. character. A convenient constructor was also added.
  11572. * src/Data.{h, cc}
  11573. Rewritten.
  11574. * src/CompactPeerListProcessor.cc
  11575. Fixed typos.
  11576. * src/message.h
  11577. * src/MetaFileUtil.cc
  11578. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11579. Added "Status Legend" label to the explanation text of 'stat' in
  11580. download result and moved it to the last. BUG#1848214
  11581. * src/RequestGroupMan.cc
  11582. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11583. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11584. * src/Makefie.am
  11585. * test/Makefile.am
  11586. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11587. Fixed the bug that prevents aria2 from loading cookie file when expire
  11588. value is greater than 2^31-1. BUG#1851066
  11589. * src/CookieBoxFactory.cc
  11590. * test/CookieBoxFactoryTest.cc
  11591. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11592. Fixed possible memory leak when an exception is thrown.
  11593. * src/XML2SAXMetalinkProcessor.cc
  11594. Added Expat support. If both libxml2 and Expat are installed, then
  11595. libxml2 is used by default.
  11596. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11597. ExpatMetalinkProcessor according to the configuration.
  11598. * src/ExpatMetalinkProcessor.{h, cc}
  11599. * src/main.cc: Removed libxml2 specific header and init/free function.
  11600. * src/MetalinkProcessorFactory.{h, cc}
  11601. * src/MetalinkHelper.cc
  11602. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11603. * src/MetalinkProcessor.h
  11604. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11605. MetalinkProcessorTest is used instead.
  11606. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11607. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11608. MetalinkProcessorFactory::newInstance().
  11609. * m4/libexpat.m4
  11610. * configure.ac: Added configuration options for libexpat.
  11611. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11612. Disabled -s option in metalink download.
  11613. * src/Metalink2RequestGroup.cc
  11614. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11615. If several protocols are available for a mirror in metalink file,
  11616. aria2 now use one of them. --metalink-preferred-protocol option was
  11617. added to specify the preference of protocol.
  11618. * src/AbstractCommand.cc
  11619. * src/OptionHandlerFactory.cc
  11620. * src/ServerHost.{h, cc}
  11621. * src/Metalink2RequestGroup.cc
  11622. * src/RequestGroup.{h, cc}
  11623. * test/RequestGroupTest.cc
  11624. * src/option_processing.cc
  11625. * src/prefs.h
  11626. * src/HttpResponseCommand.cc
  11627. * src/MetalinkResource.{h, cc}
  11628. * src/FtpNegotiationCommand.cc
  11629. * src/MetalinkEntry.{h, cc}
  11630. * src/MetalinkEntryTest.cc
  11631. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11632. Code cleanup and added debug log.
  11633. * src/PeerConnection.cc
  11634. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11635. Compiler error fix: applied the patch by Tiziano Mueller
  11636. * src/RequestGroup.cc
  11637. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11638. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11639. in stopped and completed event.
  11640. * src/AnnounceList.{h, cc}
  11641. * test/AnnounceListTest.cc
  11642. * src/DefaultBtAnnounce.cc
  11643. * test/DefaultBtAnnounceTest.cc
  11644. Sorted URLs.
  11645. * test/Metalink2RequestGroupTest.cc
  11646. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11647. Removed unnecessary string copy. Updated doc and corrected indentation.
  11648. * src/Base64.cc
  11649. Fixed compilation warnings
  11650. * test/DataTest.cc
  11651. * test/HttpRequestTest.cc
  11652. * test/MetaFileUtilTest.cc
  11653. * test/RequestTest.cc
  11654. * Release 0.12.0
  11655. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11656. Updated translations
  11657. * po/{de,fr,ja,nl,ru}.po
  11658. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11659. translations. Many thanks to translators.
  11660. * po/{ca,es,it,pt_BR,sv}.po
  11661. * po/LINGUAS
  11662. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11663. Added a notice about URL
  11664. * src/version_usage.cc
  11665. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11666. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11667. aria2 repeatedly sends stopped request when tracker returns error code.
  11668. * src/AnnounceList.cc
  11669. * test/AnnounceListTest.cc
  11670. * src/AnnounceTier.h
  11671. Added a message when ctrl-c is hit.
  11672. Now second ctrl-c is also handled in signal handler.
  11673. * src/RequestGroupMan.{h, cc}
  11674. * src/RequestGroup.{h, cc}
  11675. * src/MultiUrlRequestInfo.cc
  11676. * src/DownloadEngine.cc
  11677. * src/TrackerWatcherCommand.cc
  11678. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11679. Code cleanup
  11680. * src/Base64.cc (encode)
  11681. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11682. Changed Direct/IO enable/disable procesure in file allocation routine.
  11683. * src/SingleFileAllocationIterator.cc
  11684. (SingleFileAllocationIterator):
  11685. Disable directIO if offset is not multiple of 512.
  11686. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11687. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11688. Enable created SingleFileAllocationIterator's directIO.
  11689. * src/FileAllocationEntry.cc
  11690. (FileAllocationEntry): Enable directIO here.
  11691. (~FileAllocationEntry): Disable directIO here.
  11692. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11693. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11694. * src/Peer.{h, cc}
  11695. * src/DefaultPieceStorage.cc
  11696. * test/DefaultPieceStorageTest.cc
  11697. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11698. Rewritten direct I/O support routine
  11699. * src/SingleFileAllocationIterator.cc
  11700. * src/MultiDiskAdaptor.{h, cc}
  11701. * src/ByteArrayDiskWriter.h
  11702. * src/AbstractSingleDiskAdaptor.h
  11703. * src/AbstractDiskWriter.cc
  11704. * src/DefaultPieceStorage.cc
  11705. * src/DiskWriter.h
  11706. * src/BinaryStream.h
  11707. * src/IteratableChunkChecksumValidator.cc
  11708. * src/IteratableChecksumValidator.cc
  11709. * src/CheckIntegrityEntry.cc
  11710. * src/FileAllocationEntry.cc
  11711. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11712. Fixed typo
  11713. * src/version_usage.cc
  11714. Updated doc
  11715. * doc/aria2c.1.txt
  11716. * doc/aria2c.1
  11717. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11718. Fixed compile error without message digest support.
  11719. * src/FileMetalinkParserState.cc
  11720. * src/MetalinkParserController.{h, cc}
  11721. * test/XML2SAXMetalinkProcessorTest.cc
  11722. * test/MetalinkParserControllerTest.cc
  11723. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11724. Enable direct I/O support in checksum checking.
  11725. * src/IteratableChunkChecksumValidator.{h, cc}
  11726. * test/IteratableChunkChecksumValidatorTest.cc
  11727. * src/CheckIntegrityEntry.cc
  11728. * src/PieceHashCheckIntegrityEntry.cc
  11729. * src/IteratableChecksumValidator.{h, cc}
  11730. * src/BtCheckIntegrityEntry.cc: Added doc.
  11731. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11732. Added --allow-piece-length-change option.
  11733. * src/DefaultBtProgressInfoFile.cc
  11734. * test/DefaultBtProgressInfoFileTest.cc
  11735. * src/OptionHandlerFactory.cc
  11736. * src/option_processing.cc
  11737. * src/prefs.h
  11738. * src/version_usage.cc
  11739. * doc/aria2c.1.txt
  11740. * doc/aria2c.1
  11741. Fixed: duplicated result entry appears when exception is thrown in
  11742. RequestGroup::createInitiateConnectionCommand().
  11743. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11744. Add RequestGroup to _requestGroup after RequetGroup::
  11745. createInitiateConnectionCommand() succeeds.
  11746. Externalized message
  11747. * src/XML2SAXMetalinkProcessor.cc
  11748. * src/message.h
  11749. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11750. Forced download abort when received negative response from http/ftp
  11751. server.
  11752. * src/HttpResponseCommand.cc
  11753. * src/FtpNegotiationCommand.cc
  11754. * src/HttpResponse.cc
  11755. * src/FtpConnection.cc
  11756. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11757. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11758. the predecessor, Xml2MetalinkParser class.
  11759. I tested them against 94KB metalink file with 1234 chunk checksums.
  11760. The new one parsed it in 22msec, while it took 6000msec with old one.
  11761. * src/XML2SAXMetalinkProcessor.{h, cc}
  11762. * test/XML2SAXMetalinkProcessorTest.cc
  11763. * src/MetalinkParserController.{h, cc}
  11764. * test/MetalinkParserControllerTest.cc
  11765. * src/MetalinkParserState.h: Also added 16 subclasses.
  11766. * src/main.cc
  11767. * src/Metalink2RequestGroup.cc
  11768. * src/MetalinkHelper.cc
  11769. * src/MetalinkEntry.cc
  11770. * src/ChunkChecksum.h
  11771. Rewritten Base64 class for better performance.
  11772. * src/Base64.{h, cc}
  11773. * test/Base64Test.cc
  11774. * src/HttpRequest.cc
  11775. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11776. Fixed the bug#1841757: aria2 will connect to server to only get
  11777. file size.
  11778. * src/StreamFileAllocationEntry.cc
  11779. * src/option_processing.cc
  11780. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11781. downloads.
  11782. * src/FtpNegotiationCommand.cc
  11783. Suppressed wrong message when finding PreDownloadHandler
  11784. * src/RequestGroup.cc
  11785. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11786. Updated usage
  11787. * src/version_usage.cc
  11788. Updated man page
  11789. * doc/aria2c.1.txt
  11790. * doc/aria2c.1
  11791. Updated po files
  11792. * po/aria2c.pot
  11793. * po/*.po
  11794. * po/*.gmo
  11795. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11796. Eliminated g++-4.2 warning
  11797. * src/DownloadHandlerConstants.{h, cc}
  11798. * src/Util.cc
  11799. * test/MetaFileUtilTest.cc
  11800. * test/PStringBuildVisitorTest.cc
  11801. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11802. * src/RequestGroup.cc
  11803. * src/BtCheckIntegrityEntry.cc
  11804. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11805. Fixed a2io.h
  11806. * src/a2io.h
  11807. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11808. Added direct I/O support. The current implementation uses O_DIRECT,
  11809. which is not posix standard and is tested on linux 2.6.21.
  11810. Currently only file allocation uses direct I/O.
  11811. * src/SingleFileAllocationIterator.{h, cc}
  11812. * test/SingleFileAllocationIteratorTest.cc
  11813. * src/MultiFileAllocationIterator.{h, cc}
  11814. * test/MultiFileAllocationIteratorTest.cc
  11815. * src/BinaryStream.h
  11816. * src/DiskWriter.h
  11817. * src/AbstractDiskWriter.{h, cc}
  11818. * src/ByteArrayDiskWriter.h
  11819. * src/DiskAdaptor.h
  11820. * src/AbstractSingleDiskAdaptor.{h, cc}
  11821. * src/MultiDiskAdaptor.{h, cc}
  11822. * src/FileAllocationEntry.cc
  11823. * src/Util.{h, cc}
  11824. * src/OptionHandlerFactory.cc
  11825. * src/prefs.h
  11826. * src/version_usage.cc
  11827. * src/option_processing.cc
  11828. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11829. handleException.
  11830. * src/MultiFileAllocationIterator.cc
  11831. Added EINTR handling
  11832. * src/SocketCore.cc
  11833. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11834. Updated usage
  11835. * src/version_usage.cc
  11836. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11837. Applied Ross's patch for MinGW port.
  11838. * src/DownloadEngine.h
  11839. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11840. Set Content-Type to SingleFileDownloadContext when http response is
  11841. received.
  11842. * src/HttpResponseCommand.cc
  11843. * src/HttpResponse.{h, cc}
  11844. * test/HttpResponseTest.cc
  11845. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11846. Rewritten to add content-type support.
  11847. * src/DownloadHandler.{h, cc}
  11848. * src/BtPostDownloadHandler.{h, cc}
  11849. * test/BtPostDownloadHandlerTest.cc
  11850. * src/MetalinkPostDownloadHandler.{h, cc}
  11851. * test/MetalinkPostDownloadHandlerTest.cc
  11852. * src/PostDownloadHandler.{h, cc}
  11853. * src/DownloadHandlerConstants.{h, cc}
  11854. * src/RequestGroup.cc
  11855. * src/HttpResponseCommand.cc
  11856. * src/FtpNegotiationCommand.cc
  11857. * src/SingleFileDownloadContext.{h, cc}
  11858. * src/RequestGroup.h
  11859. * src/RequestGroupCriteria.h
  11860. * src/ContentTypeRequestGroupCriteria.h
  11861. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11862. If it is give, metalink/torrent file is not written to the disk, but
  11863. just is kept in memory. Parsing is occurred on memory.
  11864. * src/MetalinkHelper.{h, cc}
  11865. * src/MetalinkProcessor.h
  11866. * src/Xml2MetalinkProcessor.{h, cc}
  11867. * test/Xml2MetalinkProcessorTest.cc
  11868. * src/DownloadHandlerFactory.{h, cc}
  11869. * test/DownloadHandlerFactoryTest.cc
  11870. * src/PreDownloadHandler.{h, cc}
  11871. * src/OptionHandlerFactory.cc
  11872. * src/DefaultBtContext.{h, cc}
  11873. * test/DefaultBtContextTest.cc
  11874. * src/version_usage.cc
  11875. * src/Metalink2RequestGroup.{h, cc}
  11876. * src/RequestGroup.{h, cc}
  11877. * src/a2functional.h
  11878. * test/a2functionalTest.cc
  11879. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11880. * src/OptionHandlerImpl.h
  11881. * src/prefs.h
  11882. * src/Util.{h, cc}
  11883. * test/UtilTest.cc
  11884. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11885. memory usage.
  11886. * src/RequestGroupMan.{h, cc}
  11887. * src/DownloadEngine.cc
  11888. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11889. WeakHandle to SharedHandle because WeakHandle could be null.
  11890. * src/RequestGroup.{h, cc}
  11891. * src/DownloadEngineFactory.cc
  11892. * src/DownloadResult.h
  11893. Set totalLength after download finished
  11894. * src/UnknownLengthPieceStorage.{h, cc}
  11895. Keep torrent file specified in metalink in memory.
  11896. * src/Metalink2RequestGroup.cc
  11897. * src/BtDependency.cc
  11898. * src/TrueRequestGroupCriteria.h
  11899. Fixed the bug: seekg is used where seekp should be used.
  11900. * src/ByteArrayDiskWriter.cc
  11901. * test/ByteArraydiskWriterTest.cc
  11902. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11903. Fixed syntax error
  11904. * test/SequenceTest.cc
  11905. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11906. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11907. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11908. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11909. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11910. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11911. Added the check to see whether ares_host_callback accepts timeouts
  11912. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11913. * src/NameResolver.{h, cc}
  11914. * m4/libcares.m4
  11915. * configure.ac: Set C++ for language choice.
  11916. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11917. Fixed: compilation fails without c-ares/ares
  11918. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11919. Generate http/ftp commands only when download is incomplete.
  11920. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11921. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11922. Corrected typo. Examples are removed since they are available in man
  11923. page.
  11924. * src/version_usage.cc
  11925. Updated man page.
  11926. * doc/aria2c.1
  11927. * doc/aria2c.1.txt
  11928. * doc/makeman: Commented out sed command.
  11929. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11930. Throw DlAbortEx when a remote file is not found.
  11931. * src/HttpResponse.cc
  11932. * src/FtpNegotiationCommand.cc
  11933. * src/message.h
  11934. Overwrite an existing file if --allow-overwrite=true is given.
  11935. * src/RequestGroup.cc
  11936. Removed unused functions
  11937. * src/AbstractCommand.h
  11938. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11939. Removed 'extern' from 'extern typedef ...' in src/*.h
  11940. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11941. Updated usage
  11942. * src/version_usage.cc
  11943. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11944. Trim announce URL
  11945. * src/DefaultBtContext.cc
  11946. * test/ShaVisitorTest.cc
  11947. Trim argument s. Give trimed s to exception constructor.
  11948. * src/Util.cc (parseInt)(parseLLInt)
  11949. * test/UtilTest.cc
  11950. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11951. Set precision back to 1.
  11952. * src/ConsoleStatCalc.cc (calculateStat)
  11953. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11954. Replaced strtol with Util::parseInt
  11955. * src/ChunkedEncoding.cc
  11956. * src/HttpConnection.cc
  11957. * src/CookieBoxFactory.cc
  11958. * src/ParameterizedStringParser.cc
  11959. * src/Util.cc
  11960. * test/UtilTest.cc
  11961. * test/OptionHandlerTest.cc
  11962. * src/Request.cc
  11963. Throw exception when empty string is given. The message for exception
  11964. changed.
  11965. * src/Util.cc (parseInt)(parseLLInt)
  11966. * src/message.h
  11967. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11968. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11969. set to 1.
  11970. * src/ConsoleStatCalc.cc (calculateStat)
  11971. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11972. Preallocate non-requested file which is adjacent forward to requested
  11973. file('requested' files means the files given in --select-file option)
  11974. if they share a same piece.
  11975. This fixes long pause in the file system which doesn't support sparse
  11976. files like FAT32 while downloading.
  11977. * src/MultiFileAllocationIterator.{h, cc}
  11978. * test/MultiFileAllocationIteratorTest.cc
  11979. * src/FileEntry.{h, cc}
  11980. Removed unused _option.
  11981. * src/MultiDiskAdaptor.h
  11982. * test/MultiDiskAdaptorTest.cc
  11983. * src/DefaultPieceStorage.cc
  11984. Set the default value of --seed-ratio to 1.0.
  11985. If 0.0 is given, then seeding continues regardless of share ratio.
  11986. * src/version_usage.cc
  11987. * src/option_processing.cc
  11988. * src/BtSetup.cc
  11989. * doc/aria2c.1.txt
  11990. * doc/aria2c.1
  11991. Fixed: Selective download is not working in BitTorrent
  11992. * src/RequestGroup.cc
  11993. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11994. * src/PieceStorage.h
  11995. * test/MockPieceStorage.h
  11996. * src/UnknownLengthPieceStorage.h
  11997. * src/DefaultPieceStorage.{h, cc}
  11998. * src/Metalink2RequestGroup.cc
  11999. * src/RequestGroup.cc
  12000. * src/Sequence.h
  12001. * test/SequenceTest.cc
  12002. * src/IntSequence.h
  12003. * src/message.h
  12004. * src/Util.{h, cc}
  12005. * test/UtilTest.cc
  12006. Added new function 'parse' to catch exception thrown by subclass's
  12007. parseArg
  12008. * src/OptionHandler.h
  12009. * src/OptionParser.cc
  12010. * src/NameMatchOptionHandler.h
  12011. * src/OptionHandlerImpl.h
  12012. * test/OptionHandlerTest.cc
  12013. Added IntegerRangeOptionHandler. Used for --listen-port and
  12014. --select-file. Now --listen-port accepts range of port.
  12015. * src/OptionHandlerFactory.cc
  12016. * src/version_usage.cc
  12017. * src/OptionHandlerImpl.h
  12018. * src/option_processing.cc
  12019. * src/BtSetup.cc
  12020. * src/PeerListenCommand.{h, cc}
  12021. * doc/aria2c.1.txt
  12022. * doc/aria2c.1
  12023. Implemented operator< for Exception class to provide easy way to print
  12024. exception stack trace.
  12025. * src/Exception.{h, cc}
  12026. * src/main.cc
  12027. * src/option_processing.cc
  12028. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12029. * src/version_usage.cc
  12030. (showVersion): Reworked.
  12031. (showUsage): Added examples.
  12032. Removed Hint for total length and file name.
  12033. * src/Metalink2RequestGroup.cc
  12034. * src/RequestGroup.{h, cc}
  12035. * src/HttpResponseCommand.cc
  12036. * src/FtpNegotiationCommand.cc
  12037. Now --follow-torrent and --follow-metalink option work properly.
  12038. * src/RequestGroup.cc
  12039. Updated man page
  12040. * doc/aria2c.1.txt
  12041. * doc/aria2c.1
  12042. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12043. Removed.
  12044. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  12045. Use Segment::operator==()
  12046. * src/HttpConnection.cc
  12047. * src/Segment.h
  12048. Updated usage
  12049. * src/version_usage.cc
  12050. Added EINTR treatment.
  12051. * src/SocketCore.cc
  12052. * src/AbstractDiskWriter.cc
  12053. Rewritten.
  12054. * src/Util.cc (rangedFileCopy)
  12055. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12056. Fixed typo.
  12057. * src/version_usage.cc
  12058. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12059. Implemented. Now -c option works fine.
  12060. * src/DefaultPieceStorage.cc (markPiecesDone)
  12061. * test/DefaultPieceStorageTest.cc
  12062. Removed.
  12063. * src/SegmentMan.{h, cc}
  12064. (markAllPiecesDone)
  12065. (markPieceDone)
  12066. Synchronized po files with
  12067. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  12068. * src/fr.po
  12069. * src/ru.po
  12070. * src/de.po
  12071. * src/ja.po
  12072. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12073. Added ifdef and some modifications to compile without BitTorrent,
  12074. Metalink, MessageDigest
  12075. support.
  12076. * src/PieceHashCheckIntegrityEntry.cc
  12077. * src/MetalinkEntry.h
  12078. * src/version_usage.cc
  12079. * src/main.cc
  12080. * src/DownloadEngine.{h, cc}
  12081. * src/Metalink2RequestGroup.cc
  12082. * src/Peer.cc
  12083. * src/RequestGroup.cc
  12084. * src/MetalinkHelper.cc
  12085. * test/DefaultPieceStorageTest.cc
  12086. * test/MetalinkPostDownloadHandlerTest.cc
  12087. * test/Metalink2RequestGroupTest.cc
  12088. Hide TOTAL SPD when all downloads complete.
  12089. * src/ConsoleStatCalc.cc
  12090. Log target system information.
  12091. * src/main.cc
  12092. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12093. Now --metalink-location accepts a comma-deliminated list of locations.
  12094. * src/MetalinkEntry.{h, cc}
  12095. * test/MetalinkEntryTest.cc
  12096. * src/version_usage.cc
  12097. * src/Metalink2RequestGroup.cc
  12098. * src/Xml2MetalinkProcessor.cc
  12099. * test/Xml2MetalinkProcessorTest.cc
  12100. * doc/aria2c.1.txt
  12101. * doc/aria2c.1
  12102. * src/Util.cc (toUpper)(toLower): Rewritten.
  12103. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12104. Added the ability to detect duplicate download entry which is about to
  12105. download the same file other RequestGroup is downloading.
  12106. * src/RequestGroup.cc
  12107. * src/HttpResponseCommand.cc
  12108. * src/FtpNegotiationCommand.cc
  12109. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12110. Recalculates download progress when loading a control file,
  12111. if the piece length of DownloadContext is different from the one saved
  12112. in the control file. Currently in-flight pieces are ignored.
  12113. * src/DefaultBtProgressInfoFile.cc
  12114. * test/DefaultBtProgressInfoFileTest.cc
  12115. * src/Util.{h, cc}
  12116. * test/UtilTest.cc
  12117. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12118. Do not rotate tiers in announce-list.
  12119. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  12120. AnnounceList::allTiersFailed() used instead to detect whether all
  12121. tiers are tried and failed.
  12122. * test/DefaultBtAnnounceTest.cc
  12123. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  12124. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  12125. * test/AnnounceListTest.cc
  12126. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  12127. clause. Catch RecoverableException instead of DlRetryEx instead.
  12128. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12129. Implemented checksum validation feature(1 checksum for each file)
  12130. The validation takes place after the download.
  12131. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  12132. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  12133. * src/CheckIntegrityCommand.cc: Changed log message.
  12134. * src/Metalink2RequestGroup.cc: Set checksum to
  12135. SingleFileDownloadContext.
  12136. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  12137. PieceHashCheckIntegrity class.
  12138. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  12139. PieceHashCheckIntegrity class.
  12140. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  12141. * src/IteratableValidator.h: New class.
  12142. * src/message.h
  12143. * src/CheckIntegrityEntry.{h, cc}
  12144. * src/IteratableChunkChecksumValidator.{h, cc}
  12145. * src/SingleFileDownloadContext.h
  12146. * src/DownloadCommand.cc
  12147. --allow-overwrite=true is no longer needed to check file integrity
  12148. before download in BitTorrent download.
  12149. * src/RequestGroup.cc (getInitialCommand)
  12150. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  12151. throws exception.
  12152. * src/RequestGroupMan.cc (getInitialCommands)
  12153. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12154. urlencode the given url inside Request::parseUrl(...)
  12155. * src/Request.{h, cc}
  12156. * src/Util.{h, cc}
  12157. * test/RequestTest.cc
  12158. Removed #!metalink3! notation support because it is deleted from
  12159. the metalink specification.
  12160. * src/Request.{h, cc}
  12161. * test/RequestTest.cc
  12162. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12163. Don't connect server before checking file integrity at startup, if
  12164. filesize and output file path are known.
  12165. * src/AbstractCommand.cc
  12166. * src/StreamFileAllocationEntry.cc
  12167. * src/Metalink2RequestGroup.cc
  12168. * src/RequestGroup.{h, cc}
  12169. * src/HttpResponseCommand.cc
  12170. * src/FtpNegotiationCommand.cc
  12171. Added DownloadFailureException. If it is thrown, RequestGroup should
  12172. halt.
  12173. * src/AbstractCommand.cc
  12174. * src/DownloadFailureException.h
  12175. * src/RequestGroup.cc
  12176. Catch RecoverableException, instead of DlAbortEx.
  12177. * src/RequestGroupMan.cc
  12178. * src/FillRequestGroupCommand.cc
  12179. * src/MetaFileUtil.cc
  12180. * src/IteratableChunkChecksumValidator.cc
  12181. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  12182. getGID())
  12183. * src/CheckIntegrityCommand.cc
  12184. * src/message.h
  12185. Print gid instead of idx.
  12186. * src/RequestGroupMan.cc
  12187. Removed exception throwers declaration.
  12188. * src/DirectDiskAdaptor.{h, cc}
  12189. * src/SocketCore.{h, cc}
  12190. * src/MultiDiskAdaptor.{h, cc}
  12191. * src/HttpConnection.{h, cc}
  12192. * src/HttpResponse.{h, cc}
  12193. * src/DiskAdaptor.{h, cc}
  12194. * src/CopyDiskAdaptor.{h, cc}
  12195. * src/MultiDiskAdaptor.{h, cc}
  12196. * src/HttpHeaderProcessor.{h, cc}
  12197. * src/AbstractSingleDiskAdaptor.{h, cc}
  12198. * src/Util.{h, cc}
  12199. * test/UtilTest.cc
  12200. * src/DefaultDiskWriter.{h, cc}
  12201. * src/FtpConnection.{h, cc}
  12202. * src/AbstractDiskWriter.{h, cc}
  12203. Removed duplicate code.
  12204. * src/StreamCheckIntegrityEntry.cc
  12205. Removed unnecessary include.
  12206. * src/DiskWriter.h
  12207. Included Exception.h
  12208. * src/option_processing.cc
  12209. Included 2 files and added doc
  12210. * src/TrackerWatcherCommand.cc
  12211. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  12212. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12213. Changed CheckIntegrityEntry interface so that it can define
  12214. the action when all the chunk checksums are valid.
  12215. * src/CheckIntegrityEntry.h
  12216. * src/StreamCheckIntegrityEntry.{h, cc}
  12217. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  12218. are valid, then aira2 goes to seeding mode. Sometimes it is better
  12219. to exit rather than doing seeding. So, it would be good to toggle this
  12220. behavior.
  12221. * src/CheckIntegrityCommand.cc
  12222. * src/AbstractCommand.cc
  12223. * src/RequestGroup.cc
  12224. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12225. Reflect the download length of in-flight pieces.
  12226. It makes the download length readout more precise.
  12227. * src/DefaultPieceStorage.{h, cc}
  12228. * test/DefaultPieceStorageTest.cc
  12229. * src/a2functional.h
  12230. * test/a2functionalTest.cc
  12231. Lower CPU load when --max-download-limit is used.
  12232. There is up and down in speed indicator when enabling
  12233. http-pipelining but a download goes well. I think the problem is that
  12234. because http-pipelining is enabled, DownloadCommand is created for
  12235. each segment and in its constructor, PeerStat::downloadStart() is
  12236. called. In PeerStat::downloadStart(), speed calculation object is
  12237. reseted, which makes download speed zero.
  12238. * src/DownloadCommand.cc
  12239. Rewritten using accumulate.
  12240. * src/RequestGroupMan.cc (calculateStat)
  12241. Code clearnup.
  12242. * src/FtpNegotiationCommand.cc
  12243. * src/HttpResponseCommand.cc
  12244. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12245. Fixed: Can not resume: aria2 reports download already finished.
  12246. * src/AbstractCommand.{h, cc}
  12247. * src/HttpResponseCommand.cc
  12248. * src/FtpNegotiateCommand.cc
  12249. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12250. Now a file is stored in the directory specified in .metalnk file
  12251. (file[@name]).
  12252. * src/Metalink2RequestGroup.cc
  12253. Create the directory structure when opening the file if it doesn't
  12254. exist.
  12255. * src/AbstractDiskWriter.cc
  12256. * src/Util.{h, cc}
  12257. * src/File.h
  12258. * test/UtilTest.cc
  12259. Removed file name comparison
  12260. * src/Metalink2RequestGroup.cc
  12261. * src/HttpResponseCommand.cc
  12262. Rewritten using Util::mkdirs()
  12263. * src/FileEntry.cc (setupDir)
  12264. * test/FileEntryTest.cc
  12265. Updated doc
  12266. * src/SingleFileDownloadContext.h
  12267. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12268. Now SleepCommand dispatches nextCommand when halt is requested.
  12269. It avoids a possible long wait after hitting CTRL-C.
  12270. * src/SleepCommand.{h, cc}
  12271. * src/RequestGroupAware.{h, cc}
  12272. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12273. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  12274. to open listen port, then remove the port number from the tracker
  12275. request.
  12276. * src/DefaultBtAnnounce.cc
  12277. * test/DefaultBtAnnounceTest.cc
  12278. * test/MockPieceStorage.h
  12279. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  12280. them more testable.
  12281. * src/DefaultBtAnnounce.{h, cc}
  12282. * src/DefaultBtContext.{h, cc}
  12283. * src/Util.{h, cc}
  12284. * test/DefaultBtAnnounceTest.cc
  12285. * test/DefaultBtContextTest.cc
  12286. * test/UtilTest.cc
  12287. Added 'B' to upload bytes readout.
  12288. * src/ConsoleStatCalc.cc
  12289. Now the listen port for BitTorrent download is opened when it is
  12290. needed.
  12291. * src/DownloadEngineFactory.cc
  12292. * src/BtSetup.{h, cc}
  12293. * src/PeerListenCommand.{h, cc}
  12294. Now an exception thrown while parsing tracker response is now logged.
  12295. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  12296. called, which means no retry is made in this case, assuming a tracker
  12297. has a problem.
  12298. * src/TrackerWatcherCommand.cc
  12299. Fixed: downloading a file whose length is unkown fails.
  12300. * src/DownloadCommand.cc
  12301. Simplified prepareForNextSegment()
  12302. * src/DownloadCommand.cc
  12303. Updated
  12304. * po/POTFILES.in
  12305. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12306. Re-implemented a file listing for Metalink, which was dropped while
  12307. http/ftp/torrent integration was being implemented.
  12308. * src/MetalinkHelper.{h, cc}: New class.
  12309. * test/MetalinkHelperTest.cc
  12310. * src/main.cc
  12311. * src/Metalink2RequestGroup.cc
  12312. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12313. Added the ability to display the detailed torrent file information.
  12314. Now -S option gives not only a file listing, but also total download
  12315. length, info hash, announce URI, piece length, the number of pieces,
  12316. and mode(single or multi-torrent).
  12317. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  12318. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  12319. KiB)
  12320. * test/UtilTest.cc
  12321. * src/main.cc
  12322. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12323. Added ftp://USER:PASSWD@Servername automatic parsing.
  12324. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  12325. _password. Recognize username and password in URI.
  12326. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  12327. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  12328. * src/RequestFactory.{h, cc}: Removed.
  12329. * src/AuthConfigFactory.{h, cc}: New class.
  12330. * src/FtpConnection.cc: Use AuthConfigFactory.
  12331. * src/HttpRequest.cc: Use AuthConfigFactory.
  12332. * test/HttpRequestTest.cc: Updated.
  12333. * test/RequestTest.cc: Updated.
  12334. * test/AuthConfigFactoryTest.cc: New class.
  12335. * test/RequestFactoryTest.cc: Removed.
  12336. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12337. Use RequestGroup::allDownloadFinished() to decide whether the control
  12338. file should be removed or saved.
  12339. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  12340. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  12341. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12342. Use File::renameTo()
  12343. * src/DefaultBtProgressInfoFile.cc
  12344. Added --no-file-allocation-limit command-line option.
  12345. * src/version_usage.cc
  12346. * src/option_processing.cc
  12347. * src/OptionHandlerFactory.cc
  12348. * src/RequestGroup.{h, cc}
  12349. * src/BtCheckIntegrityEntry.cc
  12350. * src/StreamCheckIntegrityEntry.cc
  12351. * src/prefs.h
  12352. * doc/aria2c.1.txt
  12353. * doc/aria2c.1
  12354. Now prealloc is the default value for --file-allocation option.
  12355. * src/version_usage.cc
  12356. * src/option_processing.cc
  12357. * doc/aria2c.1.txt
  12358. * doc/aria2c.1
  12359. Don't URL-encode user-agent.
  12360. * src/HttpRequest.cc
  12361. Updated translations
  12362. * po/LINGUAS: Added nl for Dutch translation.
  12363. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  12364. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  12365. * po/POTFILES.in: Updated.
  12366. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12367. Added the ability to recognize url-list in a torrent file.
  12368. The retrieved URLs are attached to the corresponding FileEntry.
  12369. * src/DefaultBtContext.{h, cc}
  12370. * src/FileEntry.{h, cc}
  12371. * test/DefaultBtContextTest.cc
  12372. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12373. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12374. after the download finishes.
  12375. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12376. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12377. the data smaller than block length.
  12378. A block length can be specified by constructor's argument.
  12379. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12380. Get a missing piece in the range of given FileEntry. This function is
  12381. not used in the program yet.
  12382. * src/Util.h: Added some macros.
  12383. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12384. Added HTTP/1.1 keep alive and pipelining support.
  12385. See --enable-http-keep-alive and --enable-http-pipelining option.
  12386. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12387. Segment.
  12388. * src/HttpDownloadCommand.{h, cc}
  12389. * src/OptionHandlerFactory.cc
  12390. * src/HttpConnection.{h, cc}
  12391. * src/version_usage.cc
  12392. * src/HttpInitiateConnectionCommand.cc
  12393. * src/FtpInitiateConnectionCommand.cc
  12394. * src/Segment.h
  12395. * src/HttpRequestCommand.{h, cc}
  12396. * src/option_processing.cc
  12397. * src/prefs.h
  12398. * src/HttpResponseCommand.cc
  12399. * src/SegmentMan.{h, cc}
  12400. * src/FtpNegotiateCommand.cc
  12401. * src/HttpProxyResponseCommand.cc
  12402. * src/Request.cc
  12403. * src/HttpRequest.cc
  12404. * src/DownloadCommand.cc
  12405. * test/HttpRequestTest.cc
  12406. * test/RequestTest.cc
  12407. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12408. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12409. finished.
  12410. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12411. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12412. catching it inside the method.
  12413. When no file entry is found in a metalink without querying user
  12414. preferences, throw the exception with the error message that suggests
  12415. metalink file is probably broken.
  12416. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12417. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12418. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12419. processed.
  12420. * src/RequestGroupMan.cc (removeStoppedGroup)
  12421. Added debug message.
  12422. * src/BtPostDownloadHandler.cc
  12423. * src/MetalinkPostDownloadHandler.cc
  12424. * src/PostDownloadHandler.{h, cc}
  12425. * src/RequestGroup.cc
  12426. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12427. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12428. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12429. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12430. stops and there are any unfinished or in-progress downloads.
  12431. Added the legend of "stat".
  12432. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12433. Throw exception when chunck checksum verification fails.
  12434. * src/DownloadCommand.cc (validatePieceHash): New function.
  12435. * src/PiecedSegment.{h, cc} (clear): New function.
  12436. * src/GrowSegment.{h, cc} (clear): New function.
  12437. * src/Segment.h (clear): New function.
  12438. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12439. * test/SegmentTest.cc
  12440. * test/GrowSegmentTest.cc
  12441. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12442. Do not send referer when redirected.
  12443. * src/Request.cc (redirectUrl)
  12444. * test/RequestTest.cc
  12445. * test/HttpRequestTest.cc
  12446. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12447. Implemented BitTorrent/http/ftp integrated download.
  12448. I've rewritten lots of files and now some headers have forward
  12449. class declarations to reduce compile time.
  12450. The implementation is extremely alpha stage, I recommend to use this
  12451. for testing purpose only.
  12452. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12453. Fixed the compilation error on 64bit platform.
  12454. * test/HttpHeaderProcessorTest.cc
  12455. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12456. Merged Ross's patch that fixes compilation problem in MinGW
  12457. * test/DefaultBtProgressInfoFileTest.cc
  12458. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12459. Updated fr.po by sebone
  12460. * po/fr.po
  12461. Updated man page.
  12462. * doc/aria2c.1.txt
  12463. * Release 0.11.3
  12464. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12465. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12466. failure in Metalink.
  12467. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12468. Automatically save *.aria2 control file of http/ftp download in every
  12469. 60 seconds.
  12470. * src/AutoSaveCommand.{h, cc}: New class.
  12471. * src/TimeBasedCommand.{h, cc}: New class.
  12472. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12473. Disable parameterized URI support by default. Added -P option to
  12474. enable the feature.
  12475. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12476. * src/OptionHandlerFactory.cc
  12477. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12478. Updated Japanese translation.
  12479. * po/ja.po
  12480. Updated man page.
  12481. * doc/aria2c.1.txt
  12482. * Release 0.11.3-rc
  12483. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12484. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12485. it is successful, then renamed to *.aria2.
  12486. This prevents *.aria2 file from being truncated or corrupted when
  12487. file system becomes out of space.
  12488. * src/DefaultBtProgressInfoFile.cc (save)
  12489. * src/SegmentMan.cc (save)
  12490. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12491. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12492. Reduced the fragmentation of bitfield in http/ftp download.
  12493. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12494. * test/BitfieldManTest.cc
  12495. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12496. Added the ability to disable segmented download in .metalink.
  12497. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12498. 'url' tag.
  12499. * src/MetalinkEntry.{h, cc}
  12500. * src/RequestResource.{h, cc}
  12501. * src/MetalinkRequestInfo.cc
  12502. * src/Xml2MetalinkProcessor.cc
  12503. * test/Xml2MetalinkProcessorTest.cc
  12504. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12505. Added parameterized URI support.
  12506. * src/main.cc: -Z option added.
  12507. * src/OptionHandlerFactory.cc
  12508. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12509. * src/PStringDatum.h: New class.
  12510. * src/PStringSegment.{h,cc}: New class.
  12511. * src/PStringNumLoop.h: New class.
  12512. * src/PStringSelect.h: New class.
  12513. * src/NumberDecorator.h: New class.
  12514. * src/FixedWidthNumberDecorator.h: New class.
  12515. * src/AlphaNumberDecorator.h: New class.
  12516. * src/PStringVisitor.h: New class.
  12517. * src/PStringBuildVisitor.{h,cc}: New class.
  12518. * src/ParameterizedStringParser.{h,cc}: New class.
  12519. * src/Util.{h,cc}
  12520. (isNumber): New function.
  12521. (isLowercase): New function.
  12522. (isUppercase): New function.
  12523. (alphaToNum): New function.
  12524. * test/ParameterizedStringParserTest.cc: New class.
  12525. * test/AlphaNumberDecoratorTest.cc: New class.
  12526. * test/PStringBuildVisitorTest.cc: New class.
  12527. * test/UtilTest.cc
  12528. (testIsNumber): New function.
  12529. (testIsLowercase): New function.
  12530. (testIsUppercase): New function.
  12531. (testAlphaToNum): New function.
  12532. Added '\n' after the error message
  12533. * src/RequestInfo.h (printDownloadAbortMessage)
  12534. Added auto file renaming feature in http(s)/ftp download.
  12535. * src/main.cc: Added --auto-file-renaming command-line option.
  12536. * src/OptionHandlerFactory.cc
  12537. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12538. * src/RequestGroup.{h, cc}
  12539. (shouldCancelDownloadForSafety): Rewritten
  12540. (tryAutoFileRenaming): New function.
  12541. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12542. * src/HttpResponseCommand.cc
  12543. (executeInternal): Removed the call to RequestGroupMan::
  12544. isSameFileBeingDownloaded()
  12545. * src/FtpNegotiateCommand.cc
  12546. (recvSize): Removed the call to RequestGroupMan::
  12547. isSameFileBeingDownloaded()
  12548. * test/RequestGroupTest.cc: New class.
  12549. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12550. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12551. IO.
  12552. * src/DefaultBtProgressInfoFile.cc
  12553. * src/MetaFileUtil.cc
  12554. * src/SimpleLogger.cc
  12555. * src/SegmentMan.cc
  12556. * src/Util.cc
  12557. * src/Platform.cc
  12558. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12559. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12560. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12561. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12562. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12563. Fixed the bug that prevents file allocation is not done when
  12564. dowloading multi-torrent file.
  12565. * src/AbstractDiskWriter.cc (openFile)
  12566. Increase the maximum number of -j option from 15 to 45.
  12567. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12568. Added fr.po, thanks to Charles Landemaine.
  12569. * po/fr.po
  12570. * po/LINGUAS
  12571. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12572. gcc 3.4.4 support:
  12573. * src/DefaultBtContext.cc: int32_t -> int
  12574. * src/main.cc: int -> int32_t, int32_t -> int
  12575. * src/messageDigest.h: uint32_t -> unsigned int
  12576. * src/NameResolver.h: int32_t -> int
  12577. * src/PeerConnection.cc: int -> int32_t
  12578. * src/SpeedCalc.cc: int32_t -> int
  12579. * src/TrackerUpdateCommand.h: int -> int32_t
  12580. * src/Util.cc: int32_t -> int
  12581. * src/Util.h: int32_t -> int
  12582. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12583. * test/AnnounceListTest.cc: int -> int32_t
  12584. * test/ChunkedEncodingTest.cc: int -> int32_t
  12585. * test/DataTest.cc: int -> int32_t
  12586. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12587. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12588. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12589. * test/FeatureConfigTest.cc: int -> int32_t
  12590. * test/MetalinkEntryTest.cc: int -> int32_t
  12591. * test/MockBtRequestFactory.h: int -> int32_t
  12592. * test/MockPieceStorage.h: int -> int32_t
  12593. * test/OptionTest.cc: int -> int32_t
  12594. * test/RequestTest.cc: int -> int32_t
  12595. * test/SegmentManTest.cc: int -> int32_t
  12596. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12597. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12598. Move sleep functions to Util class:
  12599. * src/Util.cc
  12600. (sleep): New function.
  12601. (usleep): New function.
  12602. * src/DownloadCommand.cc: sleep -> Util::sleep
  12603. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12604. MinGW build enhancements. The following files are added:
  12605. * src/timegm.{c,h}
  12606. Changes to support the above new files:
  12607. * configure.ac
  12608. * src/Makefile.am
  12609. * src/a2time.h
  12610. * src/Util.cc:
  12611. * src/strptime.c: Added support for %Z option.
  12612. Fixed MinGW non-blocking bug.
  12613. * src/SocketCore.cc
  12614. * src/HttpRequestCommand.cc
  12615. Miscellenous build fixes/enhancements.
  12616. * configure.ac: Added summary report.
  12617. * src/Platform.h: Tweaked #include's.
  12618. * src/a2netcompat.h: Tweaked #include's.
  12619. * src/strptime.h: Tweaked #include's.
  12620. * src/gai_strerror.c: Tweaked #include's.
  12621. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12622. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12623. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12624. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12625. Increased the initial connection size in BitTorrent download to 40.
  12626. * src/BtRuntime.h
  12627. Added the usage message of --peer-id-prefix option.
  12628. * src/main.cc
  12629. * Release 0.11.2
  12630. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12631. MessageDigestHelper is introduced in order to simplify the use
  12632. of message digest. Removed repeated code.
  12633. The message digest algorithm is now specified by string, like "sha1",
  12634. "md5".
  12635. * src/messageDigest.{h, cc}
  12636. * src/MessageDigestHelper.{h, cc}: New class.
  12637. * src/DefaultPieceStorage.cc
  12638. * src/DefaultBtContext.{h, cc}
  12639. (computeFastSet): New function.
  12640. (setInfoHash): Added for unit testing.
  12641. (setNumPieces): Added for unit testing.
  12642. * src/DefaultBtInteractive.cc
  12643. * src/BtPieceMessage.cc
  12644. * src/Peer.cc
  12645. * src/Checksum.h
  12646. * src/message.h
  12647. * src/IteratableChecksumValidator.h
  12648. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12649. inside it.
  12650. * src/SegmentMan.{h, cc}
  12651. (checkIntegrity): Removed.
  12652. * src/IteratableChunkChecksumValidator.{h, cc}
  12653. * src/Util.h
  12654. (sha1Sum): Removed.
  12655. (simpleMessageDigest): Removed.
  12656. (fileChecksum): Removed.
  12657. (computeFastSet): Removed.
  12658. * src/ShaVisitor.cc
  12659. * src/ChunkChecksum.h
  12660. * src/DownloadCommand.cc
  12661. Removed messageDigest virtual functions.
  12662. * src/MultiDiskAdaptor.{h, cc}
  12663. * src/DiskAdaptor.h
  12664. * src/ByteArrayDiskWriter.h
  12665. * src/DiskWriter.h
  12666. * src/DiskAdaptorWriter.h
  12667. * src/AbstractSingleDiskAdaptor.{h, cc}
  12668. * src/AbstractDiskWriter.{h, cc}
  12669. Fixed comilation error when message digest is disabled.
  12670. * src/MetalinkEntry.{h, cc}
  12671. * src/MetalinkRequestInfo.cc
  12672. Removed srandom and random.
  12673. * src/SimpleRandomizer.h
  12674. Added size() virtual function to DiskAdaptor
  12675. * src/MultiDiskAdaptor.h
  12676. Fixed the bug that causes that files are not opened correctly in
  12677. multi-file torrent.
  12678. * src/TorrentRequestInfo.cc
  12679. * src/MultiDiskAdaptor.cc
  12680. Added SHA256 support
  12681. * src/messageDigest.cc
  12682. * src/Xml2MetalinkProcessor.cc
  12683. Show supported message digest algorithms
  12684. * src/main.cc
  12685. Updated contact info.
  12686. * src/main.cc
  12687. Applied Ross's patch
  12688. * src/a2netcompat.h
  12689. * src/main.cc
  12690. Fixed the bug that prevents a remote metalink from not being processed
  12691. even if '-o foo.metalink' is specified.
  12692. * src/MetalinkRequestInfo.cc
  12693. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12694. Merged Dan's patch:
  12695. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12696. Use va_copy to avoid core dump on amd64:
  12697. * src/SimpleLogger.cc
  12698. Updated contact info.
  12699. * src/main.cc
  12700. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12701. digest is not available.
  12702. * src/MetalinkEntry.h
  12703. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12704. Make a2netcompat.h include a2io.h to fix compilation error:
  12705. * src/a2netcompat.h
  12706. * src/SocketCore.cc: Removed include of a2io.h
  12707. * src/Util.cc: Removed include of a2io.h
  12708. Gather time related functions to a2time.h:
  12709. * src/a2time.h: New file.
  12710. * src/DefaultPeerStorage.cc
  12711. * src/SimpleLogger.cc
  12712. * src/Util.{h, cc}
  12713. * src/SimpleRandomizer.h
  12714. * src/TimeA2.{h,cc}
  12715. * src/DownloadCommand.cc
  12716. * src/main.cc
  12717. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12718. a2netcompat.h:
  12719. * src/NameResolver.cc
  12720. Fixed compilation error without openssl:
  12721. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12722. Added default block to suppress compiler warnings:
  12723. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12724. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12725. MinGW build enhancements. The following files are added:
  12726. * src/gai_strerror.{c,h}
  12727. * src/gettimeofday.{c,h}
  12728. Changes to support the above new files:
  12729. * configure.ac
  12730. * src/Makefile.am
  12731. * src/a2netcompat.h
  12732. * src/TimeA2.cc
  12733. * src/DefaultPeerStorage.cc
  12734. * src/NameResolver.cc: removed mingw_strerror() function.
  12735. * src/SocketCore.cc: removed mingw_strerror() function.
  12736. Miscellaneous MinGW build fixes.
  12737. * src/a2io.h: Use _lseeki64() instead of lseek()
  12738. * src/common.h
  12739. * src/DefaultFileAllocator.cc
  12740. * src/GlowFileAllocator.cc
  12741. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12742. * src/NameResolver.cc
  12743. (callback): Changed int32_t to int.
  12744. (resolve): Changed int32_t to int.
  12745. * src/Platform.cc
  12746. * src/Platform.h
  12747. * test/MultiDiskWriterTest.cc
  12748. * test/PeerMessageUtilTest.cc
  12749. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12750. Other enhancements and fixes.
  12751. * src/HttpRequestCommand.cc
  12752. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12753. * src/SocketCore.cc:
  12754. (error): New function to abstract errno/WSAGetLastError().
  12755. (errorMsg): New function to abstract errno/WSAGetLastError().
  12756. (initiateSecureConnection): Added more detailed error reporting.
  12757. * src/SocketCore.h: Added private variable blocking, to allow
  12758. proper handling of OpenSSL psuedo-errors.
  12759. * src/message.h
  12760. (EX_SSL_INIT_FAILURE)
  12761. (EX_SSL_IO_ERROR)
  12762. (EX_SSL_PROTOCOL_ERROR)
  12763. (EX_SSL_UNKNOWN_ERROR)
  12764. (EX_SSL_CONNECT_ERROR)
  12765. (EX_SOCKET_BLOCKING)
  12766. (EX_SOCKET_NONBLOCKING)
  12767. (EX_SOCKET_UNKNOWN_ERROR)
  12768. * src/Util.cc
  12769. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12770. reserved name.
  12771. (httpGMT): Fixed typo.
  12772. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12773. Merged Ross's win32 patch(manually)
  12774. In the course of merging, following files are added.
  12775. * src/strptime.{h,c}
  12776. * src/libgen.{h,c}
  12777. * src/inet_aton.{h,c}
  12778. * src/Platform.{h,cc}
  12779. * src/localtime_r.{h,c}
  12780. * src/getaddrinfo.{h,c}
  12781. I've gethered network related things, and put them to following file:
  12782. * src/a2netcompat.h
  12783. Also io related things are put to following file:
  12784. * src/a2io.h
  12785. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12786. * src/message.h
  12787. (MSG_ALLOCATION_COMPLETED)
  12788. (EX_TOO_LARGE_FILE)
  12789. (EX_SIZE_MISMATCH)
  12790. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12791. (EX_INVALID_CHUNK_CHECKSUM)
  12792. (EX_INVALID_RANGE_HEADER)
  12793. * src/FileAllocationCommand.cc
  12794. * src/HttpResponse.cc
  12795. * src/RequestGroup.cc
  12796. * src/MultiDiskAdaptor.cc
  12797. * src/OptionHandlerImpl.h
  12798. * src/HttpResponseCommand.cc
  12799. * src/FtpNegotiateCommand.cc
  12800. * src/IteratableChecksumValidator.cc
  12801. * src/SegmentMan.cc
  12802. * src/ChunkChecksumValidator.cc
  12803. Added Randomizer::getRandomNumber(long int)
  12804. * src/Randomizer.h (getRandomNumber)
  12805. * src/SimpleRandomizer.h (getRandomNumber)
  12806. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12807. * src/Util.cc (randomAlpha): Use this new function.
  12808. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12809. Converted int's to in32_t. long long int's are also converted to
  12810. int64_t
  12811. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12812. Fixed the bug that prevents cookies from being sent to the server
  12813. if the domain of cookie is FQDN and starts with ".".
  12814. * src/Cookie.cc (match)
  12815. To add the ability to change peer id.
  12816. * src/DefaultBtContext.h
  12817. (_peerIdPrefix): New variable
  12818. (setPeerIdPrefix): New function.
  12819. * src/torrentRequestInfo.cc
  12820. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12821. DefaultBtContext.
  12822. * src/main.cc (main): Added peer-id-prefix command-line option.
  12823. The usage message is not added yet.
  12824. * src/DefaultBtContext.cc
  12825. (generatePeerId): Use _peerIdPrefix.
  12826. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12827. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12828. Fixed the bug that prevents filename in content-disposition from
  12829. being retrieved when filename is not quoted.
  12830. * src/Util.cc (getContentDispositionFilename)
  12831. Fixed the bug that causes infinate loop and memory leak when file open
  12832. operation failed.
  12833. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12834. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12835. Fixed the bug that causes segfault when all URIs specified are
  12836. unsupported.
  12837. * src/RequestGroupMan.cc (getInitialCommands)
  12838. Check if RequestGroup::createNextCommand() returns empty list of
  12839. commands.
  12840. * src/RequestGroup.cc (createNextCommand)
  12841. Change log level from info to error so that users can notice that
  12842. an error occurred.
  12843. Fixed the bug that causes segfault when a zero-sized file is
  12844. downloaded.
  12845. * src/BitfieldMan.cc (isAllBitSet)
  12846. Return true if bitfieldLength is 0.
  12847. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12848. * src/main.cc
  12849. (showUsage): Added 3 usage examples for metalink download.
  12850. Replace MetalinkChunkChecksum with ChunkChecksum.
  12851. * src/MetalinkChunkChecksum.h: Removed.
  12852. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12853. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12854. * src/Xml2MetalinkProcessor.cc
  12855. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12856. * src/MetalinkRequestInfo.cc (execute)
  12857. * Release 0.11.1
  12858. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12859. Reads URIs from stdin when "-i -" is specified.
  12860. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12861. * src/UriListParser.h, src/UriListParser.cc: New class.
  12862. * src/StreamUriListParser.h: New class.
  12863. * src/FileUriListParser.h: New class.
  12864. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12865. instead of UriFileListParser.
  12866. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12867. Made console readout more readable.
  12868. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12869. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12870. Fix the bug that causes -s option not to work.
  12871. * src/main.cc (main)
  12872. * src/a2algo.h: New file.
  12873. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12874. Create directory structure specified in metalink file.
  12875. * src/RequestGroup.h, src/RequestGroup.cc
  12876. (initAndOpenFile): Create a directory to store files if it does not
  12877. exist.
  12878. (getDir): New function.
  12879. Added ETA and download speed for an individual file to readout.
  12880. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12881. * src/RequestGroup.h
  12882. (calculateDownloadSpeed): New function.
  12883. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12884. Made -S option work with metalink file and provided selective download
  12885. to metalink.
  12886. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12887. (filename): Removed.
  12888. (file): New variable.
  12889. (size): Removed.
  12890. (operator=): Updated.
  12891. (getPath): New function.
  12892. (getLength): New function.
  12893. (toFileEntry): New function.
  12894. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12895. (execute): Use toStream.
  12896. (showFileEntry): Removed.
  12897. * src/MetalinkRequestInfo.h
  12898. (targetFiles): New variable.
  12899. (setTargetFiles): New variable.
  12900. * src/MetalinkRequestInfo.cc
  12901. (execute): Added the ability to print file information included in
  12902. a metalink file.
  12903. Added selective download mode to metalink.
  12904. * src/main.cc
  12905. (showUsage): Updated to denote that -S and --select-file options are
  12906. applicable to metalink.
  12907. * src/FileEntry.h
  12908. (operator=): New function.
  12909. (getBasename): New function.
  12910. (getDirname): New function.
  12911. * src/Util.h, src/Util.cc
  12912. (toStream): New function.
  12913. * src/Xml2MetalinkProcessor.cc: Updated.
  12914. Made aria2 work with metalink with directory structure.
  12915. * src/File.h, src/File.cc
  12916. (getBasename): New function.
  12917. (getDirname): New function.
  12918. * src/RequestGroup.h, src/RequestGroup.cc
  12919. (_topDir): New variable.
  12920. (setTopDir): New function.
  12921. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12922. Rewrote HTTP header parsing with stringstream.
  12923. * src/HttpConnection.h, src/HttpConnection.cc
  12924. (HttpRequestEntry): New class.
  12925. (headerBuf): Removed.
  12926. (headerBufLength): Removed.
  12927. (outstandingHttpRequests): Now its element type is
  12928. HttpRequestEntryHandle.
  12929. (findEndOfHeader): Removed.
  12930. (receiveResponse): Rewritten.
  12931. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12932. Updated doc for -j option to notice that it should be used with -i
  12933. option.
  12934. * src/main.cc (showUsage)
  12935. Removed unused classes.
  12936. * src/RequestInfo.h
  12937. (FileInfo): Removed.
  12938. (checksum): Removed.
  12939. (fileInfo): Removed.
  12940. (setChecksum): Removed.
  12941. (getChecksum): Removed.
  12942. (getFileInfo): Removed.
  12943. Use ISO units.
  12944. * src/ConsoleDownloadEngine.cc
  12945. * src/TorrentConsoleDownloadEngine.cc
  12946. * src/Util.cc (abbrevSize)
  12947. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12948. Added the default listening ports to the help message.
  12949. * src/main.cc (showUsage)
  12950. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12951. Reduce the number of calls to gettimeofday to lower CPU load.
  12952. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12953. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12954. * src/Peer.h (calculateUploadSpeed): New function.
  12955. (calculateDownloadSpeed): New function.
  12956. * src/DefaultPeerStorage.cc
  12957. (CalculateStat): Added _now variable.
  12958. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12959. and Peer::calculateUploadSpeed(const struct timeval&)
  12960. Drop connection if no request or piece message is exchanged in
  12961. a certain interval.
  12962. * src/DefaultBtInteractive.h
  12963. (btRuntime): New variable.
  12964. (inactiveCheckPoint): New variable.
  12965. (checkActiveInteraction): New function.
  12966. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12967. request or piece message is received.
  12968. (checkActiveInteraction): New function.
  12969. (doInteractionProcessing): Call checkActiveInteraction.
  12970. Fixed the bug that causes remote Metalink and Torrent files are not
  12971. processed.
  12972. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12973. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12974. Changed format of log file.
  12975. * src/SimpleLogger.cc
  12976. * Release 0.11.0
  12977. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12978. * src/AbstractCommand.cc
  12979. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12980. MSG_MAX_TRY from error to info.
  12981. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12982. * src/message.h
  12983. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12984. (MSG_DOWNLOAD_ABORTED): Added %s.
  12985. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12986. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12987. * src/PeerAbstractCommand.cc
  12988. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12989. * src/Request.h
  12990. (cookieBox): Made ShardHandle.
  12991. * src/RequestGroup.h, src/RequestGroup.cc
  12992. (createNextCommandWithAdj): New function.
  12993. * src/FileAllocationCommand.cc
  12994. (executeInternal): Use createNextCommandWithAdj().
  12995. * src/CheckIntegrityCommand.cc
  12996. (executeInternal): Use createNextCommandWithAdj().
  12997. Added --load-cookies command-option.
  12998. * src/OptionHandlerFactory.cc
  12999. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  13000. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  13001. Now aria2 can handle cookie's expiration date.
  13002. * src/Cookie.h (expires): Changed its type to time_t.
  13003. * src/main.cc: Added --load-cookies command-line option.
  13004. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  13005. * src/Util.h, src/Util.cc (httpGMT): New function.
  13006. * src/Request.cc (Request): Initialize cookieBox using
  13007. CookieBoxFactory.
  13008. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  13009. * src/CookieParser.h, src/CookieParser.cc: New class.
  13010. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  13011. * src/HttpResponseCommand.cc
  13012. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  13013. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  13014. download.
  13015. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13016. Added -j command-line option.
  13017. * src/OptionHandlerFactory.cc (createOptionHandlers)
  13018. * src/main.cc
  13019. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  13020. Rewritten using stringstream.
  13021. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  13022. Rewritten using stringstream.
  13023. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13024. Make download size shown in MB, KB.
  13025. * src/ConsoleDownloadEngine.h (sendStatistics)
  13026. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  13027. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13028. Accept incoming connections if download rate is low.
  13029. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  13030. (_lowestSpeedLimit): New variable.
  13031. (setLowestSpeedLimit): New function.
  13032. (execute): Accept incoming connections if download rate is low.
  13033. MAX_PEERS is ignored in this case.
  13034. Disable PREF_OUT in multiple concurrent download:
  13035. * src/RequestGroup.h, src/RequestGroup.cc
  13036. (setUserDefinedFilename): New function.
  13037. * src/DownloadEngineFactory.cc
  13038. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  13039. concurrent download.
  13040. * src/DefaultSegmentManFactory.cc
  13041. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  13042. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13043. RequestGroup::getNextCommand() was renamed to createNextCommand().
  13044. Added its overloaded method.
  13045. * src/RequestGroup.h
  13046. (_numConcurrentCommand): New variable.
  13047. (setNumConcurrentCommand): New function.
  13048. * src/RequestGroup.cc
  13049. Abort download if same file is being downloaded concurrently.
  13050. * src/RequestGroup.h, src/RequestGroupMan.cc
  13051. (isSameFileBeingDownloaded): New function.
  13052. * src/HttpResponseCommand.cc (executeInternal)
  13053. * src/FtpNegotiateCommand.cc (recvSize)
  13054. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  13055. * main.cc: Added help message for -i option.
  13056. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13057. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  13058. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  13059. * src/MetalinkEntry.h
  13060. (checksum): Changed to ChecksumHandle
  13061. * src/MetalinkRequestInfo.cc
  13062. (checksum): Changed to ChecksumHandle
  13063. * src/File.cc
  13064. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  13065. * src/common.h
  13066. (DIR_OPEN_MODE): New definition
  13067. * src/RequestGroup.cc
  13068. (prepareForNextAction): Added an argument.
  13069. * src/message.h
  13070. (MSG_GOOD_CHECKSUM): New definition
  13071. (MSG_BAD_CHECKSUM): New definition
  13072. * src/HttpResponseCommand.cc
  13073. (handleDefaultEncoding): Continue download sequence in new
  13074. non-segmented download.
  13075. * src/FileAllocationEntry.h
  13076. (_nextDownloadCommand): New variable.
  13077. * src/DownloadCommand.cc
  13078. (prepareForNextSegment): Create ChecksumCommand if checksum is
  13079. available.
  13080. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  13081. * src/IteratableChecksumValidator.h,
  13082. src/IteratableChecksumValidator.cc: New class.
  13083. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  13084. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13085. Change file mode to 666:
  13086. * src/common.h (OPEN_MODE): New definition.
  13087. * src/File.cc
  13088. * src/Util.cc
  13089. * src/Directry.cc
  13090. * src/AbstractDiskWriter.cc
  13091. Change the level of log message "download aborted" to debug:
  13092. * src/PeerAbstractCommand.cc (execute)
  13093. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  13094. * src/TrackerWatcherCommand.cc
  13095. (createCommand): Sleep some seconds after request failed.
  13096. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  13097. then abort tracker request.
  13098. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13099. * Added the simultaneous download feature.
  13100. * src/main.cc: Print "Exception caught: " when exception is caught.
  13101. Use CUIDCounter instead of BtRuntime::getNewCuid():
  13102. * src/ActivePeerConnectionCommand.cc
  13103. * src/PeerInteractionCommand.cc
  13104. * src/BtRuntime.h
  13105. (cuidCounter): Removed.
  13106. (getNewCuid): Removed.
  13107. * src/DownloadEngineFactory.cc
  13108. * src/PeerListenCommand.cc
  13109. * src/TrackerUpdateCommand.cc
  13110. * src/PeerInitiateConnectionCommand.cc
  13111. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13112. * src/PeerAbstractCommand.cc
  13113. (onAbort): Call PeerStorage::returnPeer()
  13114. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  13115. (incomingPeers): New variable.
  13116. (addIncomingPeer): New function.
  13117. (returnPeer): New function.
  13118. (onErasingPeer): New function.
  13119. (addPeer): push_back -> push_front
  13120. (getActivePeers): Rewritten.
  13121. (calculateStat): Rewritten.
  13122. * src/PeerStorage.h
  13123. (TransferStat::copy): New function.
  13124. (TransferStat::TransferStat): New function.
  13125. (TransferStat::operator=): New function.
  13126. (addIncomingPeer): New function.
  13127. (returnPeer): New function.
  13128. * src/PeerListenCommand.cc
  13129. (execute): Use PeerStorage::addIncomingPeer() instead of
  13130. Peer::addPeer().
  13131. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13132. Connect to a peer actively when download speed is lower than specified
  13133. speed in torrent download:
  13134. * src/ActivePeerConnectionCommand.h: New class.
  13135. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13136. * src/HttpRequest.cc (createRequest): url-encode user-agent
  13137. * src/main.cc: Fixed the bug that prevents download if .netrc
  13138. doesn't exist.
  13139. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13140. To cache resolved hostname:
  13141. * src/AbstractCommand.h, src/AbstractCommand.cc
  13142. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  13143. Added dns cache.
  13144. * src/FtpInitiateConnectionCommand.cc
  13145. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  13146. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  13147. NameResolver working without ares.
  13148. * src/TorrentRequestInfo.cc
  13149. (execute): Don't cache dns in torrent download.
  13150. * src/HttpInitiateConnectionCommand.cc
  13151. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  13152. * src/DNSCache.h: New class.
  13153. * src/UrlRequestInfo.cc
  13154. (execute): Use dns cache.
  13155. In http request, suppress port number in http request header if port
  13156. is 80 or 443:
  13157. * src/HttpRequest.cc (getHostText): Suppress port number in http
  13158. request header if port is 80 or 443.
  13159. (createProxyRequest): Allways send port number.
  13160. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13161. To add the command-line option which disables netrc support:
  13162. * src/OptionHandlerFactory.cc
  13163. (createOptionHandlers): Added PREF_NO_NETRC.
  13164. * src/main.cc: Added -n option.
  13165. * src/prefs.h (PREF_NO_NETRC): New definition.
  13166. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  13167. V_TRUE.
  13168. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  13169. is V_FALSE. This may get configurable in the future release.
  13170. To clear peer's error status by time basis:
  13171. * src/PeerAbstractCommand.cc
  13172. (onAbort): Call Peer::startBadCondition().
  13173. * src/Peer.h, src/Peer.cc
  13174. (error): Removed.
  13175. (_badConditionStartTime): New variable.
  13176. (_badConditionInterval): New variable. Initialized to 10 seconds.
  13177. (startBadCondition): New function.
  13178. (isGood): New function.
  13179. * src/DefaultPeerStorage.cc
  13180. (addPeer): Use Peer::isGood().
  13181. (FindFinePeer): Use Peer::isGood().
  13182. Always include port number in http request header:
  13183. * src/HttpRequest.cc (getHostText): Always include port number in
  13184. http request header.
  13185. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13186. To the ability to read options from a config file:
  13187. * src/main.cc: Command-line parameter validation is delegated to
  13188. OptionHandler class.
  13189. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  13190. * src/Option.h, src/Option.cc (clear): New function.
  13191. * src/OptionParser.h, src/OptionParser.cc: New class.
  13192. * src/OptionHandler.h: New class.
  13193. * src/NameMatchOptionHandler.h: New class.
  13194. * src/OptionHandlerImpl.h: New classes.
  13195. * src/prefs.h: '_' -> '-'
  13196. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  13197. (FTP_PASV): New definition.
  13198. * src/Util.h, src/Util.cc (getRealSize): New function.
  13199. To disable netrc support if .netrc file does not have correct
  13200. permissions:
  13201. * src/File.h, src/File.cc (mode): New function.
  13202. To prevent confidential information to be logged:
  13203. * src/HttpConnection.h, src/HttpConnection.cc
  13204. (eraseConfidentialInfo): New function.
  13205. (sendRequest): Call eraseConfidentialInfo().
  13206. (sendProxyRequest): Call eraseConfidentialInfo().
  13207. * src/main.cc: Validate permissions of .netrc file.
  13208. To add --user-agent command-line option:
  13209. * src/main.cc: Added new command line option: --user-agent
  13210. * src/prefs.h (PREF_USER_AGENT): New definition.
  13211. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  13212. parameter to HttpRequest object.
  13213. * src/AbstractProxyRequestCommand.cc
  13214. (executeInternal): Set user-agent option parameter to HttpRequest
  13215. object.
  13216. Marged the patches from Dan Fandrich.
  13217. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13218. Use filename and size from Metalink file instead of sending HEAD
  13219. request:
  13220. * src/UrlRequestInfo.h
  13221. (_filename): New variable.
  13222. (_totalLength): New variable.
  13223. (setTotalLength): New variable.
  13224. (setFilename): New variable.
  13225. * src/MetalinkRequestInfo.cc
  13226. (execute): Set filename and size to UrlRequestInfo
  13227. * src/UrlRequestInfo.cc
  13228. (execute): Use filename and size from Metalink instead of seding
  13229. HEAD request to servers.
  13230. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13231. To add the ability to resume downloading a partially downloaded file
  13232. which is downloaded from the beginning:
  13233. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  13234. takes this role.
  13235. * src/main.cc: Added -c option.
  13236. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  13237. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  13238. * src/prefs.h (PREF_CONTINUE): New definition.
  13239. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  13240. * src/DefaultDiskWriter.cc
  13241. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  13242. * src/AbstractDiskWriter.h
  13243. (glowFileAllocator): New variable.
  13244. * src/AbstractDiskWriter.cc
  13245. (openExistingFile): Now preallocate file space from the end of the
  13246. existing file if totalLength argument is specified and grater than 0.
  13247. * src/UrlRequestInfo.cc: If -c option is specified and the file
  13248. to download exists in local, continue the download of the file.
  13249. --allow-overwrite=true is assumed in this context.
  13250. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  13251. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  13252. Throw exception if --check-integrity=true is specified but chunk
  13253. checksums are not provided:
  13254. * src/UrlRequestInfo.cc
  13255. Do not print URLs to stdout:
  13256. * src/UrlRequestInfo.cc
  13257. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13258. * src/Request.h: Use AuthResolver to get authentication information.
  13259. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  13260. set to RequestFactory object.
  13261. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  13262. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  13263. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  13264. create Request object.
  13265. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  13266. To integrate Netrc into exsiting classes:
  13267. * src/Request.h
  13268. (_userDefinedAuthConfig): New variable.
  13269. (findNetrcAuthenticator): New function.
  13270. (segment): Removed.
  13271. (setUserDefinedAuthConfig): New function.
  13272. (resolveHttpAuthConfigItem): New function.
  13273. (resolveFtpAuthConfigItem): New function.
  13274. (resolveHttpProxyAuthConfigItem): New function.
  13275. * src/HttpRequest.h
  13276. (authConfig): Removed.
  13277. (proxyAuthConfig): Removed.
  13278. (setAuthConfig): Removed.
  13279. (setProxyAuthConfig): Removed.
  13280. * src/UrlRequest.h
  13281. (getHeadResult): Added a parameter: authConfigHandle
  13282. * src/common.h
  13283. (SingletonHolder.h): New include.
  13284. * src/main.cc
  13285. (Netrc.h): New include.
  13286. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  13287. Added initial value of PREF_NETRC_PATH.
  13288. Added the initialization of netrc.
  13289. * src/AuthConfig.h: New class.
  13290. * src/prefs.h
  13291. (PREF_NETRC_PATH): New definition.
  13292. * src/HttpAuthConfig.h: Removed.
  13293. * src/Netrc.cc
  13294. (getRequiredNextToken): New function.
  13295. (skipMacdef): New function.
  13296. (parse): Rewritten.
  13297. * src/Netrc.h
  13298. (getRequiredNextToken): New function.
  13299. (skipMacdef): New function.
  13300. * src/Util.h, src/Util.cc
  13301. (getHomeDir): New function.
  13302. * src/TrackerWatcherComand.cc
  13303. (createRequestCommand): Use AuthConfig.
  13304. * src/FtpConnection.cc
  13305. (sendUser): Use Request::resolveFtpAuthConfigItem().
  13306. (sendPass): Use Request::resolveFtpAuthConfigItem().
  13307. * src/Request.cc
  13308. (findNetrcAuthenticator): New function.
  13309. (resolveHttpAuthConfigItem): New function.
  13310. (resolveFtpAuthConfigItem): New function.
  13311. (resolveHttpProxyAuthConfigItem): New function.
  13312. * src/UrlRequestInfo.cc: Use AuthConfig.
  13313. * src/HttpRequest.cc
  13314. (createRequest): Use authConfig.
  13315. (getProxyAuthString): Use authConfig.
  13316. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  13317. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  13318. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13319. To reduce overhead to find commands whose socket is either
  13320. readable or writable in the download engine loop:
  13321. * src/Command.h, src/Command.cc
  13322. (STATUS): New enum.
  13323. (status): New variable.
  13324. (statusMatch): New function.
  13325. (setStatusActive): New function.
  13326. (setStatusInactive): New function.
  13327. * src/DownloadEngine.h, src/DownloadEngine.cc
  13328. (executeCommand): New function.
  13329. (run): Simplified.
  13330. (waitData): Call Command::setStatusActive() when command's socket is
  13331. readable or writable.
  13332. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13333. To handle Segment as SegmentHandle:
  13334. * src/AbstractCommand.cc (execute): Rewritten.
  13335. * src/SegmentMan.h: Segment -> SegmentHandle
  13336. Introducded HttpResponse class, HttpRequest class to improve code
  13337. extensiveness and make it clear:
  13338. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  13339. HttpResponse class.
  13340. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  13341. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  13342. * src/HttpConnection.cc: Contruction of http request were moved to
  13343. HttpRequest class.
  13344. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  13345. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  13346. * src/HttpAuthConfig.h: New class.
  13347. * src/Range.h: New class.
  13348. To make FtpTunnel{Request, Response}Command and
  13349. HttpProxy{Request, Response}Command derived from
  13350. AbstractProxy{Request, Response}Command:
  13351. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  13352. Derived from AbstractProxyRequestCommand class.
  13353. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  13354. Derived from AbstractProxyResponseCommand class.
  13355. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  13356. Derived from AbstractProxyRequestCommand class.
  13357. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  13358. Derived from AbstractProxyResponseCommand class.
  13359. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  13360. : New class.
  13361. * src/AbstractProxyResponseCommand.h,
  13362. src/AbstractProxyResponseCommand.cc: New class.
  13363. To add netrc support:
  13364. * src/Netrc.h, src/Netrc.cc: New class.
  13365. * src/Util.h, src/Util.cc (split): New function.
  13366. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  13367. "Content-Range" header instead of "Range" header.
  13368. * src/HttpHeader.h
  13369. (getStatus): Removed.
  13370. (setStatus): Removed.
  13371. * src/Segment.h
  13372. (getPositionToWrite): New function.
  13373. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13374. * src/HttpHeader.h
  13375. (Range.h): New include.
  13376. (status): New variable.
  13377. (HttpHeader): Initialized status with 0.
  13378. (getStatus): New function.
  13379. (setStatus): New function.
  13380. (getRange): New function.
  13381. (HttpHeaderHandle): New function.
  13382. * src/HttpHeader.cc
  13383. (getRange): New function.
  13384. * src/Request.h
  13385. (RequestWeakHandle): New definition.
  13386. * src/HttpConnection.h
  13387. (HttpConnectionHandle): New type definition.
  13388. * src/HttpConnection.cc
  13389. (receiveResponse): Set HTTP status to headers.
  13390. * src/main.cc
  13391. (showUsage): Fixed typo.
  13392. * src/Segment.h
  13393. (SegmentHandle): New type definition.
  13394. * src/BitfieldMan.h
  13395. (getMissingUnusedLength): New function.
  13396. * src/BitfieldMan.cc
  13397. (getMissingUnusedLength): New function.
  13398. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13399. To fix static initialization order problem:
  13400. * src/BitfieldManFactory.h
  13401. (defaultRandomizer): Removed.
  13402. (factory): New variable.
  13403. (getNewFactory): Removed.
  13404. (getFactoryInstance): New function.
  13405. (setDefaultRandomizer): Rewritten.
  13406. (getDefaultRandomizer): Rewritten.
  13407. * src/BitfieldManFactory.cc
  13408. (defaultRandomizer): Removed.
  13409. (factory): Initialized to 0.
  13410. (BitfieldManFactory): Initialized randomizer to 0.
  13411. * src/DefaultPieceStorage.cc
  13412. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13413. * src/Peer.cc
  13414. (Peer): getNewFactory() -> getFactoryInstance()
  13415. * src/SegmentMan.cc
  13416. (initBitfield): getNewFactory() -> getFactoryInstance()
  13417. * src/Piece.cc
  13418. (Piece): getNewFactory() -> getFactoryInstance()
  13419. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13420. To fix the bug that causes crash on Max OS X:
  13421. * src/SimpleRandomizer.h
  13422. (getInstance): Create new instance if the static variable is null.
  13423. * src/SimpleRandomizer.cc
  13424. (randomizer): Initialized to 0.
  13425. * src/BitfieldManFactory.h
  13426. (getNewFactory): Removed the call to setRandomizer().
  13427. To fix the miscalculation of the range of checksum:
  13428. * src/BitfieldMan.h
  13429. (isBitSetOffsetRange): New function.
  13430. * src/BitfieldMan.cc
  13431. (isBitSetOffsetRange): New function.
  13432. * src/SegmentMan.cc
  13433. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13434. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13435. * Release 0.10.1
  13436. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13437. To lower CPU usage in BitTorrent download when --max-upload-limit
  13438. command-line option specified:
  13439. * src/DefaultBtMessageDispatcher.cc
  13440. (sendMessages): Calculate uploading speed only when current message
  13441. is uploading data and is not sent yet.
  13442. * src/DefaultPeerStorage.h
  13443. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13444. * src/HttpResponseCommand.cc
  13445. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13446. This fixes compile error in Soralis 10.
  13447. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13448. To fix segfault in Metalink download:
  13449. * src/UrlRequestInfo.h
  13450. (filename): Removed.
  13451. (totalLength): Removed.
  13452. (setTotalLength): Removed.
  13453. (setFilename): Removed.
  13454. * src/MetalinkRequestInfo.cc
  13455. (execute): Do not set filename and totalLength to reqInfo.
  13456. Set chunk checksum to reqInfo if it is not null.
  13457. * src/HttpResponseCommand.cc
  13458. (executeInternal): Fixed filename in log.
  13459. (handleDefaultEncoding): Removed the call to initBitfield() and
  13460. markAllPiecesDone().
  13461. (handleOtherEncoding): Added HEAD method handling.
  13462. * src/FtpNegotiateCommand.cc
  13463. (executeInternal): Added SEQ_HEAD_OK handling.
  13464. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13465. return false.
  13466. * src/FtpNegotiateCommand.h
  13467. (SEQ_HEAD_OK): New definition.
  13468. * src/SegmentMan.cc
  13469. (initBitfield): Delete bitfield.
  13470. (isChunkChecksumValidationReady): Fixed the condition.
  13471. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13472. works fine.
  13473. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13474. * src/Xml2MetalinkProcessor.h
  13475. (xpathExists): New function.
  13476. * src/Xml2MetalinkProcessor.cc
  13477. (xpathExists): New function.
  13478. Not to send HEAD request if filename and size are available in Metalink
  13479. file:
  13480. * src/UrlRequestInfo.h
  13481. (filename): New variable.
  13482. (totalLength): New variable.
  13483. (setTotalLength): New function.
  13484. (setFilename): New function.
  13485. * src/MetalinkRequestInfo.cc
  13486. (execute): Set filename and size to UrlRequestInfo.
  13487. * src/MetalinkEntry.cc
  13488. (MetalinkEntry): Initialize size with 0.
  13489. * src/UrlRequestInfo.cc
  13490. (execute): Set filename and size to SegmentMan.
  13491. Not to download rest of the files after selected files are downloaded
  13492. in BitTorrent:
  13493. * src/PieceStorage.h
  13494. (allDownloadFinished): New function.
  13495. * src/DefaultBtAnnounce.cc
  13496. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13497. downloadFinished.
  13498. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13499. * src/DefaultPieceStorage.cc
  13500. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13501. Commented out the call to finishSelectiveDownloadingMode().
  13502. (downloadFinished): Call isFilteredAllBitSet() instead of
  13503. isAllBitSet().
  13504. (allDownloadFinished): New function.
  13505. * src/DefaultBtInteractive.cc
  13506. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13507. downloadFinished().
  13508. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13509. * src/TorrentDownloadEngine.cc
  13510. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13511. * src/BitfieldMan.h
  13512. (isFilteredAllBitSet): New function.
  13513. * src/ShareRatioSeedCriteria.h
  13514. (PieceStorage.h): New include.
  13515. (pieceStorage): New variable.
  13516. (evaluate):
  13517. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13518. * src/BitfieldMan.cc
  13519. (isFilteredAllBitSet): New function.
  13520. (isAllBitSet): Filter is not took into account.
  13521. Rename --force-truncate as --allow-overwrite:
  13522. * src/TorrentRequestInfo.cc
  13523. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13524. * src/main.cc
  13525. (showUsage): --force-truncate -> --allow-overwrite
  13526. * src/message.h
  13527. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13528. * src/prefs.h
  13529. (PREF_FORCE_TRUNCATE): Removed.
  13530. (PREF_ALLOW_OVERWRITE): New definition.
  13531. * src/SegmentMan.cc
  13532. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13533. * src/MetalinkRequestInfo.cc
  13534. (execute): Queueing message are now logged in info level.
  13535. * src/common.h
  13536. (LONG_LONG_MAX): Removed.
  13537. (LONG_LONG_MIN): Removed.
  13538. * src/HttpResponseCommand.cc
  13539. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13540. * src/FtpNegotiateCommand.cc
  13541. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13542. * src/main.cc
  13543. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13544. command-line option.
  13545. (main): Added --check-integriy and --realtime-chunk-checksum
  13546. command-line option.
  13547. --force-truncate -> --allow-overwrite
  13548. Set initial value of --check-integrity option to false.
  13549. Don't show usage when error occurs while persing command-line options.
  13550. Removed deprecated --upload-limit option.
  13551. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13552. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13553. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13554. * src/BtAllowedFastMessage.cc:
  13555. * src/BtBitfieldMessage.cc
  13556. * src/BtCancelMessage.cc
  13557. * src/BtChokeMessage.cc
  13558. * src/BtHaveAllMessage.cc
  13559. * src/BtHaveMessage.cc
  13560. * src/BtHaveNoneMessage.cc
  13561. * src/BtInterestedMessage.cc
  13562. * src/BtNotInterestedMessage.cc
  13563. * src/BtPieceMessage.cc
  13564. * src/BtPortMessage.cc
  13565. * src/BtRejectMessage.cc
  13566. * src/BtRequestMessage.cc
  13567. * src/BtSuggestPieceMessage.cc
  13568. * src/BtUnchokeMessage.cc
  13569. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13570. files are affected.
  13571. * src/ChunkChecksumValidator.cc
  13572. * src/SegmentMan.cc
  13573. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13574. To add chunk checksum validation:
  13575. * src/MetalinkEntry.h
  13576. (MetalinkChunkChecksum.h): New include.
  13577. (chunkChecksum): New variable.
  13578. * src/Request.h
  13579. (method): New variable.
  13580. (setMethod): New function.
  13581. (getMethod): New function.
  13582. (METHOD_GET): New static constant.
  13583. (METHOD_HEAD): New static constant.
  13584. * src/Xml2MetalinkProcessor.h
  13585. (getPieceHash): New function.
  13586. * src/PieceStorage.h
  13587. (markAllPiecesDone): New function.
  13588. (checkIntegrity): New function.
  13589. * src/FileAllocator.h
  13590. (NullFileAllocationMonitor.h): New include.
  13591. (FileAllocator): Initialize fileAllocationMonitor with new
  13592. NullFileAllocationMonitor().
  13593. * src/MultiDiskAdaptor.h
  13594. (messageDigest.h): Remove include.
  13595. (ctx): Removed.
  13596. (hashUpdate): Added ctx.
  13597. (MultiDiskAdaptor): Removed ctx.
  13598. (sha1Sum): Renamed as messageDigest.
  13599. (messageDigest): New function.
  13600. * src/UrlRequestInfo.h
  13601. (HeadResult): New class.
  13602. (digestAlgo): New variable.
  13603. (chunkChecksumLength): New variable.
  13604. (chunkChecksums): New variable.
  13605. (getHeadResult): New function.
  13606. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13607. (setDigestAlgo): New function.
  13608. (setChunkChecksumLength): New function.
  13609. (setChunkChecksums): New function.
  13610. * src/DefaultPieceStorage.cc
  13611. (DiskAdaptorWriter.h): New include.
  13612. (ChunkChecksumValidator.h): New include.
  13613. (markAllPiecesDone): New function.
  13614. (checkIntegrity): New function.
  13615. * src/DefaultBtContext.h
  13616. (getPieceHashes): New function.
  13617. * src/TorrentRequestInfo.cc
  13618. (execute): Try to validate chunk checksum if file already exists and
  13619. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13620. * src/messageDigest.h
  13621. (~MessageDigestContext): Added digestFree().
  13622. * src/MetalinkRequestInfo.cc
  13623. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13624. * src/DiskAdaptor.h
  13625. (messageDigest.h): New include.
  13626. (sha1Sum): Renamed as messageDigest.
  13627. (messageDigest): New function.
  13628. * src/DownloadCommand.h
  13629. (PeerStat.h): New include.
  13630. (maxDownloadSpeedLimit): New variable.
  13631. (startupIdleTime): New variable.
  13632. (lowestDownloadSpeedLimit): New variable.
  13633. (peerStat): New variable.
  13634. (setMaxDownloadSpeedLimit): New function.
  13635. (setStartupIdleTime): New function.
  13636. (setLowestDownloadSPeedLimit): New function.
  13637. * src/BtContext.h
  13638. (getPieceHashes): New function.
  13639. * src/main.cc
  13640. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13641. option to true for testing purpose.
  13642. * src/BtPieceMessage.cc
  13643. (checkPieceHash): Use messageDigest
  13644. * src/DownloadEngine.cc
  13645. (SetDescriptor): Removed.
  13646. (AccumulateActiveCommand): Removed.
  13647. (waitData): Rewritten.
  13648. (updateFdSet): Rewritten.
  13649. * src/MultiDiskAdaptor.cc
  13650. (hashUpdate): Added ctx.
  13651. (sha1Sum): Renamed as messageDigest.
  13652. (messageDigest): New function.
  13653. * src/BitfieldMan.h
  13654. (isBitRangeSet): New function.
  13655. (unsetBitRange): New function.
  13656. * src/ByteArrayDiskWriter.h
  13657. (sha1Sum): Renamed as messageDigest.
  13658. (messageDigest): New function.
  13659. * src/ConsoleDownloadEngine.cc
  13660. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13661. * src/DiskWriter.h
  13662. (messageDigest.h): New include.
  13663. (sha1Sum): Renamed as messageDigest.
  13664. (messageDigest): New function.
  13665. * src/ChunkChecksumValidator.h: New class.
  13666. * src/DiskAdaptorWriter.h: New class.
  13667. * src/prefs.h
  13668. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13669. (PREF_CHECK_INTEGRITY): New definition.
  13670. * src/HttpResponseCommand.cc
  13671. (handleDefaultEncoding): Added method "HEAD" handling.
  13672. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13673. (handleOtherEncoding):
  13674. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13675. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13676. startupIdleTime, lowestDownloadSpeedLimit to command.
  13677. * src/SegmentMan.h
  13678. (getSegmentEntryByIndex): New function.
  13679. (getSegmentEntryByCuid): New function.
  13680. (getSegmentEntryIteratorByCuid): New function.
  13681. (diskWriter): DiskWriter -> DiskWriterHandle
  13682. (pieceHashes): New variable.
  13683. (chunkHashLength): New variable.
  13684. (digestAlgo): New variable.
  13685. (FindPeerStat): Removed.
  13686. (getPeerStat): Rewritten.
  13687. (markAllPiecesDone): New function.
  13688. (checkIntegrity): New function.
  13689. (tryChunkChecksumValidation): New function.
  13690. (isChunkChecksumValidationReady): New function.
  13691. * src/BitfieldMan.cc
  13692. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13693. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13694. blocks to 0.
  13695. (isBitRangeSet): New function.
  13696. (unsetBitRange): New function.
  13697. * src/FtpNegotiateCommand.cc
  13698. (executeInternal): Set maxDownloadSpeedLimit,
  13699. startupIdleTime, lowestDownloadSpeedLimit to command.
  13700. (recvSize): Added method "HEAD" handling.
  13701. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13702. * src/AbstractSingleDiskAdaptor.cc
  13703. (sha1Sum): Renamed as messageDigest.
  13704. (messageDigest): New function.
  13705. * src/AbstractSingleDiskAdaptor.h
  13706. (sha1Sum): Renamed as messageDigest.
  13707. (messageDigest): New function.
  13708. * src/Util.h
  13709. (indexRange): New function.
  13710. * src/MetalinkEntry.cc
  13711. (MetalinkEntry): Initialized chunkChecksum to 0.
  13712. * src/ShaVisitor.cc
  13713. (~ShaVisitor): Removed the call to ctx.digestFree().
  13714. * src/SegmentMan.cc
  13715. (ChunkChecksumValidator.h): New include.
  13716. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13717. to DIGEST_ALGO_SHA1.
  13718. (~SegmentMan): Removed diskWriter.
  13719. (FindSegmentEntryByIndex): Removed.
  13720. (FindSegmentEntryByCuid): Removed.
  13721. (checkoutSegment): Rewritten.
  13722. (findSlowerSegmentEntry): Rewritten.
  13723. (getSegment): Rewritten.
  13724. (updateSegment): Rewritten.
  13725. (completeSegment): Rewritten.
  13726. (markAllPiecesDone): New function.
  13727. (checkIntegrity): New function.
  13728. (isChunkChecksumValidationReady): New function.
  13729. (tryChunkChecksumValidation): New function.
  13730. * src/Xml2MetalinkProcessor.cc
  13731. (getEntry): Get size and set it to entry.
  13732. Get chunk checksum and set it to entry.
  13733. (getPieceHash): New function.
  13734. * src/Util.cc
  13735. (sha1Sum): Removed ctx.digestFree()
  13736. (fileChecksum): Removed ctx.digestFree()
  13737. (indexRange): New function.
  13738. * src/Request.cc
  13739. (METHOD_GET): New variable.
  13740. (METHOD_HEAD): New variable.
  13741. (Request): Added method.
  13742. * src/UrlRequestInfo.cc
  13743. (FatalException.h): New include.
  13744. (message.h): New include.
  13745. (operator<<): Added operator<< for class HeadResult.
  13746. (getHeadResult): New function.
  13747. (execute): Get filename and size in separate download engine.
  13748. * src/ChunkChecksumValidator.cc: New class.
  13749. * src/DownloadCommand.cc:
  13750. (DownloadCommand): Added peerStat.
  13751. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13752. the value from Option.
  13753. The buffer size is now 16KB.
  13754. Use peerStat member instead of getting it from SegmentMan.
  13755. Use startupIdleTime member instead of gettingit from Option.
  13756. Added chunk checksum validation.
  13757. * src/AbstractDiskWriter.cc
  13758. (AbstractDiskWriter): Removed ctx.
  13759. (~AbstractDiskWriter): Removed ctx.digestFree()
  13760. (writeDataInternal): Returns the return value of write.
  13761. (readDataInternal): Returns the return value of read.
  13762. (sha1Sum): Renamed as messageDigest
  13763. (messageDigest): New function.
  13764. * src/AbstractDiwkWriter.h
  13765. (messageDigest.h): Removed include.
  13766. (ctx): Removed.
  13767. (sha1Sum): Renamed as messageDigest
  13768. (messageDigest): New function.
  13769. * src/DefaultPieceStorage.h
  13770. (markAllPiecesDone): New function.
  13771. (checkIntegrity): New function.
  13772. * src/NullFileAllocationMonitor.h: New class.
  13773. * src/MetalinkChunkChecksum.h: New class.
  13774. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13775. To decrease CPU usage in bittorrent download, calculation results in
  13776. BitfieldMan were cached and realtime fetching PeerObject was removed
  13777. with WeakHandle introduced. Option values are set to the objects
  13778. by setter before download begins.
  13779. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13780. * src/DefaultBtRequestFactory.h
  13781. (dispatcher): BtMessageDispatcherHandle ->
  13782. BtMessageDispatcherWeakHandle.
  13783. (messageFactory): New variable.
  13784. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13785. BtMessageDispatcherWeakHandle.
  13786. (setBtMessageFactory): New function.
  13787. * src/DefaultBtMessageDispatcher.cc:
  13788. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13789. from Option.
  13790. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13791. feating the value from Option.
  13792. Use messageFactory member.
  13793. * src/PeerInteractionCommand.cc
  13794. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13795. Add reverse dependencies to factory object.
  13796. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13797. dispatcher.
  13798. Set messageFactory to receiver.
  13799. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13800. btInteractive.
  13801. Set receiver to peerObject.
  13802. Set maxDownloadSpeedLimit to this.
  13803. (executeInternal): Use maxDownloadSpeedLimit member.
  13804. * src/BtChokeMessage.cc
  13805. (doReceivedAction): Use dispatcher, requestFactory member.
  13806. (onSendComplete): Use dispatcher member.
  13807. * src/PeerInteractionCommand.h
  13808. (maxDownloadSpeedLimit): New variable.
  13809. * src/DefaultBtMessageReceiver.h
  13810. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13811. (dispatcher):
  13812. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13813. (messageFactory): New variable.
  13814. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13815. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13816. (setDispatcher):
  13817. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13818. (setBtMessageFactory): New function.
  13819. * src/DefaultBtInteractive.cc
  13820. (initiateHandshake): Use messageFactory member.
  13821. (addBitfieldMessageToQueue): Use messageFactory member.
  13822. (addAllowedFastMessageToQueue): Use messageFactory member.
  13823. (decideChoking): Use messageFactory member.
  13824. (checkHave): Use messageFactory member.
  13825. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13826. (receiveMessages): Use maxDownloadSpeedLimit member.
  13827. (decideInterest): Use messageFactory member.
  13828. * src/BtRequestMessage.cc
  13829. (doReceivedAction): Use messageFactory, dispatcher member.
  13830. (onQueued): Use dispatcher member.
  13831. * src/BtPieceMessage.cc
  13832. (doReceivedAction): Use dispatcher member.
  13833. (send): Use peerConnection member.
  13834. (onWrongPiece): Use requestFactory member.
  13835. (handleChokingEvent): Use messageFactory, dispatcher member.
  13836. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13837. * src/BtMessageDispatcher.h
  13838. (BtMessageDispatcherWeakHandle): New type definition.
  13839. * src/SimpleBtMessage.cc
  13840. (send): Use peerConnection member.
  13841. * src/BtRejectMessage.cc
  13842. (doReceivedAction): Use dispatcher member.
  13843. * src/DefaultBtMessageDispatcher.h
  13844. (Option.h): Removed include.
  13845. (messageFactory): New variable.
  13846. (option): Removed.
  13847. (maxUploadSpeedLimit): New variable.
  13848. (requestTimeout): New variable.
  13849. (DefaultBtMessageDispatcher): Removed option.
  13850. Added maxUploadSpeedLimit, requestTimeout.
  13851. (setOption): Removed.
  13852. (getOption): Removed.
  13853. (setMaxUploadSpeedLimit): New function.
  13854. (setRequestTimeout): New function.
  13855. (setBtMessageFactory): New function.
  13856. * src/DefaultBtInteractive.h
  13857. (btMessageReceiver):
  13858. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13859. (dispatcher):
  13860. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13861. (btRequestFactory):
  13862. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13863. (peerConnection):
  13864. PeerConnectionHandle -> PeerConnectionWeakHandle
  13865. (messageFactory): New variable.
  13866. (option): Removed.
  13867. (keepAliveInterval): New variable.
  13868. (maxDownloadSpeedLimit): New variable.
  13869. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13870. (setBtMessageReceiver):
  13871. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13872. (setDispatcher):
  13873. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13874. (setBtRequestFactory):
  13875. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13876. (setPeerConnection):
  13877. PeerConnectionHandle -> PeerConnectionWeakHandle
  13878. (setOption): Removed.
  13879. (setKeepAliveInterval): New function.
  13880. (setMaxDownloadSpeedLimit): New function.
  13881. (setBtMessageFactory): New function.
  13882. * src/BitfieldMan.h
  13883. (cachedNumMissingBlock): New variable.
  13884. (cachedNumFilteredBlock): New variable.
  13885. (cachedCompletedLength): New variable.
  13886. (cachedFilteredComletedLength): New variable.
  13887. (cachedFilteredTotalLength): New variable.
  13888. (countMissingBlockNow): New function.
  13889. (countFilteredBlockNow): New function.
  13890. (getFilteredTotalLengthNow): New function.
  13891. (getCompletedLengthNow): New function.
  13892. (getFilteredCompletedLengthNow): New function.
  13893. (updateCache): New function.
  13894. * src/AbstractBtMessage.h
  13895. (BtMessageDispatcher.h): New include.
  13896. (PeerConnection.h): New include.
  13897. (BtRequestFactory.h): New include
  13898. (BtMessageFactory.h): New include.
  13899. (dispatcher): New variable.
  13900. (messageFactory): New variable.
  13901. (peerConnection: New variable.
  13902. (setBtMessageDispatcher): New function.
  13903. (setPeerConnection): New function.
  13904. (setBtMessageFactory): New function.
  13905. (setBtRequestFactory): New function.
  13906. * src/DefaultBtMessageFactory.cc
  13907. (setCommonProperty): Set dispatcher, requestFactory, this,
  13908. peerConnection to msg.
  13909. * src/BtRegistry.h
  13910. (BT_MESSAGE_RECEIVER): New macro.
  13911. * src/PeerConnection.h
  13912. (PeerConnectionWeakHandle): New type definition.
  13913. * src/BtMessageFactory.h
  13914. (BtMessageFactoryWeakHandle): New type definition.
  13915. * src/BitfieldMan.cc
  13916. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13917. cachedCompletedLength, cachedFilteredComletedLength,
  13918. cachedFilteredTotalLength.
  13919. Call updateCache().
  13920. (countMissingBlock): Return cachedNumMissingBlock.
  13921. (countMissingBlockNow): New function.
  13922. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13923. (countFilteredBlockNow): New function.
  13924. (setBit): Call updateCache().
  13925. (unsetBit): Call updateCache().
  13926. (setBitfield): Call updateCache().
  13927. (clearAllBit): Call updateCache().
  13928. (setAllBit): Use setBitInternal instead of setBit.
  13929. Call updateCache().
  13930. (addFilter): Call updateCache().
  13931. (enableFilter): Call updateCache().
  13932. (disableFilter): Call updateCache().
  13933. (clearFilter): Call updateCache().
  13934. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13935. (getFilteredTotalLengthNow): New function.
  13936. (getCompletedLength): Return cachedCompletedLength.
  13937. (getCompletedLengthNow): New function.
  13938. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13939. (getFilteredCompletedLengthNow): New function.
  13940. (updateCache): New function.
  13941. * src/BtMessageReceiver.h
  13942. (BtMessageReceiverWeakHandle): New type definition.
  13943. * src/DefaultBtMessageReceiver.cc
  13944. (receiveHandshake): Use messageFactory member.
  13945. (sendHandshake): Use messageFactory member.
  13946. (receiveMessage): Use messageFactory member.
  13947. * src/DefaultBtMessageFactory.h
  13948. (dispatcher): New variable.
  13949. (requestFactory): New variable.
  13950. (peerConnection): New variablle.
  13951. (setBtMessageDispatcher): New function.
  13952. (setBtRequestFactory): New function.
  13953. (setPeerConnection): New function.
  13954. * src/SharedHandle.h
  13955. (RefCount): New class.
  13956. (WeakHandle): New class.
  13957. * src/PeerObject.h
  13958. (BtMessageReceiver.h): New include.
  13959. (PeerObject): Added btMessageReceiver.
  13960. (btMessageReceiver): New variable.
  13961. * src/Util.cc
  13962. (countBit): Simplified.
  13963. * src/BtCancelMessage.cc
  13964. (doReceivedAction): Use dispatcher member.
  13965. * src/BtRequestFactory.h
  13966. (BtRequestFactoryWeakHandle): New type definition.
  13967. * src/PeerStorage.h
  13968. (downloadSpeed): int -> uint32_t
  13969. (uploadSpeed): int -> uint32_t
  13970. (sessionDownloadLength): long long int -> uint64_t
  13971. (sessionUploadLength): long long int -> uint64_t
  13972. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13973. To add RecoverableException, FatalException:
  13974. * src/AbstractCommand.cc
  13975. (onAbort): Exception -> RecoverableException
  13976. * src/PeerAbstractCommand.h
  13977. (RecoverableException.h): New include.
  13978. (onAbort): Exception -> RecoverableException.
  13979. * src/PeerInteractionCommand.cc
  13980. (onAbort): Exception -> RecoverableException.
  13981. * src/PeerAbstractCommand.cc
  13982. (execute): Exception -> RecoverableException.
  13983. (onAbort): Exception -> RecoverableException.
  13984. * src/TorrentRequestInfo.cc
  13985. (execute): Exception -> RecoverableException.
  13986. * src/MetalinkRequestInfo.cc
  13987. (execute): Exception -> RecoverableException.
  13988. * src/MetaFileUtil.cc: RecoverableException.
  13989. * src/AbstractCommand.h
  13990. (onAbort): Exception -> RecoverableException.
  13991. * src/DlRetryEx.h: Exception -> RecoverableException.
  13992. * src/DlAbortEx.h: Exception -> RecoverableException.
  13993. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13994. * src/Util.cc: Exception -> RecoverableException.
  13995. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13996. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13997. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13998. To make ID static const int
  13999. * src/BtInterestedMessage.h
  14000. (ID_t): Removed.
  14001. (ID): New variable.
  14002. (getId): Made non-const.
  14003. * src/BtPieceMessage.h
  14004. (ID_t): Removed.
  14005. (ID): New variable.
  14006. (getId): Made non-const.
  14007. * src/BtChokeMessage.h
  14008. (ID_t): Removed.
  14009. (ID): New variable.
  14010. (getId): Made non-const.
  14011. * src/BtHaveAllMessage.h
  14012. (ID_t): Removed.
  14013. (ID): New variable.
  14014. (getId): Made non-const.
  14015. * src/BtKeepAliveMessage.h
  14016. (ID_t): Removed.
  14017. (ID): New variable.
  14018. (getId): Made non-const.
  14019. * src/BtHandshakeMessage.h
  14020. (ID): New variable.
  14021. (getId): Made non-const.
  14022. * src/BtSuggestPieceMessage.h
  14023. (ID_t): Removed.
  14024. (ID): New variable.
  14025. (getId): Made non-const.
  14026. * src/BtPortMessage.h
  14027. (ID_t): Removed.
  14028. (ID): New variable.
  14029. (getId): Made non-const.
  14030. * src/AbstractBtMessage.h
  14031. (id): Removed.
  14032. (AbstractBtMessage): Removed id.
  14033. (getId): Removed.
  14034. * src/BtHaveMessage.h
  14035. (ID_t): Removed.
  14036. (ID): New variable.
  14037. (getId): Made non-const.
  14038. * src/BtAllowedFastMessage.h
  14039. (ID_t): Removed.
  14040. (ID): New variable.
  14041. (getId): Made non-const.
  14042. * src/BtCancelMessage.h
  14043. (ID_t): Removed.
  14044. (ID): New variable.
  14045. (getId): Made non-const.
  14046. * src/BtNotInterestedMessage.h
  14047. (ID_t): Removed.
  14048. (ID): New variable.
  14049. (getId): Made non-const.
  14050. * src/BtChokeMessage.h
  14051. (ID_t): Removed.
  14052. (ID): New variable.
  14053. (getId): Made non-const.
  14054. * src/BtRejectMessage.h
  14055. (ID_t): Removed.
  14056. (ID): New variable.
  14057. (getId): Made non-const.
  14058. * src/BtBitfieldMessage.h
  14059. (ID_t): Removed.
  14060. (ID): New variable.
  14061. (getId): Made non-const.
  14062. * src/BtUnchokeMessage.h
  14063. (ID_t): Removed.
  14064. (ID): New variable.
  14065. (getId): Made non-const.
  14066. * src/BtRequestMessage.h
  14067. (ID_t): Removed.
  14068. (ID): New variable.
  14069. (getId): Made non-const.
  14070. * src/BtHaveMessage.h
  14071. (ID_t): Removed.
  14072. (ID): New variable.
  14073. (getId): Made non-const.
  14074. To add --force-truncate command-line option and a check whether
  14075. the file already exists:
  14076. * src/DirectDiskAdaptor.h
  14077. (getFilePath): Made virtual public.
  14078. * src/MultiDiskAdaptor.h
  14079. (File.h): New include.
  14080. (DiskWriterEntry::fileEntry): Made private.
  14081. (DiskWriterEntry::fileExists): New function.
  14082. (DiskWriterEntry::getFileEntry): New function.
  14083. (fileExists): New function.
  14084. (getFilePath): New function.
  14085. * src/TorrentRequestInfo.cc
  14086. (FatalException.h): New include.
  14087. (message.h): New include.
  14088. (RecoverableException.h): New include.
  14089. (execute): Added a check whether file is already exists or not.
  14090. * src/DiskAdaptor.h
  14091. (fileExists): New function.
  14092. (getFilePath): New function.
  14093. * src/main.cc
  14094. (showUsage): Added an explanation of --force-truncate command-line
  14095. option.
  14096. (main): Added --force-truncate command-line option.
  14097. * src/Exception.h
  14098. (setMsg): buf[256] -> buf[1024]
  14099. * src/CopyDiskWriter.h
  14100. (getFilePath): Made public virtual.
  14101. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  14102. (fileExists): New function.
  14103. * src/DownloadEngineFactory.cc
  14104. (newTorrentConsoleEngine): Don't open file here.
  14105. * src/message.h
  14106. (EX_FILE_ALREADY_EXISTS): New definition.
  14107. * src/prefs.h
  14108. (PREF_FOECE_TRUNCATE): New definition.
  14109. * src/HttpResponseCommand.cc
  14110. (handleDefaultEncoding): Added a check whether the file already exists.
  14111. * src/SegmentMan.h
  14112. (fileExists): New function.
  14113. (shouldCancelDownloadForSafety): New function.
  14114. * src/FtpNegotiateCommand.cc
  14115. (recvSize): Added a check whether the file already exists.
  14116. * src/AbstractSingleDiskAdaptor.cc
  14117. (File.h): New include.
  14118. (fileExists): New function.
  14119. * src/AbstractSingleDiskAdaptor.h
  14120. (getFilePath): Removed.
  14121. (fileExists): New function.
  14122. * src/SegmentMan.cc
  14123. (fileExists): New function.
  14124. (shouldCancelDownloadForSafety): New function.
  14125. To fix regression bug in torrent downloading:
  14126. * src/DefaultBtRequestFactory.cc
  14127. (doChokedAction): New function.
  14128. * src/DefaultBtRequestFactory.h
  14129. (doChokedAction): New function.
  14130. * src/DefaultBtMessageDispatcher.cc
  14131. (doChokedAction): Do not delete request if its target is in allowed
  14132. fast set.
  14133. * src/DefaultBtInteractive.cc
  14134. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  14135. (sendKeepAlive): Send keep alive message even if the outgoing message
  14136. queue is not empty.
  14137. (decideInterest): Simplified the code.
  14138. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  14139. it is already called when BtChokeMessage is received from a peer.
  14140. * src/BtRequestFactory.h
  14141. (doChokedAction): New function.
  14142. To clean up code:
  14143. * src/PeerInteractionCommand.h
  14144. (executeInternal): Added virtual keyword explicitly.
  14145. (prepareForRetry): Added virtual keyword explicitly.
  14146. (prepareForNextPeer): Added virtual keyword explicitly.
  14147. (onAbort): Added virtual keyword explicitly.
  14148. * src/RequestSlot.cc
  14149. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  14150. * src/BtPieceMessage.cc
  14151. (doReceivedAction): Added a debug log of piece's bitfield.
  14152. * src/Piece.h
  14153. (getBitfieldLength): New function.
  14154. * src/ByteArrayDiskWriter.cc
  14155. (clear): Added buf = 0 to avoid double free corruption.
  14156. * src/FileAllocator.cc
  14157. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  14158. Added cp.reset().
  14159. * src/BitfieldMan.h
  14160. (operator=): Rewritten.
  14161. * src/BitfieldMan.cc
  14162. (BitfieldMan): Initialized bitfield, useBitfield.
  14163. * src/PeerConnection.cc
  14164. (receiveMessage): Added a call to socket->readable() after getting
  14165. message length to avoid possible EOF.
  14166. * src/Util.cc
  14167. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  14168. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14169. To add an ability to pre-allocate file space:
  14170. * src/DirectDiskAdaptor.h: Rewritten.
  14171. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  14172. * src/MultiDiskAdaptor.h: Rewritten.
  14173. * src/DefaultPieceStorage.cc
  14174. (MultiDiskWriter.h): Removed include.
  14175. (PreAllocationDiskWriter.h): Removed include.
  14176. (FileAllocationMonitor.h): New include.
  14177. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  14178. (initStorage): Rewritten.
  14179. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14180. * src/FileAllocator.h: New class.
  14181. * src/FileAllocator.cc: New class.
  14182. * src/FileAllocationMonitor.h: New class.
  14183. * src/FileAllocationMonitor.cc: New class.
  14184. * src/ConsoleFileAllocationMonitor.h: New class.
  14185. * src/ConsoleFileAllocationMonitor.cc: New class.
  14186. * src/AbstractSingleDiskAdaptor.h: New class.
  14187. * src/AbstractSingleDiskAdaptor.cc: New class.
  14188. * src/DiskAdaptor.h
  14189. (Directory.h): Removed include.
  14190. (DiskWriter.h): Removed include.
  14191. (FileEntry.h): Removed include.
  14192. (diskWriter): Removed.
  14193. (DiskAdaptor): Removed diskWriter.
  14194. (openFile): Made pure virtual.
  14195. (closeFile): Made pure virtual.
  14196. (openExistingFile): Made pure virtual.
  14197. (initAndOpenFile): Made pure virtual.
  14198. (writeData): Made pure virtual.
  14199. (readData): Made pure virtual.
  14200. (sha1Sum): Made pure virtual.
  14201. (getStoreDir): Returns const reference of storeDir.
  14202. (DiskAdaptorHandle): New type definition.
  14203. * src/main.cc
  14204. (ConsoleFileAllocationMonitor.h): New include.
  14205. (showUsage): Added default value description of -s option.
  14206. Added the description of --file-allocation option.
  14207. (main): Set default value of --file-allocation option to 'none'.
  14208. Added --file-allocation command-line option.
  14209. Setup FileAllocationMonitorFactory.
  14210. * src/FtpInitiateConnectionCommand.cc
  14211. (executeInternal): Removed diskWriter related processing, which was
  14212. moved to FtpNegotiationCommand.cc.
  14213. * src/DirectDiskAdaptor.cc
  14214. (getFilePath): Made non-const.
  14215. * src/CopyDiskAdaptor.h
  14216. (DiskAdaptor.h): Removed include.
  14217. (DiskWriter.h): Removed include.
  14218. (AbstractSingleDiskAdaptor.h): New include.
  14219. (getFilePath): Made non-const. Added virtual keyword.
  14220. (CopyDiskAdaptor): Removed diskWriter.
  14221. (getTempFile): Returns const reference.
  14222. (CopyDiskAdaptorHandle): New type definition.
  14223. * src/ByteArrayDiskWriter.cc
  14224. (clear): Simplified.
  14225. (initAndOpenFile): Rewritten.
  14226. (openFile): Call initAndOpenFile()
  14227. * src/MultiDiskAdaptor.cc: Rewritten.
  14228. * src/DownloadEngineFactory.cc
  14229. (FileAllocator.h): New include.
  14230. (FileAllocationMonitor.h): New include.
  14231. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  14232. create DefaultDiskWriter with file allocator.
  14233. * src/DiskWriter.h
  14234. (initAndOpenFile): Added totalLength argument.
  14235. (openFile): Added totalLength argument.
  14236. * src/prefs.h
  14237. (PREF_FILE_ALLOCATION): New definition.
  14238. (V_PREALLOC): New definition.
  14239. (V_NONE): New definition.
  14240. * src/HttpResponseCommand.cc
  14241. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  14242. size.
  14243. * src/FtpNegotiateCommand.cc
  14244. (Util.h): New include.
  14245. (recvSize): Open file here.
  14246. * src/Util.h
  14247. (ullitos): New function.
  14248. * src/CopyDiskWriter.h
  14249. (getFilePath): Made non-const.
  14250. * src/DefaultDiskWriter.h
  14251. (Option.h): New include.
  14252. (totalLength): Removed.
  14253. (DefaultDiskWriter): Removed totalLength.
  14254. (initAndOpenFile): Added totalLength argument.
  14255. (DefaultDiskWriterHandle): New type definition.
  14256. (createNewDiskWriter): New function.
  14257. * src/Util.cc
  14258. (ullitos): New function.
  14259. * src/DefaultDiskWriter.cc
  14260. (message.h): New include.
  14261. (FileAllocator.h): New include.
  14262. (prefs.h): New include.
  14263. (Util.h): New include.
  14264. (DefaultDiskWriter): Removed totalLength.
  14265. (initAndOpenFile): Added file allocation.
  14266. (createNewDiskWriter): New function. Just for temporary solution.
  14267. It will be rewritten later.
  14268. * src/DiskAdaptor.cc
  14269. (DiskAdaptor): Removed diskWriter.
  14270. * src/AbstractDiskWriter.cc
  14271. (LogFactory.h): New include.
  14272. (AbstractDiskWriter): Added fileAllocator, logger.
  14273. (openFile): Added totalLength argument.
  14274. * src/AbstractDiskWriter.h
  14275. (FileAllocator.h): New include.
  14276. (Logger.h): New include.
  14277. (fileAllocator): New variable.
  14278. (logger): New variable.
  14279. (openFile): Added totalLength argument. Added virtual keyword
  14280. explicitly.
  14281. (openExistingFile): Added totalLength argument. Added virtual keyword
  14282. explicitly.
  14283. (closeFile): Added virtual keyword explicitly.
  14284. (sha1Sum): Added virtual keyword explicitly.
  14285. (writeData): Added virtual keyword explicitly.
  14286. (readData): Added virtual keyword explicitly.
  14287. (setFileAllocator): New function.
  14288. * src/DefaultPieceStorage.h
  14289. (FileAllocator.h): New include.
  14290. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14291. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  14292. * src/FileProgressMonitor.h: New class.
  14293. To compile aria2 on PC-BSD:
  14294. * src/DefaultBtContext.cc
  14295. (libgen.h): New include.
  14296. To fix memory leak:
  14297. * src/Exception.h
  14298. (~Exception): Delete cause. Fixed memory leak.
  14299. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14300. Rewritten a portion of bittorrent implementation:
  14301. * src/BtMessageValidator.h: New class.
  14302. * src/BtBitfieldMessageValidator.h: New class.
  14303. * src/BtHandshakeMessageValidator.h: New class.
  14304. * src/BtRequestMessageValidator.h: New class.
  14305. * src/BtSuggestPieceMessageValidator.h: New class.
  14306. * src/BtAllowedFastMessageValidator.h: New class.
  14307. * src/BtRejectMessageValidator.h: New class.
  14308. * src/BtCancelMessageValidator.h: New class.
  14309. * src/BtPieceMessageValidator.h: New class.
  14310. * src/BtHaveMessageValidator.h: New class.
  14311. * src/BtEventListener.h: New class.
  14312. * src/AbstractBtEventListener.h: New class.
  14313. * src/BtEvent.h: New class.
  14314. * src/BtChokingEvent.h: New class.
  14315. * src/BtChokedEvent.h: New class.
  14316. * src/BtCancelSendingPieceEvent.h: New class.
  14317. * src/BtAbortOutstandingRequestEvent.h: New class.
  14318. * src/Randomizer.h: New class.
  14319. * src/SimpleRandomizer.h: New class.
  14320. * src/BtMessage.h: New class.
  14321. * src/AbstractBtMessage.h: New class.
  14322. * src/SimpleBtMessage.h: New class.
  14323. * src/BtHaveMessage.h: New class.
  14324. * src/BtInterestedMessage.h: New class.
  14325. * src/BtAllowedFastMessage.h: New class.
  14326. * src/BtUnchokeMessage.h: New class.
  14327. * src/BtCancelMessage.h: New class.
  14328. * src/BtNotInterestedMessage.h: New class.
  14329. * src/BtChokeMessage.h: New class.
  14330. * src/BtHaveNoneMessage.h: New class.
  14331. * src/BtHandshakeMessage.h: New class.
  14332. * src/BtSuggestPieceMessage.h: New class.
  14333. * src/BtHaveMessage.h: New class.
  14334. * src/BtPieceMessage.h: New class.
  14335. * src/BtHaveAllMessage.h: New class.
  14336. * src/BtKeepAliveMessage.h: New class.
  14337. * src/BtPortMessage.h: New class.
  14338. * src/BtRejectMessage.h: New class.
  14339. * src/BtBitfieldMessage.h: New class.
  14340. * src/BtRequestMessage.h: New class.
  14341. * src/DefaultBtRequestFactory.h: New class.
  14342. * src/DefaultBtMessageReceiver.h: New class.
  14343. * src/BtInteractive.h: New class.
  14344. * src/BtMessageDispatcher.h: New class.
  14345. * src/DefaultBtMessageDispatcher.h: New class.
  14346. * src/DefaultBtInteractive.h: New class.
  14347. * src/BitfieldManFactory.h: New class.
  14348. * src/HandleRegistry.h: New class.
  14349. * src/BtMessageFactory.h: New class.
  14350. * src/BtMessageReceiver.h: New class.
  14351. * src/DefaultBtMessageFactory.h: New class.
  14352. * src/PeerObject.h: New class.
  14353. * src/BtRequestFactory.h: New class.
  14354. * src/SuggestPieceMessage.h: Removed.
  14355. * src/PortMessage.h: Removed.
  14356. * src/SuggestPieceMessage.h: Removed.
  14357. * src/KeepAliveMessage.h: Removed.
  14358. * src/HandshakeMessage.h: Removed.
  14359. * src/PeerInteraction.h: Removed.
  14360. * src/UnchokeMessage.h: Removed.
  14361. * src/PieceMessage.h: Removed.
  14362. * src/RequestMessage.h: Removed.
  14363. * src/InterestedMessage.h: Removed.
  14364. * src/HaveMessage.h: Removed.
  14365. * src/CancelMessage.h: Removed.
  14366. * src/RejectMessage.h: Removed.
  14367. * src/AllowedFastMessage.h: Removed.
  14368. * src/HaveNoneMessage.h: Removed.
  14369. * src/SimplePeerMessage.h: Removed.
  14370. * src/HaveAllMessage.h: Removed.
  14371. * src/BitfieldMessage.h: Removed.
  14372. * src/PeerMessageFactory.h: Removed.
  14373. * src/NotInterestedMessage.h: Removed.
  14374. * src/ChokeMessage.h: Removed.
  14375. * src/PeerMessage.h: Removed.
  14376. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14377. To know root cause of exception:
  14378. * src/Exception.h
  14379. (cause): New variable.
  14380. (Exception): Added a parameter.
  14381. (getMsg): Return const reference to msg.
  14382. (getCause): New function.
  14383. * src/DlRetryEx.h
  14384. (DlRetryEx): Added a parameter 'cause'.
  14385. Added an overloaded constructor.
  14386. (DlAbortEx): Added a parameter 'cause'.
  14387. Added an overloaded constructor.
  14388. * src/SimpleLogger.cc
  14389. (writeLog): Log nested exception messages recursively.
  14390. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14391. * src/DefaultBtProgressInfoFile.cc
  14392. (load): Fixed memory leak when the infohash doesn't match.
  14393. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14394. * src/DefaultPeerStorage.cc
  14395. (calculateStat): Simplified the code by combining 2 loops into 1.
  14396. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14397. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14398. for BitTorrent download:
  14399. * src/PeerAbstractCommand.cc
  14400. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14401. * src/main.cc:
  14402. (timeoutSpecified): Removed.
  14403. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14404. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14405. * src/TorrentRequestInfo.cc
  14406. (timeoutSpecified): Removed.
  14407. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14408. timeout value.
  14409. * src/prefs.h
  14410. (PREF_BT_TIMEOUT): New definition.
  14411. Delete unused variables:
  14412. * src/TorrentRequestInfo.cc
  14413. (requestInfo): Removed.
  14414. Move setSignalHander to Util::setGlobalSignalHandler:
  14415. * src/TorrentRequestInfo.cc:
  14416. setSignalHander -> Util::setGlobalSignalHandler
  14417. * src/main.cc
  14418. (setSignalHander): Removed.
  14419. (main): setSignalHander -> Util::setGlobalSignalHandler
  14420. * src/Util.h
  14421. (setGlobalSignalHandler): New function.
  14422. * src/Util.cc
  14423. (setGlobalSignalHandler): New function.
  14424. * src/UrlRequestInfo.cc:
  14425. setSignalHander -> Util::setGlobalSignalHandler
  14426. Reset peer status in order to exit gracefully:
  14427. * src/PeerAbstractCommand.cc
  14428. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14429. To fix the bug that causes the number of bytes uploaded is not saved
  14430. to .aria2 file:
  14431. * src/DefaultPeerStorage.h
  14432. (removedPeerSessionDownloadLength): New variable.
  14433. (removedPeerSessionUploadLength): New variable.
  14434. * src/DefaultPeerStorage.cc
  14435. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14436. removedPeerSessionUploadLength(0).
  14437. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14438. through all peers, and then add removedPeerSessionDownloadLength(
  14439. removedPeerSessionUploadLength) to it.
  14440. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14441. (to) the peer to removedPeerSessionDownloadLength
  14442. (removedPeerSessionUploadLength).
  14443. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14444. To add Metalink location option:
  14445. * src/MetalinkRequestInfo.cc
  14446. (execute): Call MetalinkEntry::setLocationPreference()
  14447. * src/main.cc
  14448. (showUsage): Added the help message for --metalink-location option.
  14449. (main): Added --metalink-location option.
  14450. * src/prefs.h
  14451. (PREF_METALINK_LOCATION): New definition.
  14452. * src/MetalinkEntry.cc
  14453. (AddLocationPreference): New function object.
  14454. (setLocationPreference): New function.
  14455. * src/Xml2MetalinkProcessor.cc
  14456. (getResource): Set location attribute to MetalinkResource
  14457. To show URLs to download
  14458. * src/UrlRequestInfo.h
  14459. (printUrls): New function.
  14460. To add multiple <file> Metalink support:
  14461. * src/MetalinkEntry.h
  14462. (MetalinkResources): Removed.
  14463. (setLocationPreference): New function.
  14464. (MetalinkEntryHandle): New type definition.
  14465. (MetalinkEntries): New type definition.
  14466. * src/Xml2MetalinkProcessor.h
  14467. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14468. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14469. (parseFile): Metalinker* -> MetalinkerHandle
  14470. * src/UrlRequestInfo.h
  14471. (execute): RequestInfo* -> RequestInfos
  14472. * src/MetalinkRequestInfo.cc
  14473. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14474. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14475. (execute): RequestInfo* -> RequestInfos
  14476. Added multiple <file> support. Print filename when it is queued.
  14477. * src/MetalinkRequestInfo.h
  14478. (execute): RequestInfo* -> RequestInfos
  14479. (getDownloadEngine): Removed.
  14480. * src/RequestInfo.h
  14481. (RequestInfoHandle): New type definition.
  14482. (RequestInfos): New type definition.
  14483. (execute): RequestInfo* -> RequestInfos
  14484. (getDownloadEngine): Removed.
  14485. * src/MetalinkResource.h
  14486. (MetalinkResourceHandle): New type definition.
  14487. (MetalinkResources): New type definition.
  14488. * src/MetalinkEntry.cc
  14489. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14490. because the element is now of type MetalinkResourceHandle.
  14491. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14492. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14493. (dropUnsupportedResource): Removed the deletion of the elements of
  14494. resources because the element is now of type MetalinkResourceHandle.
  14495. * src/Xml2MetalinkProcessor.cc
  14496. (parseFile): Metalinker* -> MetalinkerHandle
  14497. MetalinkEntry* -> MetalinkEntryHandle
  14498. Removed try-catch block.
  14499. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14500. MetalinkResource* -> MetalinkResourceHandle
  14501. Removed try-catch block.
  14502. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14503. Free result by using xmlXPathFreeObject()
  14504. * src/Metalinker.cc
  14505. (~Metalinker): Removed the deletion of entries.
  14506. MetalinkEntry* -> MetalinkEntryHandle
  14507. (queryEntry): Add multiple <file> Metalink support.
  14508. * src/Metalinker.h
  14509. (MetalinkEntries): Removed.
  14510. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14511. * src/MetalinkProcessor.h
  14512. (parseFile): Metalinker* -> MetalinkerHandle
  14513. Bug fixes:
  14514. * src/PeerChokeCommand.cc
  14515. (execute): cat01->cat02
  14516. * src/DefaultPieceStorage.cc
  14517. (DefaultPieceStorage): Added diskAdaptor(0)
  14518. * src/TrackerWatcherComand.cc:
  14519. (execute): Use btAnnounce->noMoreAnnounce()
  14520. to determin whether the function returns true or not.
  14521. * src/TrackerUpdateCommand.cc:
  14522. (execute): Use btAnnounce->noMoreAnnounce()
  14523. to determin whether the function returns true or not.
  14524. * src/FtpConnection.cc
  14525. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14526. This is the fix of the busy loop bug.
  14527. * src/DownloadCommand.cc
  14528. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14529. cached PeerStat.
  14530. The value of "name" entry in torrent file is now set by
  14531. *DiskAdaptor::setTopDir(...) methods.
  14532. * src/MultiDiskAdaptor.h
  14533. (topDir): New variable.
  14534. (setTopDir): New function.
  14535. (getTopDir): New function.
  14536. * src/MultiDiskAdaptor.cc
  14537. (getFilePath): Concat storDir, "/" and topDir.
  14538. (mkdir): Use getFilePath() to get the directory path for output.
  14539. * src/DefaultPieceStorage.cc
  14540. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14541. CopyDiskAdaptor.
  14542. * src/CopyDiskAdaptor.h
  14543. (topDir): New variable.
  14544. (setTopDir): New function.
  14545. (getTopDir): New function.
  14546. * src/CopyDiskAdaptor.cc
  14547. (fixFilename): Updated.
  14548. Misc
  14549. * src/UrlRequestInfo.h
  14550. (e): Removed.
  14551. (UrlRequestInfo): Removed e.
  14552. (getDownloadEngine): Removed.
  14553. * src/UrlRequestInfo.cc
  14554. (handler): Rewritten.
  14555. (printUrls): New function.
  14556. (execute): Call printUrls().
  14557. * src/HandshakeMessage.cc
  14558. (check): peerinteraction->getBtContext() -> btContext
  14559. * src/PeerInteraction.h
  14560. (getBtContext): Removed.
  14561. * src/TorrentRequestInfo.h
  14562. (execute): RequestInfo* -> RequestInfos
  14563. (getDownloadEngine): Removed.
  14564. * src/TorrentRequestInfo.cc
  14565. (haltRequested): Removed.
  14566. (btHaltRequested): New variable.
  14567. (torrentHandler): haltRequested -> btHaltRequested
  14568. (execute): RequestInfo* -> RequestInfos
  14569. * src/TorrentConsoleDownloadEngine.cc
  14570. (afterEachIteration): haltRequested -> btHaltRequested.
  14571. * src/ConsoleDownloadEngine.h
  14572. (initStatistics): Added virtual.
  14573. (calculateStatistics): Added virtual.
  14574. (onEndOfRun): Added virtual.
  14575. (afterEachIteration): Added virtual.
  14576. * src/ConsoleDownloadEngine.cc
  14577. (haltRequested): New variable.
  14578. (afterEachIteration): New function.
  14579. * src/main.cc
  14580. (requestInfo): Removed.
  14581. * src/SegmentMan.cc
  14582. (findSlowerSegmentEntry): Refactored.
  14583. * Release 0.9.0
  14584. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14585. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14586. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14587. * src/TorrentMan.h: Removed.
  14588. * src/TorrentMan.cc: Removed.
  14589. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14590. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14591. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14592. * src/PeerAbstractCommand.cc: Use btRuntime.
  14593. * src/BtContextAwareCommand.h: New class.
  14594. * src/FileEntry.h: Added accessor methods for following variables.
  14595. (path): Made private.
  14596. (length): Made private.
  14597. (offset): Made private.
  14598. (extracted): Made private.
  14599. (requested): Made private.
  14600. (FileEntries): New definition.
  14601. (FileEntryHandle): New definition.
  14602. * src/FileEntry.cc: New file.
  14603. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14604. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14605. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14606. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14607. * src/PieceStorage.h: New file.
  14608. * src/PeerInteractionCommand.h: Use btContext.
  14609. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14610. btRuntime.
  14611. * src/DefaultBtProgressInfoFile.h: New file.
  14612. * src/DefaultBtProgressInfoFile.cc: New file.
  14613. * src/File.cc
  14614. (Util.h): New include.
  14615. (mkdirs): New function.
  14616. * src/MultiDiskAdaptor.h
  14617. (mkdir): New function.
  14618. * src/PeerListProcessor.h
  14619. (Peers): Removed.
  14620. * src/PeerInteraction.h
  14621. (torrentMan): Removed.
  14622. (btContext): New variable.
  14623. (peerStorage): New variable.
  14624. (pieceStorage): New variable.
  14625. (btAnnounce): New variable.
  14626. (getTorrentMan): Removed.
  14627. (getBtContext): New function.
  14628. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14629. btAnnounce.
  14630. * src/HandshakeMessage.h
  14631. (TorrentMan.h): Removed.
  14632. * src/HandshakeMessage.cc: Use btContext.
  14633. * src/DefaultBtAnnounce.cc: New file.
  14634. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14635. * src/DefaultPieceStorage.cc: New file.
  14636. * src/DefaultBtContext.h: New file.
  14637. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14638. Use the accessor methods of FileEntry.
  14639. * src/CookieBox.cc: Updated to use Util::slice().
  14640. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14641. * src/common.h (SharedHandle.h): New include.
  14642. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14643. pieceStorage.
  14644. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14645. * src/DiskAdaptor.h
  14646. (topDir): Removed.
  14647. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14648. (setTopDir): Removed.
  14649. (getTopDir): Removed.
  14650. * src/BtContext.h: New file.
  14651. * src/DefaultPeerStorage.h: New file.
  14652. * src/PieceMessage.h (TorrentMan.h): Removed.
  14653. * src/RequestMessage.h (TorrentMan.h): Removed.
  14654. * src/TorrentDownloadEngine.h
  14655. (uploadLength): New variable.
  14656. (btContext): New variable.
  14657. (btRuntime): New variable.
  14658. (pieceStorage): New variable.
  14659. (peerStorage): New variable.
  14660. (btAnnounce): New variable.
  14661. (btProgressInfoFile): New variable.
  14662. (torrentMan): Removed.
  14663. (setBtContext): New function.
  14664. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14665. peerStorage, btAnnounce, btProgressInfoFile.
  14666. * src/Piece.h
  14667. (toString): New function.
  14668. (Pieces): New type definition.
  14669. * src/Peer.h
  14670. (active): New variable.
  14671. (Peer): Added active.
  14672. (activate): Set active to true.
  14673. (deactivate): Set active to false.
  14674. (isActive): New function.
  14675. (Peers): New type definition.
  14676. * src/DirectDiskAdaptor.cc
  14677. (getFilePath): Use the accessor methods of FileEntry.
  14678. * src/TorrentConsoleDownloadEngine.h
  14679. (afterEachIteration): New function.
  14680. * src/TorrentConsoleDownloadEngine.cc
  14681. (haltRequested): New variable.
  14682. (sendStatistics): Use pieceStorage, btRuntime.
  14683. (afterEachIteration): New function.
  14684. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14685. * src/Directry.h
  14686. (Directory): New function.
  14687. (DirectoryHandle): New type definition.
  14688. * src/BtProgressInfoFile.h: New file.
  14689. * src/RequestMessage.cc: Use pieceStorage.
  14690. * src/BtRuntime.h: New file.
  14691. * src/DefaultBtContext.cc: New file.
  14692. * src/BitfieldMan.h
  14693. (getCompletedLength): New function(private).
  14694. (getCompletedLength): New function.
  14695. (getFilteredCompletedLength): New function.
  14696. * src/BitfieldMan.h
  14697. (getCompletedLength): New function(private).
  14698. (getCompletedLength): New function.
  14699. (getFilteredCompletedLength): New function.
  14700. * src/MultiDiskAdaptor.cc
  14701. (mkdir): New function.
  14702. (openFile): Call mkdir().
  14703. (initAndOpenFile): Call mkdir().
  14704. * src/CancelMessage.h
  14705. (TorrentMan.h): Removed.
  14706. * src/RejectMessage.h
  14707. (TorrentMan.h): Removed.
  14708. * src/DownloadEngineFactory.cc
  14709. (DefaultPieceStorage.h): New include.
  14710. (DefaultPeerStorage.h): New include.
  14711. (DefaultBtAnnounce.h): New include.
  14712. (DefaultBtProgressInfoFile.h): New include.
  14713. (newTorrentConsoleEngine): Rewritten.
  14714. * src/ShareRatioSeedCriteria.h
  14715. (torrentMan): Removed.
  14716. (btContext): New variable.
  14717. (peerStorage): New variable.
  14718. (btRuntime): New variable.
  14719. (evaluate): Use btContext, btRuntime, peerStorage.
  14720. * src/AnnounceTier.h: New file.
  14721. * src/BtAnnounce.h: New file.
  14722. * src/BtRegistry.h: New file.
  14723. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14724. * src/PeerConnection.h (TorrentMan.h): Removed.
  14725. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14726. * src/Util.h
  14727. (slice): Added an argument.
  14728. * src/Util.cc
  14729. (slice): Added an argument to control whether trim is made or not.
  14730. * src/PeerStorage.h: New file.
  14731. * src/BtRegistry.cc: New file.
  14732. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14733. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14734. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14735. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14736. * src/TorrentRequestInfo.h
  14737. (e): Removed.
  14738. (showFileEntry): Added an argument.
  14739. (getDownloadEngine): Return 0.
  14740. * src/DefaultBtAnnounce.h: New file.
  14741. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14742. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14743. * src/PeerMessageFactory.h
  14744. (btContext): New variable.
  14745. (pieceStorage): New variable.
  14746. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14747. btAnnounce.
  14748. * src/DiskAdaptor.cc
  14749. (DiskAdaptor): Removed topDir.
  14750. (~DiskAdaptor): Removed topDir.
  14751. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14752. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14753. * src/File.h (mkdirs): New function.
  14754. * src/DefaultPeerStorage): New file.
  14755. * src/DownloadEngineFactory.h
  14756. (newTorrentConsoleEngine): Use btContext.
  14757. * src/BtContextAwareCommand.cc: New file.
  14758. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14759. * src/PeerMessage.h
  14760. (btContext): New variable.
  14761. (peerStorage): New variable.
  14762. (pieceStorage): New variable.
  14763. (setBtContext): New function.
  14764. * src/Directry.cc
  14765. (Directory): New function.
  14766. (createDir): Do nothing if name.size() == 0.
  14767. * src/AnnounceList.h
  14768. (AnnounceTier): Removed.
  14769. (AnnounceTiers): Removed.
  14770. * src/DefaultPieceStorage.h: New file.
  14771. * src/Piece.cc (toString): New function.
  14772. To fix typo:
  14773. * src/main.cc (showVersion): Fixed typo.
  14774. To fix compile warning:
  14775. * src/DelegatingPeerListProcessor.cc
  14776. (canHandle): Added "return false".
  14777. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14778. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14779. make the process of announce request testable.
  14780. * src/TrackerWatcherCommand.h
  14781. (TimeA2.h): Removed.
  14782. (interval): Removed.
  14783. (checkPoint): Removed.
  14784. (createRequestCommand): Added an argument 'url'.
  14785. (TrackerWatherCommand): Removed interval.
  14786. (createCommand): New function.
  14787. * src/DownloadEngineFactory.cc
  14788. (newTorrentConsoleEngine): Updated according to the changes in
  14789. TrackerWatherCommand.
  14790. * src/TorrentMan.cc
  14791. (DelegatingPeerListProcessor.h): New includes.
  14792. (TorrentMan): Added the initialization of announceInterval.
  14793. (isStoppedAnnounceReady): New function.
  14794. (isCompletedAnnounceReady): New function.
  14795. (isDefaultAnnounceReady): New function.
  14796. (isAnnounceReady): New function.
  14797. (getAnnounceUrl): New function.
  14798. (announceStart): New function.
  14799. (announceFailure): New function.
  14800. (announceSuccess): New function.
  14801. (isAllAnnounceFailed): New function.
  14802. (resetAnnounce): New function.
  14803. (processAnnounceResponse): New function.
  14804. (needMorePeerConnection): New function.
  14805. (noMoreAnnounce): New function.
  14806. * src/TrackerUpdateCommand.h
  14807. (getTrackerResponse): int->size_t
  14808. * src/TorrentMan.h
  14809. (isStoppedAnnounceReady): New function.
  14810. (isCompletedAnnounceReady): New function.
  14811. (isDefaultAnnounceReady): New function.
  14812. (announceInterval): New variable.
  14813. (isAnnounceReady): New function.
  14814. (getAnnounceUrl): New function.
  14815. (announceStart): New function.
  14816. (announceFailure): New function.
  14817. (announceSuccess): New function.
  14818. (isAllAnnounceFailed): New function.
  14819. (resetAnnounce): New function.
  14820. (processAnnounceResponse): New function.
  14821. (needMorePeerConnection): New function.
  14822. (noMoreAnnounce): New function.
  14823. * src/TrackerWatcherCommand.cc
  14824. (TrackerWatherCommand): Removed interval and checkPoint.
  14825. (execute): Rewritten.
  14826. (createCommand): New function.
  14827. (createRequestCommand): Rewritten.
  14828. * src/TrackerUpdateCommand.cc
  14829. (MetaFileUtil.h): Removed.
  14830. (DelegatingPeerListProcessor.h): Removed.
  14831. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14832. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14833. Request -> RequestHandle:
  14834. * src/HttpResponseCommand.h: Request->RequestHandle
  14835. * src/AbstractCommand.cc: Request->RequestHandle
  14836. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14837. * src/HttpRequestCommand.cc: Request->RequestHandle
  14838. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14839. * src/AbstractCommand.h: Request->RequestHandle
  14840. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14841. * src/HttpResponseCommand.cc: Request->RequestHandle
  14842. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14843. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14844. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14845. * src/HttpConnection.h: Request->RequestHandle
  14846. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14847. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14848. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14849. * src/DownloadCommand.h: Request->RequestHandle
  14850. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14851. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14852. * src/HttpRequestCommand.h: Request->RequestHandle
  14853. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14854. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14855. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14856. * src/HttpDownloadCommand.h: Request->RequestHandle
  14857. * src/FtpConnection.cc: Request->RequestHandle
  14858. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14859. * src/UrlRequestInfo.cc: Request->RequestHandle
  14860. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14861. * src/HttpConnection.h: Request->RequestHandle
  14862. * src/DownloadCommand.cc: Request->RequestHandle
  14863. * src/FtpConnection.h: Request->RequestHandle
  14864. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14865. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14866. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14867. * src/Request.h
  14868. (SharedHandle.h): New include.
  14869. (RequestHandle): New type definition.
  14870. (Requests): Redefined.
  14871. To add MULTITRACKER support:
  14872. * src/TrackerWatcherCommand.h
  14873. (createRequestCommand): New function.
  14874. * src/DownloadEngineFactory.cc
  14875. (newTorrentConsoleEngine): Removed req.
  14876. * src/prefs.h
  14877. (PREF_TRACKER_MAX_TRIES): New definition.
  14878. * src/TorrentMan.cc
  14879. (TorrentMan): Removed req. Added trackerNumTry.
  14880. (~TorrentMan): Removed req.
  14881. (setupInternal1): Added announceList.
  14882. * src/TorrentRequestInfo.cc
  14883. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14884. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14885. * src/main.cc
  14886. (main): Added PREF_TRACKER_MAX_TRIES.
  14887. * src/TorrentMan.h
  14888. (Request.h): Removed.
  14889. (AnnounceList.h): New include.
  14890. (trackerNumTry): New variable.
  14891. (req): Removed.
  14892. (announceList): New variable.
  14893. * src/TrackerWatcherCommand.cc
  14894. (execute): Rewritten.
  14895. (createRequestCommand): New function.
  14896. * src/TrackerUpdateCommand.cc
  14897. (execute): Updated with the use of AnnounceList.
  14898. * src/AnnounceList.cc: New class.
  14899. * src/AnnounceList.h: New class.
  14900. To fix typo:
  14901. * src/prefs.h
  14902. (PREF_MAX_TRIES): max_try->max_tries
  14903. To not to decode "+" as space in URL decode:
  14904. * src/Util.cc
  14905. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14906. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14907. To add timeout to async name resolution:
  14908. * src/AbstractCommand.h
  14909. (nameResolveFinished): New function. This is not elegant way. It needs
  14910. to be more refined.
  14911. (nameResolverCheck): New variable.
  14912. * src/AbstractCommand.cc
  14913. (AbstractCommand): Added nameResolverCheck.
  14914. (execute): Added the check whether the name resolution has finished.
  14915. (setNameResolverCheck): Set nameResolverCheck to true.
  14916. (disableNameResolverCheck): Set nameResolverCheck to false.
  14917. (nameResolverFinished): New function.
  14918. * src/FtpInitiateConnectionCommand.h
  14919. (nameResolverFinished): New function.
  14920. * src/FtpInitiateConnectionCommand.cc
  14921. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14922. * src/HttpInitiateConnectionCommand.h
  14923. (nameResolverFinished): New function.
  14924. * src/HttpInitiateConnectionCommand.cc
  14925. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14926. * src/prefs.h
  14927. (PREF_DNS_TIMEOUT): New definition.
  14928. * src/main.cc
  14929. (main): Added PREF_DNS_TIMEOUT.
  14930. To add the support for a non-compact response from a tracker:
  14931. * src/PeerListProcessor.h: New class.
  14932. * src/DefaultPeerListProcessor.h: New class.
  14933. * src/DefaultPeerListProcessor.cc: New class.
  14934. * src/CompactPeerListProcessor.h: New class.
  14935. * src/CompactPeerListProcessor.cc: New class.
  14936. * src/DelegatingPeerListProcessor.h: New class.
  14937. * src/DelegatingPeerListProcessor.cc: New class.
  14938. * src/TorrentMan.cc
  14939. (addPeer): New function(overload).
  14940. (addPeer): Delete unused peers only when new peer is added.
  14941. * src/TorrentMan.h
  14942. (PeerListProcessor.h): Included.
  14943. (Peers): Removed.
  14944. (addPeer): New function(overload).
  14945. * src/TrackerUpdateCommand.cc
  14946. (netinet/in.h): Removed.
  14947. (DelegatingPeerListProcessor.h): Included.
  14948. (execute): Updated to use DelegatingPeerListProcessor.
  14949. To fix the memory leak in TorrentMan::peers:
  14950. * src/PeerAbstractCommand.cc
  14951. (onAbort): Added peer->resetStatus().
  14952. * src/Peer.h
  14953. (resetStatus): Made public.
  14954. To improve the precision of the speed calculation:
  14955. * src/SpeedCalc.h
  14956. (nextInterval): New variable.
  14957. * src/SpeedCalc.cc
  14958. (reset): Added nextInterval.
  14959. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14960. (changeSw): Set nextInterval to 15 seconds relative to the current
  14961. instant time.
  14962. * src/main.cc
  14963. (showVersion): Updated.
  14964. (showUsage): Updated.
  14965. * Release 0.8.1
  14966. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14967. * src/main.cc
  14968. (showUsage): Commented out --min-segment-size option.
  14969. (main): Commented out --min-segment-size option.
  14970. * Release 0.8.0
  14971. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14972. * src/*.{h,cc}:
  14973. Added an exception to the license which allows linking with OpenSSL.
  14974. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14975. * src/AbstractCommand.cc
  14976. (execute): Check whether the download has finished before checking
  14977. socket status.
  14978. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14979. Do not exit even if no segment is available.
  14980. * src/prefs.h
  14981. (PREF_STARTUP_IDLE_TIME): New definition.
  14982. * src/PeerInteractionCommand.cc
  14983. (executeInternal): Removed max speed limit. Because it performs bad.
  14984. (receiveMessages): Added max speed limit. This was better than above,
  14985. but still a little bit to be desired. Sometimes the download speed
  14986. became much faster than I specified.
  14987. * src/SpeedCalc.h
  14988. (start): New variable.
  14989. (accumulatedLength): New variable.
  14990. (getAvgSpeed): New function.
  14991. * src/SpeedCalc.cc
  14992. (reset): Added start, accumulatedLength.
  14993. (update): Added calculation of an average speed.
  14994. (getAvgSpeed): New function.
  14995. * src/DownloadCommand.h
  14996. (sw): Removed.
  14997. * src/main.cc
  14998. (main): Added PREF_STARTUP_IDLE_TIME.
  14999. * src/PeerStat.h
  15000. (STATUS): Added REQUEST_IDLE.
  15001. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  15002. (getAvgDownloadSpeed): New function
  15003. (requestIdle): New function.
  15004. * src/SegmentMan.h
  15005. (SegmentEntryHandle): New type definition.
  15006. (SegmentEntries): Now holds SegmentEntryHandle.
  15007. (findSlowerSegmentEntry): New funtion.
  15008. * src/SegmentMan.cc
  15009. (save): Updated according to the changes in SegmentEntries.
  15010. (read): Updated according to the changes in SegmentEntries.
  15011. (FindSegmentEntryByIndex): Updated according to the changes in
  15012. SegmentEntries.
  15013. (FindSegmentEntryByCuid): Updated according to the changes in
  15014. SegmentEntries.
  15015. (checkoutSegment): Updated according to the changes in SegmentEntries.
  15016. (onNullBitfield): Updated according to the changes in SegmentEntries.
  15017. Renamed uitr as itr.
  15018. (findSlowerSegmentEntry): New function.
  15019. (getSegment): Updated according to the changes in SegmentEntries.
  15020. Added the feature that cancels the segment with slow server and fast
  15021. one takes it over.
  15022. (cancelSegment): Updated according to the changes in SegmentEntries.
  15023. (getDownloadLength): Updated according to the changes in
  15024. SegmentEntries.
  15025. (init): Assigned 0 to bitfield after deleting it.
  15026. * src/DownloadCommand.cc
  15027. (STARTUP_IDLE_TIME): Removed.
  15028. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  15029. * src/PeerChokeCommand.cc
  15030. (optUnchokingPeer): Updated according to the changes in Peer.
  15031. (ResetDelta): Removed.
  15032. (UploadFaster): Updated according to the changes in Peer.
  15033. (DownloadFaster): Updated according to the changes in Peer.
  15034. (execute): I clarify the meaning of "upload" and "download" here.
  15035. "upload" means the transfer from localhost to remote host.
  15036. "download" means the transfer from remote host to localhost.
  15037. Based on this rule, I swapped orderByUploadRate and
  15038. orderByDownloadRate.
  15039. * src/PeerInteractionCommand.cc
  15040. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  15041. (executeInternal): Removed the argument of
  15042. peerInteraction->sendMessages().
  15043. (receiveMessages): Rewritten download speed limit.
  15044. (sendKeepAlive): Removed peerInteraction->sendMessages().
  15045. * src/HttpResponseCommand.cc
  15046. (handleDefaultEncoding): If file size is unknown in torrent request,
  15047. do not call segmentMan->initBitfield() here.
  15048. Disabled persistent connection feature in torrent request.
  15049. * src/UrlRequestInfo.h
  15050. (UrlRequestInfo): Removed const qualifier from option.
  15051. * src/TorrentMan.h
  15052. (TransferStat): New class.
  15053. (deltaDownloadLength): Removed.
  15054. (deltaUploadLength): Removed.
  15055. (addDeltaDownloadLength): Removed.
  15056. (getDeltaDownloadLength): Removed.
  15057. (resetDeltaDownloadLength): Removed.
  15058. (addDeltaUploadLength): Removed.
  15059. (getDeltaUploadLength): Removed.
  15060. (resetDeltaUploadLength): Removed.
  15061. (addActivePeer): Added peer->activate().
  15062. (deleteActivePeer): Added peer->deactivate().
  15063. (calculateStat): New function.
  15064. * src/TorrentMan.cc
  15065. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  15066. (calculateStat): New function.
  15067. * src/PeerInteraction.h
  15068. (uploadLimit): Removed.
  15069. (option): New variable.
  15070. (setUploadLimit): Removed.
  15071. (getUploadSpeed): Removed.
  15072. (sendMessages): Removed the argument "currentUploadSpeed".
  15073. * src/PeerInteraction.cc
  15074. (prefs.h): Included.
  15075. (PeerInteraction): Removed uploadLimit. Added option.
  15076. (sendMessages): Rewritten upload speed limit.
  15077. (sendHandshake): Removed the argument from sendMessages().
  15078. (sendBitfield): Removed the argument from sendMessages().
  15079. * src/PeerAbstractCommand.cc
  15080. (execute): Commented out the portion of upload limit.
  15081. (onAbort): Removed peer->resetStatus().
  15082. * src/TorrentRequestInfo.cc
  15083. (timeoutSpecified): Declared extern.
  15084. (execute): Set timeout to 180 if timeout is not specified by.
  15085. command-line.
  15086. * src/PieceMessage.cc
  15087. (receivedAction): Added peer->updateDownloadLength().
  15088. Removed peer->addPeerUpload().
  15089. Removed torrentMan->addDeltaDownloadLength().
  15090. (send): Added peer->updateUploadLength().
  15091. Removed peer->addPeerDownload().
  15092. Removed torrentMan->addDeltaUploadLength().
  15093. * src/main.cc
  15094. (timeoutSpecified): New variable.
  15095. (main): Set timeoutSpecified to false.
  15096. If the command-line option "--upload-limit" is specified, then
  15097. timeoutSpecified is set to true. This option will remain in the next
  15098. release, but be deprecated in the future release.
  15099. * src/TorrentRequestInfo.h
  15100. (TorrentRequestInfo): Removed const qualifier from op.
  15101. * src/PeerStat.h
  15102. (uploadSpeed): New variable.
  15103. (PeerStat): Added default value to cuid.
  15104. (calculateUploadSpeed): New function.
  15105. (updateUploadLength): New function.
  15106. (getMaxUploadSpeed): New function.
  15107. (getAvgUploadSpeed): New function.
  15108. (reset): Added uploadSpeed. Set status to IDLE.
  15109. * src/TorrentDownloadEngine.h
  15110. (cp): Declared as Time.
  15111. (sessionDownloadLengthArray): Removed.
  15112. (sessionUploadLengthArray): Removed.
  15113. (currentCp): Removed.
  15114. (lastCalcStat): New variable
  15115. (lastElapsed): Removed.
  15116. (sessionDownloadLength): Removed.
  15117. (calculateStat): New function.
  15118. * src/TorrentDownloadEngine.cc
  15119. (initStatistics): Removed lastElapsed, cp[],
  15120. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  15121. currentCp, sessionDownloadLength.
  15122. Added cp.reset() and lastCalcStat.reset().
  15123. (calculateSpeed): Changed the name of the argument.
  15124. (calculateStatistics): Rewritten.
  15125. (calculateStat): New function.
  15126. * src/Peer.h
  15127. (PeerStat.h): Included.
  15128. (peerUpload): Removed.
  15129. (peerDownload): Removed.
  15130. (peerStat): New variable.
  15131. (sessionUploadLength): New variable.
  15132. (sessionDownloadLength): New variable.
  15133. (deltaUpload): Removed.
  15134. (deltaDownload): Removed.
  15135. (resetStatus): Made private.
  15136. (Peer): Added sessionUploadLength, sessionDownloadLength.
  15137. Removed peerUpload, peerDownload.
  15138. (updateUploadLength): New function.
  15139. (addDeltaUpload): Removed.
  15140. (updateDownloadLength): New function.
  15141. (resetDeltaUpload): Removed.
  15142. (getDeltaUpload): Removed.
  15143. (addDeltaDownload): Removed.
  15144. (calculateUploadSpeed): New function.
  15145. (resetDeltaDownload): Removed.
  15146. (getDeltaDownload): Removed.
  15147. (calculateDownloadSpeed): New function.
  15148. (getSessionUploadLength): New function.
  15149. (getSessionDownloadLength): New function.
  15150. (activate): New function.
  15151. (deactivate): New function.
  15152. (addPeerUpload): Removed.
  15153. (setPeerUpload): Removed.
  15154. (getPeerUpload): Removed.
  15155. (addPeerDownload): Removed.
  15156. (setPeerDownload): Removed.
  15157. (getPeerDownload): Removed.
  15158. * src/Peer.cc
  15159. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  15160. * src/MetalinkRequestInfo.h
  15161. (MetalinkRequestInfo): Removed const qualifier from op.
  15162. * src/RequestInfo.h
  15163. (op): Removed const qualifier.
  15164. (RequestInfo): Removed const qualifier from op.
  15165. * src/prefs.h
  15166. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  15167. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  15168. * src/PeerInteractionCommand.cc
  15169. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  15170. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  15171. * src/PeerInteraction.cc
  15172. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  15173. * src/main.cc
  15174. (showUsage): Updated the description of "--lowest-speed-limit" option.
  15175. Added the description of "--max-download-limit" option.
  15176. Removed the description of "--upload-limit" option.
  15177. Added the description of "--max-upload-limit" option.
  15178. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  15179. Added "--max-download-limit" option and "--max-upload-limit" option.
  15180. Added the warning message if "--upload-limit" option is used.
  15181. * src/DownloadCommand.cc
  15182. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  15183. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15184. To rewrite segment download mechanism for HTTP/FTP download.
  15185. Use BitfieldMan to manage segment download.
  15186. * src/HttpResponseCommand.h
  15187. (executeInternal): Pass the reference of segment.
  15188. * src/AbstractCommand.cc
  15189. (prepareForRetry): Call segmentMan->cancelSegment here.
  15190. (onAbort): Call segmentMan->cancelSegment here.
  15191. * src/HttpDownloadCommand.cc
  15192. (prepareForNextSegment): New function.
  15193. * src/DownloadEngineFactory.cc
  15194. (newConsoleEngine): Removed splitter.
  15195. (newTorrentConsoleEngine): Removed splitter.
  15196. * src/Request.h
  15197. (segment): Renamed from seg.
  15198. * src/FtpInitiateConnectionCommand.h
  15199. (executeInternal): Pass the reference of segment.
  15200. * src/AbstractCommand.h
  15201. (executeInternal): Pass the reference of segment.
  15202. * src/pref.h
  15203. (PREF_SEGMENT_SIZE): New definition.
  15204. * src/HttpProxyRequestCommand.h
  15205. (executeInternal): Pass the reference of segment.
  15206. * src/HttpResponseCommand.cc
  15207. (checkResponse): Allowed status 206 when a request range starts 0.
  15208. (handleDefaultEncoding): Rewritten the code related to Segment.
  15209. (handleOtherEncoding): Rewritten the code related to Segment.
  15210. * src/SegmentMan.h
  15211. (SegmentEntry): New class.
  15212. (SegmentEntries): New type definition.
  15213. (bitfield): New variable.
  15214. (usedSegmentEntries): New variable.
  15215. (onNullBitfield): New function.
  15216. (checkoutSegment): New function.
  15217. (segments): Removed.
  15218. (splitter): Removed.
  15219. (unregisterId): Removed.
  15220. (getSegment): New function(overload)
  15221. (getDownloadedSize): Removed.
  15222. (cancelSegment): New function.
  15223. (completeSegment): New function.
  15224. (initBitfield): New function.
  15225. (hasSegment): New function.
  15226. (getDownloadLength): New function.
  15227. * src/BitfieldMan.h
  15228. (getStartIndex): New function.
  15229. (getEndIndex): New function.
  15230. (getMissingUnusedIndex): New function(overload).
  15231. (getSparseMissingUnusedIndex): New function.
  15232. * src/BitfieldMan.cc
  15233. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  15234. (getMissingUnusedIndex): New function(overload).
  15235. (Range): New class.
  15236. (getStartIndex): New function.
  15237. (getEndIndex): New function.
  15238. (getSparseMissingUnusedIndex): New function.
  15239. (isBitSetInternal): Return false if the given index is less than 0.
  15240. * src/HttpInitiateConnectionCommand.h
  15241. (executeInternal): Pass the reference of segment.
  15242. * src/FtpNegotiateCommand.h
  15243. (executeInternal): Pass the reference of segment.
  15244. * src/FtpNegotiateCommand.cc
  15245. (recvSize): Initialize bitfield here.
  15246. * src/FtpTunnelResponseCommand.h
  15247. (executeInternal): Pass the reference of segment.
  15248. * src/HttpConnection.cc
  15249. (createRequest): Rewritten range header processing.
  15250. * src/DownloadCommand.h
  15251. (executeInternal): Pass the reference of segment.
  15252. (prepareForRetry): Removed.
  15253. (prepareForNextSegment): Added an argument segment. Made it a virtual
  15254. function.
  15255. * src/main.cc
  15256. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  15257. * src/SegmentMan.cc
  15258. (SegmentMan): Added bitfield. Removed splitter.
  15259. (~SegmentMan): Added bitfield. Removed splitter.
  15260. (unregisterId): Removed.
  15261. (getSegment): Rewritten.
  15262. (updateSegment): Rewritten.
  15263. (save): Rewritten.
  15264. (read): Rewritten.
  15265. (finished): Rewritten.
  15266. (getDownloadedSize): Removed.
  15267. (initBitfield): New function.
  15268. (FindSegmentEntryByIndex): New function object.
  15269. (FindSegmentEntryByCuid): New function object.
  15270. (checkoutSegment): New function.
  15271. (onNullBitfield): New function.
  15272. (getSegment): New function(overload).
  15273. (CancelSegment): New function object.
  15274. (cancelSegment): New function.
  15275. (completeSegment): New function.
  15276. (hasSegment): New function.
  15277. (getDownloadLength): New function.
  15278. * src/FtpInitiateConnectionCommand.cc
  15279. (executeInternal): Load .aria2 file after hostname resolution finishes.
  15280. * src/Segment.h: Rewritten.
  15281. * src/Segment.cc (operator<<): New function.
  15282. * src/HttpDownloadCommand.h
  15283. (prepareForNextSegment): New function.
  15284. * src/Request.cc
  15285. (resetUrl): Made segment null.
  15286. * src/DownloadEngine.cc
  15287. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  15288. * src/HttpProxyRequestCommand.h
  15289. (executeInternal): Pass the reference of segment.
  15290. * src/DownloadCommand.cc
  15291. (executeInternal): Rewritten the code related to Segment.
  15292. (prepareForRetry): Removed.
  15293. (prepareForNextSegment): Rewritten.
  15294. * src/FtpTunnelResponseCommand.h
  15295. (executeInternal): Pass the reference of segment.
  15296. To add HTTP 1.1 persistent connection support(experimental)
  15297. * src/HttpRequestCommand.cc
  15298. (executeInternal): Disable keep alive if it is disabled by
  15299. configuration.
  15300. * src/Request.h
  15301. (keepAlive): New variable.
  15302. (isKeepAlive): New function.
  15303. (setKeepAlive): New function.
  15304. * src/pref.h
  15305. (PREF_HTTP_KEEP_ALIVE): New definition.
  15306. * src/HttpResponseCommand.cc
  15307. (executeInternal): Check the remote server supports keep alive.
  15308. * src/HttpConnection.cc
  15309. (createRequest): Send "Connection: close" only if keep alive is
  15310. disabled.
  15311. * src/main.cc
  15312. (main):
  15313. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  15314. To add max download speed limit:
  15315. * src/pref.h
  15316. (PREF_MAX_SPEED_LIMIT): New definition.
  15317. * src/PeerInteractionCommand.cc
  15318. (executeInternal): Added max download speed limit. Not tested yet.
  15319. * src/SegmentMan.h
  15320. (PeerStats): New type definition.
  15321. (peerStats): New variable.
  15322. (registerPeerStat): New function.
  15323. (FindPeerStat): New function object.
  15324. (getPeerStat): New function.
  15325. (calculateDownloadSpeed): New function.
  15326. * src/SpeedCalc.h: New class.
  15327. * src/SpeedCalc.cc: New class.
  15328. * src/main.cc
  15329. (main):
  15330. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  15331. download speed is not restricted).
  15332. * src/PeerStat.h: New class.
  15333. * src/SegmentMan.cc
  15334. (registerPeerStat): New function.
  15335. (calculateDownloadSpeed): New function.
  15336. * src/DownloadCommand.cc
  15337. (STARTUP_IDLE_TIME): New definition.
  15338. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  15339. downloadStart.
  15340. (~DownloadCommand): Call peerStat->downloadStop.
  15341. (executeInternal): Added download speed limitter. Rewritten lowest
  15342. speed limitter.
  15343. * src/HttpConnection.cc
  15344. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  15345. * src/AbstractCommand.cc
  15346. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  15347. Added hostname to the error message.
  15348. * src/ConsoleDownloadEngine.cc
  15349. (calculateStatistics): Initialize psize with dlSize.
  15350. * src/PieceMessage.cc
  15351. (receivedAction): Do not call peerInteraction->abortPiece here.
  15352. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  15353. * src/BitfieldMan.h
  15354. (clearAllUseBit): New function.
  15355. (setAllUseBit): New function.
  15356. * src/BitfieldMan.cc
  15357. (clearAllBit): Do not clear useBitfield here.
  15358. (clearAllUseBit): New function.
  15359. (setAllUseBit): New function.
  15360. * src/Piece.cc
  15361. (clearAllBlock): Call bitfield->clearAllUseBit().
  15362. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15363. To make filename URL-decoded:
  15364. * src/HttpResponseCommand.h: Updated doc.
  15365. * src/HttpResponseCommand.cc
  15366. (determinFilename): Made filename URL-decoded.
  15367. * src/FtpInitiateConnectionCommand.cc
  15368. (executeInternal): Made filename URL-decoded.
  15369. * src/Util.h (urldecode): New function.
  15370. * src/Util.cc (urldecode): New function.
  15371. To fix a bug that caused assertion failure in ares_strerror:
  15372. * src/NameResolver.cc (callback): Fixed the bug.
  15373. * Release 0.7.3
  15374. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15375. To add --seed-time and --seed-ratio command-line option:
  15376. * src/Option.h (getAsDouble): New function.
  15377. * src/Option.cc (getAsDouble): New function.
  15378. * src/SeedCheckCommand.h: New class.
  15379. * src/SeedCheckCommand.cc: New class.
  15380. * src/DownloadEngineFactory.cc
  15381. (SeedCheckCommand.h): Included.
  15382. (UnionSeedCriteria.h): Included.
  15383. (TimeSeedCriteria.h): Included.
  15384. (ShareRatioSeedCriteria.h): Included.
  15385. (newTorrentConsoleEngine): Added the processing of seed option.
  15386. * src/SeedCriteria.h: New class.
  15387. * src/ShareRatioSeedCriteria.h: New class.
  15388. * src/TimeSeedCriteria.h: New class.
  15389. * src/UnionSeedCriteria.h: New class.
  15390. * src/prefs.h
  15391. (PREF_SEED_TIME): New definition.
  15392. (PREF_SEED_RATIO): New definition.
  15393. * src/main.cc
  15394. (showUsage): Added --seed-time and --seed-ratio option.
  15395. (main): Added --seed-time and --seed-ratio option.
  15396. Made default log file name "/dev/null".
  15397. * src/SharedHandle.h
  15398. (SharedHandle): Copy constructor. Made it assignable from the
  15399. SharedHandle of the subclasses.
  15400. (operator=): Made it assignable from the SharedHandle of the
  15401. subclasses.
  15402. (getRefCount): New function.
  15403. To add notice log level and the switch to write log to stdout. This
  15404. switch is configurable per log level.
  15405. * src/Logger.h
  15406. (notice): New function.
  15407. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15408. constant.
  15409. * src/LogFactory.cc
  15410. (getInstance): The use of NullLogger was removed. A log message with
  15411. notice log level was made written to stdout along with log file.
  15412. * src/NullLogger.h
  15413. (notice): New function.
  15414. * src/SimpleLogger.h
  15415. (writeHeader): Added the 'file' argument.
  15416. (writeLog): Added the 'file' argument.
  15417. (writeFile): New function.
  15418. (stdoutField): New variable.
  15419. (SimpleLogger): Removed the default constructor.
  15420. (SimpleLogger): Made the default value of logfile 0.
  15421. (debug): Added 'virtual' keyword.
  15422. (info): Added 'virtual' keyword.
  15423. (warn): Added 'virtual' keyword.
  15424. (error): Added 'virtual' keyword.
  15425. (notice): New function.
  15426. (setStdout): New function.
  15427. * src/SimpleLogger.cc
  15428. (WRITE_LOG): Replaced writeLog with writeFile.
  15429. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15430. (SimpleLogger): Removed the default constructor.
  15431. (setStdout): New function.
  15432. (writeLog): Added the handling of NOTICE log level.
  15433. (writeFile): New function.
  15434. (notice): New function.
  15435. * src/TorrentMan.h: Updated doc.
  15436. * src/BitfieldMan.h: Updated doc.
  15437. * src/TrackerWatcherCommand.cc
  15438. (execute): Return true if error occurred in the request to the tracker
  15439. and halt is requested.
  15440. * src/TrackerUpdateCommand.cc
  15441. (execute): Return true if error occurred in the request to the tracker
  15442. and halt is requested.
  15443. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15444. DownloadEngine:
  15445. * src/TorrentConsoleDownloadEngine.h
  15446. (onSelectiveDownloadingCompletes): Removed.
  15447. * src/TorrentConsoleDownloadEngine.cc
  15448. (onSelectiveDownloadingCompletes): Removed.
  15449. * src/TorrentDownloadEngine.h
  15450. (onEndOfRun): Added 'virtual' keyword.
  15451. (afterEachIteration): Removed.
  15452. (onSelectiveDownloadingCompletes): Removed.
  15453. * src/TorrentDownloadEngine.cc
  15454. (onEndOfRun): Removed filenameFixed.
  15455. (afterEachIteration): Removed.
  15456. * src/TorrentMan.cc
  15457. (completePiece): Call onDownloadComplete here.
  15458. (onDownloadComplete): Added 2 log messages.
  15459. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15460. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15461. * src/NameResolver.h: Added the prototype declaration of callback().
  15462. To support c-ares library:
  15463. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15464. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15465. * src/FtpInitiateConnectionCommand.h:
  15466. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15467. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15468. * src/HttpInitiateConnectionCommand.h:
  15469. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15470. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15471. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15472. #1542285 by tizianomueller)
  15473. * src/HttpInitiateConnectionCommand.cc:
  15474. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15475. * src/FtpInitiateConnectionCommand.cc:
  15476. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15477. * src/DownloadEngine.h:
  15478. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15479. * src/DownloadEngine.cc:
  15480. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15481. To fix the bug that causes compilation failure with metalink-support
  15482. disabled(bug#1543587):
  15483. * src/main.cc: Fixed with the patch by tizianomueller.
  15484. * Release 0.7.2
  15485. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15486. * src/main.cc
  15487. (main): Added a message to inform users that aria2 is starting to
  15488. verify checksum.
  15489. * src/RequestInfo.cc
  15490. (printDownloadAbortMessage): Added a message to inform users that
  15491. transfer can be resumed.
  15492. * src/FeatureConfig.cc
  15493. (FEATURE_ASYNC_DNS): New definition.
  15494. (FeatureConfig): Added aysnc DNS entry.
  15495. To replace CommandUuid with Command* in SocketEntry and
  15496. NameResolverEntry:
  15497. * src/DownloadEngine.h
  15498. (CommandUuids): Removed.
  15499. (SocketEntry::commandUuid): Removed.
  15500. (SocketEntry::command): New variable.
  15501. (SocketEntry::SocketEntry): Updated.
  15502. (SocketEntry::operator==): Updated.
  15503. (NameResolverEntry::commandUuid): Removed.
  15504. (NameResolverEntry::command): New variable.
  15505. (NameResolverEntry::NameResolverEntry): Updated.
  15506. (NameResolverEntry::operator==): Updated.
  15507. (waitData): Changed the argument type.
  15508. (addSocketForReadCheck): Changed the argument type.
  15509. (deleteSocketForReadCheck): Changed the argument type.
  15510. (addSocketForWriteCheck): Changed the argument type.
  15511. (deleteSocketForWriteCheck): Changed the argument type.
  15512. (addNameResolverCheck): Changed the argument type.
  15513. (deleteNameResolverCheck): Changed the argument type.
  15514. * src/DownloadEngine.cc
  15515. (FindCommand): Removed.
  15516. (run): Removed activeUuid. Added activeCommands instead.
  15517. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15518. (AccumulateActiveCommand): New function object.
  15519. (waitData): Use AccumulateActiveCommand.
  15520. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15521. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15522. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15523. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15524. (addNameResolverCheck): Use Command instead of CommandUuid.
  15525. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15526. * src/AbstractCommand.cc
  15527. (disableReadCheckSocket): Updated according to the changes in
  15528. DownloadEngine.
  15529. (setReadCheckSocket): Updated according to the changes in
  15530. DownloadEngine.
  15531. (disableWriteCheckSocket): Updated according to the changes in
  15532. DownloadEngine.
  15533. (setWriteCheckSocket): Updated according to the changes in
  15534. DownloadEngine.
  15535. (setNameResolverCheck): Updated according to the changes in
  15536. DownloadEngine.
  15537. (disableNameResolverCheck): Updated according to the changes in
  15538. DownloadEngine.
  15539. * src/AbstractCommand.cc
  15540. (disableReadCheckSocket): Updated according to the changes in
  15541. DownloadEngine.
  15542. (setReadCheckSocket): Updated according to the changes in
  15543. DownloadEngine.
  15544. (disableWriteCheckSocket): Updated according to the changes in
  15545. DownloadEngine.
  15546. (setWriteCheckSocket): Updated according to the changes in
  15547. DownloadEngine.
  15548. * release 0.7.1
  15549. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15550. To handle the case where some BitTorrent tracker requires all letters
  15551. except for [A-Za-z0-9] is URL encoded.
  15552. * src/Util.h
  15553. (torrentUrlencode): New function.
  15554. * src/Util.cc
  15555. (ctype.h): Included.
  15556. (torrentUrlencode): New function.
  15557. * src/TrackerWatcherCommand.cc
  15558. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15559. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15560. To add asynchronous DNS support(libares):
  15561. * src/AbstractCommand.h
  15562. (setNameResolverCheck): New function.
  15563. (disableNameResolverCheck): New function
  15564. (resolveHostname): New function.
  15565. * src/AbstractCommand.cc
  15566. (setNameResolverCheck): New function.
  15567. (disableNameResolverCheck): New function
  15568. (resolveHostname): New function.
  15569. * src/FtpInitiateConnectionCommand.h
  15570. (nameResolver): New function.
  15571. * src/FtpInitiateConnectionCommand.cc
  15572. (Util.h): Included.
  15573. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15574. disableWriteCheckSocket.
  15575. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15576. (executeInternal): Added async DNS support.
  15577. * src/HttpInitiateConnectionCommand.h
  15578. (nameResolver): New function.
  15579. * src/HttpInitiateConnectionCommand.cc
  15580. (DlRetryEx.h): Included.
  15581. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15582. disableWriteCheckSocket.
  15583. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15584. (executeInternal): Added async DNS support.
  15585. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15586. by extern "C" declaration.
  15587. * src/NameResolver.cc: New class.
  15588. * src/Util.h:
  15589. (isNumberAndDotsNotation): New function
  15590. * src/Util.cc
  15591. (isNumberAndDotsNotation): New function.
  15592. * src/DownloadEngine.h
  15593. (NameResolver.h): Included.
  15594. (NameResolverEntry): New class.
  15595. (NameResolverEntries): New type definition.
  15596. (addNameResolverCheck): New function.
  15597. (deleteNameResolverCheck): New function.
  15598. * src/DownloadEngine.cc
  15599. (run): Initialize cp with 0.
  15600. (SetDescriptor::operator()): Added for NameResolverEntry.
  15601. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15602. (waitData): Check nameResolver entries.
  15603. (updateFdSet): Update fds in nameResolver entries.
  15604. (addNameResolverCheck): New function.
  15605. (deleteNameResolverCheck): new function.
  15606. * src/PeerInteractionCommand.cc
  15607. (executeInternal): Fixed wrong socket handling.
  15608. * src/main.cc
  15609. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15610. * src/Util.cc
  15611. (fileChecksum): Removed the call to ctx.digestReset().
  15612. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15613. * po/ru.po: Azamat sent me Russian translation.
  15614. * src/FtpNegotiateCommand.cc
  15615. (recvGreeting): Call disableWriteCheckSocket just after
  15616. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15617. (recvRetr): Recognized status code 125 as a acceptable response code.
  15618. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15619. case-insesitive filesystem(BUG#1531057).
  15620. * src/Time.h: Renamed as TimeA2.h.
  15621. * src/Time.cc: Renamed as TimeA2.cc.
  15622. * src/TimeA2.h: New class.
  15623. * src/TimeA2.cc: New class.
  15624. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15625. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15626. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15627. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15628. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15629. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15630. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15631. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15632. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15633. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15634. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15635. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15636. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15637. * release 0.7.0
  15638. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15639. * src/PeerChokeCommand.h
  15640. (PeerChokeCommand): Rearranged the arguments.
  15641. * src/PeerChokeCommand.cc
  15642. (PeerChokeCommand): Rearranged the arguments.
  15643. * src/MetalinkEntry.h
  15644. (Checksum.h): Included.
  15645. (md5): Removed.
  15646. (sha1): Removed.
  15647. (checksum): New variable.
  15648. (operator=): Updated.
  15649. (check): Removed.
  15650. * src/prefs.h
  15651. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15652. (PREF_FOLLOW_TORRENT): New definition.
  15653. (PREF_SELECT_FILE): New definition.
  15654. (PREF_FOLLOW_METALINK): New definition.
  15655. * src/MetalinkResource.h
  15656. (TYPE_HTTPS): Added to enum TYPE.
  15657. * src/TorrentMan.cc
  15658. (~TorrentMan): Rewritten.
  15659. * src/MultiDiskWriter.cc
  15660. (MultiDiskAdaptor): Updated according to the changes in
  15661. MessageDigestContext.
  15662. (~MultiDiskAdaptor): Updated according to the changes in
  15663. MessageDigestContext.
  15664. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15665. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15666. * src/Util.h
  15667. (fileChecksum): Updated according to the changes in
  15668. MessageDigestContext.
  15669. * src/Util.cc
  15670. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15671. (fileChecksum): Updated according to the changes in
  15672. MessageDigestContext.
  15673. * src/messageDigest.h: Rewritten.
  15674. * src/MetalinkEntry.cc
  15675. (check): Removed.
  15676. (Supported): Updated.
  15677. (dropUnsupportedResource): Fixed a memory leak.
  15678. * src/ShaVisitor.cc
  15679. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15680. (~ShaVisitor): Updated according to the changes in
  15681. MessageDigestContext.
  15682. (visit): Updated according to the changes in MessageDigestContext.
  15683. * src/main.cc
  15684. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15685. command-line option added.
  15686. * src/DownloadEngine.h
  15687. (SocketEntry): New class.
  15688. (SocketEntries): New definition.
  15689. (PairFind): Removed.
  15690. (SockCmdMap): Removed.
  15691. * src/DownloadEngine.cc
  15692. (DownloadEngine): Rewritten.
  15693. (~DownloadEngine): Rewritten.
  15694. (run): Renamed activeCommandUuids as activeUuids.
  15695. (SetDescriptor): Rewritten.
  15696. (AccumulateActiveCommandUuid): Removed.
  15697. (AccumulateActiveUuid): New function object.
  15698. (waitData): Rewritten.
  15699. (updateFdSet): Rewritten.
  15700. (addSocket): Rewritten.
  15701. (deleteSocket): Rewritten.
  15702. (addSocketForReadCheck): Rewritten.
  15703. (deleteSocketForReadCheck): Rewritten.
  15704. (addSocketForWriteCheck): Rewritten.
  15705. (deleteSocketForWriteCheck): Rewritten.
  15706. * src/Xml2MetalinkProcessor.cc
  15707. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15708. * src/DownloadCommand.cc
  15709. (executeInternal): Added the check routine for lowest speed limit.
  15710. * src/AbstractDiskWriter.cc
  15711. (AbstractDiskWriter): Updated according to the changes in
  15712. MessageDigestContext.
  15713. (~AbstractDiskWriter): Updated according to the changes in
  15714. MessageDigestContext.
  15715. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15716. * src/RequestInfo.h: New class.
  15717. * src/UrlRequestInfo.h: New class.
  15718. * src/UrlRequestInfo.cc: New class.
  15719. * src/TorrentRequestInfo.h: New class.
  15720. * src/TorrentRequestInfo.cc: New class.
  15721. * src/MetalinkRequestInfo.h: New class.
  15722. * src/MetalinkRequestInfo.cc: New class.
  15723. * src/Checksum.h: New class.
  15724. * src/DownloadEngineFactory.h: New class.
  15725. * src/DownloadEngineFactory.cc: New class.
  15726. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15727. * src/Option.h
  15728. (getAsBool): New function.
  15729. * src/Option.cc
  15730. (prefs.h): Included.
  15731. (defined): 0-length value is now recognized as undefined.
  15732. (getAsInt): Rewritten.
  15733. (getAsLLInt): Rewritten.
  15734. (getAsBool): New function.
  15735. * src/FeatureConfig.h: Rewritten.
  15736. * src/FeatureConfig.cc: Rewritten.
  15737. * src/prefs.h
  15738. (PREF_STDOUT_LOG): New definition.
  15739. (PREF_LOG): New definition.
  15740. (PREF_DIR): New definition.
  15741. (PREF_OUT): New definition.
  15742. (PREF_SPLIT): New definition.
  15743. (PREF_DAEMON): New definition.
  15744. (PREF_REFERER): New definition.
  15745. (PREF_TORRENT_FILE): New definition.
  15746. (PREF_LISTEN_PORT): New definition.
  15747. (PREF_METALINK_FILE): New definition.
  15748. (PREF_METALINK_VERSION): New definition.
  15749. (PREF_METALINK_LANGUAGE): New definition.
  15750. (PREF_METALINK_OS): New definition.
  15751. (PREF_METALINK_SERVERS): New definition.
  15752. * src/main.cc
  15753. (main): Following command-line parameters are now put into Option
  15754. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15755. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15756. metalinkLanguage, metalinkOs, metalinkServers
  15757. To fix the bug that aria2 can not handle http response header properly.
  15758. * src/HttpHeader.cc
  15759. (put): Made name lowercased.
  15760. (defined): Made name lowercased.
  15761. (getFirst): Made name lowercased.
  15762. (get): Made name lowercased.
  15763. (getFirstAsInt): Rewritten.
  15764. (getFirstAsLLInt): Rewritten.
  15765. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15766. * src/TorrentMan.h:
  15767. (advertisePiece): Updated doc.
  15768. (getAdvertisedPieceIndexes): Updated doc.
  15769. (removeAdvertisedPiece); New function.
  15770. * src/TorrentMan.cc
  15771. (FindElapsedHave): New function object.
  15772. (removeAdvertisedPiece): New function.
  15773. * src/HaveEraseCommand.h: New class.
  15774. * src/HaveEraseCommand.cc: New class.
  15775. * src/FeatureConfig.h: New class.
  15776. * src/FeatureConfig.cc: New class.
  15777. * src/Request.h
  15778. (defaultPorts): Removed.
  15779. * src/Request.cc
  15780. (FeatureConfig.h): Included.
  15781. (Request): Removed the statements related to defaultPorts.
  15782. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15783. A default port number is now retrieved from FeatureConfig.
  15784. * src/main.cc
  15785. (HaveEraseCommand.h): Included.
  15786. (showVersion): Added the output of feature list.
  15787. (main): Added HaveEraseCommand to command queue in BitTorrent
  15788. downloading.
  15789. * src/PeerInteractionCommand.h
  15790. (chokeCheckPoint): Commented out.
  15791. (periodicExecPoint): New variable.
  15792. * src/PeerInteractionCommand.cc
  15793. (executeInternal): Following methods are now called in at least every
  15794. 0.5 seconds to reduce CPU usage:
  15795. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15796. checkHave(), sendKeepAlive().
  15797. (checkLongTimePeerChoking): Commented out.
  15798. * src/BitfieldMan.h
  15799. (getNthBitIndex): Changed the method signature.
  15800. (getMissingIndexRandomly): Changed the method signature.
  15801. * src/BitfieldMan.cc
  15802. (getNthBitIndex): Rewritten
  15803. (getMissingIndexRandomly): Rewritten.
  15804. (hasMissingPiece): Rewritten.
  15805. (getMissingIndex): Refactored.
  15806. (getMissingUnusedIndex); Refactored.
  15807. (getMissingIndex): Refactored.
  15808. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15809. * src/PeerMessage.h
  15810. (Piece.h): Included.
  15811. (SharedHandle.h): Included.
  15812. (invalidate): New variable.
  15813. (uploading): New variable.
  15814. (isInvalidate): New function.
  15815. (isUploading): New function.
  15816. (onPush): New function.
  15817. (onChoked): New function.
  15818. (onCanceled): New function.
  15819. (onAbortPiece): New function.
  15820. (PeerMessageHandle): New type definition.
  15821. * src/PeerMessage.cc
  15822. (PeerMessage): Added the initialization for invalidate and uploading.
  15823. * src/CancelMessage.h
  15824. (CancelMessage): Rewritten.
  15825. * src/RejectMessage.h
  15826. (RejectMessage): Rewritten.
  15827. * src/Metalinker.h
  15828. (operator=): Defined.
  15829. * src/MetaEntry.h
  15830. (operator=): Defined.
  15831. * src/MetalinkResource.h
  15832. (operator=): Defined.
  15833. * src/AllowedFastMessage.h
  15834. (AllowedFastMessage): Rewritten.
  15835. * src/HandshakeMessage.h
  15836. (HandshakeMessage): New function(overload).
  15837. * src/HandshakeMessage.cc
  15838. (HandshakeMessage): Rewritten.
  15839. (init): New function.
  15840. * src/HaveMessage.h
  15841. (HaveMessage): Rewritten.
  15842. * src/Time.h
  15843. (operator=): Defined the function body here.
  15844. * src/Time.cc
  15845. (operator=): Removed.
  15846. * src/SocketCore.h
  15847. (operator==): Defined here.
  15848. (operator!=): Defined here.
  15849. (operator<): Defined here.
  15850. * src/SocketCore.cc
  15851. (operator==): Removed.
  15852. (operator<): Removed.
  15853. * src/BitfieldMan.h
  15854. (operator=): Defined the function body here.
  15855. * src/BitfieldMan.cc
  15856. (operator=): Removed.
  15857. * src/TorrentMan.h
  15858. (deleteErrorPeer): Removed.
  15859. (deleteUnusedPeer); New function.
  15860. * src/TorrentMan.cc
  15861. (addPeer): Call deleteUnusedPeer.
  15862. (deleteErrorPeer): Removed.
  15863. (deleteUnusedPeer): New function.
  15864. * src/PeerAbstractCommand.h
  15865. (setNoCheck): New function.
  15866. (noCheck): New variable.
  15867. * src/PeerAbstractCommand.cc
  15868. (PeerAbstractCommand): Added the initialization of noCheck.
  15869. (execute): Added a check for noCheck.
  15870. (setNoCheck): New function.
  15871. * src/Util.h
  15872. (stdio.h): Included.
  15873. * src/Util.cc
  15874. (unistd.h): Included.
  15875. * src/DefaultDiskWriter.cc
  15876. (unistd.h): Included.
  15877. * src/Peer.h
  15878. (operator==): Defined the function body here.
  15879. (operator!=): Defined the function body here.
  15880. * src/Peer.cc
  15881. (operator==): Removed.
  15882. (operator!=): Removed.
  15883. * src/Piece.h
  15884. (Piece): Defined the function body here(copy constructor).
  15885. (operator=): Defined the function body here.
  15886. (operator==): Defined the function body here.
  15887. * src/Piece.cc
  15888. (Piece): Removed(copy constructor).
  15889. (operator=): Removed.
  15890. (operator==): Removed.
  15891. * src/PeerMessageUtil.h
  15892. (ChokeMessage.h): Removed.
  15893. (UnchokeMessage.h): Removed.
  15894. (InterestedMessage.h): Removed.
  15895. (NotInterestedMessage.h): Removed.
  15896. (HaveMessage.h): Removed.
  15897. (BitfieldMessage.h): Removed.
  15898. (RequestMessage.h): Removed.
  15899. (CancelMessage.h): Removed.
  15900. (PieceMessage.h): Removed.
  15901. (HandshakeMessage.h): Removed.
  15902. (KeepAliveMessage.h): Removed.
  15903. (PortMessage.h): Removed.
  15904. (HaveAllMessage.h): Removed.
  15905. (HaveNoneMessage.h): Removed.
  15906. (PeerConnection.h): Removed.
  15907. (HandshakeMessage.h): Included.
  15908. * src/BitfieldMessage.h
  15909. (init): New function.
  15910. (BitfieldMessage): Rewritten.
  15911. (BitfieldMessage): New function(overload).
  15912. * src/RequestSlot.h
  15913. (operator=): Defined the function body here.
  15914. (operator==): Defined the function body here.
  15915. * src/RequestSlot.cc
  15916. (operator=): Removed.
  15917. (operator==): Removed.
  15918. To remove the dependency on the PeerMessage subclass from
  15919. PeerInteraction:
  15920. * src/PeerMessageFactory.h: New class.
  15921. * src/PeerMessageFactory.cc: New class.
  15922. * src/SimplePeerMessage.cc
  15923. (send): If invalidate is true then do nothing.
  15924. * src/PeerInteractionCommand.cc
  15925. (HandshakeMessage.h): Included.
  15926. (KeepAliveMessage.h): Included.
  15927. (ChokeMessage.h): Included.
  15928. (UnchokeMessage.h): Included.
  15929. (HaveMessage.h): Included.
  15930. (executeInternal): Call setNoCheck().
  15931. Removed setWriteCheckSocket(socket).
  15932. * src/PeerInteraction.h
  15933. (ChokeMessage.h): Removed.
  15934. (UnchokeMessage.h): Removed.
  15935. (InterestedMessage.h): Removed.
  15936. (NotInterestedMessage.h): Removed.
  15937. (HaveMessage.h): Removed.
  15938. (BitfieldMessage.h): Removed.
  15939. (RequestMessage.h): Removed.
  15940. (CancelMessage.h): Removed.
  15941. (PieceMessage.h): Removed.
  15942. (HandshakeMessage.h): Removed.
  15943. (KeepAliveMessage.h): Removed.
  15944. (PortMessage.h): Removed.
  15945. (HaveAllMessage.h): Removed.
  15946. (HaveNoneMessage.h): Removed.
  15947. (RejectMessage.h): Removed.
  15948. (AllowedFastMessage.h): Removed.
  15949. (SuggestPieceMessage.h): Removed.
  15950. (PeerMessageFactory.h): Included.
  15951. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15952. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15953. (PeerMessageFactory): New variable.
  15954. (createPeerMessage): Removed.
  15955. (createHandshakeMessage): Removed.
  15956. (setPeerMessageCommonProperty): Removed.
  15957. (addRequestSlot): New function.
  15958. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15959. (getPeerMessageFactory): New function.
  15960. (createRequestMessage): Removed.
  15961. (createCancelMessage): Removed.
  15962. (createPieceMessage): Removed.
  15963. (createHaveMessage): Removed.
  15964. (createChokeMessage): Removed.
  15965. (createUnchokeMessage): Removed.
  15966. (createInterestedMessage): Removed.
  15967. (createNotInterestedMessage): Removed.
  15968. (createBitfieldMessage): Removed.
  15969. (createKeepAliveMessage): Removed.
  15970. (createHaveAllMessage): Removed.
  15971. (createHaveNoneMessage): Removed.
  15972. (createRejectMessage): Removed.
  15973. (createAllowedFastMessage): Removed.
  15974. * src/PeerInteraction.cc
  15975. (PeerInteraction): Allocate PeerMessageFactory here.
  15976. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15977. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15978. PieceMessage::ID.
  15979. (addMessage): Simplified by using PeerMessage::onPush().
  15980. (addRequestSlot): New function.
  15981. (rejectAllPieceMessageInQueue): Simplified by using
  15982. PeerMessage::onChoked().
  15983. (rejectPieceMessageInQueue): Simplified by using
  15984. PeerMessage::onCanceled().
  15985. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15986. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15987. (createHandshakeMessage): Removed.
  15988. (createPeerMessage): Removed.
  15989. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15990. (setPeerMessageCommonProperty): Removed.
  15991. (createRequestMessage): Removed.
  15992. (createCancelMessage): Removed.
  15993. (createPieceMessage): Removed.
  15994. (createHaveMessage): Removed.
  15995. (createChokeMessage): Removed.
  15996. (createUnchokeMessage): Removed.
  15997. (createInterestedMessage): Removed.
  15998. (createNotInterestedMessage): Removed.
  15999. (createBitfieldMessage): Removed.
  16000. (createKeepAliveMessage): Removed.
  16001. (createHaveAllMessage): Removed.
  16002. (createHaveNoneMessage): Removed.
  16003. (createRejectMessage): Removed.
  16004. (createAllowedFastMessage): Removed.
  16005. * src/PieceMessage.h
  16006. (createRejectMessage): New function.
  16007. (PieceMessage): Rewritten.
  16008. (onChoked): New function.
  16009. (onCanceled): New function.
  16010. * src/PieceMessage.cc
  16011. (send): If invalidate is true then do nothing, just return.
  16012. (createRejectMessage): New function.
  16013. (onChoked): New function.
  16014. (onCanceled): New function.
  16015. * src/RequestMessage.h
  16016. (RequestMessage): Rewritten.
  16017. (onPush): New function.
  16018. (onAbortPiece): New function.
  16019. * src/RequestMessage.cc
  16020. (onPush): New function.
  16021. (onAbortPiece): New function.
  16022. Update fd_set when a socket is added or deleted in order to improve
  16023. performance:
  16024. * src/DownloadEngine.h
  16025. (rfdset): New variable.
  16026. (wfdset): New variable.
  16027. (updateFdSet): New function.
  16028. * src/DownloadEngine.cc
  16029. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  16030. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  16031. (waitData): Copy rfdset and wfdset.
  16032. (updateFdSet): New function.
  16033. (addSocket): Call updateFdSet.
  16034. (deleteSocket): Call updateFdSet.
  16035. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16036. To add the support for Metalink3.0 backward compatible links:
  16037. * src/Request.h
  16038. (SAFE_CHARS): Added '#'.
  16039. (METALINK_MARK): New definition.
  16040. * src/Request.cc
  16041. (parseUrl): Added the support for Metalink3.0 backward compatible
  16042. links.
  16043. etc
  16044. * src/PeerInteraction.cc
  16045. (MsgPushBack): Removed.
  16046. (sendMessages): Use STL copy and back_inserter.
  16047. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  16048. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  16049. * src/TorrentMan.h
  16050. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  16051. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16052. * src/SharedHandle.h: New class.
  16053. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  16054. * src/HttpResponseCommand.h
  16055. (HttpResponseCommand): Wrapped Socket.
  16056. * src/SocketCore.h
  16057. (operator==): New function.
  16058. (operator!=): New function.
  16059. (operator<): New function.
  16060. (getSockfd): New function.
  16061. (isOpen): New function.
  16062. (writeData): New function.
  16063. * src/SocketCore.cc
  16064. (operator==): New function.
  16065. (operator!=): New function.
  16066. (operator<): New function.
  16067. * src/AbstractCommand.h
  16068. (socket): Changed its type to SocketHandle.
  16069. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16070. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16071. (disableReadCheckSocket): New function.
  16072. (disableWriteCheckSocket): New function.
  16073. (readCheckTarget): Changed its type to SocketHandle.
  16074. (writeCheckTarget): Changed its type to SocketHandle.
  16075. (AbstractCommand): Replaced Socket with SocketHandle.
  16076. * src/AbstractCommand.cc
  16077. (AbstractCommand): Replaced Socket with SocketHandle.
  16078. (~AbstractCommand): Removed the deallocation for Socket object.
  16079. (disableReadCheckSocket): New function.
  16080. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16081. (disableWriteCheckSocket): New function.
  16082. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16083. * src/HttpDownloadCommand.cc
  16084. (DownloadCommand): Replaced Socket with SocketHandle.
  16085. * src/PeerAbstractCommand.h
  16086. (socket): Changed its type to SocketHandle.
  16087. (peer): Changed its type to PeerHandle.
  16088. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16089. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16090. (disableReadCheckSocket): New function.
  16091. (disableWriteCheckSocket): New function.
  16092. (readCheckTarget): Changed its type to SocketHandle.
  16093. (writeCheckTarget): Changed its type to SocketHandle.
  16094. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16095. Replaced Peer with PeerHandle.
  16096. * src/HttpRequestCommand.cc
  16097. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16098. Use disableReadCheckSocket.
  16099. * src/PeerInitiateConnectionCommand.h
  16100. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16101. * src/PeerChokeCommand.cc
  16102. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  16103. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  16104. (execute): Use PeerHandle.
  16105. * src/PeerConnection.h
  16106. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  16107. (socket): Changed its type to SocketHandle.
  16108. (PeerConnection): Replaced Socket with SocketHandle.
  16109. * src/PeerConnection.cc
  16110. (PeerConnection): Replaced Socket with SocketHandle.
  16111. * src/PeerInteractionCommand.h
  16112. (PeerInteractionCommand): Replaced socket with SocketHandle.
  16113. Replaced Peer with PeerHandle.
  16114. * src/PeerInteractionCommand.cc
  16115. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  16116. Replaced Peer with PeerHandle.
  16117. (executeInternal): Use disableWriteCheckSocket.
  16118. Use HandshakeMessageHandle.
  16119. (receiveMessages): Use PeerMessageHandle.
  16120. (prepareForNextPeer): Use PeerHandle.
  16121. * src/HttpProxyRequestCommand.h
  16122. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16123. * src/HttpResponseCommand.cc
  16124. (HttpResponseCommand): Replaced Socket with SocketHandle.
  16125. * src/TorrentMan.cc
  16126. (nullPeer): Added external reference.
  16127. (~TorrentMan): Removed the deallocation of the elements of peers.
  16128. (addPeer): Rewritten.
  16129. (isPeerAvailable): Use nullPeer.
  16130. (deleteOldpeers): Replaced with deleteErrorPeer.
  16131. (deleteErrorPeer): New function.
  16132. (getPeer): Use PeerHandle and nullPeer.
  16133. (hasMissingPiece): Replaced Peer with PeerHandle.
  16134. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16135. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16136. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16137. (getMissingPiece): Replaced Peer with PeerHandle.
  16138. * src/FtpNegotiateCommand.cc
  16139. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  16140. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  16141. (recvGreeting): Use disableWriteCheckSocket.
  16142. (recvPasv): Removed the allocation of Socket.
  16143. Use disableReadCheckSocket.
  16144. (sendRestPasv): Use disableWriteCheckSocket.
  16145. (recvRetr): Changed assertion.
  16146. * src/PeerInteraction.h
  16147. (SharedHandle.h): Included SharedHandle.h.
  16148. (PeerMessageHandle): New type definition.
  16149. (HandshakeMessageHandle): New type definition.
  16150. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  16151. (peer): Changed its type to PeerHandle.
  16152. (createHandshakeMessage): Replaced HandshakeMessage with
  16153. HandshakeMessageHandle.
  16154. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  16155. (PeerInteraction): Replaced Peer with PeerHandle.
  16156. Replaced Socket with SocketHandle.
  16157. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16158. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16159. (receiveHandshake): Replaced HandshakeMessage with
  16160. HandshakeMessageHandle.
  16161. * src/PeerInteraction.cc
  16162. (PeerInteraction): Replaced Peer with PeerHandle.
  16163. Replaced Socket with SocketHandle.
  16164. (~PeerInteraction): Removed the deallocation of the elements of
  16165. messageQueue.
  16166. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  16167. (isSendingMessageInProgress): Replaced PeerMessage with
  16168. PeerMessageHandle.
  16169. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  16170. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  16171. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  16172. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  16173. (abortPiece): Use PeerMessageHandle.
  16174. (receiveHandshake): Replaced HandshakeMessage with
  16175. HandshakeMessageHandle. Removed try-catch block.
  16176. (createHandshakeMessage): Replaced HandshakeMessage with
  16177. HandshakeMessageHandle.
  16178. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  16179. Removed try-catch block.
  16180. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  16181. * src/HttpProxyResponseCommand.cc
  16182. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16183. * src/FtpTunnelResponseCommand.h
  16184. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16185. * src/HttpConnection.cc
  16186. (HttpConnection): Replaced Socket with SocketHandle.
  16187. * src/PeerAbstractCommand.cc
  16188. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  16189. (~PeerAbstractCommand): Removed the deallocation of socket.
  16190. Use disableReadCheckSocket, disableWriteCheckSocket.
  16191. (disableReadCheckSocket): New function.
  16192. (setReadCheckSocket): Replaced Socket with SocketHandle.
  16193. (disableWriteCheckSocket): New function.
  16194. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  16195. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  16196. * src/FtpTunnelRequestCommand.cc
  16197. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16198. (~FtpTunnelRequestCommand): Corrected indentation.
  16199. * src/DownloadCommand.h
  16200. (DownloadCommand): Replaced Socket with SocketHandle.
  16201. * src/PeerListenCommand.cc
  16202. (PeerListenCommand): Removed the initialization of socket.
  16203. (~PeerListenCommand): Removed the deallocation of socket.
  16204. (bindPort): Use SocketHandle.
  16205. (execute): Use SocketHandle and PeerHandle.
  16206. * src/FtpDowndloadCommand.cc
  16207. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16208. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  16209. * src/main.cc
  16210. (main): Corrected indentation.
  16211. * src/HttpInitiateConnectionCommand.cc
  16212. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  16213. (executeInternal): Removed the allocation of socket.
  16214. * src/HttpRequestCommand.h
  16215. (HttpRequestCommand): Replaced Socket with SocketHandle.
  16216. * src/FtpNegotiationCommand.h
  16217. (dataSocket): Changed its type to SocketHandle.
  16218. (serverSocket): Changed its type to SocketHandle.
  16219. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  16220. * src/TorrentMan.h
  16221. (MAX_PEER_UPDATE): Removed.
  16222. (MAX_PEERS): New definition.
  16223. (Peers): The element is now of type PeerHandle.
  16224. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  16225. (getPeer): Replaced Peer with PeerHandle.
  16226. (deleteOldErrorPeers): Removed.
  16227. (deleteErrorPeer): New function.
  16228. (hasMissingPiece): Replaced Peer with PeerHandle.
  16229. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  16230. (getMissingPiece): Replaced Peer with PeerHandle.
  16231. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  16232. (getMissingFastPiece): Replaced Peer with PeerHandle.
  16233. (addActivePeer): Replaced Peer with PeerHandle.
  16234. (deleteActivePeer): Replaced Peer with PeerHandle.
  16235. Added a check for the return value of find.
  16236. * src/FtpTunnelResponseCommand.cc
  16237. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  16238. * src/FtpInitiateConnectionCommand.cc
  16239. (executeInternal): Removed the allocation of socket.
  16240. * src/DownloadEngine.h
  16241. (Sockets): An element is now of type SocketHandle.
  16242. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  16243. (CommandUuids): New type definition.
  16244. (rsockets): Changed its type to SockCmdMap.
  16245. (wsockets): Changed its type to SockCmdMap.
  16246. (addSocket): Rewritten.
  16247. (deleteSocket): Rewritten.
  16248. (addSocketForReadCheck): Rewritten.
  16249. (deleteSocketForReadCheck): Rewritten.
  16250. (addSocketForWriteCheck): Rewritten.
  16251. (deleteSocketForWriteCheck): Rewritten.
  16252. (PairFind): New template class.
  16253. * src/HttpDownloadCommand.h
  16254. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  16255. * src/FtpConnection.cc
  16256. (FtpConnection): Replaced Socket with SocketHandle.
  16257. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  16258. block.
  16259. * src/InitiateConnectionCommandFactory.cc
  16260. (DlAbortEx.h): Included DlAbortEx.h.
  16261. (createInitiateConnectionCommand): Throw exception if the protocol of
  16262. requested URI is not supported.
  16263. * src/Peer.cc
  16264. (nullPeer): Changed its type to PeerHandle.
  16265. (operator==): New function.
  16266. (operator!=): New function.
  16267. * src/Peer.h
  16268. (SharedHandle.h): Included SharedHandle.h.
  16269. (operator==): New function.
  16270. (operator!=): New function.
  16271. (Peer): Added the default constructor.
  16272. Use resetStatus() to initialize member variables.
  16273. (nullPeer): Removed.
  16274. * src/TrackerUpdateCommand.cc
  16275. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  16276. with MIN_PEERS.
  16277. * src/PeerListenCommand.h
  16278. (socket): Changed its type to SocketHandle.
  16279. * src/Command.h
  16280. (CommandUuid): New type definition.
  16281. (uuid): New variable.
  16282. (uuidGen): New variable.
  16283. (Command): Added the initialization of uuid.
  16284. (getUuid): New function.
  16285. * src/Socket.h
  16286. (Socket): Removed.
  16287. (SocketHandle): New type definition.
  16288. * src/DownloadEngine.h
  16289. (FindCommand): New function object.
  16290. (run): The portion of socket check was rewritten.
  16291. (SetDescriptor): New function object.
  16292. (AccumulateActiveCommandUuid): New function object.
  16293. (waitData): Rewritten.
  16294. (addSocket): Rewritten.
  16295. (deleteSocket): Rewritten.
  16296. (addSocketForReadCheck): Rewritten.
  16297. (addSocketForWriteCheck): Rewritten.
  16298. (deleteSocketForReadCheck): Rewritten.
  16299. (deleteSocketForWriteCheck): Rewritten.
  16300. * src/HttpProxyResponseCommand.h
  16301. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  16302. * src/HttpConnection.h
  16303. (socket): Changed its type to SocketHandle.
  16304. (HttpConnection): Replaced Socket with SocketHandle.
  16305. * src/PeerInitiateConnectionCommand.cc
  16306. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  16307. (executeInternal): Removed the allocation of socket.
  16308. (prepareForNextPeer): Use PeerHandle.
  16309. * src/PeerMessage.h
  16310. (peer): Changed its type to PeerHandle.
  16311. (getPeer): Replaced Peer with PeerHandle.
  16312. (setPeer): Replaced Peer with PeerHandle.
  16313. * src/DownloadCommand.cc
  16314. (DownloadCommand): Replaced Socket with SocketHandle.
  16315. * src/FtpConnection.h
  16316. (socket): Changed its type to SocketHandle.
  16317. (FtpConnection): Replaced Socket with SocketHandle.
  16318. (sendPort); Replaced Socket with SocketHandle.
  16319. * src/FtpDowndloadCommand.h
  16320. (ctrlSocket): Changed its type to SocketHandle.
  16321. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  16322. * src/HttpProxyRequestCommand.cc
  16323. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  16324. * src/FtpTunnelRequestCommand.h
  16325. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  16326. etc
  16327. * src/PeerChokeCommand.h
  16328. (setAllPeerChoked): Removed.
  16329. (setAllPeerResetDelta): Removed.
  16330. * src/PeerChokeCommand.cc
  16331. (setAllPeerChoked): Removed.
  16332. (ChokePeer): New function object.
  16333. (setAllPeerResetDelta): Removed.
  16334. (ResetDelta): New function object.
  16335. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  16336. (execute): Show download speed when the local node is a seeder.
  16337. setAllPeerChoked and setAllPeerResetDelta were rewritten
  16338. using STL.
  16339. * src/TrackerWatcherCommand.h
  16340. (MIN_PEERS): Removed.
  16341. * src/TorrentMan.cc
  16342. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  16343. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16344. To fix the bug that .aria2 file is not saved if downloading is stopped
  16345. by the errors:it results that aria2 can not resume downloading:
  16346. * src/main.cc
  16347. (normalDownload): Added the call to save().
  16348. (main): Added the deletion of the elements in 'reserved'.
  16349. To fix log:
  16350. * src/PeerInteraction.cc
  16351. (receiveHandshake): Fixed log.
  16352. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16353. To improve download performance in BitTorrent:
  16354. * src/TorrentMan.cc
  16355. (getPeer): Check the number of connections. Return nullPeer if
  16356. it is greater than MAX_PEER_UPDATE.
  16357. This code was originally here, but was removed in 0.5.1.
  16358. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16359. To improve the conditional compilation:
  16360. * src/MultiDiskWriter.h:
  16361. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16362. * src/MultiDiskWriter.cc:
  16363. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16364. * src/Util.h:
  16365. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16366. Added ENABLE_BITTORRENT around computeFastSet().
  16367. * src/Util.cc:
  16368. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16369. Added ENABLE_BITTORRENT around computeFastSet().
  16370. * src/messageDigest.h:
  16371. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  16372. * src/ShaVisitor.h:
  16373. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16374. * src/ShaVisitor.cc:
  16375. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16376. * src/main.cc:
  16377. Added ENABLE_BITTORRENT around includes and blocks related to
  16378. BitTorrent.
  16379. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16380. digest support is not available.
  16381. * src/AbstractDiskWriter.h:
  16382. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16383. * src/AbstractDiskWriter.cc:
  16384. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16385. * src/MetalinkEntry.cc
  16386. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16387. support is not available.
  16388. To add command-line options for Metalink:
  16389. * src/main.cc:
  16390. Added metalink-version, metalink-language, metalink-os,
  16391. follow-metalink.
  16392. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16393. * src/main.cc: Use these definition.
  16394. * Release 0.6.0
  16395. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16396. To add Metalink support(http/ftp only):
  16397. * src/AbstractCommand.h
  16398. (tryReserved): New function.
  16399. * src/AbstractCommand.cc
  16400. (execute): Call tryReserved().
  16401. (tryReserved): New function.
  16402. * src/Request.h
  16403. (Requests): New type definition.
  16404. * src/SegmentMan.h
  16405. (reserved): New variable.
  16406. * src/Util.h
  16407. (fileChecksum): New function.
  16408. (toUpper): New function.
  16409. (toLower): New function.
  16410. * src/Util.cc
  16411. (messageDigest.h): Included.
  16412. (trim): Trim \r\n\t.
  16413. (fileChecksum): New function.
  16414. (toUpper): New function.
  16415. (toLower): New function.
  16416. * src/main.cc
  16417. (normalDownload): New function.
  16418. (main): Added 2 command-line options: metalink-file,
  16419. metalink-connection. Their usage has not been written yet.
  16420. * src/MetalinkProcessor.h: New class.
  16421. * src/Xml2MetalinkProcessor.h: New class.
  16422. * src/Xml2MetalinkProcessor.cc: New class.
  16423. * src/MetalinkEntry.h: New class.
  16424. * src/MetalinkEntry.cc: New class.
  16425. * src/MetalinkResource.h: New class.
  16426. * src/MetalinkResource.cc: New class.
  16427. To add md5 message digest checking:
  16428. * src/messageDigest.h: Rewritten.
  16429. * src/MultiDiskWriter.cc: Updated according to the changes in
  16430. messageDigest.h.
  16431. * src/ShaVisitor.cc: Updated according to the changes in
  16432. messageDigest.h.
  16433. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16434. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16435. messageDigest.h.
  16436. To fix a bug that causes segfault when the payload length in peer
  16437. message is less than 0:
  16438. * src/PeerConnection.cc:
  16439. (receiveMessage): Fixed the bug.
  16440. * src/PeerMessageUtil.cc
  16441. (checkLength): Throw an exception if length is less than or equals to
  16442. 0.
  16443. To add new interfaces to Base64 encoding/decoding:
  16444. * src/Base64.h
  16445. (part_encode): Changed the method signature.
  16446. (encode): New function(overload).
  16447. (decode): New function(overload).
  16448. * src/Base64.cc
  16449. (part_encode): Rewritten.
  16450. (encode): Rewritten.
  16451. (encode): New function(overload).
  16452. To prevent a peer to download same piece if there is an error in
  16453. checksum:
  16454. * src/PieceMessage.cc
  16455. (receivedAction): Call peerInteraction->abortPiece().
  16456. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16457. To fix the bug that causes same have message is sent many times to
  16458. a single peer.
  16459. * src/Time.cc
  16460. (isNewer): Use Util::difftv().
  16461. * src/Util.cc
  16462. (difftv): Added a cast to (long long int).
  16463. * src/TorrentMan.cc
  16464. (advertisePiece): Use push_front.
  16465. (getAdvertisedPieceIndexes): A performance improvement was made.
  16466. To fix the bug that sends tracker requests without a sleep interval
  16467. when the number of connections is less than 15.
  16468. * src/TrackerWatcherCommand.cc
  16469. (execute): Now the number of connections is not a factor to decide
  16470. whether or not a tracker request should be sent or not.
  16471. * src/Time.h
  16472. (setTimeInSec): New function.
  16473. * src/Time.cc
  16474. (setTimeInSec): New function.
  16475. etc.
  16476. * src/ChokeMessage.cc
  16477. (receivedAction): Removed peer->snubbing = false
  16478. * src/PeerConnection.h
  16479. (receiveHandshake): Updated doc.
  16480. * src/TorrentMan.h
  16481. (getAdvertisedPieceIndexes): Updated the method signature.
  16482. * src/TorrentMan.cc
  16483. (getAdvertisedPieceIndexes): Updated the method signature.
  16484. * src/Time.h
  16485. (getTimeInMicros): Added a cast to (long long int).
  16486. (getTimeInMillis): Added a cast to (long long int).
  16487. * Release 0.5.2
  16488. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16489. To make a listening socket non-block:
  16490. * src/SocketCore.h
  16491. (setNonBlockingMode): New function.
  16492. * src/SocketCore.cc
  16493. (setNonBlockingMode): New function.
  16494. (beginListen): Added a call to setNonBlockingMode().
  16495. (acceptConnection): Call setNonBlockingMode().
  16496. (setBlockingMode): Updated.
  16497. To handle tracker's NAT-checking:
  16498. * src/PeerConnection.cc
  16499. (receiveHandshake): 'msg' param is filled with received data and
  16500. its length is assigned to 'length' param, even if all handshake
  16501. message is not yet received.
  16502. * src/PeerInteractionCommand.cc
  16503. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16504. a new peer connects to localhost.
  16505. A call to peerInteraction->sendHandshake() was removed because
  16506. it is called from peerInteraction->receiveHandshake(true).
  16507. * src/PeerInteraction.h
  16508. (quickReplied): New variable.
  16509. (receiveHandshake): Added an argument.
  16510. * src/PeerInteraction.cc
  16511. (PeerInteraction): Added the initialization of quickReplied.
  16512. (receiveHandshake): Send handshake message as soon as the info hash
  16513. in a handshake message from a peer is correct.
  16514. To change the random part of peer id and key parameter:
  16515. * src/TorrentMan.h
  16516. (key): New variable.
  16517. * src/TorrentMan.cc
  16518. (setupInternal1): Use Util::randomAlpha() to generate random part
  16519. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16520. key is also generated by Util::randomAlpha() and it is now 8 character
  16521. long.
  16522. * src/Util.h
  16523. (randomAlpha): New function.
  16524. * src/Util.cc
  16525. (randomAlpha): New function.
  16526. * src/TrackerWatcherCommand.cc
  16527. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16528. Added no_peer_id=1.
  16529. Set snubbing flag to false when a choke message is received from a
  16530. snubbed peer.
  16531. * src/ChokeMessage.cc
  16532. (receivedAction): Set snubbing flag to false.
  16533. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16534. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16535. * src/SimpleLogger.h (writeHeader): New function.
  16536. * src/SimpleLogger.cc (writeHeader): New function.
  16537. (writeLog): Fixed the bug that causes segfaults if exception message
  16538. contains an unescaped "%" character.
  16539. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16540. when a tracker request fails.
  16541. * src/Request.cc (parseUrl): Query string is now handled properly.
  16542. * Release 0.5.1
  16543. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16544. To add Time class which represents a specific instant in time and
  16545. its precision is microseconds. Time checking procedures were rewritten
  16546. using this object.
  16547. * src/Time.h: New class.
  16548. * src/Time.cc: New class.
  16549. * src/AbstractCommand.h
  16550. (updateCheckPoint): Removed.
  16551. (isTimeoutDetected): Removed.
  16552. (checkPoint): Changed the type to Time.
  16553. (timeout): New variable.
  16554. (setTimeout): New function.
  16555. * src/AbstractCommand.cc
  16556. (AbstractCommand): Removed the initialization of checkPoint.
  16557. Added the initialization of timeout.
  16558. (updateCheckPoint): Removed.
  16559. (isTimeoutDetected): Removed.
  16560. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16561. * src/PeerChokeCommand.h
  16562. (checkPoint): Changed the type to Time.
  16563. * src/PeerChokeCommand.cc
  16564. (PeerChokeCommand): Removed the initialization of checkPoint.
  16565. (execute): Rewritten using Time object.
  16566. * src/TrackerWatcherCommand.h
  16567. (checkPoint): Changed the type to Time.
  16568. * src/TrackerWatcherCommand.cc
  16569. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16570. (execute): Rewritten.
  16571. * src/ConsoleDownloadEngine.h
  16572. (cp): Changed the type to Time.
  16573. (startup): Changed the type to Time.
  16574. * src/ConsoleDownloadEngine.cc
  16575. (initStatistics): Use cp.reset(), startup.reset().
  16576. (calculateStatistics): Rewritten using Time object.
  16577. * src/PeerAbstractCommand.h
  16578. (updateCheckPoint): Removed.
  16579. (isTimeoutDetected): Removed.
  16580. (checkPoint): Changed the type to Time.
  16581. * src/PeerAbstractCommand.cc
  16582. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16583. (updateCheckPoint): Removed.
  16584. (isTimeoutDetected): Removed.
  16585. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16586. * src/PeerInteractionCommand.cc
  16587. (PeerInteractionCommand): Removed the initializations of struct
  16588. timeval variables.
  16589. * src/PeerInteractionCommand.h
  16590. (keepAliveCheckPoint): Changed the type to Time.
  16591. (chokeCheckPoint): Changed the type to Time.
  16592. (freqCheckPoint): Changed the type to Time.
  16593. (haveCheckTime): Changed the type to Time.
  16594. * src/PeerInteractionCommand.cc
  16595. (executeInternal): Rewritten using Time object.
  16596. (detectMessageFlooding): Rewritten using Time object.
  16597. (checkLongTimePeerChoking): Rewritten using Time object.
  16598. (sendKeepAlive): Rewritten using Time object.
  16599. (checkHave): Rewritten using Time object.
  16600. * src/SleepCommand.h
  16601. (checkPoint): Changed the type to Time.
  16602. * src/SleepCommand.cc
  16603. (SleepCommand): Removed the initialization of checkPoint.
  16604. (execute): Rewritten using Time object.
  16605. * src/TorrentAutoSaveCommand.h
  16606. (checkPoint): Changed the type to Time.
  16607. * src/TorrentAutoSaveCommand.cc
  16608. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16609. (execute): Rewritten.
  16610. * src/DownloadCommand.h
  16611. (sw): Changed the type to Time.
  16612. * src/DownloadCommand.cc
  16613. (DownloadCommand): Removed the initialization of sw.
  16614. (executeInternal): Rewritten.
  16615. * src/RequestSlot.h
  16616. (dispatchedTime): Changed the type to Time.
  16617. * src/RequestSlot.cc
  16618. (RequestSlot): Removed the call to setDispatchedTime().
  16619. (setDispatchedTime): Rewirtten.
  16620. (isTimeout): Rewritten.
  16621. (getLatencyInMillis): Rewritten.
  16622. * src/TorrentDownloadEngine.h
  16623. (cp): Changed the type to Time[2].
  16624. (startup): Changed the type to Time.
  16625. * src/TorrentDownloadEngine.cc
  16626. (initStatistics): Rewritten.
  16627. (calculateStatistics): Rewritten.
  16628. * src/DownloadEngine.cc
  16629. (run): Rewritten.
  16630. To detect all attempts to connect to the tracker are failed:
  16631. * src/AbstractCommand.cc
  16632. (execute): Increment e->segmentMan->errors if a command aborted.
  16633. * src/SegmentMan.h
  16634. (errors): New variable.
  16635. * src/SegmentMan.cc
  16636. (SegmentMan): Added the initialization of errors.
  16637. (init): Added the initialization of errors.
  16638. * src/TrackerWatcherCommand.cc
  16639. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16640. request was failed.
  16641. To handle snubbed peers:
  16642. * src/PeerChokeCommand.cc
  16643. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16644. (execute): Snubbed peers don't get unchoked.
  16645. * src/PeerInteraction.h
  16646. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16647. * src/PeerInteraction.cc
  16648. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16649. back the requested 16k block in 60 seconds.
  16650. * src/PieceMessage.cc
  16651. (receivedAction): A peer's snubbed state is cleard if it sends
  16652. the requested 16k block in 60 seconds.
  16653. * src/Peer.h
  16654. (snubbing): New variable.
  16655. * src/Peer.cc
  16656. (resetStatus): Added snubbed = false.
  16657. To fix the bug that causes have message is not sent:
  16658. * src/PeerInteractionCommand.cc
  16659. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16660. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16661. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16662. * src/TorrentMan.h
  16663. (HaveEntry): New class.
  16664. (advertisePiece): Rewritten.
  16665. (getAdvertisedPieceIndexes): Rewritten.
  16666. (Haves): Changed the type.
  16667. (getAdvertisedPieceIndexes): Added an argument.
  16668. Others:
  16669. * src/TorrentMan.h
  16670. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16671. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16672. * src/TorrentMan.cc
  16673. (getPeer): Don't check the number of connections here.
  16674. (setupInternal1): Changed peerId.
  16675. * src/PeerInteractionCommand.h
  16676. (KEEP_ALIVE_INTERVAL): New definition.
  16677. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16678. * src/main.cc
  16679. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16680. * src/DownloadEngine.h: Removed unnecessary header includes.
  16681. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16682. To fix the bug that causes segfaults if a tracker returns a zero-length
  16683. list as "peers":
  16684. * src/TrackerUpdateCommand.cc
  16685. (execute): Added a check to see wether the type of peers is Data*.
  16686. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16687. * Release 0.5.0
  16688. To fix compile issue with gcc3:
  16689. * src/CancelMessage.h
  16690. (ID): Renamed as ID_t
  16691. (ID_t): New enum.
  16692. * src/RejectMessage.h
  16693. (ID): Renamed as ID_t
  16694. (ID_t): New enum.
  16695. * src/SuggestPieceMessage.h
  16696. (ID): Renamed as ID_t
  16697. (ID_t): New enum.
  16698. * src/AllowedFastMessage.h
  16699. (ID): Renamed as ID_t
  16700. (ID_t): New enum.
  16701. * src/PortMessage.h
  16702. (ID): Renamed as ID_t
  16703. (ID_t): New enum.
  16704. * src/HaveNoneMessage.h
  16705. (ID): Renamed as ID_t
  16706. (ID_t): New enum.
  16707. * src/KeepAliveMessage.h
  16708. (ID): Renamed as ID_t
  16709. (ID_t): New enum.
  16710. * src/HaveAllMessage.h
  16711. (ID): Renamed as ID_t
  16712. (ID_t): New enum.
  16713. * src/UnchokeMessage.h
  16714. (ID): Renamed as ID_t
  16715. (ID_t): New enum.
  16716. * src/BitfieldMessage.h
  16717. (ID): Renamed as ID_t
  16718. (ID_t): New enum.
  16719. * src/PieceMessage.h
  16720. (ID): Renamed as ID_t
  16721. (ID_t): New enum.
  16722. * src/RequestMessage.h
  16723. (ID): Renamed as ID_t
  16724. (ID_t): New enum.
  16725. * src/NotInterestedMessage.h
  16726. (ID): Renamed as ID_t
  16727. (ID_t): New enum.
  16728. * src/ChokeMessage.h
  16729. (ID): Renamed as ID_t
  16730. (ID_t): New enum.
  16731. * src/InterestedMessage.h
  16732. (ID): Renamed as ID_t
  16733. (ID_t): New enum.
  16734. * src/HaveMessage.h
  16735. (ID): Renamed as ID_t
  16736. (ID_t): New enum.
  16737. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16738. * src/PeerAbstractCommand.h
  16739. (beforeSocketCheck): Removed.
  16740. * src/PeerAbstractCommand.cc
  16741. Modified in order to call executeInternal() even if socket check
  16742. and upload limit check fail.
  16743. * src/PeerInteractionCommand.h
  16744. (keepAlive): Removed.
  16745. (sendKeepAlive): New function.
  16746. (checkHave): New function.
  16747. (beforeSocketCheck): Removed.
  16748. * src/PeerInteractionCommand.cc
  16749. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16750. calls to checkHave() and sendKeepAlive().
  16751. (keepAlive): Renamed to sendKeepAlive().
  16752. (sendKeepAlive): New function.
  16753. (beforeSocketCheck): Removed.
  16754. (checkHave): New function.
  16755. * src/BitfieldMan.cc
  16756. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16757. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16758. 0.
  16759. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16760. * src/TorrentMan.h
  16761. (UsedPieces): Removed.
  16762. (Pieces): New type definition.
  16763. * src/Piece.h: Updated doc.
  16764. * src/Peer.h
  16765. (totalLength): Removed.
  16766. * src/Peer.cc
  16767. (updateLatency): Fixed the latency calculation.
  16768. * src/TorrentMan.cc
  16769. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16770. than or equal to MAX_PEER_LIST_SIZE.
  16771. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16772. then return false.
  16773. (deleteOldErrorPeers): Rewritten.
  16774. (deleteUsedPiece): Fixed the miss use of STL remove.
  16775. * src/PeerInteraction.h
  16776. (Pieces): Removed.
  16777. (deleteTimeoutRequestSlot): Removed.
  16778. (deleteCompletedRequestSlot): Removed.
  16779. (checkRequestSlot): New function.
  16780. * src/PeerInteraction.cc
  16781. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16782. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16783. (checkRequestSlot): New function.
  16784. * src/DownloadEngine.cc
  16785. (run): Clear activeSockets before calling waitData().
  16786. (waitData): Removed a call to activeSockets.clear().
  16787. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16788. To attempt to handle EINTR:
  16789. * src/SocketCore.cc
  16790. (isReadable): Added EINTR handling.
  16791. (isWritable): Added EINTR handling.
  16792. To improve the performance:
  16793. * src/AbstractCommand.cc
  16794. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16795. * src/PeerInteractionCommand.h
  16796. (receiveMessage): Renamed as receiveMessages().
  16797. (receiveMessages): New function.
  16798. * src/PeerInteractionCommand.cc
  16799. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16800. () function. detectMessageFlooding() is moved here.
  16801. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16802. (). The flooding detection for have message is comment out.
  16803. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16804. Util::difftv().
  16805. (receiveMessage): Renamed as receiveMessages().
  16806. (receiveMessages): New function.
  16807. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16808. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16809. * src/SleepCommand.cc
  16810. (execute): Use Util::difftvsec() instead of Util::difftv().
  16811. * src/BitfieldMan.h
  16812. (getNthBitIndex): New function.
  16813. (hasMissingPiece): New function.
  16814. (getAllMissingIndexes): New function.
  16815. * src/BitfieldMan.cc
  16816. (countSetBit): Rewritten.
  16817. (getNthBitIndex): New function.
  16818. (getMissingIndexRandomly): Rewritten.
  16819. (hasMissingPiece): New function.
  16820. (getAllMissingIndexes): New function.
  16821. * src/TorrentMan.cc
  16822. (hasMissingPiece): New function.
  16823. (deleteUsedPiece): Rewritten using STL.
  16824. * src/PeerInteraction.cc
  16825. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16826. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16827. (addRequests): Updated the number of pending requests.
  16828. * src/PeerAbstractCommand.cc
  16829. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16830. (execute): Returns true if TorrentMan::isHalt() is true.
  16831. Corrected the condition of upload limit checking.
  16832. * src/Util.h
  16833. (countBit): New function.
  16834. * src/Util.cc
  16835. (nbits): New variable.
  16836. (countBit): New function.
  16837. * src/DownloadEngine.h
  16838. (SockCmdMap): New type definition.
  16839. (waitData): Added an argument.
  16840. (addSocket): Added an argument.
  16841. (addSocketForReadCheck): Added an argument.
  16842. (addSocketForWriteCheck): Added an argument.
  16843. * src/DownloadEngine.cc
  16844. (run): Executes only commands whose sockets are ready to read or write.
  16845. All commands are executed in every 1 second.
  16846. (waitData): Calls select() again if it returned
  16847. EINTR.
  16848. (addSocket): Saves socket and command object pair to the map.
  16849. (deleteSocket): Deletes socket and command object pair from the map.
  16850. (addSocketForReadCheck): Added an argument.
  16851. (addSocketForWriteCheck): Added an argument.
  16852. * src/DownloadCommand.cc
  16853. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16854. To send "event=stopped" to the tracker when the application finishes:
  16855. * src/PeerChokeCommand.h
  16856. (checkPoint): New variable.
  16857. * src/PeerChokeCommand.cc
  16858. (PeerChokeCommand): Added the initialization of checkPoint.
  16859. (execute): The interval check is now done by checkPoint, not
  16860. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16861. * src/TorrentMan.h
  16862. (halt): New function.
  16863. (hasMissingPiece): New function.
  16864. (isHalt): New function.
  16865. (setHalt): New function.
  16866. * src/TorrentMan.cc
  16867. (TorrentMan): Added the initialization of halt.
  16868. * src/TorrentAutoSaveCommand.h
  16869. (checkPoint): New variable.
  16870. * src/PeerListenCommand.cc
  16871. (execute): Returns true if TorrentMan::isHalt() is true.
  16872. * src/main.cc
  16873. (setSignalHander): Added flags argument.
  16874. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16875. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16876. Removed printDownloadAbortMessage() after torrent downloading loop.
  16877. * src/TorrentAutoSaveCommand.cc
  16878. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16879. (execute): Returns true if TorrentMan::isHalt() is true.
  16880. The interval check is now done by checkPoint, not SleepCommand.
  16881. * src/TrackerWatcherCommand.cc
  16882. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16883. event=stopped.
  16884. * src/TrackerUpdateCommand.cc
  16885. (prepareForRetry): Do not use SleepCommand here.
  16886. (execute): Returns true if TorrentMan::isHalt() is true.
  16887. Others:
  16888. * src/TorrentMan.cc
  16889. (getMissingPieceIndex): Updated log message.
  16890. * src/PeerInteraction.cc
  16891. (createPeerMessag): Updated log message.
  16892. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16893. To add the ability to download several pieces in mix in a command and
  16894. increase the number of request slots according to request-cancel
  16895. latency:
  16896. * src/PeerInteractionCommand.cc
  16897. (executeInternal): The number of messages to be received at a time
  16898. is increased from 10 to 50.
  16899. * src/LogFactory
  16900. (getInstance): Added NullLogger.
  16901. * src/NullLogger.h: New class.
  16902. * src/BitfieldMan.h
  16903. (getMissingIndex): New function.
  16904. * src/BitfieldMan.cc
  16905. (getMissingIndex): New function.
  16906. * src/TorrentMan.h
  16907. (checkOutPiece): New function.
  16908. (getMissingPieceIndex): New function.
  16909. (getMissingFastPieceIndex): New function.
  16910. (getMissingFastPiece): New function.
  16911. * src/TorrentMan.cc
  16912. (updatePiece): Rewritten using STL.
  16913. (syncPiece): Rewritten using STL.
  16914. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16915. checkOutPiece().
  16916. (getMissingPieceIndex): New function.
  16917. (getMissingFastPieceIndex): New function.
  16918. (getMissingFastPiece): New function.
  16919. (checkOutPiece): New function.
  16920. * src/PeerInteraction.h
  16921. (Pieces): New type definition.
  16922. (piece): Removed.
  16923. (pieces): New variable.
  16924. (getNewPieceAndSendInterest): Added the "piece" argument.
  16925. (abortPiece): Added the "piece" argument.
  16926. (abortAllPieces): New function.
  16927. (isInRequestSlot): New function.
  16928. (hasDownloadPiece): Added the "index" argument.
  16929. (setDownloadPiece): Removed.
  16930. (getDownloadPiece): Added the "index" argument.
  16931. (updatePiece): New function.
  16932. (createRequestMessage): Added the "index" argument.
  16933. * src/PeerInteraction.cc
  16934. (onChoked): Rewritten.
  16935. (abortPiece): Rewirtten.
  16936. (abortAllPieces): New function.
  16937. (deleteTimeoutRequestSlot): Rewritten.
  16938. Clarified code a little bit.
  16939. (deleteCompletedRequestSlot): Rewritten.
  16940. (isInRequestSlot): New function.
  16941. (syncPiece): Rewritten.
  16942. (updatePiece): New function.
  16943. (getNewPieceAndSendInterest): Rewritten.
  16944. (addRequests): Rewritten.
  16945. (getDownloadPiece): Rewritten.
  16946. (hasDownloadPiece): Rewritten.
  16947. (createRequestMessage): Added the "index" argument.
  16948. * src/common.h
  16949. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16950. (DIV_FLOOR): New definition.
  16951. * src/PieceMessage.cc
  16952. (receivedAction): Update request-piece latency here.
  16953. * src/RequestSlot.h
  16954. (getLatencyInMillis): New function.
  16955. * src/RequestSlot.cc
  16956. (isTimeout): Rewritten using getLatencyInMillis.
  16957. (getLatencyInMillis): New function.
  16958. * src/Piece.h
  16959. (operator==): New function.
  16960. (getMissingBlockIndex): New function.
  16961. * src/Piece.cc
  16962. (operator==): New function.
  16963. (getMissingBlockIndex): New function.
  16964. * src/Peer.h
  16965. (DEFAULT_LATENCY): New definition.
  16966. (latency): New variable.
  16967. (updateLatency): New function.
  16968. (getLatency): New function.
  16969. * src/Peer.cc
  16970. (resetStatus): Reset latecy.
  16971. (updateLatency): New function.
  16972. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16973. * src/SocketCore.cc
  16974. (isReadable): Added secure to the condition.
  16975. * src/HttpConnection.cc
  16976. (receiveResponse): Fixed a bug that causes no response header
  16977. exception.
  16978. * src/Peer.h
  16979. (getFastSet): Fixed the return value type.
  16980. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16981. To remove a wait from download loop:
  16982. * src/DownloadEngine.cc
  16983. (run): Comment out shortSleep.
  16984. To rewrite the message handling:
  16985. * src/SimplePeerMessage.h: New class.
  16986. * src/SimplePeerMessage.cc: New class.
  16987. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16988. (msg): New variable.
  16989. (create): New function.
  16990. (send): Removed.
  16991. (getMessage): New function.
  16992. (getMessageLength): New function.
  16993. * src/CancelMessage.cc
  16994. (create): New function.
  16995. (receivedAction): Replaced deleteRequestMessageInQueue with
  16996. rejectPieceMessageInQueue.
  16997. (send): Removed.
  16998. (getMessage): New function.
  16999. (getMessageLength): New function.
  17000. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  17001. (msg): New variable.
  17002. (msgLength): New variable.
  17003. (~BitfieldMessage): Deleted msg.
  17004. (send): Removed.
  17005. (getMessage): New function.
  17006. (getMessageLength): New function.
  17007. * src/BitfieldMessage.cc
  17008. (create): New function.
  17009. (send): Removed.
  17010. (getMessage): New function.
  17011. (getMessageLength): New function.
  17012. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  17013. (msg): New variable.
  17014. (sendPredicate): New function.
  17015. (onSendComplete): New function.
  17016. (send): Removed.
  17017. (getMessage): New function.
  17018. (getMessageLength): New function.
  17019. (create): New function.
  17020. * src/ChokeMessage.cc
  17021. (create): New function.
  17022. (send): Removed.
  17023. (sendPredicate): New function.
  17024. (getMessage): New function.
  17025. (getMessageLength): New function.
  17026. (onSendComplete): New function.
  17027. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  17028. (msg): New variable.
  17029. (send): Removed.
  17030. (getMessage): New function.
  17031. (getMessageLength): New function.
  17032. * src/KeepAliveMessage.cc
  17033. (send): Removed.
  17034. (getMessage): New function.
  17035. (getMessageLength): New function.
  17036. * src/PortMessage.h
  17037. (create): New function.
  17038. (receivedAction): Updated log message.
  17039. * src/PortMessage.cc: New file.
  17040. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  17041. (msg): New variable.
  17042. (sendPredicate): New function.
  17043. (onSendComplete): New function.
  17044. (create): New function.
  17045. (send): Removed.
  17046. (getMessage): New function.
  17047. (getMessageLength): New function.
  17048. * src/UnchokeMessage.cc
  17049. (create): New function.
  17050. (send): Removed.
  17051. (sendPredicate): New function.
  17052. (getMessage): New function.
  17053. (getMessageLength): New function.
  17054. (onSendComplete): New function.
  17055. * src/PieceMessage.h
  17056. (leftPieceDataLength): Removed.
  17057. (leftDataLength): New variable.
  17058. (headerSend): New variable.
  17059. (pendingCount): New variable.
  17060. (msgHeader): New variable.
  17061. (sendPieceData): New function.
  17062. (incrementPendingCount): New function.
  17063. (isPendingCountMax): New function.
  17064. (create): New function.
  17065. (getMessageHeader): New function.
  17066. (getMessageHeaderLength): New function.
  17067. * src/PieceMessage.cc
  17068. (create): New function.
  17069. (getMessageHeader): New function.
  17070. (getMessageHeaderLength): New function.
  17071. (send): Rewritten.
  17072. (sendPieceData): New function.
  17073. * src/HaveMessage.h: Derived from SimplePeerMessage.
  17074. (msg): New variable.
  17075. (create): New function.
  17076. (getMessage): New function.
  17077. (getMessageLength): New function.
  17078. * src/HaveMessage.cc
  17079. (create): New function.
  17080. (send): Removed.
  17081. (sendPieceData): New function.
  17082. (getMessage): New function.
  17083. (getMessageLength): New function.
  17084. * src/RequestMessage.h: Derived from SimplePeerMessage.
  17085. (msg): New variable.
  17086. (create): New function.
  17087. (send): Removed.
  17088. (getMessage): New function.
  17089. (getMessageLength): New function.
  17090. * src/RequestMessage.cc
  17091. (create): New function.
  17092. (receivedAction): Added the handling of fast extension.
  17093. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  17094. (send): Removed.
  17095. (getMessage): New function.
  17096. (getMessageLength): New function.
  17097. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  17098. (msg): New variable.
  17099. (sendPredicate): New function.
  17100. (onSendComplete): New function.
  17101. (create): New function.
  17102. (getMessage): New function.
  17103. (getMessageLength): New function.
  17104. * src/InterestedMessage.cc
  17105. (create): New function.
  17106. (send): Removed.
  17107. (sendPieceData): New function.
  17108. (getMessage): New function.
  17109. (getMessageLength): New function.
  17110. (onSendComplete): New function.
  17111. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  17112. (msg): New variable.
  17113. (sendPieceData): New function.
  17114. (onSendComplete): New function.
  17115. (create): New function.
  17116. (send): Removed.
  17117. (getMessage): New function.
  17118. (getMessageLength): New function.
  17119. * src/NotInterestedMessage.cc
  17120. (create): New function.
  17121. (send): Removed.
  17122. (sendPredicate): New function.
  17123. (getMessage): New function.
  17124. (getMessageLength): New function.
  17125. (onSendComplete): New function.
  17126. * src/AllowedFastMessage.h: New class.
  17127. * src/AllowedFastMessage.cc: New class.
  17128. * src/RejectMessage.h: New class.
  17129. * src/RejectMessage.cc: New class.
  17130. * src/SuggestPieceMessage.h: New class.
  17131. * src/SuggestPieceMessage.cc: New class.
  17132. * src/HaveAllMessage.h: New class.
  17133. * src/HaveAllMessage.cc: New class.
  17134. * src/HaveNoneMessage.h: New class.
  17135. * src/HaveNoneMessage.cc: New class.
  17136. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  17137. (msg): New variable.
  17138. (reserved): New variable.
  17139. (create): New function.
  17140. (getId): New function.
  17141. (receivedAction): New function.
  17142. (getMessage): New function.
  17143. (getMessageLength): New function.
  17144. (isFastExtensionSupported): New function.
  17145. * src/HandshakeMessage.cc
  17146. (HandshakeMessage): Moved here from HandshakeMessage.h.
  17147. (create): New function.
  17148. (getMessage): New function.
  17149. (getMessageLength): New function.
  17150. (toString): Added the output of reserved field.
  17151. (check): Added const qualifier.
  17152. (isFastExtensionSupported): New function.
  17153. * src/PeerMessageUtil.h
  17154. (createChokeMessage): Removed.
  17155. (createUnchokeMessage): Removed.
  17156. (createInterestedMessage): Removed.
  17157. (createNotInterestedMessage): Removed.
  17158. (createHaveMessage): Removed.
  17159. (createBitfieldMessage): Removed.
  17160. (createRequestMessage): Removed.
  17161. (createCancelMessage): Removed.
  17162. (createPieceMessage): Removed.
  17163. (createPortMessage): Removed.
  17164. (createChokeMessage): Removed.
  17165. (createUnchokeMessage): Removed.
  17166. (createInterestedMessage): Removed.
  17167. (createNotInterestedMessage): Removed.
  17168. (createHaveMessage): Removed.
  17169. (createBitfieldMessage): Removed.
  17170. (createRequestMessage): Removed.
  17171. (createCancelMessage): Removed.
  17172. (createPieceMessage): Removed.
  17173. (createKeepAliveMessage): Removed.
  17174. (createHandshakeMessage): Removed.
  17175. (setIntParam): New function.
  17176. (createPeerMessageString): New function.
  17177. * src/PeerMessageUtil.cc
  17178. (createChokeMessage): Removed.
  17179. (createUnchokeMessage): Removed.
  17180. (createInterestedMessage): Removed.
  17181. (createNotInterestedMessage): Removed.
  17182. (createHaveMessage): Removed.
  17183. (createBitfieldMessage): Removed.
  17184. (createRequestMessage): Removed.
  17185. (createCancelMessage): Removed.
  17186. (createPieceMessage): Removed.
  17187. (createPortMessage): Removed.
  17188. (createRequestMessage): Removed.
  17189. (createCancelMessage): Removed.
  17190. (createPieceMessage): Removed.
  17191. (createHaveMessage): Removed.
  17192. (createChokeMessage): Removed.
  17193. (createUnchokeMessage): Removed.
  17194. (createInterestedMessage): Removed.
  17195. (createNotInterestedMessage): Removed.
  17196. (createBitfieldMessage): Removed.
  17197. (createKeepAliveMessage): Removed.
  17198. (createHandshakeMessage): Removed.
  17199. (setIntParam): New function.
  17200. (createPeerMessageString): New function.
  17201. * src/PeerConnection.h
  17202. (peer): Removed.
  17203. (torrentMan): Removed.
  17204. (createNLengthMessage): Removed.
  17205. (setIntParam): Removed.
  17206. (writeOutgoingMessageLog): Removed all overloaded functions.
  17207. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17208. (sendMessage): New function.
  17209. (sendHandshake): Removed.
  17210. (sendKeepAlive): Removed.
  17211. (sendChoke): Removed.
  17212. (sendUnchoke): Removed.
  17213. (sendInterested): Removed.
  17214. (sendNotInterested): Removed.
  17215. (sendHave): Removed.
  17216. (sendBitfield): Removed.
  17217. (sendRequest): Removed.
  17218. (sendPiece): Removed.
  17219. (sendPieceHeader): Removed.
  17220. (sendPieceData): Removed.
  17221. (sendCancel): Removed.
  17222. (getPeer): Removed.
  17223. * src/PeerConnection.cc
  17224. (PeerConnection): Deleted peer and torrentMan from its arguments.
  17225. (sendHandshake): Removed.
  17226. (sendKeepAlive): Removed.
  17227. (createNLengthMessage): Removed.
  17228. (setIntParam): Removed.
  17229. (writeOutgoingMessageLog): Removed all overloaded functions.
  17230. (sendChoke): Removed.
  17231. (sendUnchoke): Removed.
  17232. (sendInterested): Removed.
  17233. (sendNotInterested): Removed.
  17234. (sendHave): Removed.
  17235. (sendBitfield): Removed.
  17236. (sendRequest): Removed.
  17237. (sendPiece): Removed.
  17238. (sendPieceHeader): Removed.
  17239. (sendPieceData): Removed.
  17240. (sendMessage): New function.
  17241. (sendCancel): Removed.
  17242. * src/PeerInteractionCommand.cc
  17243. (PeerInteractionCommand): Call setUploadLimit.
  17244. (executeInternal): Call setUploadLimit.
  17245. Added the handling of "inProgress" state of handshake message.
  17246. Call sendBitfield() or sendAllowdFast() instead of deprecated
  17247. sendNow().
  17248. (keepAlive): Call addMessage and sendMessage instead of deprecated
  17249. sendNow().
  17250. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  17251. * src/TorrentMan.h
  17252. (PEER_ID_LENGTH): New definition.
  17253. (hasAllPieces): New function.
  17254. * src/TorrentMan.cc
  17255. (getMissingPiece): Added the handling of fast extension.
  17256. (cancelPiece): Call updatePiece().
  17257. (hasAllPieces): New function.
  17258. * src/PeerInteraction.h
  17259. (fastSet): New variable.
  17260. (getNewPieceAndSendInterest): Changed the return type to void.
  17261. (send): Renamed as sendMessages.
  17262. (deleteAllRequestSlot): Removed.
  17263. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17264. (cancelAllRequest): Removed all overloaded functions.
  17265. (deleteAllRequestSlot): Removed.
  17266. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17267. (rejectPieceMessageInQueue): New function.
  17268. (rejectAllPieceMessageInQueue): New function.
  17269. (onChoked): New function.
  17270. (isSendingMessageInProgress): New function.
  17271. (getCorrespondingRequestSlot): Changed its arguments.
  17272. (isInFastSet): New function.
  17273. (addFastSetIndex): New function.
  17274. (addRequests): New function.
  17275. (sendNow): Removed.
  17276. (trySendNow): Removed.
  17277. (sendBitfield): New function.
  17278. (sendAllowdFast): New function.
  17279. (createHaveAllMessage): New function.
  17280. (createHaveNoneMessage): New function.
  17281. (createRejectMessage): New function.
  17282. (createAllowedFastMessage): New function.
  17283. * src/PeerInteraction.cc
  17284. (send): Renamed as sendMessages.
  17285. (sendMessages): New function.
  17286. (MsgPushBack): New class.
  17287. (isSendingMessageInProgress): New function.
  17288. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  17289. (rejectAllPieceMessageInQueue): New function.
  17290. Added the handling of fast extension.
  17291. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  17292. (rejectPieceMessageInQueue): New function.
  17293. Added the handling of fast extension.
  17294. (deleteRequestSlot): Replaced for loop with std::find.
  17295. (onChoked): New function.
  17296. (deleteAllRequestSlot): Removed.
  17297. (abortPiece): Rewirtten.
  17298. (deleteTimeoutRequestSlot): Updated log messages.
  17299. (getCorrespondingRequestSlot): Changed its arguments.
  17300. (cancelAllRequest): Removed all overloaded functions.
  17301. (receiveHandshake): Added the check to see whether an incoming peer
  17302. supports fast extension.
  17303. (createHandshakeMessage): Use HandshakeMessage::create instead of
  17304. PeerMessageUtil.
  17305. (createPeerMessage): Use create() of each message class instead of
  17306. PeerMessageUtil.
  17307. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  17308. AllowedFastMessage were added.
  17309. (getNewPieceAndSendInterest): Changed its return value type to void.
  17310. Added the handling of fast extension.
  17311. (addRequests): New function.
  17312. (sendNow): Removed.
  17313. (sendHandshake): Rewritten.
  17314. (trySendNow): Removed.
  17315. (sendBitfield): New function.
  17316. (sendAllowdFast): New function.
  17317. (isInFastSet): New function.
  17318. (addFastSetIndex): New function.
  17319. (createRequestMessage): Use RequestMessage::create instead of
  17320. PeerMessageUtil.
  17321. (createCancelMessage): Use CancelMessage::create instead of
  17322. PeerMessageUtil.
  17323. (createPieceMessage): Use PieceMessage::create instead of
  17324. PeerMessageUtil.
  17325. (createHaveMessage): Use HaveMessage::create instead of
  17326. PeerMessageUtil.
  17327. (createChokeMessage): Use ChokeMessage::create instead of
  17328. PeerMessageUtil.
  17329. (createUnchokeMessage): Use UnchokeMessage::create instead of
  17330. PeerMessageUtil.
  17331. (createInterestedMessage): Use InterestedMessage::create instead of
  17332. PeerMessageUtil.
  17333. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  17334. of PeerMessageUtil.
  17335. (createBitfieldMessage): Use BitfieldMessage::create instead of
  17336. PeerMessageUtil.
  17337. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  17338. PeerMessageUtil.
  17339. (createHaveAllMessage): New function.
  17340. (createHaveNoneMessage): New function.
  17341. (createRejectMessage): New function.
  17342. (createAllowedFastMessage: New function.
  17343. * src/Util.h
  17344. (sha1Sum): New function.
  17345. (computeFastSet): New function.
  17346. * src/Util.cc
  17347. (sha1Sum): New function.
  17348. (computeFastSet): New function.
  17349. * src/Peer.h
  17350. (fastExtensionEnabled): New variable.
  17351. (fastSet): New variable.
  17352. (setAllBitfield): New function.
  17353. (setFastExtensionEnabled): New function.
  17354. (isFastExtensionEnabled): New function.
  17355. (addFastSetIndex): New function.
  17356. (getFastSet): New function.
  17357. (isInFastSet): New function.
  17358. (countFastSet): New function.
  17359. * src/Peer.cc
  17360. (isInFastSet): New function.
  17361. (addFastSetIndex): New function.
  17362. (setAllBitfield): New function.
  17363. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  17364. sockets.
  17365. * src/PeerAbstractCommand.cc
  17366. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  17367. and uploadLimit.
  17368. (execute): Changed the procedure of checking sockets. The upload speed
  17369. checking were added.
  17370. (setUploadLimit): New function.
  17371. (setUploadLimitCheck): New function.
  17372. * src/PeerAbstractCommand.h
  17373. (setUploadLimit): New function.
  17374. (setUploadLimitCheck): New function.
  17375. (uploadLimit): New variable.
  17376. (uploadLimitCheck): New variable.
  17377. To contact a tracker regularly:
  17378. * src/TrackerWatcherCommand.h (interval): New variable.
  17379. (checkPoint): New variable.
  17380. (TrackerWatcherCommand): Added interval argument.
  17381. * src/TrackerWatcherCommand.cc
  17382. (TrackerWatcherCommand): Initialized checkPoint.
  17383. (execute): Now a tracker is contacted in every specified period.
  17384. If peer list is not needed, send request with numwant=0.
  17385. * src/TrackerUpdateCommand.cc
  17386. (execute): Updated log messages.
  17387. * src/DownloadEngine.cc
  17388. (~DownloadEngine): Removed two asserts.
  17389. (waitData): Uncommented wfds. May be a bug fix.
  17390. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17391. * src/PeerInteractionCommand.h
  17392. (checkInactiveConnection): Removed.
  17393. * src/PeerInteractionCommand.cc
  17394. (executeInternal): Removed following function calls:
  17395. detectMessageFlooding(), checkLongTimePeerChoking and
  17396. checkInactiveConnection().
  17397. (checkInactiveConnection): Removed.
  17398. (detectMessageFlooding): Removed function call to
  17399. checkInactiveConnection().
  17400. * src/PeerMessageUtil.h
  17401. (createChokeMessage): New function. Overload.
  17402. (createUnchokeMessage): New function. Overload.
  17403. (createInterestedMessage): New function. Overload.
  17404. (createNotInterestedMessage): New function. Overload.
  17405. (createHaveMessage): New function. Overload.
  17406. (createBitfieldMessage): New function. Overload.
  17407. (createRequestMessage): New function. Overload.
  17408. (createCancelMessage): New function. Overload.
  17409. (createPieceMessage): New function. Overload.
  17410. (createKeepAliveMessage): New function. Overload.
  17411. * src/PeerMessageUtil.cc
  17412. (createChokeMessage): New function. Overload.
  17413. (createUnchokeMessage): New function. Overload.
  17414. (createInterestedMessage): New function. Overload.
  17415. (createNotInterestedMessage): New function. Overload.
  17416. (createHaveMessage): New function. Overload.
  17417. (createBitfieldMessage): New function. Overload.
  17418. (createRequestMessage): New function. Overload.
  17419. (createCancelMessage): New function. Overload.
  17420. (createPieceMessage): New function. Overload.
  17421. (createKeepAliveMessage): New function. Overload.
  17422. * src/SendMessageQueue.cc
  17423. (createRequestMessage): Use PeerMessageUtil.
  17424. (createCancelMessage): Use PeerMessageUtil.
  17425. (createPieceMessage): Use PeerMessageUtil.
  17426. (createHaveMessage): Use PeerMessageUtil.
  17427. (createChokeMessage): Use PeerMessageUtil.
  17428. (createUnchokeMessage): Use PeerMessageUtil.
  17429. (createInterestedMessage): Use PeerMessageUtil.
  17430. (createNotInterestedMessage): Use PeerMessageUtil.
  17431. (createBitfieldMessage): Use PeerMessageUtil.
  17432. (createKeepAliveMessage): Use PeerMessageUtil.
  17433. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17434. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17435. * src/PeerInteraction.h: New class.
  17436. * src/PeerInteraction.cc: New class.
  17437. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17438. Each peer message has its own class.
  17439. * src/PendingMessages.h: Removed.
  17440. * src/PendingMessages.cc: Removed. The sending process was moved to
  17441. each message class.
  17442. * src/RequestSlotMan.h: Removed.
  17443. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17444. SendMessageQueue.
  17445. * src/RequestMessage.h: New class.
  17446. * src/RequestMessage.cc: New class.
  17447. * src/CancelMessage.h: New class.
  17448. * src/CancelMessage.cc: New class.
  17449. * src/BitfieldMessage.h: New class.
  17450. * src/BitfieldMessage.cc: New class.
  17451. * src/ChokeMessage.h: New class.
  17452. * src/ChokeMessage.cc: New class.
  17453. * src/KeepAliveMessage.h: New class.
  17454. * src/KeepAliveMessage.cc: New class.
  17455. * src/PortMessage.h: New class.
  17456. * src/UnchokeMessage.h: New class.
  17457. * src/UnchokeMessage.cc: New class.
  17458. * src/PieceMessage.h: New class.
  17459. * src/PieceMessage.cc: New class.
  17460. * src/HaveMessage.h: New class.
  17461. * src/HaveMessage.cc: New class.
  17462. * src/BitfieldMessage.h: New class.
  17463. * src/BitfieldMessage.cc: New class.
  17464. * src/NotInterestedMessage.h: New class.
  17465. * src/NotInterestedMessage.cc: New class.
  17466. * src/InterestedMessage.h: New class.
  17467. * src/InterestedMessage.cc: New class.
  17468. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17469. (getSendMessageQueue): New function.
  17470. (setSendMessageQueue): New function.
  17471. * src/HandshakeMessage.cc: New class.
  17472. * src/PeerConnection.h (receiveMessage): Changed return value and
  17473. arguments.
  17474. (receiveHandshake): Changed return value and arguments.
  17475. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17476. here.
  17477. (receiveHandshake): Do not create handshake class here.
  17478. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17479. (piece): Removed.
  17480. (syncPiece): Removed.
  17481. (sendInterest): Removed.
  17482. (sendMessages): Removed.
  17483. (createRequestPendingMessage): Removed.
  17484. (checkPieceHash): Removed.
  17485. (erasePieceOnDisk): Removed.
  17486. (getNewPieceAndSendInterest): Removed.
  17487. (onGotNewPice): Removed.
  17488. (onGotWrongPiece): Removed.
  17489. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17490. Removed peerConnection, piece.
  17491. (~PeerInteractionCommand): Removed peerConnection.
  17492. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17493. (syncPiece): Moved to SendMessageQueue.
  17494. (decideChoking): Removed PendingMessage.
  17495. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17496. The action after receiving peer message was moved to each message
  17497. class.
  17498. (onGotNewPice): Moved to SendMessageQueue.
  17499. (onGotWrongPiece): Moved to SendMessageQueue.
  17500. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17501. (sendInterest): Moved to SendMessageQueue.
  17502. (createRequestPendingMessage): Removed.
  17503. (sendMessages): Moved to SendMessageQueue.
  17504. (onAbort): Use SendMessageQueue::abortPiece()
  17505. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17506. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17507. (checkPieceHash): Moved to SendMessageQueue.
  17508. (erasePieceOnDisk): Moved to SendMessageQueue.
  17509. * src/PeerMessageUtil.h
  17510. (createBitfieldMessage): Removed.
  17511. (createHaveMessage): Changed return value and arguments.
  17512. (createBitfieldMessage): Changed return value and arguments.
  17513. (createRequestCancelMessage): Removed.
  17514. (createPieceMessage): Changed return value and arguments.
  17515. (getShortIntParam): New function.
  17516. (checkIndex): Changed arguments.
  17517. (checkBegin): Changed arguments.
  17518. (checkLength): Changed arguments.
  17519. (checkPieceOffset): Removed.
  17520. (checkRange): New function.
  17521. (checkBitfield): Changed arguments.
  17522. (createPeerMessage): Removed.
  17523. (checkIntegrity): Removed.
  17524. (createHandshakeMessage): Changed arguments.
  17525. (createChokeMessage): New function.
  17526. (createUnchokeMessage): New function.
  17527. (createInterestedMessage): New function.
  17528. (createNotInterestedMessage): New function.
  17529. (createRequestMessage): New function.
  17530. (createCancelMessage): New function.
  17531. (createPortMessage): New function.
  17532. * src/PeerMessageUtil.cc
  17533. (createBitfieldMessage): Removed.
  17534. (createHaveMessage): Changed return value and arguments.
  17535. (createBitfieldMessage): Changed return value and arguments.
  17536. (createRequestCancelMessage): Removed.
  17537. (createPieceMessage): Changed return value and arguments.
  17538. (getShortIntParam): New function.
  17539. (checkIndex): Changed arguments.
  17540. (checkBegin): Changed arguments.
  17541. (checkLength): Changed arguments.
  17542. (checkPieceOffset): Removed.
  17543. (checkRange): New function.
  17544. (checkBitfield): Changed arguments.
  17545. (createPeerMessage): Removed.
  17546. (checkIntegrity): Removed.
  17547. (createHandshakeMessage): Changed arguments.
  17548. (createChokeMessage): New function.
  17549. (createUnchokeMessage): New function.
  17550. (createInterestedMessage): New function.
  17551. (createNotInterestedMessage): New function.
  17552. (createRequestMessage): New function.
  17553. (createCancelMessage): New function.
  17554. (createPortMessage): New function.
  17555. * src/PeerMessage.h
  17556. (id): Removed.
  17557. (index): Removed.
  17558. (begin): Removed.
  17559. (length): Removed.
  17560. (bitfield): Removed.
  17561. (bitfieldLength): Removed.
  17562. (block): Removed.
  17563. (blockLength): Removed.
  17564. (inProgress): New variable.
  17565. (cuid): New variable.
  17566. (peer): New variable.
  17567. (sendMessageQueue): New variable.
  17568. (logger): New variable.
  17569. (setBitfield): Removed.
  17570. (getBitfield): Removed.
  17571. (setBlock): Removed.
  17572. (getBlock): Removed.
  17573. (getBitfieldLength): Removed.
  17574. (getBlockLength): Removed.
  17575. (isInProgress): New function.
  17576. (toString): Made pure virtual.
  17577. (check): New function.
  17578. (send): New function.
  17579. (receivedAction): New function.
  17580. (getId): Made pure virtual.
  17581. (setId): Removed.
  17582. (getIndex): Removed.
  17583. (setIndex): Removed.
  17584. (getBegin): Removed.
  17585. (setBegin): Removed.
  17586. (getLength): Removed.
  17587. (setLength): Removed.
  17588. (getCuid): New function.
  17589. (setCuid): New function.
  17590. (getPeer): New function.
  17591. (setPeer): New function.
  17592. (getSendMessageQueue): New function.
  17593. (setSendMessageQueue): New function.
  17594. (ID): Removed.
  17595. * src/PeerMessage.cc
  17596. (setBitfield): Removed.
  17597. (setBlock): Removed.
  17598. (toString): Removed.
  17599. * src/TorrentMan.h
  17600. (getPieceLength): New function.
  17601. (getPieceLength): New function.
  17602. * src/SendMessageQueue.h
  17603. (REQUEST_TIME_OUT): New definition.
  17604. (RequestSlots): New definition.
  17605. (MessageQueue): New definition.
  17606. (requestSlotMan): Removed.
  17607. (pendingMessages): Removed.
  17608. (requestSlots): New variable.
  17609. (messageQueue): New variable.
  17610. (torrentMan): New variable.
  17611. (peerConnection): New variable.
  17612. (peer): New variable.
  17613. (piece): New variable.
  17614. (getNewPieceAndSendInterest): New function.
  17615. (createPeerMessage): New function.
  17616. (createHandshakeMessage): New function.
  17617. (send): Made private.
  17618. (setPeerMessageCommonProperty): New function.
  17619. (deleteAllRequestSlot): New function.
  17620. (deleteRequestMessageInQueue): New function.
  17621. (cancelAllRequest): Made private.
  17622. (cancelAllRequest): Made private.
  17623. (countRequestSlot): Made private.
  17624. (addPendingMessage): Removed.
  17625. (deletePendingPieceMessage): Removed.
  17626. (deletePendingRequestMessage): Removed.
  17627. (addMessage): New function.
  17628. (deletePieceMessageInQueue): New function.
  17629. (deleteTimeoutRequestSlot): Changed argument.
  17630. (deleteCompletedRequestSlot): Changed argument.
  17631. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17632. (getCorrespondingRequestSlot): New function.
  17633. (countPendingMessage): Removed.
  17634. (countMessageInQueue): New function.
  17635. (getTorrentMan): New function.
  17636. (getPeerConnection): New function.
  17637. (hasDownloadPiece): New function.
  17638. (getDownloadPiece): New function.
  17639. (setDownloadPiece): New function.
  17640. (syncPiece): New function.
  17641. (sendMessages): New function.
  17642. (sendNow): New function.
  17643. (trySendNow): New function.
  17644. (abortPiece): New function.
  17645. (sendHandshake): New function.
  17646. (receiveMessage): New function.
  17647. (receiveHandshake): New function.
  17648. (createRequestMessage): New function.
  17649. (createCancelMessage): New function.
  17650. (createPieceMessage): New function.
  17651. (createHaveMessage): New function.
  17652. (createChokeMessage): New function.
  17653. (createUnchokeMessage): New function.
  17654. (createInterestedMessage): New function.
  17655. (createNotInterestedMessage): New function.
  17656. (createBitfieldMessage): New function.
  17657. (createKeepAliveMessage): New function.
  17658. * src/SendMessageQueue.cc
  17659. (SendMessageQueue): Removed requestSlotMan.
  17660. Instantiated peerConnection here.
  17661. (~SendMessageQueue): Removed requestSlotMan.
  17662. Added deletion of peerConnection and the contents of messageQueue.
  17663. (send): Updated according to the change of messageQueue.
  17664. (addPendingMessage): Renamed to addMessage.
  17665. (addMessage): New function.
  17666. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17667. (deletePieceMessageInQueue): New function.
  17668. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17669. (deleteRequestMessageInQueue): New function.
  17670. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17671. here.
  17672. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17673. (...) was moved here.
  17674. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17675. moved here.
  17676. (deleteCompletedRequestSlot):
  17677. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17678. (getCorrespondingRequestSlot):
  17679. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17680. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17681. (countPendingMessage): Renamed to countMessageInQueue.
  17682. (countMessageInQueue): New function.
  17683. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17684. (receiveHandshake): New function.
  17685. (createHandshakeMessage): New function.
  17686. (receiveMessage): New function.
  17687. (createPeerMessage): New function.
  17688. (syncPiece): New function.
  17689. (getNewPieceAndSendInterest): New function.
  17690. (sendMessages): New function.
  17691. (sendNow): New function.
  17692. (trySendNow): New function.
  17693. (sendHandshake): New function.
  17694. (abortPiece): New function.
  17695. (getDownloadPiece): New function.
  17696. (getPeerMessageCommonProperty): New function.
  17697. (createRequestMessage): New function.
  17698. (createCancelMessage): New function.
  17699. (createPieceMessage): New function.
  17700. (createHaveMessage): New function.
  17701. (createChokeMessage): New function.
  17702. (createUnchokeMessage): New function.
  17703. (createInterestedMessage): New function.
  17704. (createNotInterestedMessage): New function.
  17705. (createBitfieldMessage): New function.
  17706. (createKeepAliveMessage): New function.
  17707. To add simple Content-Disposition support:
  17708. * src/HttpResponseCommand.h (determinFilename): New function.
  17709. * src/HttpResponseCommand.cc (executeInternal):
  17710. Use determinFilename(headers) instead of req->getFile() when comparing
  17711. filename.
  17712. (determinFilename): New function.
  17713. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17714. req->getFile().
  17715. (handleOtherEncoding): Use determinFilename(headers) instead of
  17716. req->getFile().
  17717. * src/Util.h (getContentDispositionFilename): New function.
  17718. * src/Util.cc (getContentDispositionFilename): New function.
  17719. * src/LogFactory.h (release): New function.
  17720. * src/LogFactory.cc (release): New function.
  17721. To fix a bug that causes out-of-bound exception when HTTP status
  17722. line is wrong:
  17723. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17724. size.
  17725. * src/common.h (Deleter): New class.
  17726. * src/SegmentMan.cc
  17727. (~SegmentMan): Added deletion of splitter and diskWriter.
  17728. * src/DownloadEngine.h
  17729. (Commands): Use deque.
  17730. (clearQueue): New function.
  17731. * src/DownloadEngine.cc
  17732. (~DownloadEngine): Added deletion of segmentMan.
  17733. (cleanQueue): New function.
  17734. * src/TorrentDownloadEngine.h
  17735. (TorrentDownloadEngine): The implementation was moved to
  17736. TorrentDownloadEngine.cc.
  17737. (~TorrentDownloadEngine): The implementation was moved to
  17738. TorrentDownloadEngine.cc.
  17739. * src/TorrentDownloadEngine.cc
  17740. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17741. * src/main.cc
  17742. (clearRequest): Removed.
  17743. (handler): Added deletion of e.
  17744. (torrentHandler): Added deletion of te.
  17745. (main): Do not share splitter.
  17746. Use Deleter instead of clearRequest.
  17747. Deletion of classes were updated.
  17748. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17749. * src/main.cc (main): Fixed typo.
  17750. * src/message.h: Fixed typo.
  17751. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17752. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17753. To add --select-file command-line option:
  17754. * src/Util.cc
  17755. (unfoldRange): New function.
  17756. (getNum): New function.
  17757. (unfoldSubRange): New function
  17758. * src/main.cc
  17759. (showUsage): Added help message.
  17760. (main): Added --select-file command-line option. Updated the layout of
  17761. file listing.
  17762. * src/common.h
  17763. (Integers): New definition.
  17764. * src/SocketCore.cc
  17765. (writeData): Removed timeout argument.
  17766. (readData): Removed timeout argument.
  17767. (peekData): Removed timeout argument.
  17768. * src/Socket.cc
  17769. (writeData): Removed timeout argument.
  17770. (readData): Removed timeout argument.
  17771. (peekData): Removed timeout argument.
  17772. * Release 0.4.1
  17773. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17774. To deploy upload rate based choking algorithm:
  17775. * src/PeerInteractionCommand.cc
  17776. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17777. peer currently used.
  17778. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17779. download completes. Simplified.
  17780. (receiveMessage): Updated.
  17781. * src/TorrentMan.h
  17782. (activePeers): New variable.
  17783. (addActivePeer): New function.
  17784. (getActivePeers): New function.
  17785. (deleteActivePeer): New function.
  17786. * src/TorrentMan.cc
  17787. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17788. * src/PeerAbstractCommand.cc
  17789. (onAbort): Use peer->resetStatus().
  17790. * src/main.cc
  17791. (PeerChokeCommand.h): Included.
  17792. (main): Added the instance of ChokingCommand to the command queue.
  17793. * src/Peer.h
  17794. (amChoking): Renamed from amChocking
  17795. (chokingRequired): New variable.
  17796. (optUnchoking): New variable.
  17797. (deltaUpload): New variable.
  17798. (deltaDownload): New variable.
  17799. (addDeltaUpload): New function.
  17800. (resetDeltaUpload): New function.
  17801. (addDeltaDownload): New function.
  17802. (resetDeltaDownload): New function.
  17803. (addPeerUpload): Added a call to addDeltaUpload.
  17804. (addPeerDownload): Added a call to addDeltaDownload.
  17805. * src/Peer.cc
  17806. (shouldBeChoking): Renamed from shouldChoke.
  17807. (resetStatus): New function.
  17808. * src/PeerChokeCommand.h: New class.
  17809. * src/PeerChokeCommand.cc: New class.
  17810. To add lazy upload speed limiter:
  17811. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17812. statistics calculation to TorrentDownloadEngine.
  17813. * src/TorrentConsoleDownloadEngine.cc
  17814. (sendStatistics): Renamed from printStatistics.
  17815. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17816. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17817. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17818. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17819. calculation.
  17820. (sendStatistics): New function as pure virtual function.
  17821. (getUploadSpeed): New function.
  17822. * src/TorrentDownloadEngine.cc
  17823. (initStatistics): New function.
  17824. (calculateSpeed): New function.
  17825. (calculateStatistics): New function.
  17826. * src/SendMessageQueue.h
  17827. (uploadLength): New variable.
  17828. (send): Added an argument.
  17829. (setUploadLimit): New function.
  17830. (getUploadLimit): New function.
  17831. * src/SendMessageQueue.cc
  17832. (send): Added upload speed limiter.
  17833. * src/prefs.h
  17834. (PREF_UPLOAD_LIMIT): New definition.
  17835. * src/PeerInteractionCommand.cc
  17836. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17837. * src/main.cc
  17838. (main): Added --upload-limit option
  17839. For bug fixes:
  17840. * src/main.cc
  17841. (showUsage): Corrected --listen-port help
  17842. Other changes:
  17843. * src/TorrentMan.cc
  17844. (getPeer): Return nullPeer if connection is grather than
  17845. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17846. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17847. To add some useful information to the exception message:
  17848. * src/SocketCore.cc : Updated messages.
  17849. * src/SegmentMan.cc :
  17850. * src/TorrentMan.cc : Updated messages.
  17851. * src/MultiDiskWriter.cc : Updated messages.
  17852. * src/Util.cc : Updated messages.
  17853. * src/AbstractDiskWriter.cc : Updated messages.
  17854. * src/PreAllocationDiskWriter.cc : Updated messages.
  17855. * src/message.cc : Added new messages. Updated some messages.
  17856. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17857. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17858. Updated threshold from 30 to 15.
  17859. * src/AbstractDiskWriter.h (filename): New variable.
  17860. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17861. (createFile): Assigned filename.
  17862. * src/main.cc: Updated the help message for http-auth-scheme.
  17863. * Release 0.4.0
  17864. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17865. To add TrackerUpdateCommand with which replaces
  17866. CompactTrackerResponseProcessor:
  17867. * src/TrackerWatcherCommand.h (req): Removed.
  17868. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17869. if the number of peer connections are less than 30.
  17870. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17871. * src/SegmentMan.h (diskWriter): New function.
  17872. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17873. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17874. (main): Use TrackerUpdateCommand.
  17875. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17876. (req): New variable.
  17877. (setTrackerResponseProcessor): Removed.
  17878. (getTrackerResponseProcessor): Removed.
  17879. (processTrackerResponse): Removed.
  17880. * src/DownloadEngine.h (diskWriter): Removed.
  17881. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17882. to torrentMan->processTrackerResponse().
  17883. To add Util::expandBuffer:
  17884. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17885. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17886. * src/Util.h (expandBuffer): New function.
  17887. To fix the bug that causes segmentation fault when "-l ." is specified
  17888. in command-line option:
  17889. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17890. (openFile): New function.
  17891. (closeFile): New function.
  17892. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17893. (~SimpleLogger): Call closeFile();
  17894. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17895. * src/main.cc (main): Added a check to see logger is configured
  17896. properly.
  17897. To enable HTTP authentication without specifying "--http-auth-scheme"
  17898. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17899. * src/HttpConnection.cc (createRequest): Send Authorization header
  17900. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17901. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17902. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17903. * src/Peer.cc (shouldChoke): Updated algorithm.
  17904. * src/message.h (EX_AUTH_FAILED): New definition.
  17905. (EX_FILE_OPEN): New definition.
  17906. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17907. if status == 401.
  17908. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17909. if req->isTorrent == true.
  17910. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17911. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17912. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17913. (createFile): Updated message.
  17914. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17915. To add a readout of estimated remaining time to normal HTTP/FTP
  17916. downloads:
  17917. * src/ConsoleDownloadEngine.h (startup): New variable.
  17918. (startupLength): New variable.
  17919. (isStartupLengthSet): New variable.
  17920. (avgSpeed): New variable.
  17921. (eta): New variable.
  17922. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17923. estimated remaining time.
  17924. (initStatistics): Initialized newly added variables.
  17925. (calculateStatistics): Calculate average speed and estimated remaining
  17926. time.
  17927. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17928. * src/TrackerDownloadCommand.h: Removed.
  17929. * src/TrackerDownloadCommand.cc: Removed.
  17930. * src/TrackerInitCommand.h: Removed.
  17931. * src/TrackerInitCommand.cc: Removed.
  17932. * src/TrackerUpdateCommand.h: Removed.
  17933. * src/TrackerUpdateCommand.cc: Removed.
  17934. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17935. url written in TrackerInitCommand was moved here. Do not create
  17936. tracker request command if torrentMan->trackers != 0.
  17937. * src/CompactTrackerResponseProcessor.h: New class.
  17938. * src/CompactTrackerResponseProcessor.cc: New class.
  17939. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17940. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17941. Decoupled TorrentDownloadEngine from this.
  17942. * src/SegmentMan.h (init): New function.
  17943. * src/SegmentMan.cc (init): New function.
  17944. * src/TorrentMan.h (responseProcessor): New variable.
  17945. (trackers): New variable.
  17946. (setTrackerResponseProcessor): New function.
  17947. (getTrackerResponseProcessor): New function.
  17948. (processTrackerResponse): New function.
  17949. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17950. (processTrackerResponse): New function.
  17951. * src/main.cc (main): Use ByteArrayDiskWriter and
  17952. CompactTrackerResponseProcessor.
  17953. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17954. processTrackerResponse().
  17955. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17956. readout.
  17957. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17958. which indicates download has completed.
  17959. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17960. (closeFile): fd >= 0, not fd > 0
  17961. * src/main.cc (main): Added short cut for show-files.
  17962. Added short cut for torrent-file.
  17963. Added new command-line option listen-port.
  17964. Updated i18n messages.
  17965. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17966. To add LogFactory which creates singleton logger:
  17967. * src/LogFactory.h: New class.
  17968. * src/LogFactory.cc: New class.
  17969. * src/Command.h (logger): New variable.
  17970. (Constructor): Use LogFactory.
  17971. * src/AbstractCommand.cc: Use Command::logger
  17972. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17973. Use LogFactory.
  17974. * src/SegmentSplitter.h : Made logger protected.
  17975. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17976. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17977. * src/DownloadEngine.h : Made logger protected.
  17978. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17979. * src/PeerInteractionCommand.cc : Use Command::logger.
  17980. * src/HttpResponseCommand.cc : Use Command::logger.
  17981. * src/SegmentMan.h : Made logger private.
  17982. * src/TorrentMan.h : Made logger private.
  17983. * src/TorrentMan.cc : Use LogFactory.
  17984. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17985. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17986. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17987. Use LogFactory.
  17988. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17989. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17990. Use LogFactory.
  17991. * src/DownloadCommand.cc : Use Command::logger.
  17992. * src/PeerAbstractCommand.cc : Use Command::logger.
  17993. * src/PeerListenCommand.cc : Use Command::logger.
  17994. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17995. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17996. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17997. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17998. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17999. * src/TrackerDownloadCommand.cc : Use Command::logger.
  18000. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  18001. Use LogFactory.
  18002. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  18003. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  18004. Use LogFactory.
  18005. * src/main.cc (main): Use LogFactory.
  18006. * src/DiskAdaptor.h (logger): New variable.
  18007. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  18008. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  18009. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18010. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  18011. parameter to a tracker request.
  18012. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  18013. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  18014. * src/main.cc (setSignalHander): New function.
  18015. (main): Added a handler for SIGTERM.
  18016. (handler): Updated message.
  18017. (torrentHandler): Updated message.
  18018. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18019. * src/TorrentConsoleDownloadEngine.cc
  18020. (onPartialDownloadingCompletes): Renamed as
  18021. onSelectiveDownloadingCompletes.
  18022. (onSelectiveDownloadingCompletes): Updated message.
  18023. To add DiskAdaptor which abstract DiskWriter family:
  18024. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  18025. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  18026. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  18027. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  18028. MultiDiskAdaptor.h.
  18029. (readFileEntry): Changed its arguments.
  18030. (setup): setupDiskWriter is merged into this function.
  18031. (setupDiskWriter): Removed.
  18032. (setFileFilter): New function.
  18033. (readFileEntryFromMetaInfoFile): Updated according to the changes
  18034. made in readFileEntry.
  18035. (getFilePath): Removed.
  18036. (getTempFilePath): Removed.
  18037. (getSegmentFilePath): Updated due to the removal of getFilePath.
  18038. (fixFilename): Removed.
  18039. (copySingleFile): Removed.
  18040. (splitMultiFile): Removed.
  18041. (deleteTempFile): Removed.
  18042. (setFileEntriesToDownload): Removed.
  18043. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  18044. (isSelectiveDownloadingMode): New function.
  18045. (setAllMultiFileRequestedState): Removed.
  18046. (finishPartialDownloadingMode): Renamed as
  18047. finishSelectiveDownloadingMode.
  18048. (finishSelectiveDownloadingMode): New function.
  18049. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  18050. (getSelectedTotalLength): New function.
  18051. (onDownloadComplete): Use diskAdaptor.
  18052. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  18053. (Range): Removed.
  18054. (setMultiFileEntries): Renamed as setFileEntries.
  18055. (setFileEntries): New function.
  18056. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  18057. (pieceLength): New variable.
  18058. * src/main.cc (printDownloadCompeleteMessage): New function.
  18059. (torrentHandler): Use diskAdaptor instead of diskWriter.
  18060. (main): Renamed torrent-show-files to show-files.
  18061. Rewritten file contents listing.
  18062. * src/TorrentMan.h (FileEntry): Removed.
  18063. (multiFileTopDir): Removed.
  18064. (multiFileEntries): Removed.
  18065. (diskWriter): Removed.
  18066. (diskAdaptor): New variable.
  18067. * src/DefaultDiskWriter.h (totalLength): New variable.
  18068. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  18069. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  18070. diskWriter.
  18071. * src/TorrentConsoleDownloadEngine.h
  18072. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  18073. (partialTotalLength): Renamed as selectedTotalLength.
  18074. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  18075. openExistingFile, otherwise call initAndOpenFile.
  18076. (closeFile): fd > 0, not fd != 0.
  18077. * src/DirectDiskAdaptor.h: New class.
  18078. * src/DirectDiskAdaptor.cc: New class.
  18079. * src/MultiDiskAdaptor.h: New class.
  18080. * src/MultiDiskAdaptor.cc: New class.
  18081. * src/CopyDiskAdaptor.h: New class.
  18082. * src/CopyDiskAdaptor.cc: New class.
  18083. * src/DiskAdaptor.h: New class.
  18084. * src/DiskAdaptor.cc: New class.
  18085. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  18086. (PREF_SHOW_FILES): New definition.
  18087. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18088. To add the ability to download multi torrent into respective files
  18089. directly:
  18090. * src/DiskWriter.h (openFile): New function.
  18091. (seek): Removed.
  18092. * src/MultiDiskWriter.h: New class.
  18093. * src/MultiDiskWriter.cc: New class.
  18094. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  18095. protected.
  18096. (openFile): New function.
  18097. * src/AbstractDiskWriter.cc (openFile): New function.
  18098. * src/prefs.h (V_FALSE): New definition.
  18099. (PREF_DIRECT_FILE_MAPPING): New definition.
  18100. * src/TorrentMan.h (setupDiskWriter): New function.
  18101. (setAllMultiFileRequestedState): New function.
  18102. (onDownloadComplete): New function.
  18103. * src/TorrentMan.cc : Included MultiDiskWriter.h
  18104. (setupDiskWriter): New function.
  18105. (getFilePath): Updated.
  18106. (getTempFilePath): Updated.
  18107. (getSegmentFilePath): Updated.
  18108. (fixFilename): Updated.
  18109. (deleteTempFile): Updated.
  18110. (setAllMultiFileRequestedState): New function.
  18111. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  18112. (finishPartialDownloadingMode): Reset requested flags.
  18113. (onDownloadComplete): New function.
  18114. * src/main.cc: Added --direct-file-mapping option.
  18115. Use TorrentMan::setupDiskWriter().
  18116. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  18117. onDownloadComplete().
  18118. To fix ETA bug:
  18119. * src/Util.h (difftvsec): New function.
  18120. * src/Util.cc (difftvsec): New function.
  18121. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  18122. type of "elapsed" instead of long long int.
  18123. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  18124. The updates of statistics takes place every 1 seconds.
  18125. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  18126. (calculateSpeed): Changed its argument signature.
  18127. * src/PeerMessage.cc (toString): Fixed message.
  18128. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18129. To print ETA:
  18130. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  18131. completion handling when dealing with
  18132. TorrentMan::isPartialDownloadingMode() == true.
  18133. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  18134. New function.
  18135. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  18136. (sessionDownloadLength): New variable.
  18137. (avgSpeed): New variable.
  18138. (eta): New variable.
  18139. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  18140. new variables: eta, avgSpeed, startup.
  18141. (calculateSpeed): Calculate average speed and ETA.
  18142. (printStatistics): Added ETA.
  18143. * src/Util.h (secfmt): New function.
  18144. * src/Util.cc (secfmt): New function.
  18145. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18146. To detect "keep alive" flooding:
  18147. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  18148. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  18149. variable: keepAliveCount.
  18150. (detectMessageFlooding): Added "keep alive" flooding detection.
  18151. (receiveMessage): Increase keepAliveCount when "keep alive" message
  18152. received.
  18153. To add the ability to download only specified files in multi-file
  18154. torrent:
  18155. * src/BitfieldMan.h (filterBitfield): New variable.
  18156. (filterEnabled): New variable.
  18157. (setFilterBit): New function.
  18158. (enableFilter): New function.
  18159. (disableFilter): New function.
  18160. (isFilterEnabled): New function.
  18161. (getFilteredTotalLength): New function.
  18162. (getCompletedLength): New function.
  18163. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  18164. filterBitfield, filterEnabled.
  18165. (CopyConstructor): Added filterBitfield and filterEnabled.
  18166. (operator==): Added filterBitfield and filterEnabled.
  18167. (Destructor): Added filterBitfield.
  18168. (getMissingIndex): Use filterBitfield.
  18169. (getMissingUnusedIndex): Use filterBitfield.
  18170. (getFirstMissingUnusedIndex): Use filterBitfield.
  18171. (getFirstMissingUnusedIndex): Use filterBitfield.
  18172. (getAllMissingIndexes): Use filterBitfield.
  18173. (countMissingBlock): Use filterBitfield.
  18174. (countBlock): Use filterBitfield.
  18175. (setBitInternal): Added new argument on.
  18176. (setUseBit): Use setBitInternal.
  18177. (unsetUseBit): Use setBitInternal.
  18178. (setBit): Use setBitInternal.
  18179. (unsetBit): Use setBitInternal.
  18180. (isAllBitSet): Use filterBitfield.
  18181. (setFilterBit): New function.
  18182. (addFilter): New function.
  18183. (enableFilter): New function.
  18184. (disableFilter): New function.
  18185. (clearFilter): New function.
  18186. (isFilterEnabled): New function.
  18187. (getFilteredTotalLength): New function.
  18188. (getCompletedLength): New function.
  18189. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  18190. Initalized newly added variables.
  18191. [FileEntry](offset): New variable.
  18192. [FileEntry](extracted): New variable.
  18193. [FileEntry](requested): New variable.
  18194. (readFileEntry): New function.
  18195. (option): New variable.
  18196. (splitMultiFile): Removed const qualifier.
  18197. (fixFilename): Removed const qualifier.
  18198. (readFileEntryFromMetaInfoFile): New function.
  18199. (finishPartialDownloadingMode): New function.
  18200. (isPartialDownloadingMode): New function.
  18201. (setFileEntriesToDownload): New function.
  18202. (getCompletedLength): New function.
  18203. (getPartialTotalLength): New function.
  18204. * src/TorrentMan.cc (readFileEntry): New function.
  18205. (setup): Use readFileEntry. If no-preallocation option is specified,
  18206. use DefaultDiskWriter.
  18207. (readFileEntryFromMetaInfoFile): New function.
  18208. (fixFilename): Removed const qualifier.
  18209. (splitMultiFile): Removed const qualifier.
  18210. (setFileEntriesToDownload): New function.
  18211. (isPartialDownloadingMode): New function.
  18212. (finishPartialDownloadingMode): New function.
  18213. (getCompletedLength): New function.
  18214. (getPartialTotalLength): New function.
  18215. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  18216. New variable.
  18217. (partialTotalLength): New variable.
  18218. (downloadLength): New variable.
  18219. (totalLength): New variable.
  18220. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  18221. Added log.
  18222. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  18223. partialTotalLength, downloadLength, totalLength.
  18224. (calculate): Calculate downloadLength and totalLength.
  18225. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  18226. * src/main.cc (addCommand): Changed argument signature.
  18227. (main): Added new variable: args. Added new option "torrent-show-files"
  18228. "no-preallocation". Usage is not updated yet.
  18229. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18230. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  18231. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18232. Attempt to add the ability to listing file entries in a .torrent file.
  18233. This feature is not yet complete.
  18234. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  18235. * src/TorrentMan.cc (getMultiFileEntries): New function.
  18236. (getName): New function.
  18237. * src/TorrentMan.h (getMultiFileEntries): New function.
  18238. (getName): New function.
  18239. * src/main.cc (main): Use above 2 funtion.
  18240. * Release 0.3.2
  18241. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18242. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  18243. (detectMessageFlooding): Updated threshold value.
  18244. (checkLongTimePeerChoking): Updated timeout value.
  18245. (getNewPieceAndSendInterest): Added debug log.
  18246. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  18247. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  18248. (getPeer): Updated.
  18249. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  18250. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  18251. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  18252. is localhost.
  18253. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  18254. * src/PendingMessage.cc (processMessage): Not to send piece message
  18255. if peer is not interested in the pieces localhost has.
  18256. * src/Peer.cc (shouldChoke): Updated.
  18257. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  18258. * src/Util.cc (isPowerOf): New function.
  18259. * src/Util.h (isPowerOf): New function.
  18260. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  18261. whether or not it is power of 2.
  18262. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18263. Added new class SendMessageQueue that includes PendingMessages and
  18264. RequestSlotMan.
  18265. * src/SendMessageQueue.h: New class.
  18266. * src/SendMessageQueue.cc: New class.
  18267. * src/PendingMessage.h: Added new member variable blockIndex and its
  18268. accessors.
  18269. (createRequestMessage): Updated.
  18270. * src/PendingMessage.cc (createRequestMessage): Updated.
  18271. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  18272. SendMessageQueue.
  18273. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  18274. (receiveMessage): Updated with SendMessageQueue.
  18275. (deletePendingPieceMessage): Removed.
  18276. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  18277. (sendInterest): Updated with SendMessageQueue.
  18278. (createRequestPendingMessage): Updated with SendMessageQueue.
  18279. (sendMessages): Updated with SendMessageQueue.
  18280. (onAbort): Updated with SendMessageQueue.
  18281. (keepAlive): Updated with SendMessageQueue.
  18282. (beforeSocketCheck): Updated SendMessageQueue.
  18283. * src/PeerInteractionCommand (sendMessages): Shuffle
  18284. missingBLockIndexes before using it.
  18285. Added its own timeout for peer connection.
  18286. * src/PeerAbstractCommand.h: Added member variable timeout and its
  18287. setter.
  18288. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  18289. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  18290. Added setTimeout() call.
  18291. (executeInternal): Added setTimeout() call.
  18292. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  18293. Added timeout.
  18294. (isTimeoutDetected): Updated.
  18295. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  18296. option.
  18297. Added *simple* message flooding checker.
  18298. * src/PeerInteractionCommand.cc (executeInternal):
  18299. Added detectMessageFlooding() call.
  18300. (detectMessageFlooding): New function.
  18301. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  18302. (beforeSocketCheck): Added detectMessageFlooding() call.
  18303. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  18304. chokeUnchokeCount, haveCount, detectMessageFlooding().
  18305. Removed deletePendingPieceMessage(), getRequestSlot(),
  18306. deleteRequestSlot(), deleteAllRequestSlot().
  18307. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  18308. Added checkLongTimePeerChoking() call.
  18309. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  18310. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  18311. if duplicate == false.
  18312. The parameter "uploaded" and "downloaded" in the tracker request are
  18313. the size since the client sent the "started" event to the tracker.
  18314. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  18315. uploaded size to preDownloadedSize, preUploadedSize respectively.
  18316. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  18317. getSessionDownloadedSize(), getSessionUploadedSize().
  18318. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  18319. getSessionUploadedSize() instead of getDownloadedSize(),
  18320. getUploadedSize().
  18321. * src/PendingMessage.cc (processMessage): Do not send request message
  18322. if the peer is choking the client.
  18323. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  18324. less than interval.
  18325. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18326. * configure.in: Added gnutls support. Added several CPP macros.
  18327. * m4/openssl.m4: Added.
  18328. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  18329. readData(), peekData(). Added gnutls support.
  18330. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  18331. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  18332. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  18333. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  18334. Instead, added a check for whether setup method has executed
  18335. successfully.
  18336. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  18337. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  18338. * src/Makefile.am: Updated.
  18339. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  18340. using whether OpenSSL or gcrypt, depending on the result of configure
  18341. script.
  18342. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  18343. messageDigest.h.
  18344. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  18345. * src/PeerListenCommand.cc: Added log about port binded successfully.
  18346. Fixed memory leak.
  18347. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  18348. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  18349. Removed instantiation of TrackerInitCommand. Instead,
  18350. TrackerWatcherCommand is instantiated and pushed to the command queue.
  18351. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  18352. ENABLE_SSL.
  18353. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  18354. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  18355. If a piece is already acquired by another command, delete the request
  18356. slots for the piece.
  18357. * src/TrackerUpdateCommand.cc (execute):
  18358. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  18359. Added a check whether peer list is null.
  18360. Fixed the bug that causes sending completed event to the tracker
  18361. several times.
  18362. * src/TrackerInitCommand.cc (execute):
  18363. Fixed the bug that causes sending completed event to the tracker
  18364. several times.
  18365. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  18366. by using messageDigest.h.
  18367. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18368. * PeerConnection.cc: Replaced log message "keep-alive" with
  18369. "keep alive".
  18370. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  18371. localhost long time.
  18372. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18373. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18374. at most 100 failure entry from the list. If with duplicate = false,
  18375. MAX_PEER_LIST is not checked.
  18376. * PeerListenCommand.cc: Fixed the argument order of log message.
  18377. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18378. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18379. Added warn().
  18380. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18381. Implemented warn().
  18382. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18383. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18384. * Request.h: Added AFTER_COMPLETED event.
  18385. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18386. instead of downloaded size and progress(%) after download completes.
  18387. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18388. message to the peer if it is interested in what localhost has
  18389. downloaded.
  18390. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18391. destination instead of just renaming it.
  18392. * TorrentMan.cc: Added deleteTempFile().
  18393. * PeerAbstractCommand.cc: do not stop execution after download
  18394. completes. This makes localhost a seeder.
  18395. * Util.{h,cc}: Added fileCopy().
  18396. * PeerListenCommand.cc: do not stop execution after download completes.
  18397. This makes localhost a seeder.
  18398. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18399. Added TorrentMan::deleteTempFile() to torrentHandler.
  18400. Initialized the variable dir as ".".
  18401. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18402. Deleted renameSingleFile().
  18403. Added copySingleFile(), deleteTempFile().
  18404. * DownloadEngine.h: Added virtual function afterEachIteration().
  18405. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18406. in onEndOfRun() to afterEachIteration().
  18407. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18408. true.
  18409. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18410. In rangedFileCopy(), added try-catch block to properly close file
  18411. descriptors.
  18412. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18413. Added afterEachIteration(), isFilenameFixed().
  18414. * Peer.cc: Changed choking strategy.
  18415. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18416. * TrackerInitCommand.cc: Send completed event only once.
  18417. * DownloadEngine.cc: Added a call to afterEachIteration().
  18418. * TrackerUpdateCommand.cc: Do not stop execution after download
  18419. completes.
  18420. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18421. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18422. received from a tracker.
  18423. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18424. Decreased the number of failure peers to delete to 0(just comment out
  18425. the line).
  18426. * Release 0.3.1
  18427. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18428. * PeerInteractionCommand.cc: added a call to
  18429. TorrentMan::unadvertisePiece in Destructor.
  18430. * PeerInteractionCommand.cc: make have message sent immediately
  18431. if the size of pending message queue is zero.
  18432. * TorrentMan.cc: set the maximum size of peer list to 250.
  18433. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18434. to deque.
  18435. * Util.cc: fixed rangedFileCopy.
  18436. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18437. to Constructor. Also, moved digest cleanup to Destructor.
  18438. * MetaFileUtil.cc: fixed memory leak
  18439. * replaced std::vector with std::deque.
  18440. * AbstractCommand.cc: casted timeout value to long long int.
  18441. * ChunkedEncoding.cc: fixed memory leak.
  18442. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18443. * SleepCommand.cc: casted timeout value to long long int.
  18444. * Data.cc: fixed memory leak.
  18445. * Data.cc: fixed toLLInt().
  18446. * BitfieldMan.cc: fixed memory leak.
  18447. * TorrentMan.cc: initialized storeDir to ".".
  18448. * TorrentMan.cc: fixed memory leak.
  18449. * TorrentMan.cc: corrected file paths of splitted files.
  18450. * PeerAbstractCommand.cc: casted timeout to long long int.
  18451. * main.cc: added delete(req) and delete(te->diskWriter).
  18452. * RequestSlot.cc: casted timeout value to long long int.
  18453. * Request.cc: fixed memory leak.
  18454. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18455. have the piece.
  18456. * Peer.{h,cc}: added hasPiece(int index).
  18457. * main.cc: corrected addCommand.
  18458. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18459. * BitTorrent protocol support added.
  18460. * Release 0.3.0
  18461. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18462. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18463. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18464. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18465. decoding did not work properly.
  18466. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18467. * DownloadEngine.h: included sys/time.h
  18468. * DownloadEngine.cc: remove sys/time.h
  18469. * Makefile.am (SUBDIRS): Add intl.
  18470. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18471. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18472. * main.cc: correct help message for --http-auth-scheme.
  18473. * main.cc: changed e-mail address for bug reports.
  18474. * ja.po: added japanese translation.
  18475. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18476. * SimpleLogger.cc: flush log file instead of stdout.
  18477. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18478. * main.cc: Fixed command-line option: max-tries
  18479. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18480. does not equal to seg.sp.
  18481. * DownloadCommand.cc: If EOF is got from the server and the total size
  18482. of file is not zero, then throw DlRetryEx.
  18483. * main.cc: Set the minium value of min-segment-size to 1024.
  18484. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18485. fails because of a regression since 0.2.0 release.
  18486. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18487. * HttpConnection.cc:
  18488. * common.h: defined the user agent name as macro
  18489. * DownloadEngine.{h, cc}:
  18490. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18491. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18492. * main.cc: Download complete/abort message is now generated by main.
  18493. * Makefile.am (SUBDIRS): Add m4.
  18494. (ACLOCAL_AMFLAGS): New variable.
  18495. (EXTRA_DIST): New variable.
  18496. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18497. * gettext: added gettext functionality
  18498. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18499. * AbstractCommand.cc:
  18500. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18501. unregister its cuid from SegmentMan.
  18502. * DownloadEngine.cc: .aria2 file was written when a downloading
  18503. failed with errors.
  18504. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18505. Added "User-Agent" header to CONNECT proxy request.
  18506. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18507. properly.
  18508. * Logger.h:
  18509. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18510. * ChunkedEncoding.cc: Added #include directive for strings.h
  18511. * Release 0.2.1
  18512. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18513. * Util.{h,cc}: added startsWith().
  18514. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18515. Util::endsWith().
  18516. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18517. * common.h: added #include directive of limit.h.
  18518. * DownloadEngine.cc: added #include directive of sys/time.h and
  18519. algorithm.
  18520. * Exception.h: added #include directive of stdio.h.
  18521. * AbstractCommand.h: added #include directive of sys/time.h.
  18522. * DownloadCommand.h: added #include directive of sys/time.h.
  18523. * *.h: added #include directive of common.h to all base classes.
  18524. subclasses' one was removed.
  18525. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18526. does not define these macros.
  18527. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18528. * Release 0.2.0
  18529. * main.cc:
  18530. * HttpInitiateConnectionCommand.{h,cc}:
  18531. * prefs.h:
  18532. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18533. We can now use GET command in http proxy.
  18534. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18535. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18536. that splits slowest segment of SegmentMan::commands vector.
  18537. This is the default split algorithm of aria2.
  18538. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18539. that splits first segment of SegmentMan::commands vector.
  18540. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18541. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18542. * Segment.h:
  18543. * SegmentMan.cc: Added speed field to Segment.h
  18544. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18545. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18546. * message.h: Change file size related %d to %lld.
  18547. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18548. * FtpInitiateConnectionCommand.{h,cc}:
  18549. * FtpNegotiationCommand.{h,cc}:
  18550. * FtpDownloadCommand.{h,cc}:
  18551. * FtpConnection.{h,cc}: Added FTP support
  18552. * SimpleLogger.cc: Log message now includes time information.
  18553. * main.cc: The value of --http-auth-scheme option is chagned from
  18554. 'BASIC' to 'basic'
  18555. * main.cc: Added --timeout command-line option.
  18556. * main.cc: Added --min-segment-size command-line option.
  18557. * main.cc: Added --max-retries command-line option.
  18558. * prefs.h: option string constants are now defined in prefs.h
  18559. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18560. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18561. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18562. with version 0.1.0's one.
  18563. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18564. * configure.in: Added --enable-ssl option to configure script.
  18565. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18566. cannot permit absoluteURI as Request-URI.
  18567. * HttpConnection.cc: Added Referer support.
  18568. * main.cc: Added referer command-line option.
  18569. * main.cc: Added rety-wait command-line option.
  18570. * Exception.h: Fixed formating bug in Exception::setMsg()
  18571. * SocketCore.{h,cc}:
  18572. * Socket.{h, cc}:
  18573. * Request.cc:
  18574. * InitiateConnectionCommandFactory.cc:
  18575. * HttpRequestCommand.cc: Added HTTPS support.
  18576. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18577. for SocketCore.
  18578. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18579. size is wrong
  18580. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18581. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18582. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18583. * Release 0.1.0